Changeset 42189


Ignore:
Timestamp:
2014-08-18T15:09:34+02:00 (3 years ago)
Author:
blogic
Message:

ar71xx: build factory image for EnGenius ESR900 and ESR1750

Signed-off-by: Forest Crossman <cyrozap@…>

File:
1 edited

Legend:

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

    r42177 r42189  
    484484Image/Build/AthLzma/initramfs=$(call MkuImageLzma/initramfs,$(2),$(3) $(4)) 
    485485 
     486 
     487define Image/Build/EnGenius 
     488        $(eval fwsize=$(call mtdpartsize,firmware,$(4))) 
     489        $(eval rootsize=$(call mtdpartsize,rootfs,$(4))) 
     490        $(eval kernsize=$(call mtdpartsize,kernel,$(4))) 
     491        $(call Sysupgrade/$(5),$(1),$(2),$(if $(6),$(6),$(kernsize)),$(if $(rootsize),$(rootsize),$(fwsize))) 
     492        if [ -e "$(call sysupname,$(1),$(2))" ]; then \ 
     493                dd if=$(KDIR_TMP)/vmlinux-$(2).uImage \ 
     494                        of=$(call imgname,kernel,$(2)).bin bs=64k conv=sync; \ 
     495                dd if=$(KDIR)/root.$(1) \ 
     496                        of=$(call imgname,$(1),$(2)-rootfs).bin bs=128k conv=sync; \ 
     497                mksenaofw -e $(call sysupname,$(1),$(2)) \ 
     498                        -o $(call imgname,$(1),$(2))-factory.dlf \ 
     499                        -r 0x101 -p $(7) -t 2; \ 
     500        fi 
     501endef 
     502 
     503Image/Build/EnGenius/buildkernel=$(call MkuImageLzma,$(2),$(3) $(4)) 
     504Image/Build/EnGenius/initramfs=$(call MkuImageLzma/initramfs,$(2),$(3) $(4)) 
     505 
     506 
    486507define MkuImageHiWiFi 
    487508        # Field ih_name needs to start with "tw150v1" 
     
    10561077$(eval $(call SingleProfile,AthLzma,64k,DB120,db120,DB120,ttyS0,115200,$$(db120_mtdlayout),RKuImage)) 
    10571078$(eval $(call SingleProfile,AthLzma,64k,DRAGINO2,dragino2,DRAGINO2,ttyATH0,115200,$$(dragino2_mtdlayout),KRuImage,65536)) 
    1058 $(eval $(call SingleProfile,AthLzma,64k,ESR1750,esr1750,ESR1750,ttyS0,115200,$$(esr1750_mtdlayout),KRuImage)) 
    10591079$(eval $(call SingleProfile,AthLzma,64k,EWDORINAP,ew-dorin,EW-DORIN,ttyATH0,115200,$$(ew-dorin_mtdlayout_4M),KRuImage,65536)) 
    10601080$(eval $(call SingleProfile,AthLzma,64k,EWDORINRT,ew-dorin-router,EW-DORIN-ROUTER,ttyATH0,115200,$$(ew-dorin_mtdlayout_4M),KRuImage,65536)) 
     
    10941114$(eval $(call SingleProfile,CameoAP94,64kraw,TEW673GRU,tew-673gru,TEW-673GRU,ttyS0,115200,$$(cameo_ap94_mtdlayout),$$(cameo_ap94_mtdlayout_fat),01AP94-AR7161-RT-080619-01,00AP94-AR7161-RT-080619-01)) 
    10951115$(eval $(call SingleProfile,CameoAP94,64kraw,DLRTDEV01,dlrtdev01,DIR-825-B1,ttyS0,115200,$$(dlrtdev_mtdlayout),$$(dlrtdev_mtdlayout_fat),01AP94-AR7161-RT-080619-00,00AP94-AR7161-RT-080619-00)) 
     1116 
     1117$(eval $(call SingleProfile,EnGenius,64k,ESR900,esr900,ESR900,ttyS0,115200,$$(esr900_mtdlayout),KRuImage,,0x4e)) 
     1118$(eval $(call SingleProfile,EnGenius,64k,ESR1750,esr1750,ESR1750,ttyS0,115200,$$(esr1750_mtdlayout),KRuImage,,0x61)) 
    10961119 
    10971120$(eval $(call SingleProfile,HiWiFi,64k,HIWIFI_HC6361,hiwifi-hc6361,HiWiFi-HC6361,ttyATH0,115200,$$(hiwifi_hc6361_mtdlayout),KRuImage)) 
Note: See TracChangeset for help on using the changeset viewer.