[U-Boot] [PATCH v4 5/5] board/ti/am335x/README: update for NAND boot

Peter Korsgaard jacmet at sunsite.dk
Tue Sep 3 09:18:41 CEST 2013


>>>>> "Pekon" == Pekon Gupta <pekon at ti.com> writes:

 Pekon> NAND boot mode on AM335x EVM has been verified, and steps
 Pekon> to use it has been documented and update in this README

 Pekon> Signed-off-by: Pekon Gupta <pekon at ti.com>
 Pekon> ---
 Pekon>  board/ti/am335x/README | 59 +++++++++++++++++++++++++++++++++++---------------
 Pekon>  1 file changed, 42 insertions(+), 17 deletions(-)

 Pekon> diff --git a/board/ti/am335x/README b/board/ti/am335x/README
 Pekon> index 67b5246..d34cbab 100644
 Pekon> --- a/board/ti/am335x/README
 Pekon> +++ b/board/ti/am335x/README
 Pekon> @@ -20,23 +20,48 @@ NAND
 Pekon>  The AM335x GP EVM ships with a 256MiB NAND available in most profiles.  In
 Pekon>  this example to program the NAND we assume that an SD card has been
 Pekon>  inserted with the files to write in the first SD slot and that mtdparts
 Pekon> -have been configured correctly for the board.  As a time saving measure we
 Pekon> -load MLO into memory in one location, copy it into the three locatations
 Pekon> -that the ROM checks for additional valid copies, then load U-Boot into
 Pekon> -memory.  We then write that whole section of memory to NAND.
 Pekon> -
 Pekon> -U-Boot # mmc rescan
 Pekon> -U-Boot # env default -f -a
 Pekon> -U-Boot # nand erase.chip
 Pekon> -U-Boot # saveenv
 Pekon> -U-Boot # load mmc 0 81000000 MLO
 Pekon> -U-Boot # cp.b 81000000 81020000 20000
 Pekon> -U-Boot # cp.b 81000000 81040000 20000
 Pekon> -U-Boot # cp.b 81000000 81060000 20000
 Pekon> -U-Boot # load mmc 0 81080000 u-boot.img
 Pekon> -U-Boot # nand write 81000000 0 260000
 Pekon> -U-Boot # load mmc 0 ${loadaddr} uImage
 Pekon> -U-Boot # nand write ${loadaddr} kernel 500000
 Pekon> +have been configured correctly for the board. All images are firstl loaded

s/firstl/first/

 Pekon> +into memory, then written to NAND.
 Pekon> +
 Pekon> +Step-1: Building u-boot for NAND boot
 Pekon> +	Set following CONFIGxx options for NAND device.
 Pekon> +	CONFIG_SYS_NAND_PAGE_SIZE	number of main bytes in NAND page
 Pekon> +	CONFIG_SYS_NAND_OOBSIZE		number of OOB bytes in NAND page
 Pekon> +	CONFIG_SYS_NAND_BLOCK_SIZE	number of bytes in NAND erase-block
 Pekon> +	CONFIG_SYS_NAND_ECCPOS		ECC map for NAND page
 Pekon> +	CONFIG_SYS_NAND_ECCSCHEME	ECC scheme used by NAND
 Pekon> +					0 - HAM1_SW
 Pekon> +					1 - HAM1_HW
 Pekon> +					2 - BCH4_SW  (unsupported)
 Pekon> +					3 - BCH4_HW  (unsupported)
 Pekon> +					4 - BCH8_SW
 Pekon> +					5 - BCH8_HW
 Pekon> +
 Pekon> +Step-2: Flashing NAND via MMC/SD
 Pekon> +	# select BOOTSEL to MMC/SD boot and boot from MMC/SD card
 Pekon> +	U-Boot # mmc rescan
 Pekon> +	# erase flash
 Pekon> +	U-Boot # nand erase.chip
 Pekon> +	U-Boot # env default -f -a
 Pekon> +	U-Boot # saveenv
 Pekon> +	# flash MLO. redundant copies of MLO are kept for backup

s/redundant/Redundant/
s/backup/failsafe/

Otherwise it looks good.

Acked-by: Peter Korsgaard <jacmet at sunsite.dk>

-- 
Bye, Peter Korsgaard


More information about the U-Boot mailing list