This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How can I use UART2 port to output the kernel boot log for SDK v7.0

Guru 16800 points
Other Parts Discussed in Thread: AM3352

Hello,

For my customer's board which AM3352 is used, my customer wants to use UART2 port to debug.
I know that I can get the kernel boot log from UART0 by the default settings, however the hardware design doesn't allow to get the log from UART0.
How can I get the kernel boot log from the UART2 port?

Best Regards.

Nomoto

  • Hi Nomoto,

    Here is how you can change the UART port in U-Boot, kernel and user-space.

    U-Boot: Build U-Boot with the following configuration:
    make am335x_evm_uart2

    Kernel: Change the "console" environment variable in the U-Boot bootargs:
    console=ttyO2,115200n8

    User space: Change this line in /etc/inittab:
    S:2345:respawn:/sbin/getty 115200 ttyO2

    Best regards,
    Miroslav