No saveenv command in uboot in all img versions

cv180x_c906# saveenv
Unknown command ‘saveenv’ - try ‘help’

Ideas?

1 Like
cv180x_c906# saveenv 
Saving Environment to SPIFlash... Erasing SPI flash...Writing to SPI flash...done
OK

As above I’m using saveenv in spinor and spinand images successfully. Perhaps the command is disabled in SD and eMMC images, but I do not use those.

1 Like
cv180x_c906# help
?         - alias for 'help'
base      - print or set address offset
bootm     - boot application image from memory
cmp       - memory compare
cp        - memory copy
cvi_update- cvi_update [eth, sd, usb]- check boot status and update if necessary

cvi_utask - bootloader control block command
echo      - echo args to console
efuser    - Read efuse
efuser_dump- Read/Dump efuse
efusew    - Write efuse
efusew_word- Write word to efuse
env       - environment handling commands
exit      - exit script
false     - do nothing, unsuccessfully
fatinfo   - print information about filesystem
fatload   - load binary file from a dos filesystem
fatls     - list files in a directory (default /)
fatmkdir  - create a directory
fatrm     - delete a file
fatsize   - determine a file's size
fatwrite  - write file into a dos filesystem
fstype    - Look up a filesystem type
fstypes   - List supported filesystem types
help      - print command description/usage
ln        - Create a symbolic link
load      - load binary file from a filesystem
loop      - infinite loop on address range
ls        - list files in a directory (default /)
md        - memory display
mm        - memory modify (auto-incrementing address)
mmc       - MMC sub system
mmcinfo   - display MMC info
mw        - memory write (fill)
net       - NET sub-system
nm        - memory modify (constant address)
panic     - Panic with optional message
part      - disk partition related commands
printenv  - print environment variables
random    - fill memory with random pattern
reset     - Perform RESET of the CPU
run       - run commands in an environment variable
save      - save file to a filesystem
setenv    - set environment variables
showvar   - print local hushshell variables
size      - determine a file's size
test      - minimal test like /bin/sh
true      - do nothing, successfully
version   - print monitor, compiler and linker version
cv180x_c906# 

Here’s U-Boot commands list from v1.1.1 Duo SD image.