Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Pi4 wants both raspberrypi-wifi-ucode and linux-firmware...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
twork
Apprentice
Apprentice


Joined: 28 Jul 2006
Posts: 193

PostPosted: Sat Apr 20, 2024 11:41 pm    Post subject: Pi4 wants both raspberrypi-wifi-ucode and linux-firmware... Reply with quote

...but, they're a block...?

I'm trying to set up my first Gentoo instance on a RaspberryPi 4 machine. It will need to do WiFi.

At: https://wiki.gentoo.org/wiki/Raspberry_Pi4_64_Bit_Install#WiFi I read:

Quote:
WiFi needs three firmware files from in /lib/firmware/brcm/:

brcmfmac43455-sdio.bin
brcmfmac43455-sdio.clm_blob
brcmfmac43455-sdio.txt
[...]
Quote:
These files, including the Pi 4 version of above file, are found in sys-firmware/raspberrypi-wifi-ucode, to install it you'll also need to install sys-kernel/linux-firmware with the savedconfig USE flag

So, let's do:
Code:
# emerge -auvb linux-firmware raspberrypi-wifi-ucode
...nope:

Code:
Total: 2 packages (2 new), Size of downloads: 363156 KiB
Conflict: 2 blocks (2 unsatisfied)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (sys-kernel/linux-firmware-20240410:0/0::gentoo, ebuild scheduled for merge) pulled in by
    linux-firmware

  (sys-firmware/raspberrypi-wifi-ucode-20221012.1_p1:0/0::gentoo, ebuild scheduled for merge) pulled in by
    raspberrypi-wifi-ucode


Maybe irrelevant but just in case: I did add, in 'make.conf':
Code:
# because, Broadcom
ACCEPT_LICENSE="*"
...figuring, I'll fix that to be more specific than "*" once I have this fixed; my guess is it doesn't matter but who knows...

Might the HowTo that I'm reading is out of date, maybe?
Back to top
View user's profile Send private message
Ralphred
l33t
l33t


Joined: 31 Dec 2013
Posts: 668

PostPosted: Sun Apr 21, 2024 1:03 am    Post subject: Reply with quote

It's in
Quote:
also need to install sys-kernel/linux-firmware with the savedconfig USE flag

When you enable savedconfig for the sys-kernel/linux-firmware package, it allows you to only install the firmware you want by using these instructions.
If you set savedconfig then install sys-kernel/linux-firmware first, then try to install sys-kernel/raspberrypi-wifi-ucode the ebuild will spit out a list of the files you need to remove via the config file.
Back to top
View user's profile Send private message
twork
Apprentice
Apprentice


Joined: 28 Jul 2006
Posts: 193

PostPosted: Sun Apr 21, 2024 2:40 am    Post subject: Reply with quote

Ah, thanks! I was misreading that line, now I understand the need to build those in sequence.

Next, I'm realizing what a mistake it's been to have a Pi VM build stuff. This is getting old. Time for me to learn how to make arm64 builds on the Real Computer...
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54638
Location: 56N 3W

PostPosted: Sun Apr 21, 2024 10:06 am    Post subject: Reply with quote

twork,

Code:

roy@neddy_static ~ $ ls /lib/firmware/brcm/brcmfmac43455-sdio.bin
/lib/firmware/brcm/brcmfmac43455-sdio.bin
roy@neddy_static ~ $ ls /lib/firmware/brcm/brcmfmac43455-sdio.clm_blob
/lib/firmware/brcm/brcmfmac43455-sdio.clm_blob
roy@neddy_static ~ $ ls /lib/firmware/brcm/brcmfmac43455-sdio.txt
ls: cannot access '/lib/firmware/brcm/brcmfmac43455-sdio.txt': No such file or directory


Only brcmfmac43455-sdio.txt is missing from linux-firmware now. At least, by name.
The other files are symbolic links to .../cypress/cyfmac...
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
twork
Apprentice
Apprentice


Joined: 28 Jul 2006
Posts: 193

PostPosted: Sun Apr 21, 2024 11:54 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Only brcmfmac43455-sdio.txt is missing from linux-firmware now. At least, by name.
The other files are symbolic links to .../cypress/cyfmac...

OK thanks, that's (part of, sort of) what has been confusing me. In:

https://wiki.gentoo.org/wiki/Raspberry_Pi_Install_Guide#WIFI

...there are explicit references to the Pi5, and some explicit "in all cases" elsewhere, so I checked the Pi4 page -- I know, not as up to date, but still, Different; I can't tell when I'm guessing and when I'm guessing wrong.

I should just go plug this into hardware and see what happens. It's a Pi, FFS, WCPGW. Practice the Way, all that, wat ho.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54638
Location: 56N 3W

PostPosted: Mon Apr 22, 2024 9:03 am    Post subject: Reply with quote

twork,

The Pi3, 4 and 5 wifi firmware are all different.

The https://wiki.gentoo.org/wiki/Raspberry_Pi_Install_Guide#WIFI was written around the Pi5. That section really needs to be moved into the Pi5 specific section and the wifi part from the Pi4 guide updated and moved over to the Pi4 part, which in currently empty. Bluetooth is similar.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum