首頁 繪圖設計 工作閒聊 比賽活動 美術討論 標籤 圖片
Ubuntu Server 9.10 + QLogic Fiber HBA QLA2xxx (23xx/24xx)
Type(Type) 2010/4/30 15:02

Ubuntu Server 9.10 + QLogic Fiber HBA QLA2xxx (2300/2400/...)



解決 Ubuntu Server 9.10 Qlogic QLA2XXX 系列光纖通道 HBA 掛載問題
e.g. qla2342, qla2442, etc...


Symptom :: 症狀:
Ubuntu Server 9.10 + Qlogic Fiber HBA 無法 Load Firmware
代碼:

firmware: requesting ql2400_fw.bin or firmware: requesting ql2300_fw.bin
scsi(0): Failed to load firmware image (ql2300_fw.bin or ql2400_fw.bin)
Firmware image unavailable.



Workaround Solution:

Step #1. cd /etc/initramfs-tools/hooks/


pre-condition: sudo su

Step #2. Create an initramfs hook script file named "qla2xxx"
代碼:

#!/bin/sh -e
# initramfs hook for ql2xxx firmware loading

PREREQ="udev"

# Output pre-requisites
prereqs()
{
   echo "$PREREQ"
}

case "$1" in
    prereqs)
   prereqs
   exit 0
   ;;
esac

. /usr/share/initramfs-tools/hook-functions

mkdir ${DESTDIR}/lib/firmware
cp -p /lib/firmware/ql2400_fw.bin ${DESTDIR}/lib/firmware/
cp -p /lib/udev/firmware.sh ${DESTDIR}/lib/udev/
cp -p /lib/udev/rules.d/50-firmware.rules ${DESTDIR}/lib/udev/rules.d


Step #3. chmod 755 qla2xxx



Step #4. cp /lib/firmware/ql*.bin /lib/firmware/$(uname -r)/



e.g. /bin/cp /lib/firmware/ql*.bin /lib/firmware/2.6.31-14-generic-pae/


Step #5. (OPTIONAL) cp /lib/firmware/ql*.bin /lib/firmware/$(uname -r)/qlogic/



e.g. /bin/cp /lib/firmware/ql*.bin /lib/firmware/2.6.31-14-generic-pae/qlogic/

Step #6. update-initramfs -u (PWD := /etc/initramfs-tools/hooks/)



Reboot after done for Step #1 ~ Step #6



Double Check

=> mkdir /tmp/imgtest
=> cd /tmp/imgtest
=> zcat /boot/initrd.img-$(uname -r) | cpio -i
=> find . -name "ql2*.bin"




參考資料
Qlogic QLA2xxx Fiber HBA Ubuntu Server Hook Script
=> https://bugs.launchpad.net/ubuntu/lucid/+source/linux-firmware/+bug/328550/comments/11

#Ubuntu
#qlogic

#Ubuntu by Type
#qlogic by Type
(3,906 views)
© Vovo2000.com Mobile Version 小哈手機版 2024