work around for loading qlogic fibre channel card firmware in initramfs
James Dinkel
jdinkel at gmail.com
Fri Jun 19 14:50:33 UTC 2009
On Thu, Jun 18, 2009 at 6:04 AM, Soren Hansen <soren at ubuntu.com> wrote:
>
> Did you run "update-initramfs -u" after adding your hook to
> /etc/initramfs-tools/hooks?
>
Yes I did. I think I've actually gotten it worked out. For one thing, I
found that doing 'sudo rmmod qla2xxx && sudo modprobe qla2xxx' after boot
that it will then pull in the firmware. That is good enough for my
situation (I could put that in the boot script) but that still leaves a 1
minute delay during boot, which is too big of a deal for this since it's a
server and a super fast boot doesn't really affect me much.
I did get the hook script working too though, and this gets rid of the boot
delay. Here is the script:
---------------------------
#!/bin/sh -e
# initramfs hook for qlogic ql2312 firmware
PREREQ=""
# Output pre-requisites
prereqs()
{
echo "$PREREQ"
}
case "$1" in
prereqs)
prereqs
exit 0
;;
esac
cp -p /lib/udev/firmware.sh ${DESTDIR}/lib/udev/
mkdir -p ${DESTDIR}/lib/firmware
cp -p /lib/firmware/ql2300_fw.bin ${DESTDIR}/lib/firmware/
cp -p /lib/udev/rules.d/50-firmware.rules ${DESTDIR}/lib/udev/rules.d/
-------------------------------
HOWEVER, either way I still can not access the LUN. I can see the LUN. Two
new devices show up (sdc and sdd), but 'sudo fdisk /dev/sdc' gives 'Unable
to read /dev/sdc'. You may notice this is a multipathed device, so it shows
up twice, and I have not set up the multipathing software yet, but I'm
pretty sure I could acess the devices on Fedora and on Debian before setting
up dm-multipath.
I'll set up dm-multipath next and see if that helps anything.
James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-server/attachments/20090619/4e58a1a7/attachment.html>
More information about the ubuntu-server
mailing list