uart串口打印问题
本帖最后由 hfli 于 2021-7-6 20:57 编辑我试着用USB转串口连接DEBUG,来进行串口打印。参考了Rockchip_Developer_Guide_UART_CN.pdf/kernel$ git diff
diff --git a/arch/arm/boot/dts/rv1126-firefly-jd4.dtsi b/arch/arm/boot/dts/rv1126-firefly-jd4.dtsi
index f00fcb291519..de53ca662a3d 100644
--- a/arch/arm/boot/dts/rv1126-firefly-jd4.dtsi
+++ b/arch/arm/boot/dts/rv1126-firefly-jd4.dtsi
@@ -10,6 +10,7 @@
chosen {
bootargs = "earlycon=uart8250,mmio32,0xff570000 console=ttyFIQ0 ro root=PARTLABEL=rootfs rootfstype=ext4 rootwait overlayroot=device:dev=PARTLABEL=userdata,fstype=ext4,mkfs=1 cgroup_enable=memory swapaccount=1 snd_aloop.index=7";
+ linux,stdout-path = "ttyFIQ0:1500000n8";
};
vdd_logic: vdd-logic {
ttyFIQ0, 使用的是UART2:
rv1126.dtsi:
338 fiq_debugger: fiq-debugger {
339 compatible = "rockchip,fiq-debugger";
340 rockchip,serial-id = <2>;
341 rockchip,wake-irq = <0>;
342 rockchip,irq-mode-enable = <0>;
343 rockchip,baudrate = <1500000>;/* Only 115200 and 1500000 */
344 interrupts = <GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>;
345 status = "disabled";
346 };
rv1126-firefly-rk809.dtsi
646&fiq_debugger {
647 status = "okay";
648 };
dmesg,看到对应的串口确实enable了[ 0.000000] earlycon: uart8250 at MMIO32 0xff570000 (options '')
[ 0.000000] bootconsole enabled通过minicom连接串口,发现串口一直没有输出。
问题可能出在哪里?
板子本来就设置好了 debug 串口,不需要重新配置
页:
[1]