RK3399
回帖(1)
2022-3-7 09:53:29
- RK3399 SDK中默认的调试串口波特率为1500000,可修改为115200
- 修改调试串口波特率涉及到三个部分:一级引导Loader、Uboot、Kernel
- 因一级引导Loader是以bin文件的形式发放,所以修改需要咨询Rockchip官方
一、Uboot中的修改
找到对应板子的deconfig文件,修改如下:
diff --git a/u-boot/configs/rk3399_sa08_defconfig b/u-boot/configs/rk3399_sa08_defconfig
index c6380d25c..8edf10b3b 100755
--- a/u-boot/configs/rk3399_sa08_defconfig
+++ b/u-boot/configs/rk3399_sa08_defconfig
@@ -96,7 +96,8 @@ CONFIG_SDRAM_COMMON_CAP_DETECT=y
CONFIG_SDRAM_COMMON_OSREG=y
CONFIG_SDRAM_COMMON_MSCH_RK3399=y
CONFIG_DM_RESET=y
-CONFIG_BAUDRATE=1500000
+#CONFIG_BAUDRATE=1500000
+CONFIG_BAUDRATE=115200
CONFIG_DEBUG_UART_BASE=0xFF1A0000
CONFIG_DEBUG_UART_CLOCK=24000000
CONFIG_DEBUG_UART_SHIFT=2
二、Kernel Dts中的修改
Kernel Dts中的修改如下
diff --git a/kernel/arch/arm64/boot/dts/rockchip/rk3399-android-sa08.dtsi b/kernel/arch/arm64/boot/dts/rockchip/rk3399-android-sa08.dtsi
index 4d5b6acd8..c6882491a 100755
--- a/kernel/arch/arm64/boot/dts/rockchip/rk3399-android-sa08.dtsi
+++ b/kernel/arch/arm64/boot/dts/rockchip/rk3399-android-sa08.dtsi
@@ -76,7 +76,8 @@
rockchip,serial-id = <2>;
rockchip,wake-irq = <0>;
rockchip,irq-mode-enable = <0>; /* If enable uart uses irq instead of fiq */
- rockchip,baudrate = <1500000>; /* Only 115200 and 1500000 */
+ //rockchip,baudrate = <1500000>; /* Only 115200 and 1500000 */
+ rockchip,baudrate = <115200>; /* Only 115200 and 1500000 */
pinctrl-names = "default";
pinctrl-0 = <&uart2c_xfer>;
interrupts = ;
- RK3399 SDK中默认的调试串口波特率为1500000,可修改为115200
- 修改调试串口波特率涉及到三个部分:一级引导Loader、Uboot、Kernel
- 因一级引导Loader是以bin文件的形式发放,所以修改需要咨询Rockchip官方
一、Uboot中的修改
找到对应板子的deconfig文件,修改如下:
diff --git a/u-boot/configs/rk3399_sa08_defconfig b/u-boot/configs/rk3399_sa08_defconfig
index c6380d25c..8edf10b3b 100755
--- a/u-boot/configs/rk3399_sa08_defconfig
+++ b/u-boot/configs/rk3399_sa08_defconfig
@@ -96,7 +96,8 @@ CONFIG_SDRAM_COMMON_CAP_DETECT=y
CONFIG_SDRAM_COMMON_OSREG=y
CONFIG_SDRAM_COMMON_MSCH_RK3399=y
CONFIG_DM_RESET=y
-CONFIG_BAUDRATE=1500000
+#CONFIG_BAUDRATE=1500000
+CONFIG_BAUDRATE=115200
CONFIG_DEBUG_UART_BASE=0xFF1A0000
CONFIG_DEBUG_UART_CLOCK=24000000
CONFIG_DEBUG_UART_SHIFT=2
二、Kernel Dts中的修改
Kernel Dts中的修改如下
diff --git a/kernel/arch/arm64/boot/dts/rockchip/rk3399-android-sa08.dtsi b/kernel/arch/arm64/boot/dts/rockchip/rk3399-android-sa08.dtsi
index 4d5b6acd8..c6882491a 100755
--- a/kernel/arch/arm64/boot/dts/rockchip/rk3399-android-sa08.dtsi
+++ b/kernel/arch/arm64/boot/dts/rockchip/rk3399-android-sa08.dtsi
@@ -76,7 +76,8 @@
rockchip,serial-id = <2>;
rockchip,wake-irq = <0>;
rockchip,irq-mode-enable = <0>; /* If enable uart uses irq instead of fiq */
- rockchip,baudrate = <1500000>; /* Only 115200 and 1500000 */
+ //rockchip,baudrate = <1500000>; /* Only 115200 and 1500000 */
+ rockchip,baudrate = <115200>; /* Only 115200 and 1500000 */
pinctrl-names = "default";
pinctrl-0 = <&uart2c_xfer>;
interrupts = ;
举报
更多回帖