The envimg is a tool for editing environment variables inside U-Boot image.
For printing a general info of usage this tool execute envimg -?.
Usage: envimg.py [OPTIONS] COMMAND [ARGS]...
Tool for editing environment variables inside U-Boot image
Options:
-v, --version Show the version and exit.
-?, --help Show this message and exit.
Commands:
info List U-Boot environment variables
export Export U-Boot environment variables
replace Replace U-Boot environment variables
update Update U-Boot environment variablesPrint the content of U-Boot environment variables located inside image.
- -?, --help - Show help message and exit
$ envimg info bootcmd= u-boot.imx
Image Name: u-boot.imx
Image Size: 478208 bytes
EnVar Size: 2470 bytes
EnVar Offset: 312273
EnVar Mark: bootcmd=
EnVar Content:
- bootcmd = mmc dev ${mmcdev}; mmc dev ${mmcdev}; if mmc rescan; then run mmcboot; else run netboot; fi;
- bootdelay = 3
- ...Export environment variables from U-Boot image.
- -?, --help - Show help message and exit
$ envimg export bootcmd= u-boot.imx env.txt
Environment variables saved into: env.txtUpdate environment variables inside U-Boot image.
- -f, --fenv - The file with environment variables
- -e, --env - Environment variables
- -?, --help - Show help message and exit
$ envimg update bootcmd= u-boot.imx -e "bootdelay = 6"
Image Name: u-boot.imx
Image Size: 478208 bytes
EnVar Size: 2470 bytes
EnVar Offset: 312273
EnVar Mark: bootcmd=
EnVar Content:
- bootcmd = mmc dev ${mmcdev}; mmc dev ${mmcdev}; if mmc rescan; then run mmcboot; else run netboot; fi;
- bootdelay = 6
- ...Replace environment variables inside U-Boot image.
- -?, --help - Show help message and exit
$ envimg update bootcmd= u-boot.imx env.txt
...