View previous topic :: View next topic |
Author |
Message |
FilthyPitDog Apprentice
Joined: 12 Jan 2021 Posts: 194 Location: South Pacific
|
Posted: Fri Dec 09, 2022 10:03 am Post subject: I got my cross-aarch64 rpi3b booting on Gentoo!! Hurray! |
|
|
https://postimg.cc/HrfgJP2N
# cat /proc/version
Linux version 6.1.0-rc8-v8+ (mrturcot@GentooRig) (aarch64-unknown-linux-gnu-gcc (Gentoo 12.2.1_p20221203 p3) 12.2.1 20221203, GNU ld (Gentoo 2.39 p5) 2.39.0) #1 SMP PREEMPT Thu Dec 8 05:27:24 PST 2022
Im SO happy right now 344 packages installed and it boots into like 13 tasks 0 threads 1 running (htop) and 40 MB RAM only (debian pi like 140-170MB RAM after boot lol)!! its all fully synced and updated to the lastest gentoo tree! Regards! Well wishes in your Gentoo travels... Thanks so much to NeddySeagoon for his make.conf's I found online to make this working one? Its probably bad lol but its fine I guess? https://github.com/mrturcot/Gentoo-Stuff/blob/master/stuff/rpi3b-make.conf
PS - kernel if anyone wants xd https://github.com/mrturcot/rpi3b Im booting it on my debian Pi-hole now haha
Code: | _,met$$$$$gg. mrturcot@Pi-hole
,g$$$$$$$$$$$$$$$P. OS: Debian bookworm
,g$$P"" """Y$$.". Kernel: aarch64 Linux 6.1.0-rc8-v8+
,$$P' `$$$. Uptime: 1h 9m
',$$P ,ggs. `$$b: Packages: 647
`d$$' ,$P"' . $$$ Shell: bash 5.2.2
$$P d$' , $$P Disk: 2.3G / 30G (8%)
$$: $$. - ,d$$' CPU: BCM2835 @ 4x 1.2GHz
$$\; Y$b._ _,d$P' GPU:
Y$$. `.`"Y$$$$P"' RAM: 173MiB / 922MiB
`$$b "-.__
`Y$$
`Y$$.
`$$b.
`Y$$b.
`"Y$b._
`"""" |
"emerge-chroot -1 gcc" took like 13 hours using overclocked Ryzen 2700 with make -j12 && RAM tmpfs mount --bind /var/tmp/portage for builds (tmpfs which I have to say is SO fast wow) but i think it was all the lto linking that lengthened GCC compile time, I enabled only on GCC. Also, configuring packages is brutal! haha its the slowest line per line update, seconds apart lol
All in all took me like 3 or 4 days overtime, but so worth it currently emerge-chrooting rust... 7 hours in xd _________________ Gentoo is a way of life... |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54578 Location: 56N 3W
|
Posted: Mon Dec 12, 2022 11:39 am Post subject: |
|
|
FilthyPitDog,
Well done!
Trying the mainline kernel is still on my TODO list.
The only things I would change in a QEMU chroot are to remove.
Code: | QEMU_SOFTMMU_TARGETS="aarch64 arm x86_64"
QEMU_USER_TARGETS="aarch64 arm" |
You have an amd64 qemu-static installed in the chroot. Its what executes the arm64 files. If you build QEMU in the chroot like that, hopefully it will fail.
If were to work, your amd64 qemu-static will be replaced by an arm64 version.
If you have the RAM, Code: | PORTAGE_TMPDIR=/var/tmp/portage | can be in tmpfs.
Mount it before you chroot. Likewise, repos and distfiles can be shared. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
FilthyPitDog Apprentice
Joined: 12 Jan 2021 Posts: 194 Location: South Pacific
|
|
Back to top |
|
|
|
|
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
|
|