Page 1 of 1

Cannot build boot loader (esp_efuse_utility_burn_efuses missing esp_clk_apb_freq)

Posted: Mon Aug 26, 2019 7:48 pm
by TheRealRevK
I am trying to get secure boot working.

I did this originally with no problem, but have since re-installed as per (stable) instructions on both Mac and Linux and both give me an error making bootloader.

[Codebox]
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-idf/components/efuse/src/esp_efuse_utility.c:214: undefined reference to `esp_clk_apb_freq'
collect2: error: ld returned 1 exit status
[/Codebox]

Any suggestions? Yes, I have deleted the esp-idf and installed from stratch with no luck, and started a new project and so on. Also set bootloader logging too none so not too big.

Re: Cannot build boot loader (esp_efuse_utility_burn_efuses missing esp_clk_apb_freq)

Posted: Mon Aug 26, 2019 11:30 pm
by ESP_Angus
Hi RevK,

What ESP-IDF version do you have? (output from "git describe --always" in the IDF directory will show this).

Angus

Re: Cannot build boot loader (esp_efuse_utility_burn_efuses missing esp_clk_apb_freq)

Posted: Tue Aug 27, 2019 6:45 am
by TheRealRevK
Sorry, should have said that.
v4.1-dev-58-g02c7c3885

Re: Cannot build boot loader (esp_efuse_utility_burn_efuses missing esp_clk_apb_freq)

Posted: Wed Aug 28, 2019 4:27 am
by ESP_Angus
Thanks for that info. I can reproduce this as well, will let you know once a fix is available.

Re: Cannot build boot loader (esp_efuse_utility_burn_efuses missing esp_clk_apb_freq)

Posted: Wed Aug 28, 2019 5:10 am
by Konstantin
Hi TheRealRevK!
Thanks for your report. I created a fix for it. It will be merged soon. You can use this patch to resolve this issue.

Re: Cannot build boot loader (esp_efuse_utility_burn_efuses missing esp_clk_apb_freq)

Posted: Thu Aug 29, 2019 10:30 am
by TheRealRevK
Thanks

Re: Cannot build boot loader (esp_efuse_utility_burn_efuses missing esp_clk_apb_freq)

Posted: Thu Aug 29, 2019 10:33 am
by TheRealRevK
I did a pull, and now v4.1-dev-104-gaa087667d

make menuconfig now broken!
clang: error: unknown argument: '-n'

Re: Cannot build boot loader (esp_efuse_utility_burn_efuses missing esp_clk_apb_freq)

Posted: Thu Aug 29, 2019 10:58 am
by TheRealRevK
OK menuconfig works on linux but not on Mac

Re: Cannot build boot loader (esp_efuse_utility_burn_efuses missing esp_clk_apb_freq)

Posted: Fri Aug 30, 2019 8:23 am
by ESP_Angus
TheRealRevK wrote:
Thu Aug 29, 2019 10:58 am
OK menuconfig works on linux but not on Mac
Hi RevK,

A fix for this should be merged soon. You can track the status and see a workaround here: https://github.com/espressif/esp-idf/issues/3975

Angus