Initially there are some compiler error relating to uint32_t coming from "ets" which includes c_types.h. I was able to fix this by recompiling the open sdk and removing the c_types.h patch. I will look into a more correct solution later.
Anyway after compling the ota makfile and flashing from usb everything is working and I ran all the self tests and tried all the features. I did set flash size in makefile to 4096.
When I make clean and change some code then do make and try httpflash, the operation succeeds but the UART output shows "error magic!" on reboot and it falls back to the old binary image.
Admittedly, I have not dug into all the details yet, but a quick search online does not yield any useful info.
Any ideas?
Thanks!