[U-Boot] [PATCH v2 3/3] am335x_evm: Add more variables and switch to DT booting.

Peter Korsgaard jacmet at sunsite.dk
Wed Mar 13 16:06:55 CET 2013


>>>>> "Tom" == Tom Rini <trini at ti.com> writes:

Hi,

 Tom> From: Koen Kooi <koen at dominion.thruhere.net>
 Tom> Make bootcmd run findfdt so that we know what dtb file to load.  Add a
 Tom> loadfdt command to load this file in.  Make mmcboot pass in ${fdtaddr}
 Tom> and make the mmc section of bootcmd run loadfdt.

 Tom> Signed-off-by: Koen Kooi <koen at dominion.thruhere.net>
 Tom> Signed-off-by: Tom Rini <trini at ti.com>
 Tom> ---
 Tom>  include/configs/am335x_evm.h |   11 ++++++++---
 Tom>  1 file changed, 8 insertions(+), 3 deletions(-)

 Tom> diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
 Tom> index ec4ddbc..c7179cd 100644
 Tom> --- a/include/configs/am335x_evm.h
 Tom> +++ b/include/configs/am335x_evm.h
 Tom> @@ -54,7 +54,8 @@
 Tom>  	"fdtaddr=0x80F80000\0" \
 Tom>  	"fdt_high=0xffffffff\0" \
 Tom>  	"rdaddr=0x81000000\0" \
 Tom> -	"bootfile=/boot/uImage\0" \
 Tom> +	"bootdir=/boot\0" \
 Tom> +	"bootfile=uImage\0" \
 Tom>  	"fdtfile=\0" \
 Tom>  	"console=ttyO0,115200n8\0" \
 Tom>  	"optargs=\0" \
 Tom> @@ -77,10 +78,11 @@
 Tom>  		"root=${ramroot} " \
 Tom>  		"rootfstype=${ramrootfstype}\0" \
 Tom>  	"loadramdisk=load mmc ${mmcdev} ${rdaddr} ramdisk.gz\0" \
 Tom> -	"loaduimage=load mmc ${bootpart} ${loadaddr} ${bootfile}\0" \
 Tom> +	"loaduimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}\0" \
 Tom> +	"loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}\0" \
 Tom>  	"mmcboot=echo Booting from mmc ...; " \
 Tom>  		"run mmcargs; " \
 Tom> -		"bootm ${loadaddr}\0" \
 Tom> +		"bootm ${loadaddr} - ${fdtaddr}\0" \
 Tom>  	"ramboot=echo Booting from ramdisk ...; " \
 Tom>  		"run ramargs; " \
 Tom>  		"bootm ${loadaddr}\0" \
 Tom> @@ -94,7 +96,9 @@
 Tom>  		"if test $board_name = A335X_SK; then " \
 Tom>  			"setenv fdtfile am335x-evmsk.dtb; fi\0" \
 
 Tom> +

Except for the extra line here,

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

-- 
Bye, Peter Korsgaard


More information about the U-Boot mailing list