|
发表于 2021-7-6 20:51:40
浏览:7799
|
回复:1
打印
只看该作者
[复制链接]
楼主
本帖最后由 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 [uart8250] enabled
复制代码 通过minicom连接串口,发现串口一直没有输出。
问题可能出在哪里?
|
|