espressif / esp-bootloader-plus

An enhanced bootloader to support compression upgrade and diff compression upgrade.
Other
24 stars 7 forks source link

Need build guide for windows #7

Open hipal31 opened 1 year ago

hipal31 commented 1 year ago

Hello,

I'm trying to test diff ota but i'm not able to run command bootloader_components/tools/custom_ota_gen.py -hv v2 -c xz -d ddelta -i build/hello_world.bin -b current_app.bin and receiving error 'ddelta_generate' is not recognized as an internal or external command, operable program or batch file. ddelta_gen cmd failed as I'm not able to run install_tools.sh in windows.

Please help me with proper steps to follow or provide binary of ddelta_generate.

Thanks Hipal

hipal31 commented 1 year ago

Can anyone help to run install_tools.sh ?

hipal31 commented 1 year ago

After running this command : python custom_ota_gen.py -hv v2 -c xz -d ddelta -i hello_world.bin -b current_app.bin I'm getting below error. src file is: hello_world.bin The compressed file will store in custom_ota_binaries An error 4 occured: No errorddelta_gen cmd failed

WangYuxin-esp commented 1 year ago

Sorry, the tools for making compressed packages can be used in the Windows environment, but the tools for making patch packages depend on the firmware compiled by the Unix system, so they cannot be used in the Windows environment. At present, there is no plan to rewrite this tool. You can install a virtual machine to run the Unix system.

hipal31 commented 1 year ago

Actually I've compiled firmware on windows. But I'm getting error as mentioned above. error: An error 4 occured: No errorddelta_gen cmd failed. Can you please help me solve this problem?

WangYuxin-esp commented 1 year ago

Please check the storage path of the compiled ddelta_generate. Please refer to here for tools for making patch packages. Under normal circumstances, the process of executing the patch package is as follows: 1) Execution difference 2) Compression 3) Add header information If you are sure that the current ddelta_generate can be run, you can modify the script to specify the correct path for using ddelta_generate. This script install.sh is only used to compile ddelta_generate and copy ddelta_generate to the correct path.

hipal31 commented 1 year ago

Hey,

  1. I have installed Ubuntu in WSL and its working fine .
  2. I am able to build ddelta_generate but it's showing error during execution. error is An error 4 occured: No error

Thanks

WangYuxin-esp commented 1 year ago

May I know in which directory you run script bootloader_components/tools/custom_ota_gen.py? If the executable program ddelta_generate has been successfully compiled in the tools directory, switch to the tools directory, try to execute the ./ddelta_generate new_app.bin old_app.bin patch.bin command, and see the output log.

hipal31 commented 1 year ago

I'm able to run that command in ubuntu.

But when I build ddelta_generate in windows and run it on windows at that time I'm getting this error.

WangYuxin-esp commented 1 year ago

This is a problem caused by the running environment. I'm sorry that I have no experience in using this tool under Windows. I recommend that you only use this tool under ubuntu.

hipal31 commented 1 year ago

Thanks @WangYuxin-esp. I'll use this tool under ubuntu right now. but it'll be better if you make a GUI based tool which run on every platform.