[U-Boot] [PATCH 4/4] configs: ti_omap5_common: Add NAND environment settings

Faiz Abbas faiz_abbas at ti.com
Wed Feb 27 07:48:12 UTC 2019


Hi Tom,

On 22/02/19 4:52 AM, Tom Rini wrote:
> On Wed, Feb 20, 2019 at 03:34:53PM +0530, Faiz Abbas wrote:
> 
>> Now that NAND is supported on DRA71x include various NAND environment
>> settings
>>
>> Signed-off-by: Faiz Abbas <faiz_abbas at ti.com>
> [snip]
>> +#ifdef CONFIG_NAND
>> +#define NANDARGS \
>> +	"mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \
>> +	"mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
>> +	"nandargs=setenv bootargs console=${console} " \
>> +		"${optargs} " \
>> +		"root=${nandroot} " \
>> +		"rootfstype=${nandrootfstype}\0" \
>> +	"nandroot=ubi0:rootfs rw ubi.mtd=NAND.file-system,2048\0" \
>> +	"nandrootfstype=ubifs rootwait=1\0" \
>> +	"nandboot=echo Booting from nand ...; " \
>> +		"run nandargs; " \
>> +		"nand read ${fdtaddr} NAND.u-boot-spl-os; " \
>> +		"nand read ${loadaddr} NAND.kernel; " \
>> +		"bootz ${loadaddr} - ${fdtaddr}\0"
>> +#else
>> +#define NANDARGS ""
>> +#endif
> 
> This kind of stuff needs to fit into include/environment/ti/ somehow,
> not added to, thanks!
> 

Ok. I will create an environment/ti/nand.h

Thanks,
Faiz


More information about the U-Boot mailing list