-
Notifications
You must be signed in to change notification settings - Fork 7.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release/v3.3: Building Bootloader fails when flash encryption and/or hardware secure boot enabled (IDFGH-3434) #5396
Comments
@S3phe Thanks for reporting, we will look into. |
@Alvin1Zhang : In my opinion this problem is important, because Release/v3.3 is a long-term supported release, which is also meant for devices in production. |
Hi @S3phe! Thanks for the report. It was fixed in 4.0 and was not ported to 3.3. I will do it. |
I will provide the patch for this here. |
@KonstantinKondrashov : |
Commit 8cd04c8 has added a dependency of efuse component on esp_clk_apb_freq, however there was no definition of this function in the bootloader context. Reported at https://esp32.com/viewtopic.php?f=13&t=12035 Closes: #5396
Commit 8cd04c8 has added a dependency of efuse component on esp_clk_apb_freq, however there was no definition of this function in the bootloader context. Reported at https://esp32.com/viewtopic.php?f=13&t=12035 Closes: espressif/esp-idf#5396
Environment
Development Kit: none
Module or chip used: ESP32-WROVER
IDF version: v3.3.2-208-gd7e6eecd6
Build System: Make
Compiler version: xtensa-esp32-elf-gcc (crosstool-NG crosstool-ng-1.22.0-80-g6c4433a) 5.2.0
Operating System: macOS
Using an IDE?: Yes: VSCODE
Power Supply: external 3.3V
Problem Description
In "make menuconfig", the building of the bootloader fails if:
//Detailed problem description goes here.
The following message appears after building with "make bootloader"
espsecure.py v2.8
secure_boot_signing_key.pem public key extracted to /build/bootloader/bootloader_support/signature_verification_key.bin
EMBED build/bootloader/bootloader_support/signature_verification_key.bin.bin.o
AR build/bootloader/bootloader_support/libbootloader_support.a
LD build/bootloader/bootloader.elf
/build/bootloader/efuse/libefuse.a(esp_efuse_utility.o):(.literal.esp_efuse_utility_burn_efuses+0x18): undefined reference to
esp_clk_apb_freq' /build/bootloader/efuse/libefuse.a(esp_efuse_utility.o): In function
esp_efuse_utility_burn_efuses':/esp/esp-idf/components/efuse/src/esp_efuse_utility.c:214: undefined reference to `esp_clk_apb_freq'
collect2: error: ld returned 1 exit status
make[1]: *** [/build/bootloader/bootloader.elf] Error 1
make: *** [/build/bootloader/bootloader.bin] Error 2
Expected Behavior
Building a bootloader with secureboot and/or flash-encryption support
Actual Behavior
Building fails
Steps to reproduce
sdkconfig.txt
The text was updated successfully, but these errors were encountered: