sophgo / sophgo-doc

BSD 2-Clause "Simplified" License
34 stars 29 forks source link

sg2042: trm: document spi flash layout (eg for bypassing SCP bootrom) #128

Open zamaudio opened 1 week ago

zamaudio commented 1 week ago

I noticed there is an option to reset the sg2042 and make it bypass the SCP bootrom but boot directly from SPI flash (64MiB). Can we get the spi flash layout documented in system.rst TODO item so we can write a custom bios? Thanks

zamaudio commented 1 week ago

In absence of documentation, I found this C program that appears to create a bootable spi flash image, but I haven't tested it.

https://github.com/sophgo/bootloader-arm64/blob/master/scripts/gen_spi_flash.c