summaryrefslogtreecommitdiff
path: root/target/linux/ramips/image
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2011-07-06 08:04:54 +0000
committerGabor Juhos <juhosg@openwrt.org>2011-07-06 08:04:54 +0000
commit2cc346b8e099b79fd4c9182b46b6de2f59cc44f4 (patch)
tree296efaeac023a9e8436d0079b799012296a670c7 /target/linux/ramips/image
parent9d980dc1213b7c22c5111780cb56d4f3b1c52ab6 (diff)
downloadmtk-20170518-2cc346b8e099b79fd4c9182b46b6de2f59cc44f4.zip
mtk-20170518-2cc346b8e099b79fd4c9182b46b6de2f59cc44f4.tar.gz
mtk-20170518-2cc346b8e099b79fd4c9182b46b6de2f59cc44f4.tar.bz2
ramips: create tftp image for the WHR-G300N board
SVN-Revision: 27476
Diffstat (limited to 'target/linux/ramips/image')
-rw-r--r--target/linux/ramips/image/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile
index 2a841ef..042c319 100644
--- a/target/linux/ramips/image/Makefile
+++ b/target/linux/ramips/image/Makefile
@@ -129,6 +129,13 @@ mtdlayout_whrg300n=mtdparts=physmap-flash.0:192k(u-boot)ro,64k(u-boot-env)ro,64k
define Image/Build/Profile/WHRG300N
$(call Image/Build/Template/GENERIC_4M,$(1),whr-g300n,WHR-G300N)
$(call BuildFirmware/Buffalo,$(1),whr-g300n,WHR-G300N,mtdlayout_whrg300n,983040,3801088)
+ ( \
+ echo -n -e "# Airstation FirmWare\nrun u_fw\nreset\n\n" | \
+ dd bs=512 count=1 conv=sync; \
+ dd if=$(call imgname,$(1),whr-g300n)-sysupgrade.bin; \
+ ) > $(KDIR)/whr-g300n-tftp.tmp
+ buffalo-tftp -i $(KDIR)/whr-g300n-tftp.tmp \
+ -o $(call imgname,$(1),whr-g300n)-tftp.bin
endef
define Image/Build/Profile/HW5503G