discovered that there’s a bit of difference between mkimage in the rkbin tools and the upstream u-boot tools that was blocking the miniloader from really running post-DDR config. Used the upstream mkimage instead, and now it seems miniloader loads, and BL31 seems to get loaded as well
Boot1 Release Time: May 29 2020 17:36:36, version: 1.26
CPUId = 0x0
ChipType = 0x10, 347
mmc: ERROR: SDHCI ERR:cmd:0x102,stat:0x18000
mmc: ERROR: Card did not respond to voltage select!
emmc reinit
mmc: ERROR: SDHCI ERR:cmd:0x102,stat:0x18000
mmc: ERROR: Card did not respond to voltage select!
emmc reinit
mmc: ERROR: SDHCI ERR:cmd:0x102,stat:0x18000
mmc: ERROR: Card did not respond to voltage select!
SdmmcInit=2 1
mmc0:cmd5,20
SdmmcInit=0 0
BootCapSize=0
UserCapSize=15193MB
FwPartOffset=2000 , 0
StorageInit ok = 56470
SecureMode = 0
SecureInit read PBA: 0x4
SecureInit read PBA: 0x404
SecureInit read PBA: 0x804
SecureInit read PBA: 0xc04
SecureInit read PBA: 0x1004
SecureInit read PBA: 0x1404
SecureInit read PBA: 0x1804
SecureInit read PBA: 0x1c04
SecureInit ret = 0, SecureMode = 0
atags_set_bootdev: ret:(0)
GPT part: 0, name: primary, start:0xf424, size:0x6acfd
GPT part: 1, name: primary, start:0x7a121, size:0x3f1ebe
no find partition:uboot.
Trust Addr:0x4000, 0x58334c42
No find bl30.bin
Load uboot, ReadLba = 2000
Load OK, addr=0x200000, size=0xa8770
RunBL31 0x40000 @ 197727 us
NOTICE: BL31: v1.3(release):845ee93
NOTICE: BL31: Built : 15:51:11, Jul 22 2020
NOTICE: BL31: Rockchip release version: v1.1
INFO: GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3
INFO: Using opteed sec cpu_context!
INFO: boot cpu mask: 0
INFO: plat_rockchip_pmu_init(1196): pd status 3e
INFO: BL31: Initializing runtime services
INFO: BL31: Initializing BL32
INF [0x0] TEE-CORE:init_primary_helper:337: Initializing (1.1.0-266-gee81607c #1 Mon Aug 17 09:23:30 UTC 2020 aarch64)
INF [0x0] TEE-CORE:init_primary_helper:338: Release version: 1.2
INF [0x0] TEE-CORE:init_teecore:83: teecore inits done
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x200000
INFO: SPSR = 0x3c9
I made things a little bit difficult for myself too by switching the UART over to 115200 from the default 1.5Mbps, so to get the next set of output, I needed to reconnect at 115200, but it shows u-boot loading the kernel:
U-Boot 2021.10-1 (Nov 27 2021 - 17:03:43 -0600) Manjaro ARM
Model: Clockworkpi A06
DRAM: 3.9 GiB
PMIC: RK808
MMC: mmc@fe320000: 1, mmc@fe330000: 0
Loading Environment from MMC... Card did not respond to voltage select! : -110
*** Warning - No block device, using default environment
In: serial
Out: serial
Err: serial
Model: Clockworkpi A06
Net: Net Initialization Skipped
No ethernet found.
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
307 bytes read in 5 ms (59.6 KiB/s)
1: Manjaro ARM
Retrieving file: /initramfs-linux.img
8381351 bytes read in 530 ms (15.1 MiB/s)
Retrieving file: /Image
30761472 bytes read in 1937 ms (15.1 MiB/s)
append: initrd=/initramfs-linux.img earlycon=uart8250,mmio32,0xff1a0000 console=tty1 console=ttyS2,1500000 root=PARTUUID=fb1982bb-3ad6-4426-9865-1f44a8ea0e72 rw rootwait quiet splash plymouth.ignore-serial-consoles fbcon=rotate:1
Retrieving file: /dtbs/rockchip/rk3399-clockworkpi-a06.dtb
78446 bytes read in 12 ms (6.2 MiB/s)
Moving Image from 0x2080000 to 0x2200000, end=4030000
## Flattened Device Tree blob at 01f00000
Booting using the fdt blob at 0x1f00000
Loading Ramdisk to f5732000, end f5f303a7 ... OK
Loading Device Tree to 00000000f571b000, end 00000000f573126d ... OK
Starting kernel ...
[ 2.323843] rockchip-usb2phy ff770000.syscon:usb2phy@e450: failed to create phy
[ 2.334551] rockchip-usb2phy ff770000.syscon:usb2phy@e460: failed to create phy
[ 2.759623] rockchip-usb2phy ff770000.syscon:usb2phy@e450: failed to create phy
[ 2.771585] rockchip-usb2phy ff770000.syscon:usb2phy@e460: failed to create phy
This means that u-boot is working now. The screen backlight also comes on now, which is the devicetree getting loaded, but kernel stalls out a bit. will need to do another kernel build to correct the UART baud rate to keep it 1.5Mbps everywhere and get some more output. but calling it a success for tonight 