mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
am335x_evm: Add SPI environment variables
* Added variables to support SPI booting * Note that the first 512KiB are reserved for 4 copies of SPL. Signed-off-by: Chase Maupin <Chase.Maupin@ti.com> Signed-off-by: Tom Rini <trini@ti.com>
This commit is contained in:
parent
73c1f4aff0
commit
63ba7c66d9
1 changed files with 14 additions and 0 deletions
|
@ -75,6 +75,15 @@
|
||||||
"${optargs} " \
|
"${optargs} " \
|
||||||
"root=${nandroot} " \
|
"root=${nandroot} " \
|
||||||
"rootfstype=${nandrootfstype}\0" \
|
"rootfstype=${nandrootfstype}\0" \
|
||||||
|
"spiroot=/dev/mtdblock4 rw\0" \
|
||||||
|
"spirootfstype=jffs2\0" \
|
||||||
|
"spisrcaddr=0xe0000\0" \
|
||||||
|
"spiimgsize=0x362000\0" \
|
||||||
|
"spibusno=0\0" \
|
||||||
|
"spiargs=setenv bootargs console=${console} " \
|
||||||
|
"${optargs} " \
|
||||||
|
"root=${spiroot} " \
|
||||||
|
"rootfstype=${spirootfstype}\0" \
|
||||||
"bootenv=uEnv.txt\0" \
|
"bootenv=uEnv.txt\0" \
|
||||||
"loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \
|
"loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \
|
||||||
"importbootenv=echo Importing environment from mmc ...; " \
|
"importbootenv=echo Importing environment from mmc ...; " \
|
||||||
|
@ -93,6 +102,11 @@
|
||||||
"run nandargs; " \
|
"run nandargs; " \
|
||||||
"nand read ${loadaddr} ${nandsrcaddr} ${nandimgsize}; " \
|
"nand read ${loadaddr} ${nandsrcaddr} ${nandimgsize}; " \
|
||||||
"bootm ${loadaddr}\0" \
|
"bootm ${loadaddr}\0" \
|
||||||
|
"spiboot=echo Booting from spi ...; " \
|
||||||
|
"run spiargs; " \
|
||||||
|
"sf probe ${spibusno}:0; " \
|
||||||
|
"sf read ${loadaddr} ${spisrcaddr} ${spiimgsize}; " \
|
||||||
|
"bootm ${loadaddr}\0" \
|
||||||
"ramboot=echo Booting from ramdisk ...; " \
|
"ramboot=echo Booting from ramdisk ...; " \
|
||||||
"run ramargs; " \
|
"run ramargs; " \
|
||||||
"bootm ${loadaddr}\0" \
|
"bootm ${loadaddr}\0" \
|
||||||
|
|
Loading…
Add table
Reference in a new issue