there is a new version of my esptool, which now can upload files to flash memory.
This is the first version that communicates with the bootloader in the chip, and that code isn't really pretty. But it works. For now it can only upload files to the flash memory, nothing else. To get it working under Windows, cygwin is required (or at least cygwin1.dll). To compile it under Windows you need a working cygwin installation that has the required stuff installed. I included the .exe in the archive.
It needs quite some cleanup, for example i made small changes to the way info messages are handled, and now a lot of the info messages show up as warning, since the infolevel for those messages isn't correct anymore. However, i wanted to get it out quickly, so that others may take a peek at the serial/bootloader stuff.
It is possible to generate all the required files from the .out file, and then upload them to the flash, in one go. For example:
esptool -eo app.out -bo 0x00000.bin -bs .text -bs .data -bs .rodata -bc -es .irom0.text 0x40000.bin -ec -cf 0x00000.bin -ca 0x40000 -cf 0x40000.bin
This will take app.out as the input file, generate the 0x00000.bin and 0x40000.bin files, and then upload them to the flash. See the README file for a quick overview of the options.