Thursday, July 23, 2009

U-Boot commands and variables

Common Uboot commands:

  1. print (or printenv): prints one or more uboot variables
  2. set (or setenv): sets a uboot variable
  3. save (or saveenv): saves uboot variables
  4. run: evaluate a uboot variable expression
  5. ping: if Uboot can access NFS server
  6. boot

Common Uboot variables:

  1. bootcmd: where linux kernel should boot from
  2. bootargs: string passed when booting linux kernel
  3. serverip: IP of root file system for NFS boot
  4. nfspath: location on serverip for root filsystem

one example:

setenv hostip
print bootcmd
setenv bootcmd run nfsboot
setenv rootpath /export/${…}/…

another old example:

setenv netmask
setenv ipadd
setenv serverip
setenv gatewayip
tftp 0 …

No comments:

Post a Comment