页次: 1
This SPL (https://github.com/szemzoa/sun8iw20_spl) is for mainline u-boot, you cannot use this for the Allwinner u-boot. As currently there are no mainline u-boot support for T113 yet, that one not very useful at the moment, except the DDR setup from C code. Your best bet currently is to use the Allwinner SPL, u-boot, OP-TEE, kernel.
You can look my awboot, I reverse engineered the DDR3 init based on the D1 SPL, It can initialize the DDR3 from pure C code:
https://github.com/szemzoa/awboot
Allwinner T113-loader
boot device: mmc0
DRAM SIZE = 128M
DRAM simple test OK.
CPU freq=1200 MHz
SD/MMC card at 'sdhci0' controller found
SD/MMC: Image: Read file zImage addr=45000000
SD/MMC: dt blob: Read file sun8i-mangopi-mq-dual-linux.dtb addr=41800000
booting linux...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.4.61 (root@devel) (arm-linux-gnueabi-gcc (Linaro GCC 7.2-2017.11) 7.2.1 20171011, GNU ld (Linaro_Binutils-2017.11) 2.28.2.20170706) #4 SMP PREEMPT Tue Jun 14 15:19:48 CEST 2022
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: sun8iw20
[ 0.000000] printk: bootconsole [earlycon0] enabled
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] cma: Reserved 8 MiB at 0x47800000
[ 0.000000] On node 0 totalpages: 32512
[ 0.000000] Normal zone: 256 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
页次: 1