diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2014-04-12 20:22:41 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2014-04-12 20:22:41 +0000 |
commit | 22916814e3621dd807b0d89485ba3c60cfdf7c10 (patch) | |
tree | 5247f28ca8d192f71ef566856e5c0c3ecb7b790a /target | |
parent | a67578ce33504e32f9b0c302d885ec0e3fc17b19 (diff) | |
download | mtk-20170518-22916814e3621dd807b0d89485ba3c60cfdf7c10.zip mtk-20170518-22916814e3621dd807b0d89485ba3c60cfdf7c10.tar.gz mtk-20170518-22916814e3621dd807b0d89485ba3c60cfdf7c10.tar.bz2 |
ar71xx: build firmware image for the WNDR3700 v4 board
Based on the the WNDR3700v4 support patch from Ralph Perlich:
http://patchwork.openwrt.org/patch/4763/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 40481
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/ar71xx/image/Makefile | 8 | ||||
-rw-r--r-- | target/linux/ar71xx/nand/profiles/netgear.mk | 4 |
2 files changed, 8 insertions, 4 deletions
diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile index 5d2b670..9295699 100644 --- a/target/linux/ar71xx/image/Makefile +++ b/target/linux/ar71xx/image/Makefile @@ -843,13 +843,14 @@ endef # $(6): Board name (upper caps) # $(7): firmware region code (not used yet) # $(8): DNI Hardware version +# $(9): suffix of the configuration file for ubinize define Image/Build/NetgearNAND $(eval firmwaresize=$(call mtdpartsize,firmware,$(4))) $(eval kernelsize=$(call mtdpartsize,kernel,$(4))) $(eval imageraw=$(KDIR_TMP)/$(2)-raw.img) $(CP) $(KDIR)/root.squashfs-raw $(KDIR_TMP)/root.squashfs echo -ne '\xde\xad\xc0\xde' > $(KDIR_TMP)/jffs2.eof - $(call ubinize,ubinize-$(2).ini,$(KDIR_TMP),$(KDIR_TMP)/$(2)-root.ubi,128KiB,2048,-E 5) + $(call ubinize,ubinize-$(9).ini,$(KDIR_TMP),$(KDIR_TMP)/$(2)-root.ubi,128KiB,2048,-E 5) ( \ dd if=$(KDIR_TMP)/vmlinux-$(2).uImage; \ dd if=$(KDIR_TMP)/$(2)-root.ubi \ @@ -1176,7 +1177,10 @@ $(eval $(call MultiProfile,Madwifi,EAP7660D UBNTRS UBNTRSPRO UBNTLSSR71 WP543)) endif # ifeq ($(SUBTARGET),generic) ifeq ($(SUBTARGET),nand) -$(eval $(call SingleProfile,NetgearNAND,64k,WNDR4300,wndr4300,WNDR4300,ttyS0,115200,$$(wndr4300_mtdlayout),0x33373033,WNDR4300,"",-H 29763948+0+128+128+2x2+3x3)) +$(eval $(call SingleProfile,NetgearNAND,64k,WNDR3700V4,wndr3700v4,WNDR4300,ttyS0,115200,$$(wndr4300_mtdlayout),0x33373033,WNDR3700V4,"",-H 29763948+128+128,wndr4300)) +$(eval $(call SingleProfile,NetgearNAND,64k,WNDR4300V1,wndr4300,WNDR4300,ttyS0,115200,$$(wndr4300_mtdlayout),0x33373033,WNDR4300,"",-H 29763948+0+128+128+2x2+3x3,wndr4300)) + +$(eval $(call MultiProfile,WNDR4300,WNDR3700V4 WNDR4300V1)) endif # ifeq ($(SUBTARGET),nand) diff --git a/target/linux/ar71xx/nand/profiles/netgear.mk b/target/linux/ar71xx/nand/profiles/netgear.mk index 471ef37..d9ceee5 100644 --- a/target/linux/ar71xx/nand/profiles/netgear.mk +++ b/target/linux/ar71xx/nand/profiles/netgear.mk @@ -6,12 +6,12 @@ # define Profile/WNDR4300 - NAME:=NETGEAR WNDR4300 + NAME:=NETGEAR WNDR3700v4/WNDR4300 PACKAGES:=kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-ledtrig-usbdev endef define Profile/WNDR4300/Description - Package set optimized for the NETGEAR WNDR4300 + Package set optimized for the NETGEAR WNDR3700v4/WNDR4300 endef $(eval $(call Profile,WNDR4300)) |