From 6f0dde5f151caa47048be8ebd8dcb17b544aba97 Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Wed, 24 Dec 2025 12:43:56 +0000 Subject: T8120: Add AMA support AMA console for ARM devices --- src/op_mode/image_installer.py | 2 +- src/op_mode/image_manager.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/op_mode/image_installer.py b/src/op_mode/image_installer.py index a924d188e..07ab25ad2 100755 --- a/src/op_mode/image_installer.py +++ b/src/op_mode/image_installer.py @@ -761,7 +761,7 @@ def console_hint() -> str: path = '/dev/tty' name = Path(path).name - if name == 'ttyS0': + if name in ('ttyS0', 'ttyAMA0'): return 'S' else: return 'K' diff --git a/src/op_mode/image_manager.py b/src/op_mode/image_manager.py index 40668793e..985db96dd 100755 --- a/src/op_mode/image_manager.py +++ b/src/op_mode/image_manager.py @@ -33,7 +33,7 @@ DELETE_IMAGE_PROMPT_MSG: str = 'Select an image to delete:' MSG_DELETE_IMAGE_RUNNING: str = 'Currently running image cannot be deleted; reboot into another image first' MSG_DELETE_IMAGE_DEFAULT: str = 'Default image cannot be deleted; set another image as default first' -ConsoleType: TypeAlias = Literal['tty', 'ttyS'] +ConsoleType: TypeAlias = Literal['tty', 'ttyS', 'ttyAMA'] def annotate_list(images_list: list[str]) -> list[str]: """Annotate list of images with additional info -- cgit v1.2.3 From 33669098f2a63b4cd7d40aadb53d62a3d61c2e21 Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Thu, 19 Feb 2026 11:02:11 +0200 Subject: T8120: Use list for the consoles instead of tuple Co-authored-by: Christian Breunig --- src/op_mode/image_installer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/op_mode/image_installer.py b/src/op_mode/image_installer.py index 07ab25ad2..f0a347b73 100755 --- a/src/op_mode/image_installer.py +++ b/src/op_mode/image_installer.py @@ -761,7 +761,7 @@ def console_hint() -> str: path = '/dev/tty' name = Path(path).name - if name in ('ttyS0', 'ttyAMA0'): + if name in ['ttyS0', 'ttyAMA0']: return 'S' else: return 'K' -- cgit v1.2.3