Cannot build boot loader (esp_efuse_utility_burn_efuses missing esp_clk_apb_freq)

User avatar
TheRealRevK
Posts: 9
Joined: Mon Aug 26, 2019 7:32 pm

Cannot build boot loader (esp_efuse_utility_burn_efuses missing esp_clk_apb_freq)

Postby TheRealRevK » Mon Aug 26, 2019 7:48 pm

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.

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Cannot build boot loader (esp_efuse_utility_burn_efuses missing esp_clk_apb_freq)

Postby ESP_Angus » Mon Aug 26, 2019 11:30 pm

Hi RevK,

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

Angus

User avatar
TheRealRevK
Posts: 9
Joined: Mon Aug 26, 2019 7:32 pm

Re: Cannot build boot loader (esp_efuse_utility_burn_efuses missing esp_clk_apb_freq)

Postby TheRealRevK » Tue Aug 27, 2019 6:45 am

Sorry, should have said that.
v4.1-dev-58-g02c7c3885

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Cannot build boot loader (esp_efuse_utility_burn_efuses missing esp_clk_apb_freq)

Postby ESP_Angus » Wed Aug 28, 2019 4:27 am

Thanks for that info. I can reproduce this as well, will let you know once a fix is available.

Konstantin
Posts: 13
Joined: Tue Feb 05, 2019 7:31 am

Re: Cannot build boot loader (esp_efuse_utility_burn_efuses missing esp_clk_apb_freq)

Postby Konstantin » Wed Aug 28, 2019 5:10 am

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.

User avatar
TheRealRevK
Posts: 9
Joined: Mon Aug 26, 2019 7:32 pm

Re: Cannot build boot loader (esp_efuse_utility_burn_efuses missing esp_clk_apb_freq)

Postby TheRealRevK » Thu Aug 29, 2019 10:30 am

Thanks

User avatar
TheRealRevK
Posts: 9
Joined: Mon Aug 26, 2019 7:32 pm

Re: Cannot build boot loader (esp_efuse_utility_burn_efuses missing esp_clk_apb_freq)

Postby TheRealRevK » Thu Aug 29, 2019 10:33 am

I did a pull, and now v4.1-dev-104-gaa087667d

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

User avatar
TheRealRevK
Posts: 9
Joined: Mon Aug 26, 2019 7:32 pm

Re: Cannot build boot loader (esp_efuse_utility_burn_efuses missing esp_clk_apb_freq)

Postby TheRealRevK » Thu Aug 29, 2019 10:58 am

OK menuconfig works on linux but not on Mac

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Cannot build boot loader (esp_efuse_utility_burn_efuses missing esp_clk_apb_freq)

Postby ESP_Angus » Fri Aug 30, 2019 8:23 am

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

Who is online

Users browsing this forum: Gaston1980, Google [Bot], Majestic-12 [Bot] and 393 guests