Bug 32159 - Rpi Firmware needs an update for recent devices
Summary: Rpi Firmware needs an update for recent devices
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: aarch64 Linux
Priority: release_blocker normal
Target Milestone: ---
Assignee: Kernel and Drivers maintainers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 32166
  Show dependency treegraph
 
Reported: 2023-08-06 15:53 CEST by Jybz
Modified: 2023-08-11 15:31 CEST (History)
0 users

See Also:
Source RPM: raspberrypi-firmware
CVE:
Status comment:


Attachments

Description Jybz 2023-08-06 15:53:06 CEST
Hello,

current raspberrypi firmware containing start4.elf is not working with recent raspberry-pi 4b.

After downloading and overwriting the 8 start4*.elf and fixup4*.elf, recent raspberry-pi boots further.
Comment 2 Thomas Backlund 2023-08-06 20:00:13 CEST
raspberrypi-firmware-1.20230405-1.mga9 pushed to nonfree updates_testing, please test
Comment 3 Lewis Smith 2023-08-06 20:34:17 CEST
Thank you Jybz for the report; and Thomas for an instant response.

> raspberrypi-firmware-1.20230405-1.mga9 pushed to nonfree updates_testing,
> please test
Jybz : please do, and report back.

Assignee: bugsquad => kernel

Comment 4 Jybz 2023-08-06 21:19:11 CEST
Thank you for the really fast action.

I'm trying to look how to do the testing on my setup...
1. Looping the iso on my laptop
2. Mounting the root partition
3. Mounting the /boot partition
4. chrooting inside
5. update the package
Comment 5 Jybz 2023-08-06 21:22:15 CEST
Nop, /boot is not a separate partition.
The firmware partition is in /boot/EFI with the .elf files.
After updating the firmware, it is required to copy all .elf in the EFI subfolder.
Comment 6 Jybz 2023-08-06 22:34:46 CEST
Protocol :
# download http://ftp.free.fr/mirrors/mageia.org/distrib/cauldron/aarch64/media/nonfree/updates_testing/ the firmware RPM
mkdir /tmp/root
mount /dev/mmcblk0p2 /tmp/root
mount /dev/mmcblk0p1 /tmp/root/boot/EFI
mount --bind /dev /tmp/root/dev
mount -t proc /proc /tmp/root/proc
cp /home/user/Download/*.rpm /tmp/root/root/
chroot /tmp/root
urpmi --replacefiles /root/*.rpm
find /boot -maxdepth 1 -iname '*.elf' -exec cp -f {} /boot/EFI
find /boot -maxdepth 1 -iname '*.dat' -exec cp -f {} /boot/EFI
md5sum /boot/*.elf
md5sum /boot/EFI/*.elf
# sums are equals
exit
umount /tmp/root/dev
umount /tmp/root/proc
umount /tmp/root/boot/EFI
umount /tmp/root

the board boots.

I couldn't do it online as I could not setup the wifi.
> wlan0: Failed to initiate sched scan
> [  340.841963] net_ratelimit: 13 callbacks suppressed
> [  340.841982] brcmfmac: cfg80211_set_channel: set chanspec 0x100c fail, reason -52
> [  340.854750] brcmfmac: cfg80211_set_channel: set chanspec 0x100d fail, reason -52
> [  340.862644] brcmfmac: cfg80211_set_channel: set chanspec 0x100e fail, reason -52
> [  340.870527] brcmfmac: cfg80211_set_channel: set chanspec 0xd022 fail, reason -52
> [  340.991969] brcmfmac: cfg80211_set_channel: set chanspec 0xd026 fail, reason -52
> [  341.111944] brcmfmac: cfg80211_set_channel: set chanspec 0xd02a fail, reason -52
> [  341.231981] brcmfmac: cfg80211_set_channel: set chanspec 0xd02e fail, reason -52
> [  341.351968] brcmfmac: cfg80211_set_channel: set chanspec 0xd034 fail, reason -52
> [  341.359850] brcmfmac: cfg80211_set_channel: set chanspec 0xd038 fail, reason -52
> [  341.367731] brcmfmac: cfg80211_set_channel: set chanspec 0xd03c fail, reason -52
Looks like https://bugzilla.opensuse.org/show_bug.cgi?id=1208900

@tmb I do not understand this wireless-regdb thing.
[jybz@jeeebztop intel-rapl:0]$ urpmq --sourcerpm wireless-regdb
    ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/8/x86_64/media/core/release/media_info/20210224-165404-info.xml.lzma
    ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/8/x86_64/media/core/updates/media_info/20230726-213123-info.xml.lzma                                
wireless-regdb: wireless-regdb-20201120-1.mga8.src.rpm                                                                                                                
wireless-regdb: wireless-regdb-20210828-1.mga8.src.rpm
Do we need an update ?
Should I open a new ticket ?

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 7 Jybz 2023-08-07 14:47:11 CEST
Just continuing here:
after installing this package http://ftp.free.fr/mirrors/mageia.org/distrib/9/aarch64/media/core/release/wireless-regdb-20230503-1.mga9.noarch.rpm no error a printed. No need for update. But can't connect :
> #   wpa_supplicant -Dnl80211 -iwlan0 -c/etc/wpa_supplicant.c 
> Successfully initialized wpa_supplicant
> wlan0: Failed to initiate sched scan
> [...]
> wlan0: Failed to initiate sched scan
> [^C]
> p2p-dev-wlan0: CTRL-EVENT-DSCP-POLICY clear_all
> p2p-dev-wlan0: CTRL-EVENT-DSCP-POLICY clear_all
> nl80211: deinit ifname=p2p-dev-wlan0 disabled_11b_rates=0
> p2p-dev-wlan0: CTRL-EVENT-TERMINATING 
> wlan0: CTRL-EVENT-DSCP-POLICY clear_all
> wlan0: CTRL-EVENT-DSCP-POLICY clear_all
> nl80211: deinit ifname=wlan0 disabled_11b_rates=0
> wlan0: CTRL-EVENT-TERMINATING 

I will open another ticket.
Comment 8 Thomas Backlund 2023-08-07 18:23:53 CEST
do you have wireless-regdb installed ?
Comment 9 Jybz 2023-08-07 19:09:27 CEST
(In reply to Thomas Backlund from comment #8)
> do you have wireless-regdb installed ?

It wasn't ! :D We need to add it on arm iso... I will open a ticket later. Good lunch
Comment 10 Jybz 2023-08-07 19:10:03 CEST
rasperrypi-firmware package need to be move to release, please
Jybz 2023-08-11 15:31:02 CEST

Blocks: (none) => 32166


Note You need to log in before you can comment on or make changes to this bug.