Changeset 38076


Ignore:
Timestamp:
2013-09-20T00:36:43+02:00 (4 years ago)
Author:
juhosg
Message:

ar71xx: add profile and build image for the WD My Net N600 board

Signed-off-by: Gabor Juhos <juhosg@…>

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

Legend:

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

    r38066 r38076  
    175175wndr4300_mtdlayout=mtdparts=ar934x-nfc:256k(u-boot)ro,256k(u-boot-env)ro,256k(caldata),512k(pot),2048k(language),512k(config),3072k(traffic_meter),1152k(kernel),24448k(rootfs),25600k@0x6c0000(firmware),256k(caldata_backup),-(reserved) 
    176176zcn1523h_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,6208k(rootfs),1472k(kernel),64k(configure)ro,64k(mfg)ro,64k(art)ro,7680k@0x50000(firmware) 
     177mynet_n600_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,64k(devdata)ro,64k(devconf)ro,1280k(kernel),14592k(rootfs),64k(radiocfg)ro,15872k@0x70000(firmware) 
    177178 
    178179define Image/BuildKernel 
     
    530531                ) >> $(call factoryname,$(1),$(2)); \ 
    531532        fi 
     533endef 
     534 
     535 
     536Image/Build/Seama/loader=$(call Image/BuildLoader,$(1),bin,$(2) $(3),0x80060000) 
     537 
     538define Image/Build/Seama 
     539        [ -e "$(KDIR)/loader-$(2).bin" ] 
     540        $(call CompressLzma,$(KDIR)/loader-$(2).bin,$(KDIR_TMP)/loader-$(2).bin.lzma) 
     541        -rm -f $(KDIR_TMP)/image-$(2).tmp 
     542        $(call CatFiles,$(KDIR_TMP)/loader-$(2).bin.lzma,$$$$(($(6) - 64)),$(KDIR)/root.$(1),$(7),$(KDIR_TMP)/image-$(2).tmp) 
     543        [ -e "$(KDIR_TMP)/image-$(2).tmp" ] && { \ 
     544                $(STAGING_DIR_HOST)/bin/seama \ 
     545                -i $(KDIR_TMP)/image-$(2).tmp \ 
     546                -m "dev=/dev/mtdblock/1" -m "type=firmware"; \ 
     547                $(STAGING_DIR_HOST)/bin/seama \ 
     548                        -s $(call imgname,$(1),$(2))-factory.bin \ 
     549                        -m "signature=$(5)" \ 
     550                        -i $(KDIR_TMP)/image-$(2).tmp.seama; \ 
     551        } 
     552        cat $(KDIR_TMP)/loader-$(2).bin.lzma > $(KDIR_TMP)/image-$(2)-sysupgrade.tmp 
     553        $(STAGING_DIR_HOST)/bin/seama \ 
     554                -i $(KDIR_TMP)/image-$(2)-sysupgrade.tmp \ 
     555                -m "dev=/dev/mtdblock/1" -m "type=firmware" 
     556        $(call CatFiles,$(KDIR_TMP)/image-$(2)-sysupgrade.tmp.seama,$(6),$(KDIR)/root.$(1),$(7),$(call sysupname,$(1),$(2))) 
     557endef 
     558 
     559define Image/Build/Seama/initramfs 
     560        $(call PatchKernelLzma,$(2),$(3) $(4),,-initramfs) 
     561        $(STAGING_DIR_HOST)/bin/seama \ 
     562                -i $(KDIR_TMP)/vmlinux-initramfs-$(2).bin.lzma \ 
     563                -m "dev=/dev/mtdblock/1" -m "type=firmware" 
     564        cat $(KDIR_TMP)/vmlinux-initramfs-$(2).bin.lzma.seama > $(call imgname,initramfs,$(2))-seama.bin 
    532565endef 
    533566 
     
    884917$(eval $(call SingleProfile,Planex,64k,MZKW04NU,mzk-w04nu,MZK-W04NU,ttyS0,115200)) 
    885918$(eval $(call SingleProfile,Planex,64k,MZKW300NH,mzk-w300nh,MZK-W300NH,ttyS0,115200)) 
     919 
     920$(eval $(call SingleProfile,Seama,64k,MYNETN600,mynet-n600,MYNET-N600,ttyS0,115200,$$(mynet_n600_mtdlayout),wrgnd16_wd_db600,1310720,16187392)) 
    886921 
    887922$(eval $(call SingleProfile,TPLINKOLD,squashfs-only,TLWR841NV15,tl-wr841nd-v1.5,TL-WR841N-v1.5,ttyS0,115200,0x08410002,2,4M)) 
Note: See TracChangeset for help on using the changeset viewer.