Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #811708 > unrolled thread
| Started by | Benjamin Drung <benjamin.drung@profitbricks.com> |
|---|---|
| First post | 2017-03-07 16:20 +0100 |
| Last post | 2017-03-07 16:40 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.debian.bugs.dist
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
| From | Benjamin Drung <benjamin.drung@profitbricks.com> |
|---|---|
| Date | 2017-03-07 16:20 +0100 |
| Subject | Bug#857054: initramfs-tools: Firmware for builtin kernel modules not included in initramfs |
| Message-ID | <tip45-X4-5@gated-at.bofh.it> |
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.
[toc] | [next] | [standalone]
| From | Ben Hutchings <ben@decadent.org.uk> |
|---|---|
| Date | 2017-03-07 16:40 +0100 |
| Message-ID | <tipns-152-5@gated-at.bofh.it> |
| In reply to | #811708 |
[Multipart message — attachments visible in raw view] — view raw
Control: clone -1 -2 Control: reassign -2 src:linux 4.9.13-1 Control: retitle -2 Kernel installation should include list of firmware for built-in drivers Control: block -1 with -2 Control: found -1 0.120 Control: found -1 0.127 initramfs-tools will not keep its own lists of driver/firmware dependencies; that is not maintainable. This information has to be carried by the drivers themselves. In the case of built-in drivers, unfortunately, that information is currently discarded at kernel build time. Ben. -- Ben Hutchings Logic doesn't apply to the real world. - Marvin Minsky
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.bugs.dist
csiph-web