summaryrefslogtreecommitdiff
path: root/config/deguard/patches/0003-lib-image.py-Disable-FPT-checksum-check.patch
diff options
context:
space:
mode:
authorRon Nazarov <ron@noisytoot.org>2026-02-14 20:00:14 +0000
committerRon Nazarov <ron@noisytoot.org>2026-02-14 20:00:14 +0000
commit80be5ce87e07a0bf48f3e2d681cc3dc76c203307 (patch)
tree8a0d2b2f33f627a97e385c798bc9ec2bd9e8bd84 /config/deguard/patches/0003-lib-image.py-Disable-FPT-checksum-check.patch
parent3c416c6396d82803e8b8979685e2505fc1abaa4a (diff)
supermicro x11ssh_f: Use deguard-configured ME image instead of SPS
Using the same ME image as the 3050 Micro. This fixes the lack of a backup download URL for the ME and speeds up boot time, since MRC caching is working with ME (unlike SPS). Unfortunately, since the MFS partition must be preserved, this does mean we need a larger ME region than with me_cleaned SPS.
Diffstat (limited to 'config/deguard/patches/0003-lib-image.py-Disable-FPT-checksum-check.patch')
-rw-r--r--config/deguard/patches/0003-lib-image.py-Disable-FPT-checksum-check.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/config/deguard/patches/0003-lib-image.py-Disable-FPT-checksum-check.patch b/config/deguard/patches/0003-lib-image.py-Disable-FPT-checksum-check.patch
new file mode 100644
index 00000000..42bb05c1
--- /dev/null
+++ b/config/deguard/patches/0003-lib-image.py-Disable-FPT-checksum-check.patch
@@ -0,0 +1,42 @@
+From 47c561cfa7b3970608543f8f2cb7d08b2d1e0e4d Mon Sep 17 00:00:00 2001
+From: Ron Nazarov <ron@noisytoot.org>
+Date: Sat, 14 Feb 2026 19:05:18 +0000
+Subject: [PATCH 3/4] lib/image.py: Disable $FPT checksum check
+
+I don't actually understand what this does, but it doesn't seem to be
+doing anything useful. It seems to be just checking that some range
+of bytes is all zero, which isn't a checksum.
+
+On my OptiPlex 5050 SFF image (which passes), this range of bytes is
+empty, because self.data[self.HDRLEN_OFF] is 0. On my Supermicro
+X11SSH-F/LN4F image, self.data[self.HDRLEN_OFF] is 19, which means
+that self.data[self.HEADER_OFF:self.data[self.HDRLEN_OFF]] is
+bytearray(b'$FP'), which makes the check fail.
+
+Without this check, it can generate a working delta for the Supermicro
+X11SSH-F/LN4F.
+
+Change-Id: I16735676fd4ae2a4e065886aeb7a06cead721cdf
+Signed-off-by: Ron Nazarov <ron@noisytoot.org>
+---
+ lib/image.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/lib/image.py b/lib/image.py
+index 21db448..e303e8f 100644
+--- a/lib/image.py
++++ b/lib/image.py
+@@ -84,8 +84,8 @@ class MeImage:
+ # Verify magic and checksum
+ if self.data[self.MARKER_OFF:self.MARKER_OFF+4] != self.MARKER:
+ raise ValueError("Invalid $FPT magic")
+- if sum(self.data[self.HEADER_OFF:self.data[self.HDRLEN_OFF]]) != 0:
+- raise ValueError("Invalid $FPT checksum")
++ # if sum(self.data[self.HEADER_OFF:self.data[self.HDRLEN_OFF]]) != 0:
++ # raise ValueError("Invalid $FPT checksum")
+
+ # Parse entries
+ self.entries = {}
+--
+2.52.0
+