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/AM5728: Changing debug UART in MLO

Part Number: AM5728

Tool/software: Linux

I want Change debug port from ttyS2 to others.For example, ttyS2 -> ttyS1

But now uboot and kernel can output messages normally. MLO can't output message.

My configuration is as follows:

device tree:

chosen {
stdout-path = &uart2;
};

pinmux:

const struct pad_conf_entry early_padconf[] = {
{UART2_RXD, (M4 | PIN_INPUT)}, /* uart2_rxd.uart2_rxd */
{UART2_TXD, (M4 | PIN_OUTPUT)}, /* uart2_txd.uart2_txd */
{I2C2_SDA, (PIN_INPUT_PULLUP | M0)}, /* I2C2_SDA */
{I2C2_SCL, (PIN_INPUT_PULLUP | M0)}, /* I2C2_SCL */
{I2C1_SDA, (PIN_INPUT_PULLUP | M0)}, /* I2C1_SDA */
{I2C1_SCL, (PIN_INPUT_PULLUP | M0)}, /* I2C1_SCL */
};

whether there is anything else need to configure?

  • The software team have been notified. They will respond here.
  • Hi,

    You need to change include/configs/am57xx_evm.h as well:
    #define CONSOLEDEV "ttyO2"
    #define CONFIG_SYS_NS16550_COM1 UART1_BASE /* Base EVM has UART0 */
    #define CONFIG_SYS_NS16550_COM2 UART2_BASE /* UART2 */
    #define CONFIG_SYS_NS16550_COM3 UART3_BASE /* UART3 */
    #define CONFIG_BAUDRATE 115200

    Best regards,
    Yordan
  • Hi Yordan:
    This configure is used to specify the kernel output interface. I have already modified it.
  • This is the config file used to build your bootloader (u-boot). The above defines tell the bootloader & later the kernel which uart interface will be used for debug console.

    But now uboot and kernel can output messages normally. MLO can't output message.

    Can you share what are you seeing on your console?

    Best Regards,
    Yordan
  • U-Boot 2016.05 (Jul 27 2017 - 10:44:42 +0800)
    
    CPU  : DRA722-GP ES1.0
    Model: AM57xx EBC-GF33
    Boa       Watchdog enabled
    I2C:   ready
    DRAM:  2 GiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    SF: Detected W25Q32DW with page size 256 Bytes, erase size 4 KiB, total 4 MiB, mapped at 5c000000
    *** Warning - bad CRC, using default environment
    
    SF: Detected W25Q32DW with page size 256 Bytes, erase size 4 KiB, total 4 MiB, mapped at 5c000000
    Read MAC from qspi.
    Skipped ethaddr assignment due to invalid,using default!
    booting from SD
    SCSI:  SATA link 0 timeout.
    AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
    flags: 64bit ncq stag pm led clo only pmp pio slum part ccc apst
    scanning bus for devices...
    Found 0 device(s).
    Net:   eth0: ethernet@48484000
    Hit any key to stop autoboot:  0
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    3444784 bytes read in 165 ms (19.9 MiB/s)
    93360 bytes read in 18 ms (4.9 MiB/s)
    Booting from mmc0 ...
    Kernel image @ 0x82000000 [ 0x000000 - 0x349030 ]
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 8ffe6000, end 8ffffcaf ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Initializing cgroup subsys cpuset
    [    0.000000] Initializing cgroup subsys cpu
    [    0.000000] Initializing cgroup subsys cpuacct
    [    0.000000] Linux version 4.4.19-gdb0b54cdad (root@qing) (gcc version 5.3.1 20160113 (Linaro GCC 5.3-2016.02) ) #2 SMP PREEMPT Mon Jul 24 16:39:50 CST 2017
    
    U-Boot SPL 2016.05-svn1715 (Jul 27 2017 - 14:46:34)
    DRA752-GP ES2.0
    Trying to boot from MMC1
    reading u-boot.img
    reading u-boot.img
    reading u-boot.img
    reading u-boot.img
    
    
    U-Boot 2016.05-svn1715 (Jul 27 2017 - 14:46:34 +0800)
    
    CPU  : DRA752-GP ES2.0
    Model: AM57xx ROM7510
    BoaI2C:   ready
    DRAM:  2 GiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    SF: Detected W25Q32BV with page size 256 Bytes, erase size 4 KiB, total 4 MiB, mapped at 5c000000
    *** Warning - bad CRC, using default environment
    
    SF: Detected W25Q32BV with page size 256 Bytes, erase size 4 KiB, total 4 MiB, mapped at 5c000000
    Read MAC from qspi.
    Skipped ethaddr assignment due to invalid,using default!
    booting from SD
    SCSI:  SATA link 0 timeout.
    AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
    flags: 64bit ncq stag pm led clo only pmp pio slum part ccc apst
    scanning bus for devices...
    Found 0 device(s).
    Net:   eth0: ethernet@48484000
    Hit any key to stop autoboot:  0
    omap_hsmmc_send_cmd : timeout: No status update
    SD/MMC found on device 0
    3594112 bytes read in 179 ms (19.1 MiB/s)
    100532 bytes read in 23 ms (4.2 MiB/s)
    Booting from mmc0 ...
    Kernel image @ 0x82000000 [ 0x000000 - 0x36d780 ]
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 8ffe4000, end 8ffff8b3 ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Initializing cgroup subsys cpuset
    [    0.000000] Initializing cgroup subsys cpu
    [    0.000000] Initializing cgroup subsys cpuacct
    [    0.000000] Linux version 4.4.19-gdb0b54cdad (root@AplusTC_ECG) (gcc version 5.3.1 20160113 (Linaro GCC 5.3-2016.02) ) #209 SMP PREEMPT Thu Jul 27 14:49:57 CST 2017
    

    The above is the log information of ttyS2/ttyS1
    ttyS1 lacks the following information which was printed by MLO:

    U-Boot SPL 2016.05-svn1715 (Jul 27 2017 - 14:46:34)
    DRA752-GP ES2.0
    Trying to boot from MMC1
    reading u-boot.img
    reading u-boot.img
    reading u-boot.img
    reading u-boot.img