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.

UART output problem when starting uboot in OSPI mode



hi,experts

When the output of uboot UART0 is changed to uart1 in the following way, the serial port cannot output. Do you need to modify the code?

1. Modify the files in the u-boot / arch / arm / DTS directory

a. dts file: k3-j721e-common-proc-board.dts

.........................

{

chose{

stdout-path ="serial3:115200n8"

bootargs = " conosole==ttyS2,115200n 8 earlycon=ns16550a,mmio32,0x02800000"

}

................

...............

&main_uart0{

   status = "disabled";

}

&main_uart1 {

     power-domains = <&k3_pds 278 TI_SCI_PD_SHARED>;

};

.................................

b dts file:k3-j721e-r5-common-proc-board.dts

.........................

chose{

    stdout-path ="serial3:115200n8"

   tick-timer = &timer1;

    firmware-loader = & fs_loader0;

};

.............................

.................................

&main_pmx0{

     main_uart0_pins_default:main_uart0_pins_default {

...........................................

  };

    main_uart1_pins_default:main_uart1_pins_default {

     u-boot,dm-spl;

     pinctrl-single,pins = <

                 J721E_IOPAD(0x1f8, PIN_INPUT, 0)   /* (AA4)   UART1_RXD */ 

                 J721E_IOPAD(0x1fc, PIN_OUTPUT, 0)   /* (AA4)   UART1_TXD */

              >;

         };

............................................

&main_uart1 {

    pinctrl-names = "default";

    pinctrl-0 = <&main_uart1_pins_default>;

    status = "okay";

   power-domains = <&k3_pds 278 TI_SCI_PD_SHARED>;

................................

}

By modifying the above two DTS files and compiling with make u-boot, the generated u-boot.img, ti-spl.bin and tiboot3.bin files are written into flash. When the demo board is run in OSPI mode, the serial tool com27 has no output. When UART0 is used previously, the boot information of uboot can be output on com26.