(ARM Cortex-A7) T113-S3 (MangoPi MQ-R)
build awboot
參考資料:
1. awboot
2. whycan
3. debugdump
如下:
$ cd $ git clone https://github.com/szemzoa/awboot $ cd awboot $ vim board.c sunxi_usart_t usart_dbg = { .base = 0x02500000, .id = 0, .gpio_tx = {GPIO_PIN(PORTE, 2), GPIO_PERIPH_MUX6}, .gpio_rx = {GPIO_PIN(PORTE, 3), GPIO_PERIPH_MUX6}, }; $ make $ xfel write 0x30000 awboot-fel.bin && xfel exec 0x30000
P.S. 預設使用UART5作為除錯界面,司徒焊接成UART0,故作如上修改
Baudrate: 115200bps
[I] AWBoot starting [D] DRAM size: 128M [D] DRAM simple test OK. [D] CPU freq: 1200 MHz [I] SMHC: sdhci0 controller initialized [W] SMHC: timeout [D] SMHC: SD detect failed [W] SMHC: timeout [D] SMHC: MMC detect failed [W] SMHC: init failed, trying SPI [D] SPI: init... [D] SPI: set spi clock=100MHz, mclk=200MHz