From 32f73a745946456f0e3923cac3be6039901900d4 Mon Sep 17 00:00:00 2001 From: zhang sanshan Date: Thu, 28 May 2020 16:13:53 +0800 Subject: [PATCH] MA-17261 fix start kernel hang issue 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 (cherry picked from commit: e7ddf17f0e95867d0e59ef5e7aef1e3b5c4e7a3b) --- arch/arm/dts/fsl-imx8qm-mek-xen.dts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/dts/fsl-imx8qm-mek-xen.dts b/arch/arm/dts/fsl-imx8qm-mek-xen.dts index 88871addbf..56a3e08526 100644 --- a/arch/arm/dts/fsl-imx8qm-mek-xen.dts +++ b/arch/arm/dts/fsl-imx8qm-mek-xen.dts @@ -15,6 +15,12 @@ #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"; }; -- 2.17.1