szemzoa / awboot

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

uart0 console didn't show any message #36

Closed actionmask closed 10 months ago

actionmask commented 10 months ago

I try to using uart0 as console but I found that there is nothing out from console. In board.c sunxi_usart_t usart0_dbg = { .base = 0x02500000, .id = 0, .gpio_tx = {GPIO_PIN(PORTE, 2), GPIO_PERIPH_MUX7}, .gpio_rx = {GPIO_PIN(PORTE, 3), GPIO_PERIPH_MUX7}, };

in t113 datasheet ,uart0 is Function 6 圖片

I fix to MUX6 and uart0 works.

diff --git a/board.c b/board.c index 8d4a817..5bd91d1 100644 --- a/board.c +++ b/board.c @@ -16,8 +16,8 @@ sunxi_usart_t usart5_dbg = { sunxi_usart_t usart0_dbg = { .base = 0x02500000, .id = 0,

szemzoa commented 10 months ago

Applied, thanks!