Changeset 44455


Ignore:
Timestamp:
2015-02-14T23:18:35+01:00 (3 years ago)
Author:
kaloz
Message:

mvebu: fix WRT1900AC ubinized images

The current pxa3xx_nand driver doesn't support sub-page writing,
so the VID header offset must be specified explicitly.

Signed-off-by: Claudio Leite <leitec@…>
Signed-off-by: Imre Kaloz <kaloz@…>

File:
1 edited

Legend:

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

    r44291 r44455  
    3232# $(4): Page Size 
    3333# $(5): Sub-Page Size (optional) 
     34# $(6): VID offset (optional) 
    3435define NANDProfile 
    3536  define Image/BuildKernel/Profile/$(1) 
     
    4950 
    5051  define Image/Build/Profile/$(1)/squashfs 
    51         $(call Image/Build/UbinizeImage,$(2),,squashfs, -p $(3) -m $(4) $(if $(5),-s $(5))) 
     52        $(call Image/Build/UbinizeImage,$(2),,squashfs, -p $(3) -m $(4) $(if $(5),-s $(5)) $(if $(6),-O $(6))) 
    5253# The next line will be dropped, migrate your board to use a single firmware file 
    5354        cp $(KDIR)/$$(IMG_PREFIX)-$(2)-squashfs-ubinized.bin $(BIN_DIR) 
     
    137138 
    138139# Boards with NAND, with subpages 
    139 $(eval $(call NANDProfile,Mamba,armada-xp-mamba,128KiB,2048,512)) 
     140$(eval $(call NANDProfile,Mamba,armada-xp-mamba,128KiB,2048,512,2048)) 
    140141 
    141142# Boards with large NOR, where we want to use UBI 
     
    146147 
    147148define Image/Build/Profile/Mamba/squashfs 
    148         $(call Image/Build/UbinizeImage,armada-xp-mamba,,squashfs, -p 128KiB -m 2048 -s 512) 
     149        $(call Image/Build/UbinizeImage,armada-xp-mamba,,squashfs, -p 128KiB -m 2048 -s 512 -O 2048) 
    149150        ( \ 
    150151                dd if=$(KDIR)/uImage-armada-xp-mamba bs=3072k conv=sync; \ 
Note: See TracChangeset for help on using the changeset viewer.