Forums » Software Development »
Added by Manjunath K S almost 5 years ago
Hi ,
How can i read or cat contents of file from uboot.
Regards,
manjunath
u-boot doesn't really have a lot of file io ability.
You can load a file from sd card, tftp, nfs, or nand into memory. But the only way I know to look at it would be with "md" though that will just print the hex values in memory.
If your trying to load a boot environment, check the README.txt
Example which loads a text file into the boot environment:
"bootenv=uEnv.txt" "loadbootenv=load mmc ${mmc_dev} ${loadaddr} ${bootenv}" "importbootenv=echo Importing environment from mmc ...; env import -t $loadaddr $filesize"