Trying to follow https://wiki.radxa.com/Rock/U-Boot, I did the following:
- Got Linaro toolchain (7.5.0)
- Cloned
radxa/rkbin
repository - Cloned
radxa/u-boot
repository - In
u-boot
, switched tostable-4.4-rockpis
branch - Modified
make.sh
– setTOOLCHAIN_ARM64=PATH_TO_MY_LINARO_BINARIES
./make.sh rk3308
I got everything built:
load addr is 0x600000!
pack input ./u-boot.bin
pack file size: 611827
crc = 0xb20c5c1d
uboot version: U-Boot 2017.09-02383-g233a23e3ed-dirty (Nov 18 2020 - 20:42:03)
pack uboot.img success!
pack uboot okay! Input: ./u-boot.bin
out:rk3308_loader_uart0_m0_emmc_port_support_sd_20190717.bin
fix opt:rk3308_loader_uart0_m0_emmc_port_support_sd_20190717.bin
merge success(rk3308_loader_uart0_m0_emmc_port_support_sd_20190717.bin)
pack loader okay! Input: /rkbin/RKBOOT/RK3308MINIALL_UART0_SD_NAND.ini
/u-boot
out:trust.img
merge success(trust.img)
/u-boot
pack trust okay! Input: /rkbin/RKTRUST/RK3308TRUST.ini
Platform RK3308 is build OK, with new .config(make rk3308_defconfig)
But what to do next?
I tried writing uboot.img
to SD as in the tutorial:
dd if=uboot.img of=/dev/sdb seek=64
But I only screwed my partition and u-boot didn’t load. How to do it properly?
Apart of that, I have a couple more questions:
- What is
trust.img
? - How can I modify u-boot configuration (for example, the name of my kernel image or address where it should be loaded)?