Getting serial console output on new imx7d tqma7 board UART4

Ahmad Fatoum a.fatoum at pengutronix.de
Thu Jul 30 03:25:26 EDT 2020



On 7/30/20 8:58 AM, Lars Pedersen wrote:
> The DCD part now matches exactly for the top part (00000000 to
> 00000020)  of it which i guess is the IVT header, which shouldn't be
> the same?

I mean the memory calibration and such. Not that your U-Boot port
does something in C code, which you are missing in your barebox
DCD.

> 
> The following is xxd where barebox  (left side) has been shifted 0x400
> to match u-boot part.
> 
> /usr/bin/diff -y <(xxd barebox_stripped) <(xxd uboot_stripped)

I don't understand how to read this diff.

> So I guess that the DCD table part now should be correct. So the
> question is if this is and lowlevel.c/board.c boilerplate issue or
> maybe I need something in the Kconfig menu.

Enable CONFIG_DEBUG_LL and see how far barebox comes.
See the inline comment from my last mail.

>>> +
>>> +static inline void setup_uart(void)
>>> +{
>>> +    imx7_early_setup_uart_clock();
>>> +
>>> +    imx7_setup_pad(MX7D_PAD_SAI2_TX_BCLK__UART4_DCE_TX);
>>> +
>>> +    imx7_uart_setup_ll();
>>> +
>>> +    putc_ll('>');
>>
>> You've CONFIG_DEBUG_LL=y and you choose the correct UART port
>> in the i.MX menuconfig option?
-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list