Closed acassis closed 5 months ago
@tmedicci any idea?
Hi @acassis !
I tested it locally (and our internal CI also tests it daily). I could not find any problems. I suspect this is somehow related to the outdated kconfig-frontends
, but I was not even able to build it locally (it requires very old libraries). Can you check with kconfiglib
?
Thank you @tmedicci actually this issue was reported by @casaroli and I just tried to reproduced the issue. I think he is used kconfiglib, but if this is some issue caused by Kconfig, it should be modified to work with kconfig-frontends and kconfiglib.
@acassis and @casaroli , the bootloader built from the sources uses a wrapper around an IDF-provided repository (the esp-nuttx-bootloader
). Kconfiglib is a dependency of ESP-IDF, so it must be installed (not by NuttX, but for esp-nuttx-bootloader
). This is why we are removing support for the IDF's bootloader.
NuttX adopted kconfiglib later and it uses it by default. This required users that still want to use kconfig-frontends to uninstall kconfiglib (or, equivalently, uninstall for their python environment): this is why this problem has risen.
I'm closing this issue because IDF's bootloader is about to be deprecated. I recommend keeping kconfiglib installed to enable building the bootloader from the sources. There are a list of possible workarounds to be used (if kconfig-frontends is required) until we completely deprecate the use of the IDF's bootloader:
make bootloader
;Thank you very much for this explanation @tmedicci !
Actually kconfiglib is not the default option for NuttX, it is optional: https://nuttx.apache.org/docs/latest/quickstart/install.html
I think both kconfig-frontends and kconfiglib work correctly in the NuttX building system, I wasn't aware of this limitation/constraints of ESP-IDF. Thank you again for above explanation.
You're welcome, Alan!
Actually kconfiglib is not the default option for NuttX, it is optional: https://nuttx.apache.org/docs/latest/quickstart/install.html
I meant that, if available, kconfiglib will be used instead of kconfig-frontends: https://github.com/apache/nuttx/blob/cfa544357eb3081e49f54e5fe3eef8392f26d9ab/tools/Unix.mk#L639
While trying to build the bootloader from source code I'm getting this error:
These are the steps
Configure the board:
Enable CONFIG_ESP32_BOOTLOADER_BUILD_FROM_SOURCE :
Then try to build the bootloader: