szemzoa / awboot

small linux bootloader for Allwinner T113-S3 and V851s
76 stars 34 forks source link

AWBoot

Small linux bootloader for Allwinner T113-S3

Building

Run make LOG_LEVEL=40.
This will generate the bootloader with a valid EGON header, usable with the xfel tool or BOOTROM
You can change the log level with the LOG_LEVEL argument. Default is 30 (info).

Using

You will need xfel for uploading the file to memory or SPI flash.
This it not needed for writing to an SD card.

FEL memory boot:

xfel write 0x30000 awboot-fel.bin
xfel exec 0x30000

FEL SPI NOR boot:

make spi-boot.img
xfel spinor
xfel spinor write 0 spi-boot.img
xfel reset

FEL SPI NAND boot:

make spi-boot.img
xfel spi_nand
xfel spi_nand write 0 spi-boot.img
xfel reset

SD Card boot:

Linux kernel:

WIP kernel from here: https://github.com/smaeul/linux/tree/d1/all