[Pkg-raspi-maintainers] Bug#1023741: raspi-firmware: Please transfer brcmfmac43456-sdio.* files to firmware-brcm80211 package

Diederik de Haas didi.debian at cknow.org
Fri Apr 21 15:53:39 BST 2023


Control: severity -1 serious

On 09 Nov 2022 13:10:46 +0100 Diederik de Haas <didi.debian at cknow.org> wrote:
> Package: raspi-firmware
> Severity: normal
> 
> I completely agree that firmware-brcm80211 is the right place and
> raspi-firmware is the wrong place as this is about firmware for wifi
> devices which are f.e. also used on Pine64 devices.
> 
> AFAIK the package also makes assumptions about being run
> *on* a RPi (with a /boot/firmware dir?), so it may even fail
> installation on non-RPi devices.

There are a number of Pine64 devices which need the various files shipped by
raspi-firmware in the `/lib/firmware/brcm` directory.
I've now tried to install this package on both a Rock64 and a Quartz64 Model A
and the installation indeed failed:

```sh
root at cs21:~# aptitude install raspi-firmware
The following NEW packages will be installed:
  raspi-firmware 
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 4,816 kB of archives. After unpacking 22.8 MB will be used.
Get: 1 http://deb.debian.org/debian bookworm/non-free-firmware arm64 raspi-firmware all 1.20220830+ds-1 [4,816 kB]
Fetched 4,816 kB in 0s (23.7 MB/s)       
Selecting previously unselected package raspi-firmware.
(Reading database ... 51676 files and directories currently installed.)
Preparing to unpack .../raspi-firmware_1.20220830+ds-1_all.deb ...
Unpacking raspi-firmware (1.20220830+ds-1) ...
Setting up raspi-firmware (1.20220830+ds-1) ...
Error: missing /boot/firmware, did you forget to mount it?
dpkg: error processing package raspi-firmware (--configure):
 installed raspi-firmware package post-installation script subprocess returned error exit status 1
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.1.0-7-arm64
W: Possible missing firmware /lib/firmware/rockchip/dptx.bin for module rockchipdrm
I: The initramfs will attempt to resume from /dev/sda2
I: (UUID=f9b86b70-965a-4079-948c-02dd4d016680)
I: Set the RESUME variable to override this.
raspi-firmware: missing /boot/firmware, did you forget to mount it?
run-parts: /etc/initramfs/post-update.d//z50-raspi-firmware exited with return code 1
dpkg: error processing package initramfs-tools (--configure):
 installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 raspi-firmware
 initramfs-tools
[master ae75cb4] committing changes in /etc made by "aptitude install raspi-firmware"
 5 files changed, 366 insertions(+)
 create mode 100644 default/raspi-firmware
 create mode 100755 initramfs/post-update.d/z50-raspi-firmware
 create mode 100755 kernel/postinst.d/z50-raspi-firmware
 create mode 100755 kernel/postrm.d/z50-raspi-firmware
E: Sub-process /usr/bin/dpkg returned an error code (1)
Setting up initramfs-tools (0.142) ...
update-initramfs: deferring update (trigger activated)
Setting up raspi-firmware (1.20220830+ds-1) ...
Error: missing /boot/firmware, did you forget to mount it?
dpkg: error processing package raspi-firmware (--configure):
 installed raspi-firmware package post-installation script subprocess returned error exit status 1
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.1.0-7-arm64
W: Possible missing firmware /lib/firmware/rockchip/dptx.bin for module rockchipdrm
I: The initramfs will attempt to resume from /dev/sda2
I: (UUID=f9b86b70-965a-4079-948c-02dd4d016680)
I: Set the RESUME variable to override this.
raspi-firmware: missing /boot/firmware, did you forget to mount it?
run-parts: /etc/initramfs/post-update.d//z50-raspi-firmware exited with return code 1
dpkg: error processing package initramfs-tools (--configure):
 installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 raspi-firmware
 initramfs-tools
                                         
root at cs21:~# aptitude purge linux-image-6.1.0-6-arm64
The following packages will be REMOVED:  
  linux-image-6.1.0-6-arm64{p} 
The following partially installed packages will be configured:
  initramfs-tools raspi-firmware 
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 486 MB will be freed.
Do you want to continue? [Y/n/?] 
(Reading database ... 51710 files and directories currently installed.)
Removing linux-image-6.1.0-6-arm64 (6.1.15-1) ...
I: /vmlinuz.old is now a symlink to boot/vmlinuz-6.1.0-7-arm64
I: /initrd.img.old is now a symlink to boot/initrd.img-6.1.0-7-arm64
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-6.1.0-6-arm64
/etc/kernel/postrm.d/z50-raspi-firmware:
raspi-firmware: missing /boot/firmware, did you forget to mount it?
run-parts: /etc/kernel/postrm.d/z50-raspi-firmware exited with return code 1
dpkg: error processing package linux-image-6.1.0-6-arm64 (--remove):
 installed linux-image-6.1.0-6-arm64 package post-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
 linux-image-6.1.0-6-arm64
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
Setting up initramfs-tools (0.142) ...
update-initramfs: deferring update (trigger activated)
Setting up raspi-firmware (1.20220830+ds-1) ...
Error: missing /boot/firmware, did you forget to mount it?
dpkg: error processing package raspi-firmware (--configure):
 installed raspi-firmware package post-installation script subprocess returned error exit status 1
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.1.0-7-arm64
W: Possible missing firmware /lib/firmware/rockchip/dptx.bin for module rockchipdrm
I: The initramfs will attempt to resume from /dev/sda2
I: (UUID=f9b86b70-965a-4079-948c-02dd4d016680)
I: Set the RESUME variable to override this.
raspi-firmware: missing /boot/firmware, did you forget to mount it?
run-parts: /etc/initramfs/post-update.d//z50-raspi-firmware exited with return code 1
dpkg: error processing package initramfs-tools (--configure):
 installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 raspi-firmware
 initramfs-tools
                                         
root at cs21:~#
```

While I now do have those files in ``/lib/firmware/brcm/`` it caused various
error which will only go away if I uninstall this package again.
And as expected, at least the assumption that ``/boot/firmware`` is present
(and being a mountpoint?) is incorrect, which causes the package installation
to fail, but it seems to also break any kernel related actions?
So I've increased the severity to 'serious'.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part.
URL: <http://alioth-lists.debian.net/pipermail/pkg-raspi-maintainers/attachments/20230421/a0e78991/attachment.sig>


More information about the Pkg-raspi-maintainers mailing list