Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #811708
| From | Benjamin Drung <benjamin.drung@profitbricks.com> |
|---|---|
| Newsgroups | linux.debian.bugs.dist, linux.debian.kernel |
| Subject | Bug#857054: initramfs-tools: Firmware for builtin kernel modules not included in initramfs |
| Date | 2017-03-07 16:20 +0100 |
| Message-ID | <tip45-X4-5@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Cross-posted to 2 groups.
Package: initramfs-tools
Version: 0.120+deb8u3
Severity: normal
Hi,
I am using MODULES=netboot in combination with a custom kernel. This
kernel has its network driver bnx2x built in:
$ grep BNX2X= /boot/config-$version
CONFIG_BNX2X=y
The required firmware blobs are not included in the generated initramfs
even when specifying bnx2x in /etc/initramfs-tools/modules, because
manual_add_modules() from hook-functions does following:
$ modprobe --all --ignore-install --quiet --show-depends bnx2x
builtin bnx2x
$ $ modinfo -k $version -F firmware bnx2x
modinfo: ERROR: Module bnx2x not found.
I wrote a hook function as workaround:
$ cat /etc/initramfs-tools/hooks/fix-missing-firmware
#!/bin/sh
PREREQ=""
prereqs()
{
echo "$PREREQ"
}
case $1 in
# get pre-requisites
prereqs)
prereqs
exit 0
;;
esac
. /usr/share/initramfs-tools/hook-functions
for file in /lib/firmware/bnx2x/*; do
if test -e $file; then
copy_exec $file
fi
done
--
Benjamin Drung
System Developer
Debian & Ubuntu Developer
ProfitBricks GmbH
Greifswalder Str. 207
D - 10405 Berlin
Email: benjamin.drung@profitbricks.com
URL: http://www.profitbricks.com
Sitz der Gesellschaft: Berlin.
Registergericht: Amtsgericht Charlottenburg, HRB 125506B.
Geschäftsführer: Andreas Gauger, Achim Weiss.
Back to linux.debian.bugs.dist | Previous | Next — Next in thread | Find similar | Unroll thread
Bug#857054: initramfs-tools: Firmware for builtin kernel modules not included in initramfs Benjamin Drung <benjamin.drung@profitbricks.com> - 2017-03-07 16:20 +0100 Bug#857054: initramfs-tools: Firmware for builtin kernel modules not included in initramfs Ben Hutchings <ben@decadent.org.uk> - 2017-03-07 16:40 +0100
csiph-web