ipq806x: sysupgrade: drop unnecessary UBI to UBI logic
authorBjørn Mork <bjorn@mork.no>
Sat, 20 Mar 2021 10:48:26 +0000 (11:48 +0100)
committerChristian Lamparter <chunkeey@gmail.com>
Fri, 3 Dec 2021 11:23:02 +0000 (12:23 +0100)
commit5fb51d4516d27dcf72d2a1592abba922259ec8e5
tree5f3ba5df36c0ed3a3e3c6f2ac8d1096538b688e4
parent25382dff8584ffc70917e9f693681fb7d9c06826
ipq806x: sysupgrade: drop unnecessary UBI to UBI logic

The purpose of this code seems to be to avoid issues caused
by partially overwriting an existing UBI partition, where some
of the erase counters would be reset but not the unmodified
ones.  This problem has been solved in a more generic way by
the UBI EOF marker. This ensures that any old PEBs after the
marker are properly initialized.  It is therefore unnecessary
to erase the whole partition before flashing a new OpenWrt
factory image.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
target/linux/ipq806x/base-files/lib/upgrade/linksys.sh