User:Brendlefly62/Rockchip RK3588S OrangePi 5B/Build-Install-U-Boot

From Gentoo Wiki
Jump to:navigation Jump to:search

Building u-boot

As of 5/8/2024, there is no upstream support for the Tinkerboard 2 or 2 S in u-boot sources. So, the from-scratch u-boot part of this project is still a work in progress. This is also true for the older Tinkerboard -- the general approach is described in this article User:Brendlefly62/Rockchip_RK3288_Asus_Tinker_Board_S/Build-Install-U-Boot.

Meanwhile, there is official support for the Tinkerboard and community support for the Tinkerboard 2/2 S in Armbian. The procedure for building u-boot for OrangePi 5/5b is identical to that outlined at Rockchip RK3399 Asus Tinker Board 2 S/Build-Install-U-Boot (Remember to substitute "orangepi5" for the BOARD name in both runs of armbian/build's compile.sh script, instead of "tinkerboard-2"

Note the instructions for creating a more-informative boot.cmd/boot.scr u-boot script, and in the associated joetooEnv.txt, remember specify -- fdtfile==rk3588s-orangepi-5b.dtb and overlay_prefix=orangepi-5. The full file should look something like this -

joetooEnv.txt

verbosity=6
arch=arm64
console=both
#console=display
#console=serial
earlycon=on
consolebaud=1500000
bootlogo=false
overlay_dir=rockchip/overlay
#overlay_prefix=rockchip-rk3588
overlay_prefix=orangepi-5
#overlays=opp-oc-24ghz panthor-gpu
overlays=ap6275p
dtb_prefix=rockchip
#fdtfile=rk3588s-orangepi-5.dtb
fdtfile=rk3588s-orangepi-5b.dtb
imagefile=Image
initrdfile=uInitrd
rootdev=UUID=c65e4b4e-9b4d-4c24-acdf-fb665b620be8
rootfstype=ext4
#extraargs=coherent_pool=2M init=/sbin/init selinux=0 rw debug
extraargs=coherent_pool=2M init=/usr/bin/init selinux=0 net.ifnames=0 debug
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u