完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
由于项目开发趋于稳定(串口需要它用),因此将rk3399打印log的串口给关闭了。开机只有u-boot的部分串口打印。现在需要将串口打开,进行调试
1、修改dtsi kernel/arch/arm64/boot/dts/rockchip/rk3399-android.dtsi 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 = status = "disabled"; }; 将 disabled 改成 okay 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 = status = "okay"; }; 修改项目的dtsi kernel/arch/arm64/boot/dts/rockchip/rk3399-xxxxx.dtsi (rk3399-xxxxx.dtsi为项目名称) &uart2 { pinctrl-names = "default"; pinctrl-0 = <&uart2c_xfer>; status = "disabled"; }; status = "okay"; 修改成 status = "disabled"; //此处复用了 kernel/arch/arm64/boot/dts/rockchip/rk3399.dtsi uart2: serial@ff1a0000 { compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart"; reg = <0x0 0xff1a0000 0x0 0x100>; clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>; clock-names = "baudclk", "apb_pclk"; interrupts = dmas = <&dmac_peri 4>, <&dmac_peri 5>; dma-names = "tx", "rx"; reg-shift = <2>; reg-io-width = <4>; pinctrl-names = "default"; pinctrl-0 = <&uart2c_xfer>; status = "okay"; }; status = "disabled"; 修改成 "okay" 2、接着就是打开相关的宏 kernel/arch/arm64/configs/rockchip_defconfig CONFIG_SW_SYNC_USER=y CONFIG_ION=y CONFIG_ION_ROCKCHIP=y -# CONFIG_FIQ_DEBUGGER=y + +CONFIG_FIQ_DEBUGGER=y @@ -710,10 +710,12 @@ CONFIG_SW_SYNC=y CONFIG_SW_SYNC_USER=y CONFIG_ION=y CONFIG_ION_ROCKCHIP=y -# CONFIG_FIQ_DEBUGGER=y + +CONFIG_FIQ_DEBUGGER=y CONFIG_FIQ_DEBUGGER_NO_SLEEP=y -# CONFIG_FIQ_DEBUGGER_CONSOLE=y -# CONFIG_FIQ_DEBUGGER_CONSOLE_DEFAULT_ENABLE=y +CONFIG_FIQ_DEBUGGER_CONSOLE=y +CONFIG_FIQ_DEBUGGER_CONSOLE_DEFAULT_ENABLE=y 有"+"的就是需要打开的 然后,进行全编译烧录,接上串口试试看吧。 |
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
基于米尔瑞芯微RK3576核心板/开发板的人脸疲劳检测应用方案
3059 浏览 0 评论
3010 浏览 1 评论
2490 浏览 1 评论
3829 浏览 1 评论
4567 浏览 1 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-1-31 10:32 , Processed in 0.827003 second(s), Total 75, Slave 55 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号