Debug serial port changed to ordinary serial port

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Debug serial port changed to ordinary serial port

1,601 Views
relax-wu
Contributor IV

Hi Engineer:

CPU: imx8qx6avlf
SDK: Android Q10.0.0_2.2.0_AUTO
lunch mek_8q_car_userdebug

The serial port (ttyLP0, ttyLP1, ttyLP2, ttyLP3) is not enough, so I want to change the kernel debugging serial port to a normal serial port to use.

Thanks.

0 Kudos
Reply
6 Replies

1,594 Views
jimmychan
NXP TechSupport
NXP TechSupport

FYI. https://community.nxp.com/t5/i-MX-Community-Articles/How-to-Change-i-MX8MM-evk-Linux-Debug-UART/ba-p...

 

You may try to remove the debug console setting in bootargs.

0 Kudos
Reply

1,588 Views
relax-wu
Contributor IV

Currently modified like this, no results

diff --git a/android_build/vendor/nxp-opensource/kernel_imx/arch/arm64/boot/dts/freescale/imx8x-mek.dtsi b/android_build/vendor/nxp-opensource/kernel_imx/arch/arm64/boot/dts/freescale/imx8x-mek.dtsi
index 12766dc..df42523 100644
--- a/android_build/vendor/nxp-opensource/kernel_imx/arch/arm64/boot/dts/freescale/imx8x-mek.dtsi
+++ b/android_build/vendor/nxp-opensource/kernel_imx/arch/arm64/boot/dts/freescale/imx8x-mek.dtsi
@@ -6,7 +6,7 @@
 #include <dt-bindings/usb/pd.h>
 / {
 	chosen {
-		stdout-path = &lpuart0;
+		//stdout-path = &lpuart0;
 	};
 
 	wlreg_on: fixedregulator@13 {
diff --git a/android_build/vendor/nxp-opensource/uboot-imx/arch/arm/dts/fsl-imx8qxp-mek-auto.dts b/android_build/vendor/nxp-opensource/uboot-imx/arch/arm/dts/fsl-imx8qxp-mek-auto.dts
index e54aba2..c862865 100644
--- a/android_build/vendor/nxp-opensource/uboot-imx/arch/arm/dts/fsl-imx8qxp-mek-auto.dts
+++ b/android_build/vendor/nxp-opensource/uboot-imx/arch/arm/dts/fsl-imx8qxp-mek-auto.dts
@@ -19,7 +19,7 @@
 
 / {
 	chosen {
-		bootargs = "console=ttyLP0,115200 earlycon androidboot.console=ttyLP0 androidboot.xen_boot=default";
+		bootargs = "androidboot.xen_boot=default";
 		stdout-path = &lpuart0;
 	};
 
diff --git a/android_build/vendor/nxp-opensource/uboot-imx/include/configs/imx8qxp_mek.h b/android_build/vendor/nxp-opensource/uboot-imx/include/configs/imx8qxp_mek.h
index dcdba66..7657855 100644
--- a/android_build/vendor/nxp-opensource/uboot-imx/include/configs/imx8qxp_mek.h
+++ b/android_build/vendor/nxp-opensource/uboot-imx/include/configs/imx8qxp_mek.h
@@ -152,7 +152,7 @@
 	"script=boot.scr\0" \
 	"image=Image\0" \
 	"panel=NULL\0" \
-	"console=ttyLP0\0" \
+	"console=NULL\0" \
 	"fdt_addr=0x83000000\0"			\
 	"fdt_high=0xffffffffffffffff\0"		\
 	"cntr_addr=0x98000000\0"			\
0 Kudos
Reply

1,585 Views
jimmychan
NXP TechSupport
NXP TechSupport

There is change in imx-atf. Do you change it?

0 Kudos
Reply

1,582 Views
relax-wu
Contributor IV

There is change in MCIMX8QXP-CPU: i.MX 8QuadXPlus Multisensory Enablement Kit (MEK)

https://www.nxp.com/design/development-boards/i-mx-evaluation-and-development-boards/i-mx-8quadxplus... 

0 Kudos
Reply

1,578 Views
jimmychan
NXP TechSupport
NXP TechSupport

When you read the "How to Change i.MX8MM evk Linux Debug UART", there is a change in RDC configuration. Do you change the same in 8qxp ATF accordingly?

0 Kudos
Reply

1,570 Views
relax-wu
Contributor IV

I think the ATF configuration does not affect the printing of the kernel. I have turned off the printing of ATF. It is still useless.

--- a/android_build/vendor/nxp-opensource/arm-trusted-firmware/plat/imx/imx8qx/include/platform_def.h
+++ b/android_build/vendor/nxp-opensource/arm-trusted-firmware/plat/imx/imx8qx/include/platform_def.h
@@ -79,7 +79,7 @@
 #define DEBUG_CONSOLE                  0

 #ifdef SPD_trusty
-#define DEBUG_CONSOLE_A35              1
+#define DEBUG_CONSOLE_A35              0
 #else
 #define DEBUG_CONSOLE_A35              0
 #endif
0 Kudos
Reply