aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linaro.org>2021-07-27 12:36:22 -0500
committerAníbal Limón <anibal.limon@linaro.org>2021-07-27 12:36:22 -0500
commitac500de7b819bf73ed01f10398d8305caf0ef711 (patch)
tree8f9a5386e71f81dc619e300699339ee2affeedae
parentda7ac334b24c4cc816de9a275073b735d2f21309 (diff)
downloadfai-ac500de7b819bf73ed01f10398d8305caf0ef711.tar.gz
scripts/QCOM: Add support to create systemd unit to start serialcon
Signed-off-by: Aníbal Limón <anibal.limon@linaro.org> Change-Id: I4d6dae86c64deb5c14c0b144e5676b6fa28c761d
-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