Use /dev/console instead of specific port number 44/245544/1
authorKichan Kwon <k_c.kwon@samsung.com>
Mon, 12 Oct 2020 06:38:38 +0000 (15:38 +0900)
committerKichan Kwon <k_c.kwon@samsung.com>
Mon, 12 Oct 2020 06:38:38 +0000 (15:38 +0900)
- Console-connected serial port number depends on device
- With using /dev/console, we don't have to care
  which port is connected
- Reference
  - https://github.com/torvalds/linux/blob/master/Documentation/admin-guide/serial-console.rst

Change-Id: Ia852951e1e24c6a1cacac279b719fa00c9f5d890
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
scripts/fota-init.sh

index 150c74d..f1c4216 100755 (executable)
@@ -286,8 +286,8 @@ check_for_fota_gui() {
 
 mount_partitions
 
-# For debugging - It should be deleted on Release (TODO : tty like ttyS0, S1 should be selected automatically)
-/sbin/agetty -l /bin/bash -n --keep-baud 115200,38400,9600 ttyS0 linux &
+# For debugging - It should be deleted on Release
+/sbin/agetty -l /bin/bash -n --keep-baud 115200,38400,9600 console linux &
 
 init_internal_log