E8450 upgrade using owut corrupted UBI layout

Hi, I've got an E8450 and did an upgrade using owut a few days ago. After upgrading, the router got stuck in recovery mode, and I couldn’t recover it by reflashing the UBI installer or sysupgrade firmware from OpenWRT.

I knew there must be something wrong with either the partition table or system volume, but fdisk wasn’t working on the built-in flash. After some research, when I tried to evaluate all UBI partitions, I found that ubi0_5 and ubi0_7 were missing. Maybe this was caused by a firmware larger than the size of ubi0_5.

So I tried to manually create these two UBI volumes using the following commands:

ubimkvol /dev/ubi0 -n 5 -N fit -s 40MiB
ubimkvol /dev/ubi0 -n 7 -N rootfs_data -m

These commands create:

  • A UBI volume 5 with a size of 40MiB and the partition name fit.
  • A UBI volume 7 that takes all remaining free space, named rootfs_data.

The partition numbers and names are from the device page.

After manually creating these two UBI partitions, I was able to flash the new firmware and restore the router to normal operation.

I hope this helps anyone facing the same issue!