From b676106dd0926dc72cd959836270e1ffb9f48918 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Thu, 11 Jan 2024 10:34:06 -0600 Subject: image-tools: T5910: explicitly set transmission speed of serial console GRUB defaults to 9600 in case of serial console; explicitly set to 115200. (cherry picked from commit 70122bef58eaa0084695f89c410992f8d7c1f9f6) --- src/op_mode/image_installer.py | 1 + src/system/grub_update.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/op_mode/image_installer.py b/src/op_mode/image_installer.py index 5e2af2d97..b78029c24 100755 --- a/src/op_mode/image_installer.py +++ b/src/op_mode/image_installer.py @@ -91,6 +91,7 @@ DEFAULT_BOOT_VARS: dict[str, str] = { 'timeout': '5', 'console_type': 'tty', 'console_num': '0', + 'console_speed': '115200', 'bootmode': 'normal' } diff --git a/src/system/grub_update.py b/src/system/grub_update.py index 3c851f0e0..4d5e0b6ae 100644 --- a/src/system/grub_update.py +++ b/src/system/grub_update.py @@ -68,7 +68,8 @@ if __name__ == '__main__': 'default': grub.gen_version_uuid(default_entry['version']), 'bootmode': default_entry['bootmode'], 'console_type': default_entry['console_type'], - 'console_num': default_entry['console_num'] + 'console_num': default_entry['console_num'], + 'console_speed': '115200' } vars.update(default_settings) -- cgit v1.2.3