Tool/software:
Hi expert,
It's on SDK 9.2. We want to changed the debug uart baudrate from 115200 to 921600. It's ok to do it on linux kernel. But on u-boot, tiboot3, tispl, I config it as follow, the log is bad on the serial console.
Index: ti-u-boot-2023.04+gitAUTOINC+f9b966c674/arch/arm/dts/k3-j721s2-common-proc-board-u-boot.dtsi
===================================================================
--- ti-u-boot-2023.04+gitAUTOINC+f9b966c674/arch/arm/dts/k3-j721s2-common-proc-board-u-boot.dtsi (revision 4959)
+++ ti-u-boot-2023.04+gitAUTOINC+f9b966c674/arch/arm/dts/k3-j721s2-common-proc-board-u-boot.dtsi (working copy)
@@ -7,7 +7,7 @@
/ {
chosen {
- stdout-path = "serial2:115200n8";
+ stdout-path = "serial2:921600n8";
tick-timer = &timer1;
};
Index: ti-u-boot-2023.04+gitAUTOINC+f9b966c674/arch/arm/dts/k3-j721s2-common-proc-board.dts
===================================================================
--- ti-u-boot-2023.04+gitAUTOINC+f9b966c674/arch/arm/dts/k3-j721s2-common-proc-board.dts (revision 4959)
+++ ti-u-boot-2023.04+gitAUTOINC+f9b966c674/arch/arm/dts/k3-j721s2-common-proc-board.dts (working copy)
@@ -17,8 +17,8 @@
model = "Texas Instruments J721S2 EVM";
chosen {
- stdout-path = "serial2:115200n8";
- bootargs = "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x2880000";
+ stdout-path = "serial2:921600n8";
+ bootargs = "console=ttyS2,921600n8 earlycon=ns16550a,mmio32,0x2880000";
};
aliases {
@@ -288,6 +288,7 @@
};
&main_uart8 {
+ current-speed = <921600>;
pinctrl-names = "default";
pinctrl-0 = <&main_uart8_pins_default>;
/* Shared with TFA on this platform */
Index: ti-u-boot-2023.04+gitAUTOINC+f9b966c674/arch/arm/dts/k3-j721s2-r5-common-proc-board.dts
===================================================================
--- ti-u-boot-2023.04+gitAUTOINC+f9b966c674/arch/arm/dts/k3-j721s2-r5-common-proc-board.dts (revision 4959)
+++ ti-u-boot-2023.04+gitAUTOINC+f9b966c674/arch/arm/dts/k3-j721s2-r5-common-proc-board.dts (working copy)
@@ -212,6 +212,7 @@
};
&main_uart8 {
+ current-speed = <921600>;
pinctrl-names = "default";
pinctrl-0 = <&main_uart8_pins_default>;
};
Index: ti-u-boot-2023.04+gitAUTOINC+f9b966c674/board/ti/j721s2/j721s2.env
===================================================================
--- ti-u-boot-2023.04+gitAUTOINC+f9b966c674/board/ti/j721s2/j721s2.env (revision 4959)
+++ ti-u-boot-2023.04+gitAUTOINC+f9b966c674/board/ti/j721s2/j721s2.env (working copy)
@@ -17,7 +17,7 @@
setenv name_fdt ti/k3-am68-sk-base-board.dtb; fi;
setenv fdtfile ${name_fdt}
name_kern=Image
-console=ttyS2,115200n8
+console=ttyS2,921600n8
args_all=setenv optargs earlycon=ns16550a,mmio32,0x02880000 quiet
${mtdparts}
run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}
Index: ti-u-boot-2023.04+gitAUTOINC+f9b966c674/drivers/serial/Kconfig
===================================================================
--- ti-u-boot-2023.04+gitAUTOINC+f9b966c674/drivers/serial/Kconfig (revision 4959)
+++ ti-u-boot-2023.04+gitAUTOINC+f9b966c674/drivers/serial/Kconfig (working copy)
@@ -17,7 +17,7 @@
config BAUDRATE
int "Default baudrate"
- default 115200
+ default 921600
help
Select a default baudrate, where "default" has a driver-specific
meaning of either setting the baudrate for the early debug UART
Is there any other thing to do for setting the uart baudrate on uboot?
Best Regards!
Hawayi
