#995986 simple-cdd: Firmware not being included in installer image

#995986#5
Date:
2021-10-09 08:33:24 UTC
From:
To:
Dear Maintainer,

I'm using simple-cdd to build an installer which includes non-free firmware.

I find that the firmware is included in the installer when it is built when running on Debian 10, but the firmware is not included in the installer when it is built when running on Debian 11.

The result is that I can successfully run the installer on a Thinkpad T440 if the installer is built under Debian 10, but an installer built under Debian 11 when run on the same Thinkpad T440 will ask for missing firmware to be provided before it reaches the installer screens which ask for a network to be selected and wifi credentials.

My profiles/<profile_name>.packages file has just one line:
firmware-iwlwifi

On Debian 11, when I look in <project_name>/tmp/mirror/pool/non-free/f/firmware-nonfree/, I see the firmware-iwlwifi_20210315-3_all.deb package.

But when I look in <project_name>/tmp/cd-build/bullseye/CD1/firmware/, all I see is a dep11/ directory, and I don't see the firmware file.

I don't know enough to know if this is an upstream problem, so I thought I'd report it here in the first instance.

If it helps, the project I'm using simple-cdd in is quite a simple one and you can see it here: https://github.com/countermeasure/basic-box

Cheers!

#995986#10
Date:
2021-10-10 03:08:35 UTC
From:
To:
Hi,

The simple-cdd is a Debian native package, it has not other upstream,
report it to here is the right palace.

#995986#15
Date:
2021-10-10 03:19:50 UTC
From:
To:
Would you set

export FORCE_FIRMWARE=1

in your build.conf and try again?

This would add all firmware-nonfree package into your iso.

在 2021/10/9 下午4:33, Scott 写道:

#995986#20
Date:
2021-10-11 06:15:08 UTC
From:
To:
I've tried exporting FORCE_FIRMWARE=1 in my .conf file, but it didn't
change any behaviour. There is still no firmware being included.

If it helps, here is the contents of my .conf file after I make that
change (I call that file basic.conf, because basic is what the profile
I've created is called):

     # Automatically start the installer after 5 seconds.
     BOOT_TIMEOUT=50

     # Locale and keyboard settings won't work if set in the preseed file, so set
     # them here.
     locale="en_AU"
     keyboard="us"

     # Include the "basic" profile in the installer.
     profiles="basic"

     # Automatically install the "basic" profile.
     auto_profiles="basic"

     # Allow non-free firmware.
     mirror_components="main non-free"

     # Ensure firmware is included in the installer.
     export FORCE_FIRMWARE=1

Also, here is the branch of the project with that change included:
https://github.com/countermeasure/basic-box/tree/bullseye

Has it been confirmed that setting FORCE_FIRMWARE successfully adds the
firmware when run on Bullseye? I made myself a very simple simple-cdd
project on Bullseye to test without extra code complexity that might
have been breaking the firmware inclusion, and even then, FORCE_FIRMWARE
still didn't seem to work for me.


 > Would you set
 >
 > export FORCE_FIRMWARE=1
 >
 > in your build.conf and try again?
 >
 > This would add all firmware-nonfree package into your iso.

#995986#25
Date:
2023-05-22 18:46:40 UTC
From:
To:
I can confirm that this issue still seems to affect simple-cdd 0.6.9 on
bookworm as of mid-May 2023 (including debian-cd version 3.2.1).

I too have tried 'export FORCE_FIRMWARE=1' together with 'export
NONFREE_COMPONENTS="non-free non-free-firmware"',
'mirror_components="main non-free non-free-firmware"' and various
combinations thereof within my profile.default, all without success.

It would be great to see a working example of how to get firmware
packages managed by simple-cdd. Thanks.

#995986#30
Date:
2024-07-22 16:44:47 UTC
From:
To:
I found that following lines allow me to include non-free firmware
packages into the generated images:

mirror_components="main non-free-firmware"
export NONFREE=1
export NONFREE_COMPONENTS="non-free-firmware"
export DEP11=0 # woraround a bug with simple-cdd not fetching dep11 files

The last line might require not-yet-uploaded debian-cd (built from git,
works perfectly).