unit: fix serial console baudrate to 115200 24/254524/1 accepted/tizen/unified/20210309.140734 submit/tizen/20210308.075822
authorINSUN PYO <insun.pyo@samsung.com>
Thu, 4 Mar 2021 06:22:39 +0000 (15:22 +0900)
committerINSUN PYO <insun.pyo@samsung.com>
Thu, 4 Mar 2021 06:32:36 +0000 (15:32 +0900)
Due to noise coming into the serial console or other abnormal behavior,
agetty changes the baudrate in the following order: 115200, 38400, 9600.

Since tizen only uses 115200 baudrate, this is fixed.

It is reported in the DA.

Change-Id: Icf7224d1fabd4cdb45971ac9314ed4d19d220bb1

units/serial-getty@.service.m4

index 5c85ab1..89fcd1a 100644 (file)
@@ -33,7 +33,7 @@ Before=rescue.service
 # The '-o' option value tells agetty to replace 'login' arguments with an
 # option to preserve environment (-p), followed by '--' for safety, and then
 # the entered username.
-ExecStart=-/sbin/agetty -o '-p -- \\u' --keep-baud 115200,38400,9600 %I $TERM
+ExecStart=-/sbin/agetty -o '-p -- \\u' --keep-baud 115200 %I $TERM
 Type=idle
 Restart=always
 UtmpIdentifier=%I