The use of the ESP8266 in the world of IoT

User avatar
By rab
#17703 I've written an open source replacement for the binary boot loader supplied with the SDK. There is also code for OTA support. I plan to add some documentation soon, but you should be able to work most of it out from a quick look at the code. Some feedback would be nice...

http://richard.burtons.org/2015/05/18/r ... r-esp8266/
Last edited by rab on Mon May 25, 2015 5:27 am, edited 2 times in total.
User avatar
By kenn
#17799 Just finished reading this on your blog. Thanks for posting this.

I'll try to read up, but it would help me give it a try sooner if you could write us a 'quickstart' about how to upload it in place of the current bootloader.

Again thanks :)
User avatar
By gschmott
#17800 I read your blog as well and learned quite a bit about the boot sequence of the ESP8266 and your custom boot loader looks very nice. I know writing documentation can be unpleasant, but I agree with the previous poster that a Quickstart would go a long way towards making it more approachable. I'm working on an application for the Sming framework now and would be interested in seeing if your OTA solution might replace their existing one.

Thanks again for contributing your work (and time) . . . :)
User avatar
By rab
#17829 Thanks for the early feedback. I've now added a readme to the source which hopefully explains everything https://github.com/raburton/esp8266/blo ... readme.txt to get you started. The only thing missing is my esptool2 tool to extract the stage2a code from the compiled elf and turn it into a byte array for inclusion in the main code. I'll try and get this uploaded by this evening at the latest - just finished a night shift so need a little rest! I'll probably also upload an exported copy of the compiled stage 2a because most people probably won't want to update this code anyway, you'll only want to be working with the main portion of the loader I imagine.

I've added a readme to the ota code too https://github.com/raburton/esp8266/blo ... readme.txt but it assumes some familiarity with the existing sdk ota system, particularly around creating the request. I'll hopefully add examples of how to drive it for those that aren't familiar with the current method when I get chance.

Have a look at the readmes and let me know if they make sense, I'm not used to writing documentation.