[FS#203] Sysupgrade fails ea8500
LEDE Bugs
lede-bugs at lists.infradead.org
Mon Oct 10 22:51:52 PDT 2016
The following task has a new comment added:
FS#203 - Sysupgrade fails ea8500
User who did this - Mathias Kresin (mkresin)
----------
Okay, I see what is wrong.
The ea8500 has a dual flash layout. During upgrade kernel1+rootfs1 (primary) and kernel2+rootfs2 (secondary) are written alternating. The rootfs* partitions are ubi devices. In case of LEDE and the linksys firmware starting with version 1.1.4.69978, these ubi devices have two volumes named rootfs and rootfs_data (ubinfo -a). During sysupgrade, LEDE deletes these volumes and recreates them with the content from the sysupgrade file.
But in your case it seams to me on the secondary ubi device a linksys firmware prior to version 1.1.4.69978 is installed. These firmware version has a squashfs volume instead of the expected rootfs and rootfs_data volumes. LEDE doesn't delete this volume since it could be something important.
The primary ubi device was converted to the expected ubi volume layout during the initial flash by using the factory image.
If you run:
ubiattach -m 14
ubinfo -a
you should see the ubi volumes of the primary **and** the secondary ubi device.
As far as I can see from the code, the intended way to convert the secondary ubi device is to use the factory image once more.
Would you please give this a try! Please reboot the ea8500 and don't run any other commands than sysupgrade.
If this doesn't work for you, you can remove the squashfs volume by your self with:
ubiattach -m 14
ubirmvol /dev/ubi1 -N squashfs
Please report back which step fixed the issue!
----------
More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=203#comment619
More information about the lede-bugs
mailing list