Project

General

Profile

Reading contents of a file in Uboot

Added by Manjunath K S about 4 years ago

Hi ,

How can i read or cat contents of file from uboot.

Regards,
manjunath


Replies (1)

RE: Reading contents of a file in Uboot - Added by Jonathan Cormier about 4 years ago

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" 

    (1-1/1)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)