Let me add that I would also be glad if the firmware loading mechanism
could be directly integrated into Ubuntu without having to create an own
initramfs-tools hooks. However, as many people were already asking in
other fora how to create such a hook, here is the one I created as /etc
/initdramfs-tools/hooks/ql2xxx:

-- cut here --
#!/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
-- cut here --

Make sure to create that file with executable right and then run
"update-initramfs -u" to recreate the initrd file. In addition, please
note that this hook only copies the ql2400_fw.bin file. So if you have
another card replace that in the hooks file.

-- 
qla2xxx takes ~one minute to initialize per device
https://bugs.launchpad.net/bugs/328550
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to