-->
Page 1 of 1

Possibility of network bootloader?

PostPosted: Wed Nov 19, 2014 12:28 pm
by ArchimedesPi
Would it be possible to write a bootloader which can accept binary firmware files and flash them over the network?
Is it possible to replace the existing bootloader, or could we write a "bootloader" chained on top of the serial one?
By "over the network", I mean TFTP or netcat.

Re: Possibility of network bootloader?

PostPosted: Tue Jun 23, 2015 12:56 am
by Stoney
Anybody smart considered the options here ?

Main advantage would be for ESP01's .. freeing up GPIO0 and 2 and for real use without being concerned about entering boot mode would be nice and then uploading a new arduino/eps8266 image via ftp or similar would be awesome.

It seems to me that most of the hindrance with using the esp8266 is it being crippled by a bootloader that needs both a serial connection and a switch when we have a networkable device handy.

(using my best infomercial voice) imagine updating your device from across the room with a few simple clicks...

Re: Possibility of network bootloader?

PostPosted: Tue Jun 23, 2015 4:59 pm
by kolban
I have no idea if this would work ... but could we use TWO ESP8266s for this purpose? Have one ESP8266 to receive flash requests over the network and then drive the "programmable" ESP8266 through its standard flashing process by the first ESP pretending to be a Serial driver?

Re: Possibility of network bootloader?

PostPosted: Tue Jun 23, 2015 9:37 pm
by martinayotte
Every things can be done, at least most of them !
We've sent a man on the moon ! ;)

Let be serious : you wish some tfpboot or something like that. I didn't see any one yet, but it should be doable. It need to be tiny and manage the Flashing process to avoid overwriting itself, and the end-user apps need to be linked with different *.ld file so to upload address will be different.
There are already several OTA stuff on the forum, although I didn't try them, that can inspire you how to write such bootloader.