[FS#385] rampis / JFFS2-problem / Xiaomi Miwifi mini / r2919 / wrong erase size?

LEDE Bugs lede-bugs at lists.infradead.org
Sun Jan 15 14:11:21 PST 2017


The following task has a new comment added:

FS#385 - rampis / JFFS2-problem / Xiaomi Miwifi mini / r2919 / wrong erase size?
User who did this - Mathias Kresin (mkresin)

----------
The issue is **not** fixed by my patch.

It took some time till I figured out what's the reason for the jffs2 errors. You have done a sysupgrade from a version prior r1597 and preserved the config.

To preserve the config a small jffs2 partition is created and a tar.gz archive with your config files is written to this partition. On next boot, the config is restored from this jffs2 partition. With [[https://git.lede-project.org/925e63e71fa6691f3fa374f71c77d0a91c7e7539|r1597]] I've enabled support for 4KB sectors and the flash chip of the MiWiFi Mini supports 4KB sectors.

During sysupgrade with preserving the config from a version prior r1597, a backup partition with 64KB sector size is create. On boot of the new image, the kernel (with 4KB sector size support) recognizes the mismatch of the sector size of the flash chip (0x1000 bytes) and the sector size used for creating the jffs2 backup partition (0x10000 bytes) and at warns about it. Not sure if the restore of the config really worked for you.

It was finally **fixed by running sysupgrade again**.

I've no idea how this error could be prevented. The only solution I've so far for upgrading from a pre r1597 is:


  - create a backup (sysupgrade -b) and copy this backup to safe location
  - upgrade the running systems without preserving the config (sysupgrade -n)
  - restore your backup afterwards (sysupgrade -r)

Till now I wasn't aware of the jffs2 backup partition and never expected such an issue in regard to enabling 4K support in the kernel.
----------

More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=385#comment1267



More information about the lede-bugs mailing list