From 49b3b1f5d02e14f15ea99a3e7e409315f95c2bf3 Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 8 Jan 2024 15:50:44 +0800 Subject: [PATCH] allow v2 signatures on kernel --- tools/updater/precursorupdater/precursorupdater.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/updater/precursorupdater/precursorupdater.py b/tools/updater/precursorupdater/precursorupdater.py index 7c93500de..85c04a093 100755 --- a/tools/updater/precursorupdater/precursorupdater.py +++ b/tools/updater/precursorupdater/precursorupdater.py @@ -682,7 +682,7 @@ def main(): while True: # first try the stable branch and see if it meets the version requirement kernel = get_with_progress(url + 'xous-' + language + '.img', 'Kernel') - if int.from_bytes(kernel[:4], 'little') != 1: + if int.from_bytes(kernel[:4], 'little') != 1 and int.from_bytes(kernel[:4], 'little') != 2: print("Downloaded kernel image has unexpected signature version. Aborting.") exit(1) kern_len = int.from_bytes(kernel[4:8], 'little') + 0x1000