@leitec @davidc502
I remember mrfreeze having produced a build where /etc/fw_env.config was missing. Maybe a misfeature of the image builder? That could explain a wipe as well. At least I'm not that sure the linked commit is directly related to the issue (commit message lacking reference), however, hard to tell without a good way to reproduce. If we see this again with the patch we know it wasn't the reason.
Right, backups! https://wiki.openwrt.org/doc/howto/generic.backup
PS: There are two types of people, those who do backups and those who never had a hard-drive fail
That's possible, too. I had been working on the assumption that David had the same issue that Dheeran Senthilvel wrote about on the LEDE mailing list, which someone has already linked to here. In that case at least the last problem he had was due to u_env being invalid and the bootloader not saving the defaults when reset.
The thing is that fw_setenv in Linux will save a set of defaults when it finds an invalid/empty partition. It then checks out as correct since it has a valid checksum, but it's lacking the values the Marvell u-boot is looking for. The auto_recovery stuff mucks this up a little more when it falls back and writes out a new value for 'boot_part'. In that case, sysupgrade will write the new image (unlike in David's case) but it won't come back correctly after the reboot.
(Last edited by leitec on 14 Jun 2016, 16:21)