Update NAND boot documentation

Patch by Stefan Roese, 12 Sep 2006
master
Stefan Roese 19 years ago
parent 98e43917dc
commit a73c8dbb43
  1. 3
      CHANGELOG
  2. 2
      Makefile
  3. 24
      doc/README.nand-boot-ppc440
  4. 4
      nand_spl/board/amcc/sequoia/Makefile

@ -2,6 +2,9 @@
Changes since U-Boot 1.1.4: Changes since U-Boot 1.1.4:
====================================================================== ======================================================================
* Update NAND boot documentation
Patch by Stefan Roese, 12 Sep 2006
* Add documentation on the latest build environment extensions to * Add documentation on the latest build environment extensions to
the README file. the README file.

@ -272,7 +272,7 @@ $(NAND_SPL): version
$(MAKE) -C nand_spl all $(MAKE) -C nand_spl all
$(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin
cat nand_spl/u-boot-spl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin cat nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
version: version:
@echo -n "#define U_BOOT_VERSION \"U-Boot " > $(VERSION_FILE); \ @echo -n "#define U_BOOT_VERSION \"U-Boot " > $(VERSION_FILE); \

@ -33,4 +33,28 @@ is set up. While still running from cache, I experienced problems accessing
the NAND controller. the NAND controller.
Example: Build and install NAND boot image for Sequoia (440EPx):
a) Configure for sequoia with NAND boot support:
# make sequoia_nand_config
b) Build image(s)
# make
This will generate the SPL image in the "nand_spl" directory:
nand_spl/u-boot-spl.bin
Also another image is created spanning a whole NAND block (16kBytes):
nand_spl/u-boot-spl-16k.bin
The main NAND U-Boot image is generated in the toplevel directory:
u-boot.bin
A combined image of u-boot-spl-16k.bin and u-boot.bin is also created:
u-boot-nand.bin
This image should be programmed at offset 0 in the NAND flash:
# tftp 100000 /tftpboot/sequoia/u-boot-nand.bin
# nand erase 0 60000
# nand write 100000 0 60000
September 07 2006, Stefan Roese <sr@denx.de> September 07 2006, Stefan Roese <sr@denx.de>

@ -35,11 +35,11 @@ COBJS = nand_boot.o ndfc.o sdram.o
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
ALL = u-boot-spl u-boot-spl.bin u-boot-spl-4k.bin ALL = u-boot-spl u-boot-spl.bin u-boot-spl-16k.bin
all: $(obj).depend $(ALL) all: $(obj).depend $(ALL)
u-boot-spl-4k.bin: u-boot-spl u-boot-spl-16k.bin: u-boot-spl
$(OBJCOPY) ${OBJCFLAGS} --pad-to=$(PAD_TO) -O binary $< $@ $(OBJCOPY) ${OBJCFLAGS} --pad-to=$(PAD_TO) -O binary $< $@
u-boot-spl.bin: u-boot-spl u-boot-spl.bin: u-boot-spl

Loading…
Cancel
Save