Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on ARM
  • Search

Question about installing the kernel on the Pi 4

Gentoo on all things ARM. Both 32 bit and 64 bit.
Tell about your hardware and CHOST.
Problems with crossdev targeting ARM hardware go here too.
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
Author
Message
jgaz
n00b
n00b
Posts: 56
Joined: Sun Feb 14, 2021 8:15 pm

Question about installing the kernel on the Pi 4

  • Quote

Post by jgaz » Wed Dec 01, 2021 12:59 pm

So, the quick install instructions for the Raspberry Pi https://wiki.gentoo.org/wiki/Raspberry_ ... tall_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?
Top
alamahant
Advocate
Advocate
Posts: 4032
Joined: Sat Mar 23, 2019 12:12 pm

  • Quote

Post by alamahant » Wed Dec 01, 2021 3:19 pm

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: Select all

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: Select all

cp /boot/*.txt /root/
rsync --delete /<src>/ /<dst>/
cp /root/*.txt /boot/
:)
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56077
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Wed Dec 01, 2021 5:42 pm

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.
Top
Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Gentoo on ARM”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic