Author: blogic Date: 2014-06-11 15:00:00 +0200 (Wed, 11 Jun 2014) New Revision: 41131
Modified: trunk/target/linux/ar71xx/base-files/lib/upgrade/platform.sh trunk/target/linux/ar71xx/image/Makefile Log: ar71xx: add sysupgrade support for wndr4300 Signed-off-by: John Crispin <[email protected]> Modified: trunk/target/linux/ar71xx/base-files/lib/upgrade/platform.sh =================================================================== --- trunk/target/linux/ar71xx/base-files/lib/upgrade/platform.sh 2014-06-11 12:59:57 UTC (rev 41130) +++ trunk/target/linux/ar71xx/base-files/lib/upgrade/platform.sh 2014-06-11 13:00:00 UTC (rev 41131) @@ -305,6 +305,14 @@ } return 0 ;; + wndr4300 ) + nand_do_upgrade_stage1 $board $1 + [ $? != 0 ] && { + echo "Invalid tar file." + return 1 + } + return 0; + ;; routerstation | \ routerstation-pro | \ ls-sr71 | \ Modified: trunk/target/linux/ar71xx/image/Makefile =================================================================== --- trunk/target/linux/ar71xx/image/Makefile 2014-06-11 12:59:57 UTC (rev 41130) +++ trunk/target/linux/ar71xx/image/Makefile 2014-06-11 13:00:00 UTC (rev 41131) @@ -877,6 +877,8 @@ -B $(6) -v OpenWrt.$(REVISION) -r "$$$$r" $(8) \ -i $(imageraw) \ -o $(call imgname,ubi,$(2))-factory.img + + $(call Image/Build/SysupgradeNAND,$(2),$(KDIR_TMP)/vmlinux-$(2).uImage,$(KDIR_TMP)/root.squashfs) endef _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
