This repository was archived by the owner on Sep 16, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +16
-13
lines changed Expand file tree Collapse file tree 3 files changed +16
-13
lines changed Original file line number Diff line number Diff line change @@ -421,7 +421,7 @@ PART_CSV = lib/partitions.csv
421
421
PART_BIN = $(BUILD ) /lib/partitions.bin
422
422
PART_BIN_ENCRYPT = $(PART_BIN ) _enc
423
423
APP_BIN_ENCRYPT = $(APP_BIN ) _enc_0x10000
424
- APP_BIN_ENCRYPT_2 = $(APP_BIN ) _enc_0x1A0000
424
+ APP_BIN_ENCRYPT_2 = $(APP_BIN ) _enc_0x1C0000
425
425
426
426
ESPPORT ?= /dev/ttyUSB0
427
427
ESPBAUD ?= 921600
@@ -452,7 +452,7 @@ SIGN_BINARY = $(ESPSECUREPY) sign_data --keyfile $(SECURE_KEY)
452
452
# $(ENCRYPT_BINARY) $(ENCRYPT_0x10000) -o image_encrypt.bin image.bin
453
453
ENCRYPT_BINARY = $(ESPSECUREPY ) encrypt_flash_data --keyfile $(ENCRYPT_KEY )
454
454
ENCRYPT_0x10000 = --address 0x10000
455
- ENCRYPT_0x1A0000 = --address 0x1A0000
455
+ ENCRYPT_0x1C0000 = --address 0x1C0000
456
456
457
457
GEN_ESP32PART := $(PYTHON ) $(ESP_IDF_COMP_PATH ) /partition_table/gen_esp32part.py -q
458
458
@@ -627,9 +627,9 @@ ifeq ($(SECURE), on)
627
627
$(ECHO) "Signing $@"
628
628
$(Q) $(SIGN_BINARY) $@
629
629
$(ECHO) $(SEPARATOR)
630
- $(ECHO) "Encrypt image into $(APP_BIN_ENCRYPT) (0x10000 offset) and $(APP_BIN_ENCRYPT_2) (0x1A0000 offset)"
630
+ $(ECHO) "Encrypt image into $(APP_BIN_ENCRYPT) (0x10000 offset) and $(APP_BIN_ENCRYPT_2) (0x1C0000 offset)"
631
631
$(Q) $(ENCRYPT_BINARY) $(ENCRYPT_0x10000) -o $(APP_BIN_ENCRYPT) $@
632
- $(Q) $(ENCRYPT_BINARY) $(ENCRYPT_0x1A0000 ) -o $(APP_BIN_ENCRYPT_2) $@
632
+ $(Q) $(ENCRYPT_BINARY) $(ENCRYPT_0x1C0000 ) -o $(APP_BIN_ENCRYPT_2) $@
633
633
$(ECHO) "Overwrite $(APP_BIN) with $(APP_BIN_ENCRYPT)"
634
634
$(CP) -f $(APP_BIN_ENCRYPT) $(APP_BIN)
635
635
$(ECHO) $(SEPARATOR)
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ bool load_partition_table(bootloader_state_t* bs)
176
176
#ifdef CONFIG_SECURE_BOOT_ENABLED
177
177
if (esp_secure_boot_enabled ()) {
178
178
ESP_LOGI (TAG , "Verifying partition table signature..." );
179
- err = esp_secure_boot_verify_signature (ESP_PARTITION_TABLE_ADDR , ESP_PARTITION_TABLE_DATA_LEN );
179
+ err = esp_secure_boot_verify_signature (CONFIG_PARTITION_TABLE_OFFSET , ESP_PARTITION_TABLE_DATA_LEN );
180
180
if (err != ESP_OK ) {
181
181
ESP_LOGE (TAG , "Failed to verify partition table signature." );
182
182
return false;
Original file line number Diff line number Diff line change @@ -24,24 +24,27 @@ if [ "${BOARD}" != "WIPY" -a "${BOARD}" != "SIPY" -a "${BOARD}" != "LOPY" -a "${
24
24
exit 1
25
25
fi
26
26
27
- MPY_PATH=./" ${BUILD_DIR} " /" ${BOARD} " /" ${RELEASE_TYP} " /frozen_mpy
28
-
29
- if ! [ -d ${MPY_PATH} ] ; then
30
- # Build Directory not created yet
31
- exit 0
32
- fi
33
-
34
27
BUILD_TIMESTAMP=./" ${BUILD_DIR} " /${BOARD} " /" ${RELEASE_TYP} " /" mpy_last_build_timestamp.TS
35
28
36
29
# If Last mpy Build Timestamp Not avialable create it
37
30
if [ ! -f ${BUILD_TIMESTAMP} ] ; then
38
31
$( touch ${BUILD_TIMESTAMP} )
39
32
fi
40
33
41
- LAST_BUILD=$( < ${BUILD_TIMESTAMP} )
42
34
# Get Current Timestamp
43
35
CURR_TS=" $( date +" %s" ) "
44
36
37
+ MPY_PATH=./" ${BUILD_DIR} " /" ${BOARD} " /" ${RELEASE_TYP} " /frozen_mpy
38
+
39
+ if ! [ -d ${MPY_PATH} ] ; then
40
+ # Build Directory not created yet
41
+ # Update Last Build Timestamp
42
+ $( echo ${CURR_TS} > ${BUILD_TIMESTAMP} )
43
+ exit 0
44
+ fi
45
+
46
+ LAST_BUILD=$( < ${BUILD_TIMESTAMP} )
47
+
45
48
# Check if any of Frozen Directorys has been updated.. Rebuild out Mpy files
46
49
for dir in ${PY_DIRS}
47
50
do
You can’t perform that action at this time.
0 commit comments