|
hi matthijs
in my case, i have nothing done with bootstrap, i've just modified u-boot source as i attatched. As a result, while bootstrap running, it dumps mesages to DBGU port, after u-boot starts running, it dumps messages to USART0.
anyway, if you want to dump message to USART0 while bootstrap running. i think you should modified several parts.
first, you should enable pins for USART0 TXD, RXD in <bootstrap source root>/board/at91sam9x5ek/at91sam9x5ek.c
in function hw_init(void) #ifdef CONFIG_DEBUG {"RXD", AT91C_PIN_PA(9), 0, PIO_DEFAULT, PIO_PERIPH_A}, {"TXD", AT91C_PIN_PA(10), 0, PIO_DEFAULT, PIO_PERIPH_A}, #endif
==> #ifdef CONFIG_DEBUG {"RXD", AT91C_PIN_PA(1), 0, PIO_DEFAULT, PIO_PERIPH_A}, {"TXD", AT91C_PIN_PA(0), 0, PIO_DEFAULT, PIO_PERIPH_A}, #endif
second, you should modify <bootstrap source root>/driver/dbgu.c change AT91C_BASE_DBGU => AT91C_BASE_US0 .. and so on I guess there will be more things to do..
P.S : Atmel recommends Arm-2010q1 for toolchain. I hope it will help you... and i am sorry that i am not good at using English.
regards.
|