ayufan-rock64 / linux-build

Rock64 Linux build scripts, tools and instructions
MIT License
562 stars 100 forks source link

Gentoo arm64 from scratch. #319

Open necrose99 opened 5 years ago

necrose99 commented 5 years ago

Curious since the pine64 image is a dud on rockpro64. Plus it's a 2016 image.. I sadly surmise it wont boot the rock64 either. Any rate I have lots of packages from rpi3-64 sakai (github) and Debian stretch @Scaleway with gentoo arm64 chroot. The rpi image is nice but not enough cylinders if you hit the gas on my older rpi3.. Xfce and many core binhost pkgs can be pulled in from the rpi3 binhost.
A few other overlays for drivers or etc.

Any case was looking to get a stage4 arm64 , add grub etc U-boot and your build scripts to usb3/emmc card chroot make uefi image etc. For both boards would be a plus.. I have about 80 gigs of packages to use then update from September 2018 Grub zfs , uefi, uboot. Etc dracut , OPENRC or systemd.

I can dropbox most of the bin repo I have..

Any rate any tips on a file system scheme, and chroot on a emmc, I'll take. Any from scratch hand building also useful.

tenspd137 commented 5 years ago

I have gentoo running on rockpro64. Use crossdev and qemu to build rootfs. Use mainline kernel and uboot from ayufan. Put everything on SD card and create a uboot boot script. I wish I had written more down. Been playing with it on and off for last couple months now. Trying to figure out libmali, X, etc now.

necrose99 commented 5 years ago

Mkstage4 , from image, pruning kernel, etc in tarballs.. ie loopmount , to chroot.. https://github.com/sakaki-/gentoo-on-rpi-64bit Mkstage4 on gentoo host , tarball.. Do a docker from image also possible..

Sakaki has a running rpi4/rpi3 image, and can use much of the binhost, to get binaries and xfce etc out of the gate.

However Mali panfrost, and a few others and a few rebuilding required. X11 driver is fairly generic however would need rpi::vc4 and mali/panfrost on rebuild.

/uboot-stub , > /boot/efi , boot , root , zswap. Makes swap vol as tmpfs dynamically.
Grub2 with efi , zfs uboot btfs etc. Having .xyz files in extconf , ie rpi4 or .rockpro64 etc.. could make possible a more universal all in kernel, patches etc.. , and point at board image is running on.

Thankfully requires a few additional additions... for rock64 or r64pro.. However i might be able to do an ansible yml. To clone, clean git repos. Etc add bits.