3399调试串口默认波特率为1500000,但部分转换芯片最高支持115200,于是部分情况下就需要修改3399调试串口波特率 3399调试串口相关的设置均可在设备树中修改。 打开设备树:kernel/arch/arm64/boot/dts/rockchip/ok3399.dts 找到fiq_debugger字段: fiq_debugger: fiq-debugger { compatible = "rockchip,fiq-debugger"; 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 */ pinctrl-names = "default"; pinctrl-0 = <&uart2c_xfer>; interrupts = <GIC_SPI 150 IRQ_TYPE_LEVEL_HIGH 0>; }; 修改波特率需要修改baudrate的值,但只能修改内核阶段。 |
|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )
GMT+8, 2024-12-22 19:05
Powered by Discuz! X3.4
© 2001-2013 Comsenz Inc.