Add itsthisjustins ota fix for x3
This commit is contained in:
+1
-1
@@ -37,7 +37,7 @@ build_flags =
|
|||||||
# Default is (320*4+1)*2=2562, we need more for larger images
|
# Default is (320*4+1)*2=2562, we need more for larger images
|
||||||
-DPNG_MAX_BUFFERED_PIXELS=16416
|
-DPNG_MAX_BUFFERED_PIXELS=16416
|
||||||
-Wno-bidi-chars
|
-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
|
-fno-exceptions
|
||||||
|
|
||||||
build_unflags =
|
build_unflags =
|
||||||
|
|||||||
@@ -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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user