cboot: add patch to fix sub-second timeouts in extlinux configs

Signed-off-by: Matt Madison <matt@madison.systems>
This commit is contained in:
Matt Madison
2021-06-09 04:45:36 -07:00
committed by Matt Madison
parent ab3f5bc5b1
commit e5d56a7779
3 changed files with 29 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ SRC_URI = "${L4T_ALT_URI_BASE}/cboot_src_t18x.tbz2;downloadfilename=cboot_src_t1
file://0009-Add-machine-ID-to-kernel-command-line.patch \
file://0012-bmp-support-A-B-slots.patch \
file://0013-Fix-ext4-sparse-file-handling.patch \
file://0014-extlinux-support-timeouts-under-1-sec.patch \
"
SRC_URI[sha256sum] = "6da8ad60d302d222c09d56bc8f7e90e08592a0471f8bcbadb30268b3b0ad320f"

View File

@@ -15,6 +15,7 @@ SRC_URI = "${L4T_ALT_URI_BASE}/cboot_src_t19x.tbz2;downloadfilename=cboot_src_t1
file://0011-Add-machine-ID-to-kernel-command-line.patch \
file://0012-bmp-support-A-B-slots.patch \
file://0013-Fix-ext4-sparse-file-handling.patch \
file://0014-extlinux-support-timeouts-under-1-sec.patch \
"
SRC_URI[sha256sum] = "80a5b0491d75ea8f2d5f49e93e6d5b4986c739ff29f62133585c2fe7880e8fa9"

View File

@@ -0,0 +1,27 @@
From 8945853bf2fc67965e419d00bc1b25c283ab8558 Mon Sep 17 00:00:00 2001
From: Matt Madison <matt@madison.systems>
Date: Wed, 9 Jun 2021 04:41:32 -0700
Subject: [PATCH] extlinux: support timeouts under 1 sec
Signed-off-by: Kurt Kiefer <kekiefer@gmail.com>
Signed-off-by: Matt Madison <matt@madison.systems>
---
bootloader/partner/common/lib/linuxboot/extlinux_boot.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bootloader/partner/common/lib/linuxboot/extlinux_boot.c b/bootloader/partner/common/lib/linuxboot/extlinux_boot.c
index 908a7e6..45ee903 100644
--- a/bootloader/partner/common/lib/linuxboot/extlinux_boot.c
+++ b/bootloader/partner/common/lib/linuxboot/extlinux_boot.c
@@ -193,7 +193,7 @@ static tegrabl_error_t parse_conf_file(void *conf_load_addr, struct conf *extlin
if (timeout != NULL) {
/* extlinux.conf timeout is 1/10 of a second */
user_input_wait_timeout_ms = tegrabl_utils_strtoul(timeout, NULL, BASE_10);
- user_input_wait_timeout_ms = (user_input_wait_timeout_ms / 10UL) * TIME_1MS;
+ user_input_wait_timeout_ms = (user_input_wait_timeout_ms * TIME_1MS) / 10UL;
} else {
user_input_wait_timeout_ms = 0UL;
}
--
2.30.2