Chat freely about anything...
User avatar
By Agentsmithers
#68866 Hi everyone,
I have a general question what is required to do FOTA For the ESP8266. I have modified my makefile to reflect below to pump out a version 2 of the firmware, however I believe that my boot loader may not be the correct boot loader to support booting the esoteric firmware. Does anyone have any insight on this particular issue? do I need to use a third-party piece of software such as rboot resolve this?

I execute make ota2 to generate version 2 of the OTA firmware, However I think that it may not load correctly due to the bootloader.
Code: Select allCC = xtensa-lx106-elf-gcc
CFLAGS = -I. -DICACHE_FLASH -mlongcalls
LDLIBS = -nostdlib -Wl,--start-group -lmain -lnet80211 -lwpa -llwip -lpp -lphy -lc -Wl,--end-group -lgcc
LDFLAGS = -Teagle.app.v6.ld
INCLUDES = -Iinclude -I../driver_lib/include

blinky-0x00000.bin: blinky
   esptool.py elf2image $^

fota2blinky-0x00000.bin: blinky
   esptool.py elf2image --version=2 $^

blinky: blinky.o

blinky.o: blinky.c

dhonewire: dhonewire.o

dhonewire.o: dhonewire.c

fresh: blinky-0x00000.bin
   #kill $(ps aux | grep '[S]CREEN' | awk '{print $2}')
   esptool.py write_flash 0 blinky-0x00000.bin 0x10000 blinky-0x10000.bin 0x7e000 blank.bin 0x3fc000 esp_init_data_default.bin 0x3fe000 blank.bin 0x60000 index.html 0x80000 config.html
   #screen /dev/ttyUSB0 74880
   screen /dev/ttyUSB0 115200

flash: blinky-0x00000.bin
   esptool.py write_flash 0 blinky-0x00000.bin 0x10000 blinky-0x10000.bin 0x60000 index.html 0x80000 config.html
   screen /dev/ttyUSB0 115200

quick: blinky-0x00000.bin
   esptool.py write_flash 0 blinky-0x00000.bin 0x10000 blinky-0x10000.bin
   screen /dev/ttyUSB0 115200

build: blinky-0x00000.bin
   screen /dev/ttyUSB0 115200

ota: blinky
   esptool.py elf2image --version 2 $^
   esptool.py write_flash 0x10000 blinky-0x10000.bin
   screen /dev/ttyUSB0 115200

ota2: fota2blinky-0x00000.bin
   esptool.py write_flash 0x10000 blinky-0x10000.bin
   screen /dev/ttyUSB0 115200

clean:
   rm -f blinky blinky.o blinky-0x00000.bin blinky-0x10000.bin
   echo 'osboxes.org' | sudo -S chmod 777 /dev/ttyUSB0
User avatar
By Agentsmithers
#68938
stephenbrian wrote:This looks to be a typical topic that can only be understand by the professionals and those students who are studying IT as their major subject.


I'm not 100% sure on how to interpret the meaning behind your post but I have resolved the issue. Thank you!! =)