TS-7250-V3 u-boot environment: Difference between revisions

From embeddedTS Manuals
(Created page with "The U-Boot environment is stored in the on-board eMMC flash in the /dev/mmcblk0boot0 partition. <source lang=bash> # Print all environment variables env print -a # Sets the...")
 
No edit summary
 
Line 6: Line 6:


# Sets the variable bootdelay to 5 seconds
# Sets the variable bootdelay to 5 seconds
env set bootdelay 5;
env set bootdelay 5


# Variables can also contain commands
# Variables can also contain commands
Line 12: Line 12:


# Execute commands saved in a variable
# Execute commands saved in a variable
env run hellocmd;
env run hellocmd


# Commit env changes to the spi flash
# Commit env changes to the spi flash
Line 22: Line 22:


# Remove a variable
# Remove a variable
env delete emmcboot
env delete hellocmd
</source>
</source>

Latest revision as of 15:36, 19 March 2020

The U-Boot environment is stored in the on-board eMMC flash in the /dev/mmcblk0boot0 partition.

# Print all environment variables
env print -a

# Sets the variable bootdelay to 5 seconds
env set bootdelay 5

# Variables can also contain commands
env set hellocmd 'led 0 off; echo Hello world; led 1 on;'

# Execute commands saved in a variable
env run hellocmd

# Commit env changes to the spi flash
# Otherwise changes are lost
env save

# Restore env to default
env default -a

# Remove a variable
env delete hellocmd