-
Notifications
You must be signed in to change notification settings - Fork 104
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
stop the selSec from being applied twice to lastSector #531
stop the selSec from being applied twice to lastSector #531
Conversation
|
@jpbland1
If you add an arbitrary amount of bytes to the application to grow past the third-last sector, you will see it fail with the NVM workaround. I've used 105KB to go over the limit. With To trigger the bug with NVM fix, you should get an application between 249600 and 253695 bytes, e.g.:
^ Application size is in the desired range
Update fails with NVM workarounds, succeeds otherwise, or if you make the application smaller than 249600 by reducing the filler size. Unfortunately, I've tested the current proposed change in this branch and does not seem to fix the issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've made a quick manual test and it does not seem to fix the reported issue. Please see comments.
Removed the sector straddle realignment code, I would need to look through the log but either the address calculation was updated not to require the realignment or the realignment was only required because of the double subtraction I already fixed. Either way it's passing the manual test max size test. We need to change all the update tests to use a max size image to prevent regressions on this. My initial thought was to build the image once normally, subtract the image's size from the max size and then rebuild the image with that many filler bytes but I couldn't get it working inside of test.mk and I don't know where else you would implement it that would apply to every test, ideas on this are appreciated. |
Seems to fix the issue reported in ZD19133 - thanks! |
ZD 19133
I found a mistake in the update trigger code where the selSec for nvm writeonce was being subtracted from the base address and then subtracted again for the erase operation. We need to add a test with a fullsize update image that would have been corrupted by this mistake. I've previously tried and failed to make a full size image test in test.mk @danielinux I could use advise or help on this