allwinner v85x boot0 note
remake checksum
you need remake checksum, after modify image.
https://github.com/nminaylov/F1C100s_projects/blob/master/tools/mksunxi/mksunxi.c
boot0_header layout
reference:
allwinner have some tools use for modify this:
nboot boot from sdcard
some opensource reference:
boot0 load boot-package:
boot0 load_package() function source code:
boot0 load_toc1_from_sdmmc() function source code:
v85x will load boot-package from this offset in sdcard:
toc1 header struct:
boot0 load_image() function source code:
how to make toc1:
https://linux-sunxi.org/Allwinner_Nezha#BSP_boot0_SPL
https://fedoraproject.org/wiki/Architectures/RISC-V/Allwinner/zh-cn#%E5%88%9B%E5%BB%BA_u-boot.toc1
https://github.com/smaeul/u-boot/blob/d1-wip/tools/sunxi_toc1.c
I make a project, use buildroot generate bootable v85x bootimage:
some error message rev eng
function check_hardware_info()
/* check sysctl, allwinner sucks, no register guide for this*/
/* check allwinner sid */
if (read32(0x030060a0) == 0) {
if (read(0x03006200 & 0xFFFF) != 0) {
pr_emerg("bootinfo error1\n");
return 1;
}
}