微處理器 - Allwinner T113-S3 (MangoPi MQ-R) - Build AWBoot



參考資料:
https://github.com/szemzoa/awboot
https://whycan.com/t_9231.html
https://bbs.aw-ol.com/topic/2338/mangopi-dual-t113-%E4%B8%BB%E7%BA%BF%E5%86%85%E6%A0%B8%E7%BC%96%E8%AF%91%E8%AE%B0%E5%BD%95

$ 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