From 5998ec2794a8fabec9c74556647a9ab6750f2b14 Mon Sep 17 00:00:00 2001 From: Michel Pollet Date: Sun, 8 Mar 2009 12:03:28 +0000 Subject: [PATCH] [MINI2440] Also create a 16kb aligned tu-boot for linux mtd tool Linux's mtd-tool needs size that are aligned on the 16k erase block while u-boot only needs it on a 512 block. --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 1b5efabb..443a4699 100644 --- a/Makefile +++ b/Makefile @@ -283,6 +283,7 @@ ifeq ($(ARCH),blackfin) ALL += $(obj)u-boot.ldr endif ALL += $(obj)u-boot-nand512.bin +ALL += $(obj)u-boot-nand16k.bin all: $(ALL) @@ -332,6 +333,8 @@ $(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT) # make a file that can be written using "nand write ..." on 512 block NAND $(obj)u-boot-nand512.bin: $(obj)u-boot.bin dd if=$< of=$@ bs=512 conv=sync +$(obj)u-boot-nand16k.bin: $(obj)u-boot.bin + dd if=$< of=$@ bs=16K conv=sync $(OBJS): depend $(obj)include/autoconf.mk $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@)) -- 2.11.4.GIT