Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cross compile in Gentoo to obtain custom Raspberry 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
redeltaglio
n00b
n00b


Joined: 04 Apr 2018
Posts: 7
Location: Barcelona, Spain

PostPosted: Thu Apr 26, 2018 10:22 am    Post subject: Cross compile in Gentoo to obtain custom Raspberry firmware Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Apr 26, 2018 6:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Apr 26, 2018 6:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21793

PostPosted: Fri Apr 27, 2018 2:09 am    Post subject: Re: Cross compile in Gentoo to obtain custom Raspberry firmw Reply with quote

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
View user's profile Send private message
Sakaki
Guru
Guru


Joined: 21 May 2014
Posts: 409

PostPosted: Tue May 01, 2018 6:25 pm    Post subject: Reply with quote

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
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