I can create the firmware via
Code: Select all
make ota
Or just flashing my image via
Code: Select all
make deploy
Thanks
Code: Select all
make ota
Code: Select all
make deploy
Code: Select all
make deploy
Just tried it but I get the following error if I put my own ota file:fdufnews wrote:Up to now, I have not used it but on the download page it is stated:
"The first time you use this build you need to flash one of the "initial image" images using esptool.py as described above. After that, you can update the firmware over the air using the "OTA update" file in conjunction with the ota-client script from yaota8266. The "OTA update" files are digitally signed and will only work with the provided "initial image" files, and vice versa. (Note: this feature is work-in-progress.)"
so I suppose you shall install the initial image first.
Code: Select all
ota_client.py: error: Invalid OTA file signature
from.priv.key
I see. But how is the procedure?fdufnews wrote:On pfalcon github repo it is said "Each datagram is signed with RSA private key. Only someone with a valid private key may produce valid datagrams, information from which ota-server will flash as a user application. (The public key is configured when building ota-server.)".
Look at the comments in the config.h.example file
Maybe you can ask pfalcon the question if you still have problems.
Note that I did not make and flash the yaota ota-server. I believe that would be flashed at 0x8000.<SDK boot status/info at 74800 baud>
boot8266
HW RTC Reset reason: 1
System reset reason: 1222647575
Initial GPIO state: c0030001, OE: 0
Running app
#0 ets_task(40245c10, 31, 3ffe9020, 4)
<more SDK boot status/info at 74800 baud>
OSError: [Errno 2] ENOENT
MicroPython v1.9-32-g4d2778c9 on 2017-06-10; ESP module with ESP8266
Type "help()" for more information.
>>>
'make ota' creates the .bin file using 8266_ota.ld instead of the esp8266.ld; the irom0_0_seg is changed in the OTA version.Invalid main app size: XXXXXXXX
Running OTA
Thanks a lot! Only one question, if you do not flash the yaota server, what is the gain of flashing the ota image? Can you do the ota somehow without the yaota?tomm2 wrote:Here the procedure for manually building and flashing the OTA version of micropython:With this procedure, here is what comes out the RS232 port when the ESP boots:
- build boot8266: cd <projects-dir>/yaota8266/boot8266; make
- build ota version: cd <projects-dir>/micropython/esp8266; make ota > make-ota.log
- flash:
- esptool.py --port your-port erase_flash
- esptool.py --port your-port --baud 230400 write_flash -fm dio --flash_size=detect 0x0 <projects-dir>/yaota8266/boot8266/boot8266-0x00000.bin
- esptool.py --port your-port --baud 230400 write_flash -fm dio --flash_size=detect 0x3c000 <projects-dir>/micropython/esp8266/build/firmware-ota.bin
Note that I did not make and flash the yaota ota-server. I believe that would be flashed at 0x8000.<SDK boot status/info at 74800 baud>
boot8266
HW RTC Reset reason: 1
System reset reason: 1222647575
Initial GPIO state: c0030001, OE: 0
Running app
#0 ets_task(40245c10, 31, 3ffe9020, 4)
<more SDK boot status/info at 74800 baud>
OSError: [Errno 2] ENOENT
MicroPython v1.9-32-g4d2778c9 on 2017-06-10; ESP module with ESP8266
Type "help()" for more information.
>>>
The boot8266 runs the 'app' since the length and MD5 verify OK. If you don't flash the ota image, boot8266 prints the following instead of 'Running app':'make ota' creates the .bin file using 8266_ota.ld instead of the esp8266.ld; the irom0_0_seg is changed in the OTA version.Invalid main app size: XXXXXXXX
Running OTA