Open kwis2 opened 7 years ago
I faced out the same Issue. I've a ESP8285 with integrated 1MB Flash. At first i struggled over it by using OTA.
If I flash the same ROM to slot 0 and 1 I can boot from both. If I flash a different ROM to slot 1 I cannot boot from slot 1, it will fail. Sometimes it hangs or it will show exceptions.
I think there is a mapping problem. If I boot from slot 1 and try to update slot 0 with OTA the system will crash after erase of the sector 2.
Ok, I've found the issue. I copied rboot.rom0.ld
to rboot.rom1.ld
and modified the Makefile-rboot.mk
. I modified irom0_0_seg
of the rom1 file to org = 0x40282010, len = (1M - 0x2010)
.
I'm not firm with ld files, maybe there could be an option to modify the linker file automatically or dynamic create the file.
ok, Update on this. It is enough to copy the rboot.rom0.ld
as rom1.ld
to your project root and modify the irom0_0_seg
depending on your flash size: (https://github.com/raburton/rboot#linking-user-code)
I am trying to modyfy Basic_rBoot sample to work with ESP8266-01 with 8Mb FLASH (2 x 512kB) - RBOOT_BIG_FLASH ?= 0 and RBOOT_TWO_ROMS ?= 1 I think with sming version changes the rom0.ld was moved to sming/compiler/ld, renamed and reduced in size. So simple
Copy rom0.ld to rom1.ld
from readme.txt doesn't work. In my oppinion there should beMakefile-rboot.mk
modifiedRBOOT_LD_1 ?= rboot.rom1.ld
. I am not sure if copyrboot.rom0.ld
torboot.rom1.ld
which is much smaler than oldrom0.ld
file. Finally question from beginer - how should I modyfyrboot.rom0.ld
nadrboot.rom1.ld
to work. Are you able to prepare working example ofBasic_rBoot
for ESP8266-01kwis2