Add itsthisjustins ota fix for x3

This commit is contained in:
jpirnay
2026-05-02 10:44:13 +02:00
parent 376350c61d
commit bd3ceb6e99
2 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ build_flags =
# Default is (320*4+1)*2=2562, we need more for larger images
-DPNG_MAX_BUFFERED_PIXELS=16416
-Wno-bidi-chars
-Wl,--wrap=panic_print_backtrace,--wrap=panic_abort
-Wl,--wrap=panic_print_backtrace,--wrap=panic_abort,--wrap=bootloader_common_check_efuse_blk_validity
-fno-exceptions
build_unflags =
+11
View File
@@ -0,0 +1,11 @@
// Override the prebuilt libbootloader_support.a implementation.
// The X3's validation code misreads the new image's esp_app_desc_t through a
// misaligned bootloader_mmap pointer, producing garbage eFuse block revision
// values that fail the check. Safe to skip: the eFuse block revision gate is
// a manufacturing concern, not a runtime safety issue.
#include <esp_err.h>
esp_err_t __wrap_bootloader_common_check_efuse_blk_validity(uint32_t min_rev_full, uint32_t max_rev_full) {
(void)min_rev_full;
(void)max_rev_full;
return ESP_OK;
}