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

error on esp-idf export.sh (Raspbery Pi OS 32bit) #1204

Open
mshioji opened this issue Aug 29, 2023 · 5 comments
Open

error on esp-idf export.sh (Raspbery Pi OS 32bit) #1204

mshioji opened this issue Aug 29, 2023 · 5 comments

Comments

@mshioji
Copy link

mshioji commented Aug 29, 2023

Hello,
I recently trying to setup Moddable SDK into new Raspberry Pi for educational purpose.
however, it seems installing esp-idf something goes wrong.

Installing Moddable SDK, it's OK. hello world works fine.
But after installing esp-idf for ESP32, when I hit “source $IDF_PATH/export.sh” I got following Warnings and Errors:

source $IDF_PATH/export.sh
Detecting the Python interpreter
Checking "python" ...
Python 3.9.2
"python" has been detected
Adding ESP-IDF tools to PATH...
WARNING: directory for tool xtensa-esp32-elf version esp-2021r2-patch5-8.4.0 is present, but tool was not found
ERROR: tool xtensa-esp32-elf has no installed versions. Please run '/home/oclpi/.local/share/esp32/esp-idf/install.sh' to install it.
WARNING: directory for tool xtensa-esp32s2-elf version esp-2021r2-patch5-8.4.0 is present, but tool was not found
ERROR: tool xtensa-esp32s2-elf has no installed versions. Please run '/home/oclpi/.local/share/esp32/esp-idf/install.sh' to install it.
WARNING: directory for tool xtensa-esp32s3-elf version esp-2021r2-patch5-8.4.0 is present, but tool was not found
ERROR: tool xtensa-esp32s3-elf has no installed versions. Please run '/home/oclpi/.local/share/esp32/esp-idf/install.sh' to install it.
WARNING: directory for tool riscv32-esp-elf version esp-2021r2-patch5-8.4.0 is present, but tool was not found
ERROR: tool riscv32-esp-elf has no installed versions. Please run '/home/oclpi/.local/share/esp32/esp-idf/install.sh' to install it.
WARNING: directory for tool esp32ulp-elf version 2.35_20220830 is present, but tool was not found
ERROR: tool esp32ulp-elf has no installed versions. Please run '/home/oclpi/.local/share/esp32/esp-idf/install.sh' to install it.
WARNING: directory for tool openocd-esp32 version v0.11.0-esp32-20220706 is present, but tool was not found
ERROR: tool openocd-esp32 has no installed versions. Please run '/home/oclpi/.local/share/esp32/esp-idf/install.sh' to install it.
  • The warning said "tool was not found",
    but when I open esp-idf directly, it is not empty. It seems tools are installed correctly.

  • Error message said "Please run '/home/oclpi/.local/share/esp32/esp-idf/install.sh' to install it.",
    but it doesn't solve the problem.

I've done many Moddable SDK installations and ESP32 device setups in the past, but this is the first time I've had this symptom.
Installation on Raspberry Pi was also not a problem before, so I wonder why...
Could anyone reproduce the same symptoms?

  • Using Raspberry pi imager software to create a boot disk.
  • Install Moddable SDK and esp-idf according to the Getting started document on github moddable SDK.
  • after install esp-idf, hit "source $IDF_PATH/export.sh" .

I also tried with xs-dev.

  • install nodejs and npm, then before install xs-dev, libudev-dev needed to install. then install ssh-askpass and xs-dev.
  • Moddable SDK setup with "xs-dev setup --target-branch public"
  • device setup with "xs-dev setup --device esp32", it seems instalation completed with no problem.
  • however, when I open new terminal, same warnings and errors indicated.

I tried above twice, (2 manually, x2 xs-dev ) but four trials all failed. ><

Thank you,

@phoddie
Copy link
Collaborator

phoddie commented Aug 29, 2023

Thank you for the detailed report. I haven't heard of this issue before your report. We'll try to reproduce it here.

@mkellner
Copy link
Collaborator

Hello @mshioji,

I was able to reproduce your error if I skip step 8 of the linux install instructions:
https://www.moddable.com/documentation/devices/esp32#lin-instructions

8: Run the ESP-IDF install script. This will install the proper cross-compilation toolchain and utilities needed for the ESP-IDF build.

cd $IDF_PATH
./install.sh

Please do this step, then follow with source $IDF_PATH/export.sh.

@mshioji
Copy link
Author

mshioji commented Aug 30, 2023

Hello @mkellner and @phoddie,

Thank you for your quick reply.
Yes, actually I also thought that the step 8 solve the problem but the situation are the same.
The error message also recommended to run install.sh so I tried several times but the situation are the same.
This error is happened even if the install was made by xs-dev's automated process, I think it doesn't skip step 8.
I wonder what's going on.

I'd further try to separate an issue, then found something like this:

  • on Raspberry Pi OS Bullseye "64bit", export.sh works fine. hello world on esp32 also works. (installed by xs-dev)
  • however Raspberry Pi OS Bullseye 32bit still having a problem. tool was not found.

Now I found 64bit OS would be OK, therefore now it is no problem for my educational project.
however, 32bit version of Raspberry Pi OS is still recommended as a default on Raspberry Pi imager
so I little concern if the other people try to install it on 32bit OS and failed.

Thank you very much,

@mshioji mshioji changed the title error on esp-idf export.sh error on esp-idf export.sh (Raspbery Pi OS 32bit) Aug 30, 2023
@phoddie
Copy link
Collaborator

phoddie commented Aug 30, 2023

@mshioji – That's good progress. Great that you now have it working.

It looks like there are two options: switch to using the 64-bit installation or fix the issue on the 32-bit installation. That's for @mkellner to decide.

@mshioji
Copy link
Author

mshioji commented Aug 30, 2023

Hello @phoddie and @mkellner,
Thank you for the comment.
Yes, I will go with 64bit on my recent project so it's no problem. now it's not an urgent
but if you guys would consider continuing investigation, I also continue for this.

Thank you very much,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants