aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2023-01-16 21:00:41 +0000
committerDaniel Golle <daniel@makrotopia.org>2023-01-16 22:04:44 +0000
commit86a2dae29a7391f83a0b8d2f85828f72c834b17e (patch)
treec7edfa185727dfd9bc8016b12665e3e5b5ae1d81
parent83c0942ff7cb1a1aae2e5da6424c803644e3fa38 (diff)
downloadupstream-86a2dae29a7391f83a0b8d2f85828f72c834b17e.tar.gz
upstream-86a2dae29a7391f83a0b8d2f85828f72c834b17e.tar.bz2
upstream-86a2dae29a7391f83a0b8d2f85828f72c834b17e.zip
mediatek: mt7622: fix sysupgrade on MMC on BPi-R64
A previous attempt to simplify things went wrong and now sysupgrade is broken on this device. Fix that. Fixes: d640cbac0e ("mediatek: mt7622: don't rely on existing image for sysupgrade") Signed-off-by: Daniel Golle <daniel@makrotopia.org>
-rwxr-xr-xtarget/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh b/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh
index e62eba7ef1..d3d503dd1e 100755
--- a/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh
+++ b/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh
@@ -8,6 +8,7 @@ platform_do_upgrade() {
bananapi,bpi-r64)
local rootdev="$(cmdline_get_var root)"
rootdev="${rootdev##*/}"
+ rootdev="${rootdev%p[0-9]*}"
case "$rootdev" in
mmc*)
CI_ROOTDEV="$rootdev"