medaitek: convert the NAND target to UBI

Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2016-06-17 03:46:25 +02:00
parent 16e04fd1b4
commit e81020c317
7 changed files with 62 additions and 192 deletions

View File

@@ -20,7 +20,10 @@ platform_check_image() {
local board=$(cat /tmp/sysinfo/board_name)
case "$board" in
NAND | \
NAND)
nand_do_platform_check $board $1
return $?
;;
eMMC)
local kernel_length=`(tar xf $tar_file sysupgrade-$board/kernel -O | wc -c) 2> /dev/null`
local rootfs_length=`(tar xf $tar_file sysupgrade-$board/root -O | wc -c) 2> /dev/null`
@@ -39,3 +42,12 @@ platform_check_image() {
return 0
}
platform_pre_upgrade() {
local board=$(cat /tmp/sysinfo/board_name)
case "$board" in
NAND)
nand_do_upgrade $1
;;
esac
}