Skip to content

Instantly share code, notes, and snippets.

@jcmvbkbc
Last active November 21, 2023 18:39
Show Gist options
  • Save jcmvbkbc/316e6da728021c8ff670a24e674a35e6 to your computer and use it in GitHub Desktop.
Save jcmvbkbc/316e6da728021c8ff670a24e674a35e6 to your computer and use it in GitHub Desktop.
esp32s3 linux rebuild scripts
Latest versions of these scripts are available in git repository https://github.com/jcmvbkbc/esp32-linux-build
@barbiani
Copy link

Hello everybody,

I tried to build the image using both scripts on wsl2 and got errors on the IDF setup.

++ unset WARNING_MSG
++ unset uninstall
++ unset is_idf_path_esp_idf
++ unset is_script_dir_esp_idf
++ unset __realpath
++ unset __main
++ unset __verbose
++ unset __enable_autocomplete
++ unset __cleanup
++ unset __is_dir_esp_idf
++ return 1
+ cd examples/get-started/linux_boot
+ idf.py set-target esp32s3
./rebuild-esp32s3-linux.sh: line 52: idf.py: command not found
+ cp sdkconfig.defaults.esp32s3 sdkconfig
+ idf.py build
./rebuild-esp32s3-linux.sh: line 54: idf.py: command not found
+ read -p 'ready to flash... press enter'
ready to flash... press enter

Looks like it is missing a call to ./install.sh

@hpsaturn
Copy link

only you need remove the hidden directory of your local machine of the IDF. Something like this:

rm -r ~/.espressif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment