View previous topic :: View next topic |
Author |
Message |
redeltaglio n00b
Joined: 04 Apr 2018 Posts: 7 Location: Barcelona, Spain
|
Posted: Thu Apr 26, 2018 10:22 am Post subject: Cross compile in Gentoo to obtain custom Raspberry firmware |
|
|
https://steemit.com/gentoo/@npna/cross-compile-in-gentoo-to-obtain-a-custom-raspberry-pi-3-firmware
Hello nice people. I'm Riccardo Giuntoli writing from Barcelona, Spain.
Thankfully to the hardwork of the Gentoo user [profile=sahaki]sahaki[/profile] i've just finished to write this guide that will guide the reader to a detailed step by step work dedicated to the build of a correct environment useful to obtain an arm64 cross compile Gentoo workstation.
The final goal of this serie of guides will be the publication of a mantained ebuild of the powerful Pi-HOLE for the arm64 architecture under our favorite Linux distribution, Gentoo.
Any comments?
Nice Regards,
RG _________________ https://twitter.com/taglio
PGP: 90DC 1D49 FC85 DD2E 38AC 5301 6DAE 5C27 DFAF 0D6
"...a broken clock is always right twice a day..." |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54407 Location: 56N 3W
|
Posted: Thu Apr 26, 2018 6:01 pm Post subject: |
|
|
redeltaglio,
The Gentoo arm64 offering is still experimental.
Most of the stable packages are only stable so that we can have auto builds produce a stage3 tarball.
That means that there will not be many packages to install.
~arm64 mostly works. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54407 Location: 56N 3W
|
Posted: Thu Apr 26, 2018 6:05 pm Post subject: |
|
|
Moved from Documentation, Tips & Tricks to Gentoo on ARM. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 21793
|
Posted: Fri Apr 27, 2018 2:09 am Post subject: Re: Cross compile in Gentoo to obtain custom Raspberry firmw |
|
|
redeltaglio wrote: | Thankfully to the hardwork of the Gentoo user [profile=sahaki]sahaki[/profile] | Profile tags take the user's ID number, not the display name. Display names can be changed, but ID numbers are stable. You can get the user's ID from the user's profile button. |
|
Back to top |
|
|
Sakaki Guru
Joined: 21 May 2014 Posts: 409
|
Posted: Tue May 01, 2018 6:25 pm Post subject: |
|
|
redeltaglio,
looks good ^-^
Some random points:
Does the Bluetooth adaptor come up correctly with this setup? I had to do an hciattach in a service (in addition to the firmware and kernel driver) to make it run.
Also, do you switch the CPU governor out of powersave (the default)? If not you will be running at 600MHz, not 1.2GHz/1.4GHz (see e.g. here).
If you use UUID-based naming in your /etc/fstab and /boot/cmdline.txt, you can also write the image to USB and boot from there (the RPi3B+ can boot from USB as shipped, the RPi3B needs a small one-time tweak).
You woudn't have to do much to make your instructions work fully on an RPi3B+ either (see this post). Just add /lib/firmware/brcm/brcmfmac43455-sdio.txt (you already have the DTB and are using the up-to-date 4.14.y kernel and firmware). Remember also this is dual-band so you need to do an "iw reg set <countrycode>" or equivalent.
Fun fact: if you:
Code: | # cp /mnt/piboot/bcm2710-rpi-3-b.dtb /mnt/piboot/bcm2709-rpi-2-b.dtb |
your image should also boot on an RPi2v1.2.
Might be worth pointing people to the Gentoo Handbook at the end, for other tweaks to make.conf CFLAGS, localization etc. _________________ Regards,
sakaki |
|
Back to top |
|
|
|