Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

25 views
Skip to first unread message

Diederik de Haas

unread,
Nov 9, 2022, 7:20:03 AM11/9/22
to
Package: raspi-firmware
Version: 1.20220830+ds-1
Severity: normal
X-Debbugs-Cc: 999...@bugs.debian.org

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

In https://bugs.debian.org/999485#10 you (Gunnar Wolf) wrote:

============================================
Please note I'm currenlty shipping the required files in
raspi-firmware -- I believe their right place is in
firmware-brcm80211, so please just ping me (or better, raise a bug on
raspi-firmware) whent they are added to this package.
============================================

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.

It doesn't make sense to install the raspi-firmware on those non-RPi
devices and 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.

So hereby the request to do and coordinate the move of those firmware
files to the firmware-brcm80211 package, which likely will need to be
coordinated with a Breaks/Replace construct.

It would be great if it could be done ASAP, but at least before the
Bookworm release.

TIA,
Diederik

- -- System Information:
Debian Release: bookworm/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'stable-security'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (101, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.0.0-3-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages raspi-firmware depends on:
ii dosfstools 4.2-1
ii dpkg 1.21.9+b1

raspi-firmware recommends no packages.

Versions of packages raspi-firmware suggests:
ii bluez-firmware 1.2-7
pn firmware-brcm80211 <none>
ii firmware-misc-nonfree 20221012-1

-----BEGIN PGP SIGNATURE-----

iHUEARYIAB0WIQT1sUPBYsyGmi4usy/XblvOeH7bbgUCY2uYvAAKCRDXblvOeH7b
brzrAP4wMDJZQ7uBPrr5BzA5kMCp9Rta/5/ENNQUc5zfUHCITQD+IT4k+rZ9L6rC
D/7fSkwV3kEO4JbNwbAHOBuC9Sya6gA=
=p/QT
-----END PGP SIGNATURE-----

Diederik de Haas

unread,
Apr 21, 2023, 11:00:04 AM4/21/23
to
Control: severity -1 serious

On 09 Nov 2022 13:10:46 +0100 Diederik de Haas <didi....@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@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@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@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'.
signature.asc

Diederik de Haas

unread,
Apr 21, 2023, 11:10:04 AM4/21/23
to
Control: severity -1 critical

On Friday, 21 April 2023 16:53:39 CEST Diederik de Haas wrote:
> 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'.

It's even worse, it looks like I CAN'T uninstall the package (using normal
tools; will likely try ``dpkg -f`` to brute force it later), so it's also
breaking unrelated software, hence further increase to 'critical'.

```sh
root@cs21:~# aptitude purge raspi-firmware
The following packages will be REMOVED:
raspi-firmware{p}
The following partially installed packages will be configured:
initramfs-tools
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
E: Can't find a source to download version '6.1.15-1' of 'linux-image-6.1.0-6-
arm64:arm64'
After unpacking 22.8 MB will be freed.
Do you want to continue? [Y/n/?]
E: Can't find a source to download version '6.1.15-1' of 'linux-image-6.1.0-6-
arm64:arm64'
E: Internal error: couldn't generate list of packages to download
E: Perhaps the package lists are out of date, please try 'aptitude update' (or
equivalent); otherwise some packages or versions are not available from the
current repository sources
root@cs21:~# aptitude update
Hit http://security.debian.org/debian-security bookworm-security InRelease
Get: 1 http://deb.debian.org/debian bookworm InRelease [181 kB]
Get: 2 http://deb.debian.org/debian sid InRelease [184 kB]
Get: 3 http://deb.debian.org/debian bookworm/main Sources.diff/Index [63.6 kB]
Get: 4 http://deb.debian.org/debian bookworm/main arm64 Packages.diff/Index
[63.6 kB]
Get: 5 http://deb.debian.org/debian bookworm/main Translation-en.diff/Index
[63.6 kB]
Get: 6 http://deb.debian.org/debian bookworm/main all Contents (deb).diff/Index
[63.8 kB]
Get: 7 http://deb.debian.org/debian sid/main Sources.diff/Index [63.6 kB]
Get: 8 http://deb.debian.org/debian sid/main arm64 Packages.diff/Index [63.6
kB]
Get: 9 http://deb.debian.org/debian sid/main arm64 Contents (deb).diff/Index
[63.8 kB]
Get: 10 http://deb.debian.org/debian sid/main all Contents (deb).diff/Index
[63.8 kB]
Get: 11 http://deb.debian.org/debian bookworm/main Sources
T-2023-04-21-1417.27-F-2023-04-21-1417.27.pdiff [33 B]
Get: 12 http://deb.debian.org/debian bookworm/main arm64 Packages
T-2023-04-21-1417.27-F-2023-04-21-1417.27.pdiff [33 B]
Get: 13 http://deb.debian.org/debian bookworm/main Translation-en
T-2023-04-21-1417.27-F-2023-04-21-1417.27.pdiff [33 B]
Get: 14 http://deb.debian.org/debian bookworm/main all Contents (deb)
T-2023-04-21-1417.27-F-2023-04-21-1417.27.pdiff [49 B]
Get: 15 http://deb.debian.org/debian sid/main Sources T-2023-04-21-1417.27-
F-2023-04-21-1417.27.pdiff [2,951 B]
Get: 16 http://deb.debian.org/debian bookworm/main Sources
T-2023-04-21-1417.27-F-2023-04-21-1417.27.pdiff [33 B]
Get: 17 http://deb.debian.org/debian sid/main arm64 Packages
T-2023-04-21-1417.27-F-2023-04-21-1417.27.pdiff [2,503 B]
Get: 18 http://deb.debian.org/debian sid/main arm64 Contents (deb)
T-2023-04-21-1417.27-F-2023-04-21-1417.27.pdiff [88 B]
Get: 19 http://deb.debian.org/debian sid/main Sources T-2023-04-21-1417.27-
F-2023-04-21-1417.27.pdiff [2,951 B]
Get: 20 http://deb.debian.org/debian bookworm/main all Contents (deb)
T-2023-04-21-1417.27-F-2023-04-21-1417.27.pdiff [49 B]
Get: 21 http://deb.debian.org/debian bookworm/main Translation-en
T-2023-04-21-1417.27-F-2023-04-21-1417.27.pdiff [33 B]
Get: 22 http://deb.debian.org/debian bookworm/main arm64 Packages
T-2023-04-21-1417.27-F-2023-04-21-1417.27.pdiff [33 B]
Get: 23 http://deb.debian.org/debian sid/main all Contents (deb)
T-2023-04-21-1417.27-F-2023-04-21-1417.27.pdiff [288 B]
Get: 24 http://deb.debian.org/debian sid/main arm64 Contents (deb)
T-2023-04-21-1417.27-F-2023-04-21-1417.27.pdiff [88 B]
Get: 25 http://deb.debian.org/debian sid/main arm64 Packages
T-2023-04-21-1417.27-F-2023-04-21-1417.27.pdiff [2,503 B]
Get: 26 http://deb.debian.org/debian sid/main all Contents (deb)
T-2023-04-21-1417.27-F-2023-04-21-1417.27.pdiff [288 B]
Fetched 880 kB in 53s (16.6 kB/s)

Current status: 1 (+1) upgradable.
root@cs21:~# aptitude purge raspi-firmware
The following packages will be REMOVED:
raspi-firmware{ap}
The following partially installed packages will be configured:
initramfs-tools
0 packages upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
E: Can't find a source to download version '6.1.15-1' of 'linux-image-6.1.0-6-
arm64:arm64'
After unpacking 22.8 MB will be freed.
Do you want to continue? [Y/n/?]
E: Can't find a source to download version '6.1.15-1' of 'linux-image-6.1.0-6-
arm64:arm64'
E: Internal error: couldn't generate list of packages to download
E: Perhaps the package lists are out of date, please try 'aptitude update' (or
equivalent); otherwise some packages or versions are not available from the
current repository sources
```
signature.asc

Diederik de Haas

unread,
Apr 21, 2023, 11:20:04 AM4/21/23
to
On Friday, 21 April 2023 17:02:57 CEST Diederik de Haas wrote:
> It's even worse, it looks like I CAN'T uninstall the package (using normal
> tools; will likely try ``dpkg -f`` to brute force it later)

It turns out that ``dpkg --purge raspi-firmware`` with in my case also
``dpkg --purge linux-image-6.1.0-6-arm64`` got APT back into a sane state.
signature.asc
0 new messages