人氣點閱:3905 |
發表人 |
Ubuntu Server 9.10 + QLogic Fiber HBA QLA2xxx (23xx/24xx) 2010-04-30 15:02 分類: ✔️Ubuntu ✔️qlogic 個人: ✔️Ubuntu ✔️qlogic |
/ / /
|
|
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 ________________
美術插畫設計案子報價系統 v0.1 Beta
爪哇禾雀
|
|
Type
繪圖畫廊 設計藝廊 攝影相簿 留言板 最愛收藏 分類標籤
暱稱: Type 註冊: 2002-11-30 發表: 11171 來自: vovo2000.com
V幣: 901757
|
|
|
|
|