Skip to content
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

[BUG] esp32 "make bootloader" doesn't work #13308

Closed
1 task done
yamt opened this issue Sep 6, 2024 · 6 comments
Closed
1 task done

[BUG] esp32 "make bootloader" doesn't work #13308

yamt opened this issue Sep 6, 2024 · 6 comments
Labels
Arch: xtensa Issues related to the Xtensa architecture Area: Build system OS: Mac Issues related to MacOS (building system, etc) Type: Bug Something isn't working

Comments

@yamt
Copy link
Contributor

yamt commented Sep 6, 2024

Description / Steps to reproduce the issue

i tried to build the patched bootloader for esp32-devkitc:knsh
it ended up with:

-- Building ESP-IDF components for target esp32
CMake Error at /Users/yamamoto/git/nuttx/nuttx/arch/xtensa/src/esp32/bootloader/esp-nuttx-bootloader/esp-idf/tools/cmake/build.cmake:542 (message):
  /Users/yamamoto/git/nuttx/nuttx/venv/bin/python: Error while finding module
  specification for 'idf_component_manager.prepare_components'
  (ModuleNotFoundError: No module named 'idf_component_manager')

Call Stack (most recent call first):
  /Users/yamamoto/git/nuttx/nuttx/arch/xtensa/src/esp32/bootloader/esp-nuttx-bootloader/esp-idf/tools/cmake/project.cmake:453 (idf_build_process)
  CMakeLists.txt:58 (project)


-- Configuring incomplete, errors occurred!
make[1]: *** [bootloader] Error 1
make: *** [bootloader] Error 2

On which OS does this issue occur?

[Mac]

What is the version of your OS?

12.7.6

NuttX Version

master

Issue Architecture

[xtensa]

Issue Area

[Build System]

Verification

  • I have verified before submitting the report.
@yamt yamt added the Type: Bug Something isn't working label Sep 6, 2024
@github-actions github-actions bot added Area: Build system OS: Mac Issues related to MacOS (building system, etc) Arch: xtensa Issues related to the Xtensa architecture labels Sep 6, 2024
@tmedicci
Copy link
Contributor

tmedicci commented Sep 6, 2024

Hi @yamt ,

The kernel versions of the ESP32 are based on the legacy bootloader (a.k.a IDF bootloader), so you need to have the tools ESP-IDF requires to build it properly. That being said, the easiest way to enable ESP-IDF's tooling is exporting the associated environment var, just like described here.

@yamt
Copy link
Contributor Author

yamt commented Sep 8, 2024

Hi @yamt ,

The kernel versions of the ESP32 are based on the legacy bootloader (a.k.a IDF bootloader), so you need to have the tools ESP-IDF requires to build it properly. That being said, the easiest way to enable ESP-IDF's tooling is exporting the associated environment var, just like described here.

i was using export.sh of esp-idf.
which version of export.sh is expected to work?

@tmedicci
Copy link
Contributor

tmedicci commented Sep 9, 2024

Hi @yamt ,
The kernel versions of the ESP32 are based on the legacy bootloader (a.k.a IDF bootloader), so you need to have the tools ESP-IDF requires to build it properly. That being said, the easiest way to enable ESP-IDF's tooling is exporting the associated environment var, just like described here.

i was using export.sh of esp-idf. which version of export.sh is expected to work?

Any version of the release/v5.1 branch is expected to work. In particular, we have been using commit 1484f2d4f677e3fa41a310bf0952a3a76f69fb76 of ESP-IDF. Don't forget to install the tools used by this version. We test this configuration in our internal CI, so we know that nothing broke about it recently.

@tmedicci
Copy link
Contributor

tmedicci commented Sep 9, 2024

Hi @yamt ,
The kernel versions of the ESP32 are based on the legacy bootloader (a.k.a IDF bootloader), so you need to have the tools ESP-IDF requires to build it properly. That being said, the easiest way to enable ESP-IDF's tooling is exporting the associated environment var, just like described here.

i was using export.sh of esp-idf. which version of export.sh is expected to work?

Any version of the release/v5.1 branch is expected to work. In particular, we have been using commit 1484f2d4f677e3fa41a310bf0952a3a76f69fb76 of ESP-IDF. Don't forget to install the tools used by this version. We test this configuration in our internal CI, so we know that nothing broke about it recently.

Hi @yamt , as I've said previously, we can build it without issues on our internal CI, but I have found that the complete firmware is not booting as expected (HW testing was disabled). I tested it with #13311 but it still halts during the boot-up.

@acassis
Copy link
Contributor

acassis commented Sep 16, 2024

@yamt @tmedicci is it done? May I close this Issue?

@tmedicci
Copy link
Contributor

Yes, it was fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arch: xtensa Issues related to the Xtensa architecture Area: Build system OS: Mac Issues related to MacOS (building system, etc) Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants