aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/mt7622/base-files
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2020-07-16 09:16:34 +0200
committerJohn Crispin <john@phrozen.org>2020-07-16 09:16:34 +0200
commit5a5031e70b3eefc4d4bf1be4f4529e2cfa159f98 (patch)
treeac71ac4f9bf3f90661fff22bf3719dfce327507a /target/linux/mediatek/mt7622/base-files
parentea2884e018a61a1d45ed9b7cfc916be35c3198e1 (diff)
downloadupstream-5a5031e70b3eefc4d4bf1be4f4529e2cfa159f98.tar.gz
upstream-5a5031e70b3eefc4d4bf1be4f4529e2cfa159f98.tar.bz2
upstream-5a5031e70b3eefc4d4bf1be4f4529e2cfa159f98.zip
mediatek: generate UBI images for the rev board
Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'target/linux/mediatek/mt7622/base-files')
-rwxr-xr-xtarget/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh3
1 files changed, 3 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 24b71ece63..8144476943 100755
--- a/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh
+++ b/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh
@@ -7,6 +7,9 @@ platform_do_upgrade() {
#of eMMC and to the location of the kernel
get_image "$1" | dd of=/dev/mmcblk0 bs=2097152 seek=1 conv=fsync
;;
+ mediatek,mt7622,ubi)
+ nand_do_upgrade "$1"
+ ;;
*)
default_do_upgrade "$1"
;;