From: blogic Date: Thu, 10 Jul 2014 19:16:39 +0000 (+0000) Subject: lantiq: enable SysupgradeNAND for BTHOMEHUBV2B X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=e65027128ac4b0561805e4de9edc50a6e421896b;p=openwrt.git lantiq: enable SysupgradeNAND for BTHOMEHUBV2B Enables SysupgradeNAND for BTHOMEHUBV2B. Depends on the following patches: http://patchwork.openwrt.org/patch/5817/ http://patchwork.openwrt.org/patch/5848/ http://patchwork.openwrt.org/patch/5851/ Many thanks everyone for your help the last couple of days. Ben Signed-off-by: Ben Mulvihill git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41566 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/target/linux/lantiq/base-files/lib/upgrade/platform.sh b/target/linux/lantiq/base-files/lib/upgrade/platform.sh index 841566ea93..bef395ad7b 100755 --- a/target/linux/lantiq/base-files/lib/upgrade/platform.sh +++ b/target/linux/lantiq/base-files/lib/upgrade/platform.sh @@ -1,7 +1,17 @@ +. /lib/functions/lantiq.sh + PART_NAME=firmware platform_check_image() { [ "$#" -gt 1 ] && return 1 + local board=$(lantiq_board_name) + + case "$board" in + BTHOMEHUBV2B ) + nand_do_platform_check $board $1 + return $?; + ;; + esac case "$(get_magic_word "$1")" in # uImage