Changeset 27357


Ignore:
Timestamp:
2011-07-02T10:37:59+02:00 (7 years ago)
Author:
juhosg
Message:

ar71xx: use 4k image only for the AP121 board

Create optimized 64K images with the new padjffs2 tool and use that
images instead of the 4k ones. The 4k images causes problems on devices
where the flash erase size is 64 KB.

File:
1 edited

Legend:

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

    r27076 r27357  
    505505 
    506506define Image/Build/Template/64k/squashfs 
    507         $(call Image/Build/$(1),squashfs,$(2),$(3),$(4),$(5),$(6),$(7),$(8)) 
     507        $(call Image/Build/$(1),squashfs-64k,$(2),$(3),$(4),$(5),$(6),$(7),$(8)) 
    508508endef 
    509509 
     
    529529ap121_mini_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,2752k(rootfs),896k(kernel),64k(nvram),64k(art)ro,3648k@0x50000(firmware) 
    530530define Image/Build/Profile/AP121MINI 
    531         $(call Image/Build/Template/$(fs_4k)/$(1),AP121,ap121-mini,$(ap121_mini_cmdline),ap121_mini_mtdlayout,917504,2818048) 
     531        $(call Image/Build/Template/$(fs_64k)/$(1),AP121,ap121-mini,$(ap121_mini_cmdline),ap121_mini_mtdlayout,917504,2818048) 
    532532endef 
    533533 
     
    677677tlmr3220_cmdline=board=TL-MR3220 console=ttyS0,115200 
    678678define Image/Build/Profile/TLMR3220V1 
    679         $(call Image/Build/Template/$(fs_4k)/$(1),TPLINK,tl-mr3220-v1,$(tlmr3220_cmdline),TL-MR3220v1) 
     679        $(call Image/Build/Template/$(fs_64k)/$(1),TPLINK,tl-mr3220-v1,$(tlmr3220_cmdline),TL-MR3220v1) 
    680680endef 
    681681 
    682682tlmr3420_cmdline=board=TL-MR3420 console=ttyS0,115200 
    683683define Image/Build/Profile/TLMR3420V1 
    684         $(call Image/Build/Template/$(fs_4k)/$(1),TPLINK,tl-mr3420-v1,$(tlmr3420_cmdline),TL-MR3420v1) 
     684        $(call Image/Build/Template/$(fs_64k)/$(1),TPLINK,tl-mr3420-v1,$(tlmr3420_cmdline),TL-MR3420v1) 
    685685endef 
    686686 
    687687tlwa901nd_cmdline=board=TL-WA901ND console=ttyS0,115200 
    688688define Image/Build/Profile/TLWA901NDV1 
    689         $(call Image/Build/Template/$(fs_4k)/$(1),TPLINK,tl-wa901nd-v1,$(tlwa901nd_cmdline),TL-WA901NDv1) 
     689        $(call Image/Build/Template/$(fs_64k)/$(1),TPLINK,tl-wa901nd-v1,$(tlwa901nd_cmdline),TL-WA901NDv1) 
    690690endef 
    691691 
    692692tlwa901ndv2_cmdline=board=TL-WA901ND-v2 console=ttyS0,115200 
    693693define Image/Build/Profile/TLWA901NDV2 
    694         $(call Image/Build/Template/$(fs_4k)/$(1),TPLINK,tl-wa901nd-v2,$(tlwa901ndv2_cmdline),TL-WA901NDv2) 
     694        $(call Image/Build/Template/$(fs_64k)/$(1),TPLINK,tl-wa901nd-v2,$(tlwa901ndv2_cmdline),TL-WA901NDv2) 
    695695endef 
    696696 
    697697tlwe741ndv1_cmdline=board=TL-WR741ND console=ttyS0,115200 
    698698define Image/Build/Profile/TLWR741NDV1 
    699         $(call Image/Build/Template/$(fs_4k)/$(1),TPLINK,tl-wr741nd-v1,$(tlwe741ndv1_cmdline),TL-WR741NDv1) 
     699        $(call Image/Build/Template/$(fs_64k)/$(1),TPLINK,tl-wr741nd-v1,$(tlwe741ndv1_cmdline),TL-WR741NDv1) 
    700700endef 
    701701 
    702702tlwe740nv1_cmdline=board=TL-WR741ND console=ttyS0,115200 
    703703define Image/Build/Profile/TLWR740NV1 
    704         $(call Image/Build/Template/$(fs_4k)/$(1),TPLINK,tl-wr740n-v1,$(tlwe740nv1_cmdline),TL-WR740Nv1) 
     704        $(call Image/Build/Template/$(fs_64k)/$(1),TPLINK,tl-wr740n-v1,$(tlwe740nv1_cmdline),TL-WR740Nv1) 
    705705endef 
    706706 
     
    717717tlwr841ndv5_cmdline=board=TL-WR741ND console=ttyS0,115200 
    718718define Image/Build/Profile/TLWR841NDV5 
    719         $(call Image/Build/Template/$(fs_4k)/$(1),TPLINK,tl-wr841nd-v5,$(tlwr841ndv5_cmdline),TL-WR841NDv5) 
     719        $(call Image/Build/Template/$(fs_64k)/$(1),TPLINK,tl-wr841nd-v5,$(tlwr841ndv5_cmdline),TL-WR841NDv5) 
    720720endef 
    721721 
    722722tlwr841ndv7_cmdline=board=TL-WR741ND console=ttyS0,115200 
    723723define Image/Build/Profile/TLWR841NDV7 
    724         $(call Image/Build/Template/$(fs_4k)/$(1),TPLINK,tl-wr841nd-v7,$(tlwr841ndv7_cmdline),TL-WR841NDv7) 
     724        $(call Image/Build/Template/$(fs_64k)/$(1),TPLINK,tl-wr841nd-v7,$(tlwr841ndv7_cmdline),TL-WR841NDv7) 
    725725endef 
    726726 
     
    737737tlwr941ndv4_cmdline=board=TL-WR741ND console=ttyS0,115200 
    738738define Image/Build/Profile/TLWR941NDV4 
    739         $(call Image/Build/Template/$(fs_4k)/$(1),TPLINK,tl-wr941nd-v4,$(tlwr941ndv4_cmdline),TL-WR941NDv4) 
     739        $(call Image/Build/Template/$(fs_64k)/$(1),TPLINK,tl-wr941nd-v4,$(tlwr941ndv4_cmdline),TL-WR941NDv4) 
    740740endef 
    741741 
     
    857857 
    858858define Image/Build/squashfs 
    859         dd if=$(KDIR)/root.squashfs of=$(KDIR)/root.squashfs-4k.tmp0 bs=4k conv=sync 
    860         $(call add_jffs2_mark,$(KDIR)/root.squashfs-4k.tmp0) 
    861         dd if=$(KDIR)/root.squashfs-4k.tmp0 of=$(BIN_DIR)/$(IMG_PREFIX)-root.squashfs-4k bs=4k conv=sync 
    862         rm -f $(KDIR)/root.squashfs-4k.tmp0 
     859        cp $(KDIR)/root.squashfs $(BIN_DIR)/$(IMG_PREFIX)-root.squashfs-4k 
     860        $(STAGING_DIR_HOST)/bin/padjffs2 $(BIN_DIR)/$(IMG_PREFIX)-root.squashfs-4k 4 
     861        cp $(KDIR)/root.squashfs $(BIN_DIR)/$(IMG_PREFIX)-root.squashfs-64k 
     862        $(STAGING_DIR_HOST)/bin/padjffs2 $(BIN_DIR)/$(IMG_PREFIX)-root.squashfs-64k 4 8 64 
    863863        $(call prepare_generic_squashfs,$(KDIR)/root.squashfs) 
    864864endef 
Note: See TracChangeset for help on using the changeset viewer.