[openwrt/openwrt] mediatek: mt7622: fix sysupgrade on MMC on BPi-R64
LEDE Commits
lede-commits at lists.infradead.org
Mon Jan 16 14:05:51 PST 2023
dangole pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/86a2dae29a7391f83a0b8d2f85828f72c834b17e
commit 86a2dae29a7391f83a0b8d2f85828f72c834b17e
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Mon Jan 16 21:00:41 2023 +0000
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 at makrotopia.org>
---
target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh | 1 +
1 file changed, 1 insertion(+)
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"
More information about the lede-commits
mailing list