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

Bug#857055: marked as done (Kernel installation should include list of firmware for built-in drivers)



Your message dated Fri, 11 Sep 2020 20:35:04 +0100
with message-id <74499be4660a537152fc2358e12bbc2c319f4e98.camel@decadent.org.uk>
and subject line Re: Bug#857054: initramfs-tools: Firmware for builtin kernel modules not included in initramfs
has caused the Debian Bug report #857055,
regarding Kernel installation should include list of firmware for built-in drivers
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
857055: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=857055
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
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.

--- End Message ---
--- Begin Message ---
Version: 5.4.13-1

On Tue, 07 Mar 2017 15:35:56 +0000 Ben Hutchings <ben@decadent.org.uk> wrote:
> 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.

This was fixed upstream in 5.2, though our signed kernel packages
didn't include the extra file until version 5.4.13-1.

Jann Horn contributed a patch for initramfs-tools to use this
information, so that bug will be fixed soon.

Ben.

-- 
Ben Hutchings
Never put off till tomorrow what you can avoid all together.

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---

Reply to: