aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--class/DB410C.var1
-rw-r--r--class/DB820C.var1
-rw-r--r--class/DB845C.var1
-rw-r--r--class/RB5.var1
-rwxr-xr-xscripts/QCOM/21-customize3
5 files changed, 7 insertions, 0 deletions
diff --git a/class/DB410C.var b/class/DB410C.var
index 93b4b50..34c0356 100644
--- a/class/DB410C.var
+++ b/class/DB410C.var
@@ -1,3 +1,4 @@
KVERS=5.13.0-qcomlt-arm64
fdtfile=qcom/apq8016-sbc.dtb
ROOTFS_PARTLABEL=rootfs
+SERIAL_CONSOLE=ttyMSM0
diff --git a/class/DB820C.var b/class/DB820C.var
index 5f093f7..f0daa36 100644
--- a/class/DB820C.var
+++ b/class/DB820C.var
@@ -1,3 +1,4 @@
KVERS=5.13.0-qcomlt-arm64
fdtfile=qcom/apq8096-db820c.dtb
ROOTFS_PARTLABEL=rootfs
+SERIAL_CONSOLE=ttyMSM0
diff --git a/class/DB845C.var b/class/DB845C.var
index 392cf44..598cdcd 100644
--- a/class/DB845C.var
+++ b/class/DB845C.var
@@ -1,3 +1,4 @@
KVERS=5.13.0-qcomlt-arm64
fdtfile=qcom/sdm845-db845c.dtb
ROOTFS_PARTLABEL=rootfs
+SERIAL_CONSOLE=ttyMSM0
diff --git a/class/RB5.var b/class/RB5.var
index 46b9785..934a146 100644
--- a/class/RB5.var
+++ b/class/RB5.var
@@ -1,3 +1,4 @@
KVERS=5.13.0-qcomlt-arm64
fdtfile=qcom/qrb5165-rb5.dtb
ROOTFS_PARTLABEL=rootfs
+SERIAL_CONSOLE=ttyMSM0
diff --git a/scripts/QCOM/21-customize b/scripts/QCOM/21-customize
index 6fcfe39..b5e6210 100755
--- a/scripts/QCOM/21-customize
+++ b/scripts/QCOM/21-customize
@@ -5,6 +5,9 @@ cat << EOF > $target/etc/fstab
PARTLABEL=${ROOTFS_PARTLABEL} / ext4 rw,relatime,data=ordered 0 1
EOF
+# Add symlink to trigger systemd start of ttyMSM0 console
+ln -sf "/lib/systemd/system/serial-getty@.service" "$target/etc/systemd/system/getty.target.wants/serial-getty@${SERIAL_CONSOLE}.service"
+
if ifclass INSTALLER; then
# no need to resize rootfs for SD card boot
rm -f $target/lib/systemd/system/resize-helper.service