User:Brendlefly62/Radxa ROCK Pi 4C Plus/Cheating
Learn from Others
It may be instructive to see what developers of other distributions have built "under the hood" when they put together the images available to download for this SBC...
Start with a Debian installation
Getting started with Debian is nearly trivial, but the process and the resulting mature system can reveal important information that may not be easily available from other sources, particularly when working with a board for which there is no documentation of Gentoo use, maybe not even a publicly available device tree blob file. The investigative process basically entails downloading a system image file to your PC and flashing it to removable storage media (micro SD Card).
Now go here to see what Debian has under the hood ...
(and/or) Move on to an Armbian installation
It is possible to use a procedure identical to that outlined above -
- Download an Armbian Image,
- Flash it to an SD Card,
- Boot the system
- And so on, just like above...
Or, it may be more instructive to build Armbian from scratch
- Armbian Sources are available on GitHub
- The author found this YouTube video very easy to follow -- How to Compile Armbian: Step-by-Step Tutorial for Beginners The armbian/build build script is very impressive, but it is only "supported" on Ubuntu 64
- 64 bit Host computer
- Linux or windows running VirtualBox if this isn't an Ubuntu 64 system
- An SD card reader in (or connected to, via e.g. USB) the host system
- Install Ubuntu
The author used a Windows 11 PC to install VirtualBox and then installed Ubuntu inside VirtualBox using an installation CDROM .iso file image, as outlined in the video
- Retrieve armbian/build sources
commands to get sources
- Run the "compile.sh" script
compile.sh [example output]
"Re-use" your Armbian-built system to deploy Gentoo
(Backup) Again, the author used Win32 Disk Imager to copy an image of the Armbian system installed on the SD back the Windows PC, for safekeeping.
Move the contents of the Armbian root filesystem, install gentoo stage 3, and restore boot
mv -v * /armbian_rootfs/
(compare to saved hash)
- (continue, basically as outlined in Gentoo Handbook (amd64)
tar xpvf stage3-*.tar.xz --xattrs-include='*.*' --numeric-owner