TS-7250-V3 u-boot environment

From embeddedTS Manuals
Revision as of 15:36, 19 March 2020 by Mark (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 emmcboot