Changeset 40502


Ignore:
Timestamp:
2014-04-13T10:29:09+02:00 (4 years ago)
Author:
juhosg
Message:

ar71xx: add profile and build image for the ZyXEL NBG6716 board

Signed-off-by: André Valentin <avalentin@…>
Patchwork: http://patchwork.openwrt.org/patch/5101/
[juhosg: remove the non-existing zyxelnand subtarget specific stuff]
Signed-off-by: Gabor Juhos <juhosg@…>

Location:
trunk/target/linux/ar71xx
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/image/Makefile

    r40481 r40502  
    286286mynet_n600_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,64k(devdata)ro,64k(devconf)ro,15872k(firmware),64k(radiocfg)ro 
    287287mynet_rext_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,7808k(firmware),64k(nvram)ro,64k(ART)ro,6848k@0x130000(filesystem) 
     288zyx_nbg6716_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(env)ro,64k(RFdata)ro,-(nbu);ar934x-nfc:2048k(zyxel_rfsd),2048k(romd),1024k(header),2048k(kernel),-(ubiroot) 
     289 
    288290 
    289291define Image/BuildKernel 
     
    880882  endef 
    881883endif 
     884 
     885 
     886define  Image/Build/ZyXELNAND/buildkernel 
     887        $(eval kernelsize=$(call mtdpartsize,kernel,$(5))) 
     888        $(call MkuImageLzma,$(2),$(3) $(5) $(6)) 
     889        mkdir -p $(KDIR_TMP)/$(2)/image/boot 
     890        cp $(KDIR_TMP)/vmlinux-$(2).uImage $(KDIR_TMP)/$(2)/image/boot/vmlinux.lzma.uImage 
     891        $(STAGING_DIR_HOST)/bin/mkfs.jffs2 \ 
     892                --pad=$(kernelsize) --big-endian --squash-uids -v -e 128KiB \ 
     893                -o $(KDIR_TMP)/$(2)-kernel.jffs2 \ 
     894                -d $(KDIR_TMP)/$(2)/image \ 
     895                2>&1 1>/dev/null | awk '/^.+$$$$/' 
     896        -rm -rf $(KDIR_TMP)/$(2) 
     897endef 
     898 
     899define Image/Build/ZyXELNAND 
     900        if [ "$(1)" != "squashfs" ]; then \ 
     901                echo Only squashfs is supported; \ 
     902                return 0; \ 
     903        fi 
     904        $(eval firmwaresize=$(call mtdpartsize,firmware,$(4))) 
     905        $(eval kernelsize=$(call mtdpartsize,kernel,$(4))) 
     906        $(eval imageraw=$(KDIR_TMP)/$(2)-raw.img) 
     907        $(CP) $(KDIR)/root.$(1) $(KDIR_TMP)/ubi_root.img 
     908        echo -ne '\xde\xad\xc0\xde' > $(KDIR_TMP)/jffs2.eof 
     909        $(call ubinize,ubinize-$(2).ini,$(KDIR_TMP),$(KDIR_TMP)/$(2)-root.ubi,128KiB,2048,-E 5) 
     910        ( \ 
     911                dd if=$(KDIR_TMP)/$(2)-kernel.jffs2; \ 
     912                dd if=$(KDIR_TMP)/$(2)-root.ubi \ 
     913        ) > $(imageraw) 
     914        dd if=$(imageraw) of=$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-factory.bin \ 
     915                bs=128k conv=sync 
     916        ( \ 
     917                dd if=$(KDIR_TMP)/$(2)-kernel.jffs2; \ 
     918                dd if=$(KDIR)/root.$(1) bs=128k conv=sync \ 
     919        ) > $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-sysupgrade.bin 
     920endef 
    882921 
    883922 
     
    11811220$(eval $(call SingleProfile,NetgearNAND,64k,WNDR4300V1,wndr4300,WNDR4300,ttyS0,115200,$$(wndr4300_mtdlayout),0x33373033,WNDR4300,"",-H 29763948+0+128+128+2x2+3x3,wndr4300)) 
    11821221 
     1222$(eval $(call SingleProfile,ZyXELNAND,128k,NBG6716,nbg6716,NBG6716,ttyS0,115200,NBG6716,$$(zyx_nbg6716_mtdlayout),ubi.mtd=ubiroot mem=256M)) 
     1223 
    11831224$(eval $(call MultiProfile,WNDR4300,WNDR3700V4 WNDR4300V1)) 
    11841225endif # ifeq ($(SUBTARGET),nand) 
Note: See TracChangeset for help on using the changeset viewer.