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.

Linux/AM3352: UBOOT can't startup if the default console is uart2

Part Number: AM3352

Tool/software: Linux

Hi, 

  Used ti-processor-sdk-linux-am335x-evm-05.01.00.11-Linux  for am3352 evm boot, UART2 is the debug console. I add “CONFIG_CONS_INDEX=3”  into am335x_evm_defconfig.

And make the change in board/ti/am335x/mux.c

static struct module_pin_mux uart2_pin_mux[] = {
{OFFSET(mii1_crs), (MODE(6) | PULLUP_EN | RXACTIVE)}, /* UART2_RXD */
{OFFSET(mii1_rxerr), (MODE(6) | PULLUDEN)}, /* UART2_TXD */
{-1},
};

The uart2 prints as follow:

U-Boot SPL 2018.01 (Jan 09 2019 - 07:10:07)
Trying to boot from MMC1
*** Warning - bad CRC, using default environment

If I delete "CONFIG_CONS_INDEX=3" in am335x_evm_defconfig, the uart0 prints as follow:

U-Boot SPL 2018.01 (Jan 09 2019 - 07:07:44)
Trying to boot from MMC1
*** Warning - bad CRC, using default environment

U-Boot 2018.01 (Jan 09 2019 - 07:07:44 -0800)

CPU : AM335X-GP rev 2.1
Model: TI AM335x EVM
DRAM: 256 MiB
NAND: 128 MiB
MMC: OMAP SD/MMC: 0
** Bad device mmc 0 **
Using default environment

<ethaddr> not set. Validating first E-fuse MAC
Net: board_eth_init mii cpsw, usb_ether

But I need to use uart2 for debug console, and uart0 for data, please help me.