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

Ability to flash from offline computer #23

Closed
hallard opened this issue Jan 14, 2023 · 6 comments
Closed

Ability to flash from offline computer #23

hallard opened this issue Jan 14, 2023 · 6 comments

Comments

@hallard
Copy link

hallard commented Jan 14, 2023

Hi @Jason2866, I got some issues on production factory that have computers not connected to Internet or with some strange Firewall rules that prevent downloading bootloader

Catch

Unexpected error: Error while retrieving firmware file 'https://github.com/espressif/arduino-esp32/raw/2.0.3-RC1/tools/sdk/esp32/bin/bootloader_dio_40m.bin': HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /espressif/arduino-esp32/raw/2.0.3-RC1/tools/sdk/esp32/bin/bootloader_dio_40m.bin (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))

Looks like Chineese inspection SSL firewall

Anyway any option to use a local file that I can provide to factory ?

Thanks

@hallard hallard changed the title Ability to flash on a off line computer Ability to flash from offline computer Jan 14, 2023
@Jason2866
Copy link
Owner

Jason2866 commented Jan 14, 2023

@hallard Yes, using the generated factory.image firmware. Simply flash via esptool.py or any other tool which is capable to flash at address 0x0 and do NOT modify the firmware file.
So NOT using ESP_FLASHER. It will always try to download files from github.
Edit: Using https://jason2866.github.io/esptool-js/ should work fine when factory image is used and address changed to 0x0!
Edit 2: For the esptool.js one the have to clone the repo locally. Which Operating System is used to Flash?
For Windows the espressif tool can be used https://www.espressif.com/en/support/download/other-tools
Seems Windows is used, so I recommend the espressif tool using with the factory image
The tool has the nice options to lock settings.

@Jason2866
Copy link
Owner

I am open for a PR implementing flashing a factory image for the ESP32x MCUs :-)
Tbh, I don't invest time to enhance my tool, made it long before the nice way via WebInstaller was there. I do find it deprecated this days...

@hallard
Copy link
Author

hallard commented Jan 14, 2023

Tbh, I don't invest time to enhance my tool

Totally understand, don't worry.
What I love in your tool is flashing + immediate seeing log on console, I like seeing what's going on on background, and see tasmota is starting good :-)

We will try another way with windows tool, but I'm on MAC I need to find a windows to write a procedure, in this case if I understand we need to flash "factory" image starting a address 0x00 correct?

@Jason2866
Copy link
Owner

Yes, all factory images need to be flashed at 0x0

@Jason2866
Copy link
Owner

Closing since not planned to implement

@Jason2866
Copy link
Owner

With newest version which supports factory images, it should work offline.

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

2 participants