MA-17261 fix start kernel hang issue
authorzhang sanshan <pete.zhang@nxp.com>
Thu, 28 May 2020 08:13:53 +0000 (16:13 +0800)
committerJi Luo <ji.luo@nxp.com>
Thu, 13 May 2021 01:49:18 +0000 (09:49 +0800)
overwrite the console to hvc0 in xen, otherwise it will hang at starting kernel.
specific androidboot.android_dt_dir which define dts, and let the system mount in first stage. It may change in xen.
disable selinux temporarily

Change-Id: I90d4c374f0d0478d6386ae31cddb3f7ef510ae93
Signed-off-by: zhang sanshan <pete.zhang@nxp.com>
(cherry picked from commit: e7ddf17f0e95867d0e59ef5e7aef1e3b5c4e7a3b)

arch/arm/dts/fsl-imx8qm-mek-xen.dts

index 88871ad..56a3e08 100644 (file)
 #include "fsl-imx8qm-mek.dts"
 #include "fsl-imx8qm-mek-u-boot.dtsi"
 
+/ {
+       chosen {
+               bootargs = "console=hvc0 earlycon=hvc0 androidboot.console=hvc0 androidboot.android_dt_dir=/proc/device-tree/firmware/android/ androidboot.selinux=permissive";
+       };
+};
+
 &usdhc2 {
        status = "disabled";
 };