企业网站建设公司名称,做百度百科的网站,湖北省住房建设厅网站,免费的网站加速器RK3568共10个串口#xff0c;需要用到8个串口#xff0c;无耐其他UART都被外设复用了#xff0c;只好将调试口也拿出来作为普通口#xff0c;方法#xff1a;禁用调试口、增加UART2
1.
vi kernel/arch/arm64/boot/dts/rockchip/OK3568-C-linux.dts
2.
#include 需要用到8个串口无耐其他UART都被外设复用了只好将调试口也拿出来作为普通口方法禁用调试口、增加UART2
1.
vi kernel/arch/arm64/boot/dts/rockchip/OK3568-C-linux.dts
2.
#include OK3568-C-common.dtsi/ {chosen: chosen {//bootargs earlyconuart8250,mmio32,0xfe660000 consolettyFIQ0 rootPARTUUID614e0000-0000 rw rootwait;bootargs rootPARTUUID614e0000-0000 rw rootwait;};
}; 3.
vi kernel/arch/arm64/boot/dts/rockchip/OK3568-C-common.dtsi4.
修改 fiq-debugger {compatible rockchip,fiq-debugger;rockchip,serial-id 2;rockchip,wake-irq 0;/* If enable uart uses irq instead of fiq */rockchip,irq-mode-enable 1;rockchip,baudrate 115200; /* Only 115200 and 1500000 */interrupts GIC_SPI 252 IRQ_TYPE_LEVEL_LOW;pinctrl-names default;pinctrl-0 uart2m0_xfer;status disabled;};增加
uart2 {status okay;pinctrl-names default;pinctrl-0 uart2m0_xfer;
};
编译即可