Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Question about installing the kernel on the Pi 4
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
jgaz
n00b
n00b


Joined: 14 Feb 2021
Posts: 42

PostPosted: Wed Dec 01, 2021 12:59 pm    Post subject: Question about installing the kernel on the Pi 4 Reply with quote

So, the quick install instructions for the Raspberry Pi https://wiki.gentoo.org/wiki/Raspberry_Pi/Quick_Install_Guide say to git clone the official kernel from the upstream git project. But, I see sys-boot/raspberrypi-firmware exists. Isn't the kernel already rolled up into that ebuild? Can't I just emerge that instead?
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Wed Dec 01, 2021 3:19 pm    Post subject: Reply with quote

Yes
I looked into the ebuild and it apparently installs the files in /boot.
But i couldnt find anything about the actual kernel and the "modules" directory which contains the kernel modules.
Maybe I am mistaken.

The way I do it is
Code:

git clone --depth=1  https://github.com/raspberrypi/firmware
cp -a firmware/boot/* /boot/
cp -a firmware/modules/* /lib/modules/

Then I edit config.txt and optionally cmdline.txt and rebuild my initramfs if any.
For updating the kernel i use
Code:

cp /boot/*.txt /root/
rsync --delete /<src>/ /<dst>/
cp /root/*.txt /boot/

_________________
:)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Dec 01, 2021 5:42 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Gentoo on ARM.

The Default kernel uses the Powersave CPU governor by default. That clocks the Pi at 600MHz.
You probably want Ondemand.

Firmware means two different things on the Pi4 on all tho other PIs, is means the content of /boot which mostly runs on the GPU before the ARM CPU is allowed to do anything.
It even loads the kernel and initrd, if there is one.

The PI 4 still need most of that but not bootcode.bin.
On the Pi4, bootcode.bin has been replaced with real firmware is an SPI PROM, so the term is ambiguous.

dev-embedded/rpi-eeprom is about updating the SPI PROM 'firmware'.
_________________
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