To modify the debug serial port bound to fiq_debugger to a regular serial port, follow these steps:
1,Remove the relevant fiq_debugger definitions in the kernel directory:
— a/arch/arm64/boot/dts/rockchip/rk3568-android.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3568-android.dtsi
@@ -6,7 +6,7 @@
/ {
chosen: chosen {
- bootargs = "earlycon=uart8250,mmio32,0xfe660000 console=ttyFIQ0";
+ bootargs = "";
};
aliases {
@@ -26,7 +26,7 @@
interrupts = <GIC_SPI 252 IRQ_TYPE_LEVEL_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&uart2m0_xfer>;
- status = "okay";
+ status = "disabled";
};
2,Enable the configuration for uart2 in the DTS (Device Tree Source) file in the kernel directory:
--- a/arch/arm64/boot/dts/rockchip/rk3566-rock-compute-module-3.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3566-rock-compute-module-3.dtsi
@@ -643,6 +643,12 @@
pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn>;
};
+&uart2 {
+ status = "okay";
+ pinctrl-names = "default";
+ pinctrl-0 = <&uart2m0_xfer>;
+};
3,Remove the following configuration from the kernel configuration file
CONFIG_SERIAL_8250_CONSOLE