Question on building efu for OTA update #499
Replies: 5 comments 2 replies
-
First we do hot use spiffs so the build is not using the latest version of our pio scripts. Yes we rename the firmware and partition files to conform to the names in the flash tool json file. You can put any file names you want in that file. The bootloader file is copied from the board tools directory. Since you are using PIO, you can drop the attached file into your ESPixelStick/.scripts directory and the files will be generated for you and dropped into the ESPixelStick/dist/firmware directory at the end of the build. You will need to remove the .txt from the end of the file name to get it to work. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the .py file, but for some reason, when I build in PIO, it doesn't execute it, I installed Python 3.10.4 as well. I couldn't run it alone since it needs env from PIO(NameError: name 'Import' is not defined). I ended up copying the firmware to -app.bin and partitions.bin to the flasher directory of a beta release, also copy the new data/www files into the fs and overwrite the firmware.json as well, able to build the .efu and flash it using OTA. It works without any issues. |
Beta Was this translation helpful? Give feedback.
-
Hi, I tried to add the post script on the [esp32] but didn't work. Error: Invalid 'platformio_user.ini' (project configuration file): 'Source contains parsing errors: 'platformio_user.ini' removing it like the [esp8266], no errors but doesn't run the script either. |
Beta Was this translation helpful? Give feedback.
-
Here are my my platformio files. They work without errors And here is the contents of my scripts directory (I have a few more than the releases). |
Beta Was this translation helpful? Give feedback.
-
Thank you very much! it works perfectly with your files, I noticed some diff on the platformio.ini and platformio_user.ini between your and the beta releases. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have no issue flashing the firmware and spiffs using platformio. I want to test the OTA firmware update, looks like the ESPSFlashTool uses *-app.bin, *-bootloader.bin, *-partition.bin and fs folder to build .efu. The platformio built ended up with firmware.bin, partitons.bin and spiffs.bin, how do I build .efu file with those? how do I match/rename those files?
thanks
Beta Was this translation helpful? Give feedback.
All reactions