esp-open-sdk NON-OS SDK FOTA with Blinky Bootloader
Posted: Sat Aug 05, 2017 7:26 pm
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.
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 all
CC = 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