-
-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rBoot OTA and firmware filesystem #2254
Comments
Looks like things have got a little out of sync. Try If you run
Then in the
The ROM addresses must agree (i.e. |
@mostorer Sorry, I didnt' really answer your question! The zip file you attached doesn't work for me, I get 'Not Found' error? |
Something to look at is the
The file gets written to |
I have made what you suggested, so the
and
So, exactly as expected.
and
So, it seems first issue has been solved. |
Yes, it seems the fwfs partition got corrupted.
From the first boat after flashing, I obtain the error
Just to make a double check, I have run the following commands:
then cross checked the original fwfs with the one extracted with
It seems there is something strange with the fwfs partition.
files are identical till address 0x00d000.
then the original file contains data, while the one obtained by |
New test done, successfully. I have modified the partition table to have both ROMs of equal size, enlarging the fwfs partition:
Now the fwfs partition is always readable and mountable, even after an OTA update. |
@mostorer I have been unable to reproduce the issues you describe, but would really like to get to the bottom of this as it's clearly not an ideal first experience for you! If you'd like to push your project to a github repo. I'll take a closer look. |
We need to make some improvements to rBoot (and RbootHttpUpdater) as they're not aware of the partition table. Critically, that means the rBoot configuration information and the partition table can get out of sync. very easily. The default rBoot ROM addresses are hard-coded into the boot sector. If the partition table is updated then when @mostorer This may be part of your problem here but doesn't explain the odd FWFS partition behaviour. |
Sure. I will do that soon. |
here it is: https://github.com/mostorer/myRboot |
This PR adds partition table support to the ESP8266 bootloader (rBoot). See #2254 #2251. The ESP8266 flash layout has been reverted to the original Sming 4.2 layout, with the addition of the partition table in the sector before the RF calibration data at end of flash. Update rBoot Update bootloader to read ROM addresses from partition table on boot. These overwrite whatever values have been set in its own configuration, thus avoiding inconsistencies. rBoot has been forked to simplify management. An additional partition subtype has been added for RF calibration data, so existing applications running off the develop branch will need re-building and re-flashing. The partition table may now be freely relocated for the Esp8266 (+ Host) to allow compatibility with existing devices which must be upgrade OTA. Methods have been added to OTA classes to allow update regions to be set using partitions; this is safer than working with raw flash addresses but the underlying mechanism hasn't changed.
Hi all. New to Sming, I'm trying to enable OTA for a 1MB ESP8266 (ESP-03).
Started from Basic_rBoot example, customized the HWCONFIG and set parameter for RBOOT_TWO_ROMS in component.mk.
Rom OTA is now working fine (to be honest I had to change Rom1 start address to 0x082000 as with 0x080000 the second rom was always corrupted), so I added the OTA update for an FWFS partition (next step is to create an Hybrid FileSystem).
As said, ROM OTA is working fine but, FWFS OTA get the partition corrupted and the mount fails.
So, at first boot after flashing I stain this printout:
but after giving the OTA command, this is the result:
I post my source code, hwconfig file and component.mk if someone would like to help me.
Archivio.zip
The text was updated successfully, but these errors were encountered: