View previous topic :: View next topic |
Author |
Message |
jgaz n00b
Joined: 14 Feb 2021 Posts: 42
|
Posted: Wed Dec 01, 2021 12:59 pm Post subject: Question about installing the kernel on the Pi 4 |
|
|
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 |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3879
|
Posted: Wed Dec 01, 2021 3:19 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Wed Dec 01, 2021 5:42 pm Post subject: |
|
|
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 |
|
|
|