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.

HOWTO: Change AM3517 evm console from UART3 to UART2 (Linux)

Other Parts Discussed in Thread: AM3517

HOWTO: Change AM3517 evm console from UART3 to UART2 (Linux)

I need to use UART3 for IrCOMM and the hardware only supports it with UART3.

So I need to move the console to UART2.  I got it OK for the XLoader and uBoot, but cannot find out what to change for the Linux Kernel.

Any advice?

Output:

AM3517_EVM # bootm

## Booting kernel from Legacy Image at 83000000 ...

   Image Name:   Linux-2.6.32

   Image Type:   ARM Linux Kernel Image (uncompressed)

   Data Size:    2393916 Bytes =  2.3 MB

   Load Address: 80008000

   Entry Point:  80008000

   Verifying Checksum ... OK

   Loading Kernel Image ... OK

OK


Starting kernel ...

  • [self-answered]

     

    AM3517evm: Changing console from UART3 to UART2

    (Note UART3 is ttyS2, UART2 is ttyS1, etc.)

     

    1) in Uboot loader environment:

    setenv console ttyS1,115200n8

    saveenv

     

    2) in $UBOOT change include/configs/am3517_evm.h

    #define CONFIG_CONS_INDEX              2

    #define CONFIG_SYS_NS16550_COM2            OMAP34XX_UART2

    #define CONFIG_SERIAL2                      2

     

    3) in $XLOAD change include/configs/am3517evm.h

    #define CFG_NS16550_COM2       OMAP34XX_UART2

     

    and

     

    #define CONFIG_SERIAL2      2

    #define CONFIG_CONS_INDEX      2

     

    comment out

    #define CFG_NS16550_COM3

     

    and

    #define CONFIG_SERIAL3               3

    #define CONFIG_CONS_INDEX           3

     

    4) in $KERNEL set configuration (i.e. .config) for

    CONFIG_OMAP_LL_DEBUG_UART2=y

    # CONFIG_OMAP_LL_DEBUG_UART3 is not set

     

    5) in $ROOTFS change /arago/conf/machine/am3517-evm.conf

    SERIAL_CONSOLE = "115200 ttyS1"

     

    and change /arago-oe-dev/conf/machine/am3517-evm.conf

    SERIAL_CONSOLE = "115200 ttyS1"