[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#857054: initramfs-tools: Firmware for builtin kernel modules not included in initramfs



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.


Reply to: