]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
doc: Switch from setenv to env set
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sat, 18 Jul 2026 23:45:48 +0000 (01:45 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 27 Jul 2026 16:50:27 +0000 (18:50 +0200)
The "env" command is the recommended environment management command,
its "set" subcommand is the equivalent replacement for legacy "setenv"
command. Update the documentation to use the contemporary "env set"
command instead of legacy "setenv" command.

Note that the "setenv" command is unlikely to be removed from U-Boot
in the near future due to it being integral part of the command line
ABI.

Implemented using:
$ sed -i 's@\<setenv\>@env set@g' $(git grep -li '\<setenv\>' doc/) README

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
66 files changed:
README
doc/README.console
doc/README.fsl-ddr
doc/README.iomux
doc/README.link-local
doc/README.marvell
doc/README.odroid
doc/README.serial_multi
doc/README.srio-pcie-boot-corenet
doc/README.update
doc/README.usb
doc/README.video
doc/SPL/README.am335x-network
doc/android/avb2.rst
doc/arch/sandbox/sandbox.rst
doc/arch/x86/manual_boot.rst
doc/board/andestech/ae350.rst
doc/board/bsh/imx6ulz_bsh_smm_m2.rst
doc/board/emulation/qemu-x86.rst
doc/board/intel/slimbootloader.rst
doc/board/microchip/mpfs_common.rst
doc/board/nxp/mx6sabreauto.rst
doc/board/nxp/mx6sabresd.rst
doc/board/renesas/rcar-gen5-ironhide.rst
doc/board/samsung/e850-96.rst
doc/board/sifive/unleashed.rst
doc/board/st/stm32mp1.rst
doc/board/starfive/deepcomputing_fml13v01.rst
doc/board/starfive/milk-v_mars.rst
doc/board/starfive/visionfive2.rst
doc/board/ti/am65x_evm.rst
doc/board/ti/dra7xx_evm.rst
doc/board/ti/ks2_evm.rst
doc/board/tq/tqma6ul.rst
doc/board/xilinx/zynqmp-r5.rst
doc/develop/bootstd/overview.rst
doc/develop/distro.rst
doc/develop/uefi/u-boot_on_efi.rst
doc/develop/uefi/uefi.rst
doc/usage/cmd/bootd.rst
doc/usage/cmd/bootefi.rst
doc/usage/cmd/booti.rst
doc/usage/cmd/bootmenu.rst
doc/usage/cmd/button.rst
doc/usage/cmd/cedit.rst
doc/usage/cmd/coninfo.rst
doc/usage/cmd/echo.rst
doc/usage/cmd/eficonfig.rst
doc/usage/cmd/exit.rst
doc/usage/cmd/extension.rst
doc/usage/cmd/for.rst
doc/usage/cmd/gpt.rst
doc/usage/cmd/imxtract.rst
doc/usage/cmd/mbr.rst
doc/usage/cmd/printenv.rst
doc/usage/cmd/saves.rst
doc/usage/cmd/sntp.rst
doc/usage/cmd/tftpput.rst
doc/usage/cmd/wget.rst
doc/usage/cmdline.rst
doc/usage/dfu.rst
doc/usage/environment.rst
doc/usage/fdt_overlays.rst
doc/usage/fit/beaglebone_vboot.rst
doc/usage/fit/howto.rst
doc/usage/os/plan9.rst

diff --git a/README b/README
index af48f68f9461c6796681cbfd04a6e037121bee76..f7ac319c72063dbcb697757ba5f998bb18fc5cda 100644 (file)
--- a/README
+++ b/README
@@ -401,7 +401,7 @@ The following options need to be configured:
 - USB Device:
                Define the below if you wish to use the USB console.
                Once firmware is rebuilt from a serial console issue the
-               command "setenv stdin usbtty; setenv stdout usbtty" and
+               command "env set stdin usbtty; env set stdout usbtty" and
                attach your USB cable. The Unix command "dmesg" should print
                it has found a new device. The environment variable usbtty
                can be set to gserial or cdc_acm to enable your device to
@@ -725,7 +725,7 @@ The following options need to be configured:
                remaining RAM in a form that can be passed as boot
                argument to Linux, for instance like that:
 
-                       setenv bootargs ... mem=\${mem}
+                       env set bootargs ... mem=\${mem}
                        saveenv
 
                This way you can tell Linux not to use this memory,
@@ -754,7 +754,7 @@ The following options need to be configured:
                directly type `$name' at the command prompt.
 
                Global environment variables are those you use
-               setenv/printenv to work with. To run a command stored
+               env set/printenv to work with. To run a command stored
                in such a variable, you need to use the run command,
                and you must not use the '$' sign to access them.
 
@@ -1655,13 +1655,13 @@ The "bootm" command is used to boot an application that is stored in
 memory (RAM or Flash). In case of a Linux kernel image, the contents
 of the "bootargs" environment variable is passed to the kernel as
 parameters. You can check and modify this variable using the
-"printenv" and "setenv" commands:
+"printenv" and "env set" commands:
 
 
        => printenv bootargs
        bootargs=root=/dev/ram
 
-       => setenv bootargs root=/dev/nfs rw nfsroot=10.0.0.2:/LinuxPPC nfsaddrs=10.0.0.99:10.0.0.2
+       => env set bootargs root=/dev/nfs rw nfsroot=10.0.0.2:/LinuxPPC nfsaddrs=10.0.0.99:10.0.0.2
 
        => printenv bootargs
        bootargs=root=/dev/nfs rw nfsroot=10.0.0.2:/LinuxPPC nfsaddrs=10.0.0.99:10.0.0.2
index 9f5812c89d13407ed40ceec80baabf1d0b627523..d6a2821ab683cf273e70711a20f8afffdee1bd92 100644 (file)
@@ -24,8 +24,8 @@ stdout or stderr) to any device you see in that list simply by
 assigning its name to the corresponding environment variable. For
 example:
 
-    setenv stdin serial                <- To use the serial input
-    setenv stdout video                <- To use the video console
+    env set stdin serial               <- To use the serial input
+    env set stdout video               <- To use the video console
 
 Do a simple "saveenv" to save the console settings in the environment
 and get them working on the next startup, too.
index f44bb2aa25d4865157e9eb12edc67523003ce9af..04b26de4901a470dc5b6d0582533d81f85134b11 100644 (file)
@@ -61,50 +61,50 @@ The ways to configure the ddr interleaving mode
         "hwconfig=fsl_ddr:ctlr_intlv=bank"                     \
         ......
 
-2. Run U-Boot "setenv" command to configure the memory interleaving mode.
+2. Run U-Boot "env set" command to configure the memory interleaving mode.
    Either numerical or string value is accepted.
 
   # disable memory controller interleaving
-  setenv hwconfig "fsl_ddr:ctlr_intlv=null"
+  env set hwconfig "fsl_ddr:ctlr_intlv=null"
 
   # cacheline interleaving
-  setenv hwconfig "fsl_ddr:ctlr_intlv=cacheline"
+  env set hwconfig "fsl_ddr:ctlr_intlv=cacheline"
 
   # page interleaving
-  setenv hwconfig "fsl_ddr:ctlr_intlv=page"
+  env set hwconfig "fsl_ddr:ctlr_intlv=page"
 
   # bank interleaving
-  setenv hwconfig "fsl_ddr:ctlr_intlv=bank"
+  env set hwconfig "fsl_ddr:ctlr_intlv=bank"
 
   # superbank
-  setenv hwconfig "fsl_ddr:ctlr_intlv=superbank"
+  env set hwconfig "fsl_ddr:ctlr_intlv=superbank"
 
   # 1KB 3-way interleaving
-  setenv hwconfig "fsl_ddr:ctlr_intlv=3way_1KB"
+  env set hwconfig "fsl_ddr:ctlr_intlv=3way_1KB"
 
   # 4KB 3-way interleaving
-  setenv hwconfig "fsl_ddr:ctlr_intlv=3way_4KB"
+  env set hwconfig "fsl_ddr:ctlr_intlv=3way_4KB"
 
   # 8KB 3-way interleaving
-  setenv hwconfig "fsl_ddr:ctlr_intlv=3way_8KB"
+  env set hwconfig "fsl_ddr:ctlr_intlv=3way_8KB"
 
   # disable bank (chip-select) interleaving
-  setenv hwconfig "fsl_ddr:bank_intlv=null"
+  env set hwconfig "fsl_ddr:bank_intlv=null"
 
   # bank(chip-select) interleaving cs0+cs1
-  setenv hwconfig "fsl_ddr:bank_intlv=cs0_cs1"
+  env set hwconfig "fsl_ddr:bank_intlv=cs0_cs1"
 
   # bank(chip-select) interleaving cs2+cs3
-  setenv hwconfig "fsl_ddr:bank_intlv=cs2_cs3"
+  env set hwconfig "fsl_ddr:bank_intlv=cs2_cs3"
 
   # bank(chip-select) interleaving (cs0+cs1) and (cs2+cs3)  (2x2)
-  setenv hwconfig "fsl_ddr:bank_intlv=cs0_cs1_and_cs2_cs3"
+  env set hwconfig "fsl_ddr:bank_intlv=cs0_cs1_and_cs2_cs3"
 
   # bank(chip-select) interleaving (cs0+cs1+cs2+cs3) (4x1)
-  setenv hwconfig "fsl_ddr:bank_intlv=cs0_cs1_cs2_cs3"
+  env set hwconfig "fsl_ddr:bank_intlv=cs0_cs1_cs2_cs3"
 
   # bank(chip-select) interleaving (auto)
-  setenv hwconfig "fsl_ddr:bank_intlv=auto"
+  env set hwconfig "fsl_ddr:bank_intlv=auto"
   This auto mode only select from cs0_cs1_cs2_cs3, cs0_cs1, null dependings
   on DIMMs.
 
index c428811ce4c0a13f2c31ae09f3839685ebbd04b4..a26171b9749c61d2dbdaec0aae53d72e0e2e4954 100644 (file)
@@ -16,12 +16,12 @@ configuration file.
 Two new files, common/iomux.c and include/iomux.h, contain the heart
 (iomux_doenv()) of the environment setting implementation.
 
-iomux_doenv() is called in common/cmd_nvedit.c to handle setenv and in
+iomux_doenv() is called in common/cmd_nvedit.c to handle env set and in
 common/console.c in console_init_r() during bootup to initialize
 stdio_devices[].
 
 A user can use a comma-separated list of devices to set stdin, stdout
-and stderr.  For example: "setenv stdin serial,nc".  NOTE: No spaces
+and stderr.  For example: "env set stdin serial,nc".  NOTE: No spaces
 are allowed around the comma(s)!
 
 The length of the list is limited by malloc(), since the array used
@@ -31,7 +31,7 @@ It should be possible to specify any device which console_assign()
 finds acceptable, but the code has only been tested with serial and
 nc.
 
-iomux_doenv() prevents multiple use of the same device, e.g. "setenv
+iomux_doenv() prevents multiple use of the same device, e.g. "env set
 stdin nc,nc,serial" will discard the second nc.  iomux_doenv() is
 not able to modify the environment, however, so that "pri stdin" still
 shows "nc,nc,serial".
index ec2ef940e4c80ffd6b0922e26ad3db5ee23f56d7..53f4db1cb0c2f74f942db159e527ab60e7bfd51e 100644 (file)
@@ -69,7 +69,7 @@ If both fail or are disabled, static settings are used.
                "if test \\\"$llfail\\\" -ne 0 -a "                     \
                        "\\\"$dhcpfail\\\" -ne 0; "                     \
                "then "                                                 \
-                       "setenv ipaddr $sipaddr; "                      \
-                       "setenv netmask $snetmask; "                    \
-                       "setenv gatewayip $sgatewayip; "                \
+                       "env set ipaddr $sipaddr; "                     \
+                       "env set netmask $snetmask; "                   \
+                       "env set gatewayip $sgatewayip; "               \
                "fi;\0"                                                 \
index 6fc5ac8a4093dc5f20b1c2de5ba94dbcd0817d41..ea6a8df7019b0156ea8a3d392d3777bc71cf9ccd 100644 (file)
@@ -82,10 +82,10 @@ Permanent ethernet MAC address
        and then set correct permanent ethernet MAC addresses.
 
                # env default -a
-               # setenv ethaddr XX:XX:XX:XX:XX:XX
-               # setenv eth1addr XX:XX:XX:XX:XX:XX
-               # setenv eth2addr YY:YY:YY:YY:YY:YY
-               # setenv eth3addr ZZ:ZZ:ZZ:ZZ:ZZ:ZZ
+               # env set ethaddr XX:XX:XX:XX:XX:XX
+               # env set eth1addr XX:XX:XX:XX:XX:XX
+               # env set eth2addr YY:YY:YY:YY:YY:YY
+               # env set eth3addr ZZ:ZZ:ZZ:ZZ:ZZ:ZZ
                # ...
                # saveenv
 
index 6eb7e67474dd00faa3cd65e9e50426812053f6a1..f0592dd57fc6a43fc0050580a09a2fdfcb435e64 100644 (file)
@@ -168,13 +168,13 @@ NOTE: This section is only for Odroid X2/U3.
 The ethernet can be accessed after starting the USB subsystem in U-Boot.
 The adapter does not come with a preconfigured MAC address, and hence it needs
 to be set before starting USB.
-setenv usbethaddr 02:DE:AD:BE:EF:FF
+env set usbethaddr 02:DE:AD:BE:EF:FF
 
 Note that in this example a locally managed MAC address is chosen. Care should
 be taken to make these MAC addresses unique within the same subnet.
 
 Start the USB subsystem:
-Odroid # setenv usbethaddr 02:DE:AD:BE:EF:FF
+Odroid # env set usbethaddr 02:DE:AD:BE:EF:FF
 Odroid # usb start
 (Re)start USB...
 USB0:   USB EHCI 1.00
@@ -187,10 +187,10 @@ Automatic IP assignment:
 ------------------------
 If the ethernet is connected to a DHCP server (router maybe with DHCP enabled),
 then the below will automatically assign an ip address through DHCP.
-setenv autoload no
+env set autoload no
 dhcp
 
-Odroid # setenv autoload no
+Odroid # env set autoload no
 Odroid # dhcp
 Waiting for Ethernet connection... done.
 BOOTP broadcast 1
@@ -219,7 +219,7 @@ Static IP assignment:
 ---------------------
 In the case where there are no DHCP servers in the network, or you want to
 set the IP address statically, it can be done by:
-Odroid # setenv ipaddr 192.168.1.10
+Odroid # env set ipaddr 192.168.1.10
 Odroid # ping 192.168.1.27
 Waiting for Ethernet connection... done.
 Using sms0 device
@@ -230,9 +230,9 @@ TFTP booting:
 Say there exists a tftp server in the network with address 192.168.1.27 and
 it serves a kernel image (zImage.3.17) and a DTB blob (exynos4412-odroidu3.dtb)
 that needs to be loaded and booted. It can be accomplished as below:
-(Assumes that you have setenv usbethaddr, and have not set autoload to no)
+(Assumes that you have env set usbethaddr, and have not set autoload to no)
 
-Odroid # setenv serverip 192.168.1.27
+Odroid # env set serverip 192.168.1.27
 Odroid # tftpboot 0x40080000 zImage.3.17
 Waiting for Ethernet connection... done.
 Using sms0 device
@@ -258,7 +258,7 @@ done
 Bytes transferred = 46935 (b757 hex)
 Odroid # printenv bootargs
 bootargs=Please use defined boot
-Odroid # setenv bootargs console=ttySAC1,115200n8 root=/dev/mmcblk0p2 rootwait
+Odroid # env set bootargs console=ttySAC1,115200n8 root=/dev/mmcblk0p2 rootwait
 Odroid # bootz 40080000 - 42000000
 Kernel image @ 0x40080000 [ 0x000000 - 0x30bd58 ]
 ## Flattened Device Tree blob at 42000000
@@ -318,7 +318,7 @@ Odroid # load usb 0:2 40080000 /boot/zImage.3.17
 3194200 bytes read in 471 ms (6.5 MiB/s)
 Odroid # load usb 0:2 42000000 /boot/exynos4412-odroidu3.dtb
 46935 bytes read in 233 ms (196.3 KiB/s)
-Odroid # setenv bootargs console=ttySAC1,115200n8 root=/dev/sda2 rootwait
+Odroid # env set bootargs console=ttySAC1,115200n8 root=/dev/sda2 rootwait
 Odroid # bootz 40080000 - 42000000
 Kernel image @ 0x40080000 [ 0x000000 - 0x30bd58 ]
 ## Flattened Device Tree blob at 42000000
index 0446fe95937aeb72fa85060f89bc4a66e15a018b..b82678e1ea38afcd829b58486491e9e47e1f2662 100644 (file)
@@ -16,15 +16,15 @@ in the works).
 
 *) The console can be switched to SCC by any of the following commands:
 
-       setenv stdout serial_scc
-       setenv stdin serial_scc
-       setenv stderr serial_scc
+       env set stdout serial_scc
+       env set stdin serial_scc
+       env set stderr serial_scc
 
 *) The console can be switched to SMC by any of the following commands:
 
-       setenv stdout serial_smc
-       setenv stdin serial_smc
-       setenv stderr serial_smc
+       env set stdout serial_smc
+       env set stdin serial_smc
+       env set stderr serial_smc
 
 *) If a file descriptor is set to "serial" then the current serial device
 will be used which, in turn, can be switched by above commands.
@@ -32,7 +32,7 @@ will be used which, in turn, can be switched by above commands.
 *) The baudrate is the same for all serial devices. But it can be switched
 just after switching the console:
 
-       setenv sout serial_scc; setenv baudrate 38400
+       env set sout serial_scc; env set baudrate 38400
 
 After that press 'enter' at the SCC console. Note that baudrates <38400
 are not allowed on LWMON with watchdog enabled (see CFG_SYS_BAUDRATE_TABLE in
@@ -44,11 +44,11 @@ PPC4XX Specific
 *) The default console is UART0
 
 *) The console can be switched to UART1 by any of the following commands:
-       setenv stdout serial1
-       setenv stderr serial1
-       setenv stdin serial1
+       env set stdout serial1
+       env set stderr serial1
+       env set stdin serial1
 
 *) The console can be switched to UART0 by any of the following commands:
-       setenv stdout serial0
-       setenv stderr serial0
-       setenv stdin serial0
+       env set stdout serial0
+       env set stderr serial0
+       env set stdin serial0
index 2b1f76b8d0287a993df33f9c0d72c72564ffddd9..5625ad1a2bb3a1cabc73895ea252185648fe7d35 100644 (file)
@@ -54,9 +54,9 @@ The example based on P4080DS platform:
                   NorFlash.
                c) Set environment variable "bootmaster" to "SRIO1" or "PCIE1" and save
                   environment for master.
-                                       setenv bootmaster SRIO1
+                                       env set bootmaster SRIO1
                                or
-                                       setenv bootmaster PCIE1
+                                       env set bootmaster PCIE1
                                        saveenv
                d) Restart up master and it will boot up normally from its NorFlash.
                   Then, it will finish necessary configurations for slave's boot from
index f16b2d23af185d3307ed367d04133220b1b426e9..d060d3431e646204fe89dc82639f00f12f0ce6f0 100644 (file)
@@ -71,7 +71,7 @@ Example .its files
   '/tftpboot/update_uboot.itb', and set the 'updatefile' variable
   appropriately, for example in the U-Boot prompt:
 
-  setenv updatefile /tftpboot/update_uboot.itb
+  env set updatefile /tftpboot/update_uboot.itb
   saveenv
 
   Now, when the system boots up and the update TFTP server specified in the
index 650a6daae0a55d2e1ad948e3a09d879bc96c3357..2ceb417db584fc766d0919959bb5326811fff38b 100644 (file)
@@ -118,7 +118,7 @@ The normal U-Boot commands are used with USB networking, but you must
 start USB first. For example:
 
 usb start
-setenv bootfile /tftpboot/uImage
+env set bootfile /tftpboot/uImage
 bootp
 
 
index ced35bd2db55dcb3781dd333e909395334e51b59..93a99f4e8a31d631d20e732e92bff73d42c98b07 100644 (file)
@@ -74,7 +74,7 @@ The sunxi U-Boot driver supports the following video-mode options:
 
 For example to always use the hdmi connector, even if no cable is inserted,
 using edid info when available and otherwise initalizing it at 1024x768@60Hz,
-use: "setenv video-mode sunxi:1024x768-24@60,monitor=dvi,hpd=0,edid=1".
+use: "env set video-mode sunxi:1024x768-24@60,monitor=dvi,hpd=0,edid=1".
 
 
 TrueType fonts
index 9599729d8f9617fb09405a7ec8bf1dcafda8850b..3344898655e14d73be1336ed82814e917236ae21 100644 (file)
@@ -19,7 +19,7 @@ comes with support for network booting preconfigured.
  2. Define CONFIG_BOOTCOMMAND for your board to load and run debrick
 script after boot:
 #define CONFIG_BOOTCOMMAND                                     \
-       "setenv autoload no; "                                  \
+       "env set autoload no; "                                 \
        "bootp; "                                               \
        "if tftp 80000000 debrick.scr; then "                   \
                "source 80000000; "                             \
index 4aca7a5c660ff3dd54e3548092a3e033852de675..3ad450c080a93a21b5cf9a0a03304b00748e6387 100644 (file)
@@ -128,7 +128,7 @@ After flashing U-Boot don't forget to update environment and write new
 partition table::
 
    => env default -f -a
-   => setenv partitions $partitions_android
+   => env set partitions $partitions_android
    => env save
    => gpt write mmc 1 $partitions_android
 
index 0aad7a57b5eb85baed8e4f789f7c795686a799d3..9ea2e732898637ded2e11418bf908541f3f91bc9 100644 (file)
@@ -277,28 +277,28 @@ operations being tested on the eth0 interface.
    DHCP
    ....
 
-   setenv autoload no
-   setenv ethrotate no
-   setenv ethact eth1
+   env set autoload no
+   env set ethrotate no
+   env set ethact eth1
    dhcp
 
    PING
    ....
 
-   setenv autoload no
-   setenv ethrotate no
-   setenv ethact eth1
+   env set autoload no
+   env set ethrotate no
+   env set ethact eth1
    dhcp
    ping $gatewayip
 
    TFTP
    ....
 
-   setenv autoload no
-   setenv ethrotate no
-   setenv ethact eth1
+   env set autoload no
+   env set ethrotate no
+   env set ethact eth1
    dhcp
-   setenv serverip WWW.XXX.YYY.ZZZ
+   env set serverip WWW.XXX.YYY.ZZZ
    tftpboot u-boot.bin
 
 The bridge also supports (to a lesser extent) the localhost interface, 'lo'.
@@ -322,8 +322,8 @@ operation being tested on the lo interface.
    TFTP
    ....
 
-   setenv ethrotate no
-   setenv ethact eth5
+   env set ethrotate no
+   env set ethact eth5
    tftpboot u-boot.bin
 
 
index ec069f2c3972b4aa3eae9c88b1f4a20dc7fe191b..87ebda2e3dd49b24d8b6adc2808f05a4b62bec7b 100644 (file)
@@ -136,7 +136,7 @@ To boot Ubuntu from U-Boot the steps are as follows:
 
 1. Set up the boot arguments. Use the GUID for the partition you want to boot::
 
-   => setenv bootargs root=/dev/disk/by-partuuid/965c59ee-1822-4326-90d2-b02446050059 ro
+   => env set bootargs root=/dev/disk/by-partuuid/965c59ee-1822-4326-90d2-b02446050059 ro
 
 Here root= tells Linux the location of its root disk. The disk is specified
 by its GUID, using '/dev/disk/by-partuuid/', a Linux path to a 'directory'
@@ -229,7 +229,7 @@ You should also see your boot disk turn up::
 Linux has found the three partitions (sda1-3). Mercifully it doesn't print out
 the GUIDs. In step 1 above we could have used::
 
-   setenv bootargs root=/dev/sda2 ro
+   env set bootargs root=/dev/sda2 ro
 
 instead of the GUID. However if you add another drive to your board the
 numbering may change whereas the GUIDs will not. So if your boot partition
@@ -245,12 +245,12 @@ After a pause you should see a login screen on your display and you are done.
 
 If you want to put this in a script you can use something like this::
 
-   setenv bootargs root=UUID=b2aaf743-0418-4d90-94cc-3e6108d7d968 ro
-   setenv boot zboot 03000000 0 04000000 \${filesize}
-   setenv bootcmd "ext2load scsi 0:2 03000000 /boot/vmlinuz-3.13.0-58-generic; ext2load scsi 0:2 04000000 /boot/initrd.img-3.13.0-58-generic; run boot"
+   env set bootargs root=UUID=b2aaf743-0418-4d90-94cc-3e6108d7d968 ro
+   env set boot zboot 03000000 0 04000000 \${filesize}
+   env set bootcmd "ext2load scsi 0:2 03000000 /boot/vmlinuz-3.13.0-58-generic; ext2load scsi 0:2 04000000 /boot/initrd.img-3.13.0-58-generic; run boot"
    saveenv
 
-The \ is to tell the shell not to evaluate ${filesize} as part of the setenv
+The \ is to tell the shell not to evaluate ${filesize} as part of the env set
 command.
 
 You can also bake this behaviour into your build by hard-coding the
index 99622fd3258c8bbcd5330cd550e1482c0f6ee977..28f05c9d9cd36e80ce1d7e53f5d5b1e4cebc667a 100644 (file)
@@ -108,8 +108,8 @@ Messages of U-Boot boot on AE350 board
    riscv32-unknown-linux-gnu-gcc (GCC) 7.2.0
    GNU ld (GNU Binutils) 2.29
 
-   RISC-V # setenv ipaddr 10.0.4.200 ;
-   RISC-V # setenv serverip 10.0.4.97 ;
+   RISC-V # env set ipaddr 10.0.4.200 ;
+   RISC-V # env set serverip 10.0.4.97 ;
    RISC-V # ping 10.0.4.97 ;
    Using mac@e0100000 device
    host 10.0.4.97 is alive
@@ -224,8 +224,8 @@ Boot bbl and riscv-linux via U-Boot on QEMU
    17901268 bytes read in 4642 ms (3.7 MiB/s)
    RISC-V # fatload mmc 0:0 0x2000000 ae350.dtb
    1954 bytes read in 1 ms (1.9 MiB/s)
-   RISC-V # setenv bootm_size 0x2000000
-   RISC-V # setenv fdt_high 0x1f00000
+   RISC-V # env set bootm_size 0x2000000
+   RISC-V # env set fdt_high 0x1f00000
    RISC-V # bootm 0x00600000 - 0x2000000
    ## Booting kernel from Legacy Image at 00600000 ...
       Image Name:
index 0af41c09d201f3004e3051d158041fb339f74b6b..6210d6144a2d0521dee011301e5a67d382aea842 100644 (file)
@@ -76,9 +76,9 @@ where nand_script.lst contains the following:
    SDPV: jump
    # }
 
-   FB: ucmd setenv fastboot_buffer ${loadaddr}
+   FB: ucmd env set fastboot_buffer ${loadaddr}
    FB: download -f _image
-   FB: ucmd if test ! -n "$fastboot_bytes"; then setenv fastboot_bytes $filesize; else true; fi
+   FB: ucmd if test ! -n "$fastboot_bytes"; then env set fastboot_bytes $filesize; else true; fi
    # Burn image to nandfit partition if needed
    FB: ucmd if env exists nandfit_part; then nand erase.part nandfit; nand write ${fastboot_buffer} nandfit ${fastboot_bytes}; else true; fi;
    FB: ucmd nandbcb init ${fastboot_buffer} nandboot ${fastboot_bytes}
index c604e42990ed3757ecd99d377a5accc74559d262..cca6a239807f98aac143fffe3e86090458c55a42 100644 (file)
@@ -62,7 +62,7 @@ script.
 For example, Debian (stretch) can be booted by creating a script file named
 'boot.txt' with the contents::
 
-   setenv bootargs root=/dev/sda1 ro
+   env set bootargs root=/dev/sda1 ro
    load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} /vmlinuz
    load ${devtype} ${devnum}:${distro_bootpart} ${ramdisk_addr_r} /initrd.img
    zboot ${kernel_addr_r} - ${ramdisk_addr_r} ${filesize}
index a1d9102859b7dfbc525fce040b3ae14799d43426..5fea134b5f25a47c22109dd5d587966b26768d66 100644 (file)
@@ -104,8 +104,8 @@ Download it from http://downloads.yoctoproject.org/releases/yocto/yocto-2.0/mach
 
 3. Update boot environment values on shell::
 
-   => setenv bootfile vmlinuz
-   => setenv bootdev scsi
+   => env set bootfile vmlinuz
+   => env set bootdev scsi
    => boot
 
 Build Instruction for Slim Bootloader for LeafHill (APL) target
index edbaf0439665e34768f78383f97d85499f6390d6..5d7263d4b8d88b72ec0f24d98e8b57fd5bd188de 100644 (file)
@@ -78,13 +78,13 @@ load uImage (with initramfs).
 
 .. code-block:: none
 
-   RISC-V # setenv kernel_addr_r 0x80200000
-   RISC-V # setenv fdt_addr_r 0x82200000
+   RISC-V # env set kernel_addr_r 0x80200000
+   RISC-V # env set fdt_addr_r 0x82200000
 
-   RISC-V # setenv ipaddr 192.168.1.5
-   RISC-V # setenv netmask 255.255.255.0
-   RISC-V # setenv serverip 192.168.1.3
-   RISC-V # setenv gateway 192.168.1.1
+   RISC-V # env set ipaddr 192.168.1.5
+   RISC-V # env set netmask 255.255.255.0
+   RISC-V # env set serverip 192.168.1.3
+   RISC-V # env set gateway 192.168.1.1
 
    RISC-V # tftpboot ${kernel_addr_r} uImage
    ethernet@20112000: PHY present at 9
index fe4cd9d2141b6bee5fa6b543a47c7beabef4f24d..f7477b4040eecd79cbaf3f7efa8d465b12fc2cce 100644 (file)
@@ -87,7 +87,7 @@ To configure Falcon mode for the first time, on U-Boot do the following commands
 
 - Setup kernel bootargs::
 
-   # setenv bootargs "console=ttymxc3,115200 root=/dev/mmcblk0p1 rootfstype=ext4 rootwait quiet rw"
+   # env set bootargs "console=ttymxc3,115200 root=/dev/mmcblk0p1 rootfstype=ext4 rootwait quiet rw"
 
 - Prepare args::
 
index c9869f4a73a2e7b5a26927a33d6a14f061e3fb60..27ddf9073e53e871ab15fb6feab29790e39274d1 100644 (file)
@@ -103,7 +103,7 @@ To configure Falcon mode for the first time, on U-Boot do the following commands
 
 - Setup the IP server::
 
-   # setenv serverip <server_ip_address>
+   # env set serverip <server_ip_address>
 
 - Download dtb file::
 
@@ -119,7 +119,7 @@ To configure Falcon mode for the first time, on U-Boot do the following commands
 
 - Setup kernel bootargs::
 
-   # setenv bootargs "console=ttymxc0,115200 root=/dev/mmcblk1p1 rootfstype=ext4 rootwait quiet rw"
+   # env set bootargs "console=ttymxc0,115200 root=/dev/mmcblk1p1 rootfstype=ext4 rootwait quiet rw"
 
 - Prepare args::
 
index 39fbfdbfe00fae83f343e37b8f5d4c7c7971c811..c9dce20c2e658dc5d1da0855d6a8fa364770390b 100644 (file)
@@ -164,9 +164,9 @@ via TFTP in the same manner as the other components are downloaded:
             base 0
 
     rsip_ipl_boot_ca0= /* Start TFA BL31, OPTEE-OS, U-Boot, Linux on Cortex-A720AE core 0 */   \
-            setenv ipaddr 192.168.1.10 &&                                                      \
-            setenv serverip 192.168.1.1 &&                                                     \
-            setenv netmask 255.255.255.0 &&                                                    \
+            env set ipaddr 192.168.1.10 &&                                                     \
+            env set serverip 192.168.1.1 &&                                                    \
+            env set netmask 255.255.255.0 &&                                                   \
                                                                                                \
             tftp ${rsip_ipl_scp_ep} scp.bin &&                                                 \
             tftp ${rsip_ipl_tfa_ep} bl31.bin &&                                                \
@@ -183,7 +183,6 @@ via TFTP in the same manner as the other components are downloaded:
             rproc load 13 ${rsip_ipl_tfa_ep} 4 &&          /* Set up Cortex-A720AE Core 0 */   \
             rproc start 13                                 /* Start Cortex-A720AE Core 0 */
 
-
 .. note::
 
     U-Boot on RSIP environment is not persistent across reboots,
index 3174a7daff962608c55eb29e55809a5fcf47a449..d980f2faf0283973d4616401134f903b7c84c064 100644 (file)
@@ -205,8 +205,8 @@ Use ``$partitions_android`` as current partition definitions:
 
 .. prompt:: bash =>
 
-  setenv partitions_linux $partitions
-  setenv partitions $partitions_android
+  env set partitions_linux $partitions
+  env set partitions $partitions_android
   env save
 
 Format eMMC to have Android partition table:
@@ -586,17 +586,17 @@ First, prepare the ``boot.txt`` file with OS boot instructions, for example:
 
 .. code-block:: bash
 
-  setenv mmcroot     2
-  setenv console     ttySAC0,115200n8
-  setenv kernel_file Image
-  setenv fdtfile     exynos/exynos850-e850-96.dtb
-  setenv loadaddr    0x80000000
-  setenv fdt_addr_r  0x8c000000
+  env set mmcroot     2
+  env set console     ttySAC0,115200n8
+  env set kernel_file Image
+  env set fdtfile     exynos/exynos850-e850-96.dtb
+  env set loadaddr    0x80000000
+  env set fdt_addr_r  0x8c000000
 
   echo Booting Linux from eMMC...
   mmc dev $mmcdev
   mmc rescan
-  setenv bootargs console=$console root=/dev/mmcblk${mmcdev}p${mmcroot} rootwait rw
+  env set bootargs console=$console root=/dev/mmcblk${mmcdev}p${mmcroot} rootwait rw
   load mmc $mmcdev:$mmcroot $fdt_addr_r /boot/$fdtfile
   load mmc $mmcdev:$mmcroot $loadaddr /boot/$kernel_file
   booti $loadaddr - $fdt_addr_r
@@ -735,7 +735,7 @@ defined in ``$partitions``, it's enough to only set ``$bootdev`` like this:
 
 .. prompt:: bash =>
 
-  setenv bootdev usb
+  env set bootdev usb
   env save
 
 Another thing to be aware of: in order to perform USB boot the USB PHY kernel
@@ -808,7 +808,7 @@ Follow the instructions below to boot from a USB storage device:
 
    .. prompt:: bash =>
 
-     setenv bootdev usb
+     env set bootdev usb
      env save
 
 6. Erase eMMC partition table to make U-Boot use ESP from USB drive:
index ce38b701d78d8a910cb4c0e73f2676ccce9ebe5f..94554f5c3ae8a3072f7e3a87cc4a13bf42ff1162 100644 (file)
@@ -124,10 +124,10 @@ load uImage.
 
 .. code-block:: none
 
-   => setenv ipaddr 10.206.7.133
-   => setenv netmask 255.255.252.0
-   => setenv serverip 10.206.4.143
-   => setenv gateway 10.206.4.1
+   => env set ipaddr 10.206.7.133
+   => env set netmask 255.255.252.0
+   => env set serverip 10.206.4.143
+   => env set gateway 10.206.4.1
 
 If you want to use a flat kernel image such as Image file
 
@@ -256,7 +256,7 @@ as well.
             1000 Bytes/s
    done
    Bytes transferred = 5614 (15ee hex)
-   => setenv bootargs "root=/dev/ram rw console=ttySIF0 ip=dhcp earlycon=sbi"
+   => env set bootargs "root=/dev/ram rw console=ttySIF0 ip=dhcp earlycon=sbi"
    => booti ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}
    ## Loading init Ramdisk from Legacy Image at 88300000 ...
       Image Name:   Linux RootFS
index 8cf7129923360d1ed98970ea6ecd49997bd9756a..203843a274bef7fd843483fcb705fc63306dbf3a 100644 (file)
@@ -572,7 +572,7 @@ Then you update the eMMC with the next U-Boot command :
 a) prepare GPT on eMMC,
    example with 3 partitions, fip, bootfs and roots::
 
-    # setenv emmc_part "name=fip,size=4MiB;name=bootfs,type=linux,bootable,size=64MiB;name=rootfs,type=linux,size=512"
+    # env set emmc_part "name=fip,size=4MiB;name=bootfs,type=linux,bootable,size=64MiB;name=rootfs,type=linux,size=512"
     # gpt write mmc 1 ${emmc_part}
 
 b) copy FSBL, TF-A_ or SPL, on first eMMC boot partition
index 9777f4c6303fcd075542c3b1aaab834dcce029b8..51feb06772f80d74b6c7ae7345a1273abe178e37 100644 (file)
@@ -23,7 +23,7 @@ environment
 
 .. code-block:: console
 
-    setenv fdtfile my_device-tree.dtb
+    env set fdtfile my_device-tree.dtb
     env save
 
 Power switch
index 0dbc500b7342541895d086fa534cbb86a537c0e8..bb3fb4a9aeede53490f9688dd8d0630cedaeffcb 100644 (file)
@@ -19,7 +19,7 @@ environment
 
 ::
 
-    setenv fdtfile my_device-tree.dtb
+    env set fdtfile my_device-tree.dtb
     env save
 
 or the configuration variable CONFIG_DEFAULT_FDT_FILE can be used to set to
index c92ea16f91bcb91fa2d6ab7c5d46d9f5bd93479d..f3e6544980b728d655cae0cbb302650985342a52 100644 (file)
@@ -18,7 +18,7 @@ environment
 
 ::
 
-    setenv fdtfile my_device-tree.dtb
+    env set fdtfile my_device-tree.dtb
     env save
 
 or the configuration variable CONFIG_DEFAULT_FDT_FILE can be used to provide
index 60b08ceebf0f58d56d3bba630a8c0d27631a2075..73ceef2e531c52ff05c8b2d369f5310ef3fcc7c4 100644 (file)
@@ -201,8 +201,8 @@ To boot kernel from eMMC, use the following commands:
 
 .. prompt:: bash =>
 
-  setenv mmcdev 0
-  setenv bootpart 0
+  env set mmcdev 0
+  env set bootpart 0
   boot
 
 OSPI:
@@ -240,7 +240,7 @@ To boot kernel from OSPI, at the U-Boot prompt:
 
 .. prompt:: bash =>
 
-  setenv boot ubi
+  env set boot ubi
   boot
 
 UART:
index 8e5d95535fa07fe57c6983d99c3c1e39a3ef1d35..9ef94e2ea002d42ed48ad7d23b5a47848496bca4 100644 (file)
@@ -73,7 +73,7 @@ set boot0 as the boot device.
 
 .. prompt:: bash =>
 
-   setenv autoload no
+   env set autoload no
    usb start
    dhcp
    mmc dev 1 1
index 16c2e57d09dee91d21c79bc70e1e2af04703d742..c6e9d969f3c6f2dfbc94091d40d121384a8fc847 100644 (file)
@@ -198,8 +198,8 @@ instructions:
 
 .. prompt:: bash =>
 
-   setenv addr_uboot 0x87000000
-   setenv filesize <size in hex of u-boot-spi.gph rounded to hex 0x10000>
+   env set addr_uboot 0x87000000
+   env set filesize <size in hex of u-boot-spi.gph rounded to hex 0x10000>
    run burn_uboot_spi
 
 Once U-Boot prompt is available, power off the EVM. Set the SW1 dip switch to
@@ -226,7 +226,7 @@ instructions:
 
 .. prompt:: bash =>
 
-   setenv filesize <size in hex of MLO rounded to hex 0x10000>
+   env set filesize <size in hex of MLO rounded to hex 0x10000>
    run burn_uboot_nand
 
 Once U-Boot prompt is available, Power OFF the EVM. Set the SW1 dip switch to
index 2b3467156420a718e72ab664d45ea13486161a0f..1928963bf14e0a615bbf24451f105218c21a8e19 100644 (file)
@@ -49,7 +49,7 @@ U-Boot generic environment variable ``ethact``.
 
 .. code-block:: bash
 
-    setenv ethact <FEC>
+    env set ethact <FEC>
 
 ***********
 Boot source
index 266d07d1193f1cbea5d487b97e854055daef2f52..d12c1e8774d64ba5420992be42482fa409490de4 100644 (file)
@@ -95,7 +95,7 @@ visible from the following log::
   ZYNQ GEM: ff0e0000, mdio bus ff0e0000, phyaddr 12, interface rgmii-id
   eth0: ethernet@ff0e0000
   Hit any key to stop autoboot:  0
-  ZynqMP> setenv autoload no
+  ZynqMP> env set autoload no
   ZynqMP> dhcp
   BOOTP broadcast 1
   DHCP client bound to address 192.168.0.167 (8 ms)
@@ -114,7 +114,7 @@ visible from the following log::
         376 KiB/s
   done
   Bytes transferred = 2075464 (1fab48 hex)
-  ZynqMP> setenv autostart no
+  ZynqMP> env set autostart no
   ZynqMP> bootelf -p 20000000
   ZynqMP> cpu 4 release 10000000 lockstep
   Using TCM jump trampoline for address 0x10000000
index 397f6db18b4b7ecf549f5f3a574d8a7c1352252d..ec9fafa0fa05951ad546357aa162442f5cb4834e 100644 (file)
@@ -152,7 +152,7 @@ boot_targets
 This environment variable can be used to control the list of bootdevs searched
 and their ordering, for example::
 
-   setenv boot_targets "mmc0 mmc1 usb pxe"
+   env set boot_targets "mmc0 mmc1 usb pxe"
 
 Entries may be removed or re-ordered in this list to affect the boot order. If
 the variable is empty, the default ordering is used, based on the priority of
@@ -169,7 +169,7 @@ used by the old distro scripts.
 This environment variable can be used to control the list of bootmeths used and
 their ordering for example::
 
-   setenv bootmeths "extlinux efi"
+   env set bootmeths "extlinux efi"
 
 Entries may be removed or re-ordered in this list to affect the order the
 bootmeths are tried on each bootdev. If the variable is empty, the default
index 01efce40a292c3b6c64c05565a90d53c5efaebb6..5e906750119a04bbb32fd9551566b397e9ca20cd 100644 (file)
@@ -384,22 +384,22 @@ boot_scripts:
 
 scan_dev_for_extlinux:
   If you want to disable extlinux.conf on all disks, set the value to something
-  innocuous, e.g. setenv scan_dev_for_extlinux true.
+  innocuous, e.g. env set scan_dev_for_extlinux true.
 
 scan_dev_for_scripts:
   If you want to disable boot.scr on all disks, set the value to something
-  innocuous, e.g. setenv scan_dev_for_scripts true.
+  innocuous, e.g. env set scan_dev_for_scripts true.
 
 boot_net_usb_start:
   If you want to prevent USB enumeration by distro boot commands which execute
-  network operations, set the value to something innocuous, e.g. setenv
+  network operations, set the value to something innocuous, e.g. env set
   boot_net_usb_start true. This would be useful if you know your Ethernet
   device is not attached to USB, and you wish to increase boot speed by
   avoiding unnecessary actions.
 
 boot_net_pci_enum:
   If you want to prevent PCI enumeration by distro boot commands which execute
-  network operations, set the value to something innocuous, e.g. setenv
+  network operations, set the value to something innocuous, e.g. env set
   boot_net_pci_enum true. This would be useful if you know your Ethernet
   device is not attached to PCI, and you wish to increase boot speed by
   avoiding unnecessary actions.
index 177e887ebd9664fdb7352c34ae9bcc4b8b82caf4..883bd2b1451c40a32da75e8c756f3513ac9c222d 100644 (file)
@@ -300,9 +300,9 @@ Content of **boot.scr**:
 .. code-block:: bash
 
   ext4load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} ${prefix}Image
-  setenv kernel_size ${filesize}
+  env set kernel_size ${filesize}
   ext4load ${devtype} ${devnum}:${distro_bootpart} ${ramdisk_addr_r} ${prefix}Initrd
-  setenv initrd_size ${filesize}
+  env set initrd_size ${filesize}
   zboot  ${kernel_addr_r} ${kernel_size} ${ramdisk_addr_r} ${initrd_size}
 
 Extlinux configuration
index 3ca22b572a9200baaeda10abab51708477771adc..6fd1db6606dbf6194a195d75d8da7419a8471ee1 100644 (file)
@@ -170,11 +170,11 @@ Sign an image with one of the keys in "db" on your host
 Now in U-Boot install the keys on your board::
 
     fatload mmc 0:1 <tmpaddr> PK.auth
-    setenv -e -nv -bs -rt -at -i <tmpaddr>:$filesize PK
+    env set -e -nv -bs -rt -at -i <tmpaddr>:$filesize PK
     fatload mmc 0:1 <tmpaddr> KEK.auth
-    setenv -e -nv -bs -rt -at -i <tmpaddr>:$filesize KEK
+    env set -e -nv -bs -rt -at -i <tmpaddr>:$filesize KEK
     fatload mmc 0:1 <tmpaddr> db.auth
-    setenv -e -nv -bs -rt -at -i <tmpaddr>:$filesize db
+    env set -e -nv -bs -rt -at -i <tmpaddr>:$filesize db
 
 Set up boot parameters on your board::
 
@@ -412,7 +412,7 @@ bit in OsIndications variable with
 
 .. code-block:: console
 
-    => setenv -e -nv -bs -rt -v OsIndications =0x0000000000000004
+    => env set -e -nv -bs -rt -v OsIndications =0x0000000000000004
 
 Since U-Boot doesn't currently support SetVariable at runtime, its value
 won't be taken over across the reboot. If this is the case, you can skip
@@ -698,7 +698,7 @@ end up with "host not found".
 
 We need to preset the "httpserverip" environment variable to proceed the wget::
 
-    setenv httpserverip 192.168.1.1
+    env set httpserverip 192.168.1.1
 
 UEFI HTTP(s) Boot using lwIP
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -789,7 +789,7 @@ If the environment variable is set to 'list' a list of all tests is shown.
 
 Below you can find the output of an example session::
 
-    => setenv efi_selftest simple network protocol
+    => env set efi_selftest simple network protocol
     => bootefi selftest
     Testing EFI API implementation
     Selected test: 'simple network protocol'
index 619cfb601a0660ff2cadfaea1f7131f6309176c4..b76930ed929b5cc85f9ca906ade22db913c1d519 100644 (file)
@@ -24,13 +24,13 @@ Example
 
 ::
 
-    => setenv bootcmd 'echo Hello World'
+    => env set bootcmd 'echo Hello World'
     => bootd
     Hello World
-    => setenv bootcmd true
+    => env set bootcmd true
     => bootd; echo $?
     0
-    => setenv bootcmd false
+    => env set bootcmd false
     => bootd; echo $?
     1
 
index 7c5448586b713810293fb5e41fb8d431119724df..8b237fd75fb715dd73c36aafd50baf7e11400381 100644 (file)
@@ -48,7 +48,7 @@ or
 
 ::
 
-    setenv bootargs root=/dev/vda1
+    env set bootargs root=/dev/vda1
     load mmc 0:1 $fdt_addr_r dtb
     load mmc 0:1 $kernel_addr_r vmlinux
     load mmc 0:1 $initrd_addr_r intird
@@ -117,7 +117,7 @@ the *bootefi hello* sub-command. A session might look like
 
 ::
 
-    => setenv bootargs 'Greetings to the world'
+    => env set bootargs 'Greetings to the world'
     => bootefi hello
     Booting /MemoryMapped(0x0,0x10001000,0x1000)
     Hello, world!
@@ -140,7 +140,7 @@ To show a list of the available unit tests the value *list* can be used
 
 ::
 
-    => setenv efi_selftest list
+    => env set efi_selftest list
     => bootefi selftest
 
     Available tests:
@@ -154,7 +154,7 @@ environment variable to match one of the listed identifiers
 
 ::
 
-    => setenv efi_selftest 'block image transfer'
+    => env set efi_selftest 'block image transfer'
     => bootefi selftest
 
 Some of the tests execute the ExitBootServices() UEFI boot service and will not
index 313efb83cc6a9e91dd5df26276fbce80ce4b92d7..c8e847eae22ff2de8af9dca6a8c40813afa2bb7b 100644 (file)
@@ -77,8 +77,8 @@ Here is the boot log for the compressed kernel:
 
 ::
 
-    => setenv kernel_comp_addr_r 0x50000000
-    => setenv kernel_comp_size 0x04000000
+    => env set kernel_comp_addr_r 0x50000000
+    => env set kernel_comp_size 0x04000000
     => load mmc 0:1 $fdt_addr_r dtb-5.10.0-3-arm64
     27530 bytes read in 6 ms (4.4 MiB/s)
     => load mmc 0:1 $kernel_addr_r vmlinuz-5.10.0-3-arm64.gz
index cd5597bc64698d61c56025afe9b82a38fb63b319..e76e6a6cb6c1f9c357f01bed080b5937f97d9b33 100644 (file)
@@ -75,10 +75,10 @@ to the user.
 
 Example environment::
 
-    setenv bootmenu_0 Boot 1. kernel=bootm 0x82000000  # Set first menu entry
-    setenv bootmenu_1 Boot 2. kernel=bootm 0x83000000  # Set second menu entry
-    setenv bootmenu_2 Reset board=reset                # Set third menu entry
-    setenv bootmenu_3 U-Boot boot order=boot           # Set fourth menu entry
+    env set bootmenu_0 Boot 1. kernel=bootm 0x82000000  # Set first menu entry
+    env set bootmenu_1 Boot 2. kernel=bootm 0x83000000  # Set second menu entry
+    env set bootmenu_2 Reset board=reset                # Set third menu entry
+    env set bootmenu_3 U-Boot boot order=boot           # Set fourth menu entry
     bootmenu 20        # Run bootmenu with autoboot delay 20s
 
 
index 6c6794f31b8e045ca996759e39cd478a026076b9..0b58b91e8dac0cc357c801586b78df86f2d211d0 100644 (file)
@@ -32,7 +32,7 @@ variable *status1* you would execute the commands
 ::
 
     button button1
-    setenv status1 $?
+    env set status1 $?
 
 A list of all available buttons and their status can be displayed using
 
index e54ea204b9f06ac56c2a8c23830e9117810776c6..40eb6a2cb54bd170640b0b8fb5a1defa03cdb700 100644 (file)
@@ -75,8 +75,8 @@ cedit write_env
 Writes the settings to environment variables. For each menu item the selected
 ID and its text string are written, similar to:
 
-   setenv c.<name> <selected_id>
-   setenv c.<name>-str <selected_id's text string>
+   env set c.<name> <selected_id>
+   env set c.<name>-str <selected_id's text string>
 
 The `-v` flag enables verbose mode, where each variable is printed before it is
 set.
index a66cf90a27b8d3f4e9318837cea677a2e16c8c4b..bbfbebb9dc23f8b406719edb711c51c80f89806d 100644 (file)
@@ -36,7 +36,7 @@ Example
     |   |-- stderr
     |-- serial (IO)
     |-- usbkbd (I)
-    => setenv stdin pl011@9000000,usbkbd
+    => env set stdin pl011@9000000,usbkbd
     => coninfo
     List of available devices
     |-- pl011@9000000 (IO)
index ebc9ff5f843276c92fc57a3f5b817e53cd5699e8..b747e4b89ac95d1cb98c31c9049a0f334ac2577e 100644 (file)
@@ -38,7 +38,7 @@ Observe how variables included in strings are handled:
 
 ::
 
-    => setenv var X; echo "a)" ${var} 'b)' '${var}' c) ${var}
+    => env set var X; echo "a)" ${var} 'b)' '${var}' c) ${var}
     a) X b) ${var} c) X
     =>
 
index 83a3ebf4f0bd585c15084cfb95259b8556d9ff2f..e9fc59a93f095d3d4d33d3dac5f072bdd63e4551 100644 (file)
@@ -61,7 +61,7 @@ Auto boot with the UEFI Boot Option
 To do auto boot according to the UEFI BootOrder variable,
 add "bootefi bootmgr" entry as a default or first bootmenu entry::
 
-    CONFIG_PREBOOT="setenv bootmenu_0 UEFI Boot Manager=bootefi bootmgr; setenv bootmenu_1 UEFI Maintenance Menu=eficonfig"
+    CONFIG_PREBOOT="env set bootmenu_0 UEFI Boot Manager=bootefi bootmgr; env set bootmenu_1 UEFI Maintenance Menu=eficonfig"
 
 UEFI Secure Boot Configuration
 ''''''''''''''''''''''''''''''
@@ -84,7 +84,7 @@ If CONFIG_BOOTMENU_DISABLE_UBOOT_CONSOLE is enabled, the user can not enter
 U-Boot console. In this case, the bootmenu can be used to invoke "eficonfig"::
 
     CONFIG_USE_PREBOOT=y
-    CONFIG_PREBOOT="setenv bootmenu_0 UEFI Maintenance Menu=eficonfig"
+    CONFIG_PREBOOT="env set bootmenu_0 UEFI Maintenance Menu=eficonfig"
 
 The only way U-Boot can currently store EFI variables on a tamper
 resistant medium is via OP-TEE. The Kconfig option that enables that is::
index 2f250bf4bde834b8d3ee339973e3a64777b919b6..b41ca35ff178094aaa785816188685a0cbc6f715 100644 (file)
@@ -19,8 +19,8 @@ If scripts are nested, only the innermost script is left.
 
 ::
 
-    => setenv inner 'echo entry inner; exit; echo inner done'
-    => setenv outer 'echo entry outer; run inner; echo outer done'
+    => env set inner 'echo entry inner; exit; echo inner done'
+    => env set outer 'echo entry outer; run inner; echo outer done'
     => run outer
     entry outer
     entry inner
index fbe95aace795e280b9e52f6a1d2bbc70fc5152af..97c48bfd78ec017bc95f0e5ec5553bda5a2e8634 100644 (file)
@@ -62,8 +62,8 @@ Usage example
 
 ::
 
-    => setenv extension_overlay_addr 0x88080000
-    => setenv extension_overlay_cmd 'load mmc 0:1 ${extension_overlay_addr} /boot/${extension_overlay_name}'
+    => env set extension_overlay_addr 0x88080000
+    => env set extension_overlay_cmd 'load mmc 0:1 ${extension_overlay_addr} /boot/${extension_overlay_name}'
 
 3. Detect the plugged extension board
 
index 729bd4db43cc02c1dced969d8df88cf95e9a3bb5..3db3410a171479d34a486c64f465d893a8da5234 100644 (file)
@@ -34,14 +34,14 @@ Example
 
 ::
 
-    => setenv c
+    => env set c
     => for c in 1 2 3; do echo item ${c}; done
     item 1
     item 2
     item 3
     => echo ${c}
     3
-    => setenv c x
+    => env set c x
     => for c in 1 2 3; do echo item ${c}; done
     item x
     item x
index 13e8783be9b8c3cb3007f4d047a129cfc007f10c..a2f116d05ad132b29675d7baee3b3f68cd6a9a33 100644 (file)
@@ -119,10 +119,10 @@ Sets the bootable flag for all partitions in the table. If the partition name
 is in 'partition list' (separated by ','), the bootable flag is set, otherwise
 it is cleared. CONFIG_CMD_GPT_RENAME=y is required.
 
-gpt setenv
-~~~~~~~~~~
+gpt env set
+~~~~~~~~~~~
 
-The 'gpt setenv' command will set a series of environment variables with
+The 'gpt env set' command will set a series of environment variables with
 information about the partition named '<partition name>'. The variables are:
 
 gpt_partition_addr
@@ -179,7 +179,7 @@ Examples
 
 Create 6 partitions on a disk::
 
-    => setenv gpt_parts 'uuid_disk=bec9fc2a-86c1-483d-8a0e-0109732277d7;\
+    => env set gpt_parts 'uuid_disk=bec9fc2a-86c1-483d-8a0e-0109732277d7;\
     name=boot,start=4M,size=128M,bootable,type=ebd0a0a2-b9e5-4433-87c0-68b6b72699c7;\
     name=rootfs,size=3072M,type=0fc63daf-8483-4772-8e79-3d69d8477de4;\
     name=system-data,size=512M,type=0fc63daf-8483-4772-8e79-3d69d8477de4;\
@@ -199,7 +199,7 @@ $gpt_parts::
 
 Get the information about the partition named 'rootfs'::
 
-    => gpt setenv mmc 0 rootfs
+    => gpt env set mmc 0 rootfs
     => echo ${gpt_partition_addr}
     2000
     => echo ${gpt_partition_size}
@@ -231,25 +231,25 @@ Set the bootable flag for the 'boot' partition and clear it for all others::
 
 Swap the order of the 'boot' and 'rootfs' partition table entries::
 
-    => gpt setenv mmc 0 rootfs
+    => gpt env set mmc 0 rootfs
     => echo ${gpt_partition_entry}
     2
-    => gpt setenv mmc 0 boot
+    => gpt env set mmc 0 boot
     => echo ${gpt_partition_entry}
     1
 
     => gpt transpose mmc 0 1 2
 
-    => gpt setenv mmc 0 rootfs
+    => gpt env set mmc 0 rootfs
     => echo ${gpt_partition_entry}
     1
-    => gpt setenv mmc 0 boot
+    => gpt env set mmc 0 boot
     => echo ${gpt_partition_entry}
     2
 
 Other example: a disk with known partition types::
 
-    => setenv gpt_parts 'name=u-boot,size=32M,type=data;\
+    => env set gpt_parts 'name=u-boot,size=32M,type=data;\
     name=env,size=1M,type=u-boot-env;
     name=ESP,size=128M,type=system;
     name=rootfs,size=3072M,type=linux;
index 1621a4a68b2204b5ac7acf8abf2f9f314acd3376..c631e328569a279492402e7f79830910c2419ac0 100644 (file)
@@ -52,7 +52,7 @@ extraction. But correct hashes are still indicated in the output
 
 .. code-block:: console
 
-    => setenv verify no
+    => env set verify no
     => imxtract $loadaddr kernel-1 $kernel_addr_r
     ## Copying 'kernel-1' subimage from FIT image at 40200000 ...
     sha256+ sha512+    Loading part 0 ... OK
@@ -62,7 +62,7 @@ With verify=yes incorrect hashes, signatures, or check sums stop the extraction.
 
 .. code-block:: console
 
-    => setenv verify yes
+    => env set verify yes
     => imxtract $loadaddr kernel-1 $kernel_addr_r
     ## Copying 'kernel-1' subimage from FIT image at 40200000 ...
     sha256 error!
index 925a118105570ee5df2ef18f691b9ce7092416db..351959c509769c390934714eb6fb2222cdcfd837 100644 (file)
@@ -43,7 +43,7 @@ volume'), some of the predefined sizes:
 
 ::
 
-    => setenv mbr_parts 'name=boot,start=4M,size=128M,bootable,id=0x0e;
+    => env set mbr_parts 'name=boot,start=4M,size=128M,bootable,id=0x0e;
         name=rootfs,size=3072M,id=0x83;
         name=system-data,size=512M,id=0x83;
         name=[ext],size=-,id=0x05;
index dfdb36249345cafb7ba08b2949aabccbb5747fdb..08c63d7e8850337531da93e6754989c21870bf7a 100644 (file)
@@ -44,7 +44,7 @@ environment variables:
 
 ::
 
-    => setenv .foo bar
+    => env set .foo bar
     => printenv
     arch=sandbox
     baudrate=115200
index d429eeceddf20faf9b97dbb4974d608bbf34cc9d..c4470b61722b91fc1ff2af5b7b083f9972a0af63 100644 (file)
@@ -72,7 +72,7 @@ the offset used in the *saves* command.
     Really kill this window [y/n]
     $ srec_cat out.srec -offset -1337982976 -Output out.txt -binary 2>/dev/null
     $ cat out.txt
-    setenv autoload no
+    env set autoload no
     dhcp
     load mmc 0:1 $fdt_addr_r dtb
     load mmc 0:1 $kernel_addr_r snp.efi
index 433884f18b2e5ae0d0e174ca828f10bab22d5948..bfbf75464c2ce1e7fb6ff7e8a593f3b59b1d95dc 100644 (file)
@@ -43,7 +43,7 @@ Examples
 
 ::
 
-    => setenv ntpserverip 109.190.177.205
+    => env set ntpserverip 109.190.177.205
     => date
     Date: 2025-06-16 (Monday)    Time: 15:19:35
     => date reset
@@ -55,7 +55,7 @@ Examples
     Date: 2025-06-16 Time: 15:19:43
     => date
     Date: 2025-06-16 (Monday)    Time: 15:19:47
-    => setenv timeoffset 7200
+    => env set timeoffset 7200
     => sntp
     Date: 2025-06-16 Time: 17:19:55
     => date
index bdffa3af4635734ac0c391fc02a2e8dfe7bb63c9..3704fdc9896fb2bf4cebc3a553ebab884a367c74 100644 (file)
@@ -48,7 +48,7 @@ In the example the following steps are executed:
 
 ::
 
-    => setenv autoload no
+    => env set autoload no
     => dhcp
     BOOTP broadcast 1
     DHCP client bound to address 192.168.1.40 (7 ms)
index f661d739a19cd24b04028e7d46b11b6f46df28a8..e6c33b87431ebcdceecb9f66f710fbe839de414d 100644 (file)
@@ -95,7 +95,7 @@ In the example the following steps are executed:
 
 ::
 
-    => setenv autoload no
+    => env set autoload no
     => dhcp
     BOOTP broadcast 1
     *** Unhandled DHCP Option in OFFER/ACK: 23
index 79b9baf7bfe5bd6de14d305ccc9f82fd4ac8b4d6..dac6dcccfb7ed3feff7052d0b944c2a243df653e 100644 (file)
@@ -20,11 +20,11 @@ This takes very little code space and offers only basic features:
 - special characters ('$', ';') can be escaped by prefixing with '\',
   for example::
 
-    setenv bootcmd bootm \${address}
+    env set bootcmd bootm \${address}
 
 - You can also escape text by enclosing in single apostrophes, for example::
 
-    setenv addip 'setenv bootargs $bootargs ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname::off'
+    env set addip 'env set bootargs $bootargs ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname::off'
 
 Hush shell
 ----------
@@ -36,7 +36,7 @@ This is similar to Bourne shell, with control structures like:
 - `while` ... `do` ... `done`
 - `until` ... `do` ... `done`
 
-Hush supports environment ("global") variables (through setenv / saveenv
+Hush supports environment ("global") variables (through env set / saveenv
 commands) and local shell variables (through standard shell syntax
 `name=value`); only environment variables can be used with the "run" command
 
index af805514b267288b086855b95fd945af67b45ee5..c825cdcbe5c96c9f012ff42a09664244225d116e 100644 (file)
@@ -162,8 +162,8 @@ mmc
     layout and even set a new *dfu_alt_info* for the newly created partitions.
     Such a script would look like::
 
-        setenv dfu_alt_info ...
-        setenv mbr_parts ...
+        env set dfu_alt_info ...
+        env set mbr_parts ...
         mbr write ...
 
     Please note that this means the user will be able to execute any
index 0143f81f2c0fbb8476b2328e2e3d51000988e140..8049885333627048fbd03cda03d25ac5c0366cb3 100644 (file)
@@ -70,10 +70,10 @@ Example::
         /* U-Boot script for booting */
 
         if [ -z ${tftpserverip} ]; then
-            echo "Use 'setenv tftpserverip a.b.c.d' to set IP address."
+            echo "Use 'env set tftpserverip a.b.c.d' to set IP address."
         fi
 
-        usb start; setenv autoload n; bootp;
+        usb start; env set autoload n; bootp;
         tftpboot ${tftpserverip}:
         bootm
     failed=
@@ -263,7 +263,7 @@ initrd_high
     sure that the initrd image is placed in the first
     12 MB as well - this can be done with::
 
-        setenv initrd_high 00c00000
+        env set initrd_high 00c00000
 
     If you set initrd_high to 0xffffffff (32-bit machines) or
     0xffffffffffffffff (64-bit machines), this is an
@@ -310,9 +310,9 @@ ethact
     controls which interface is currently active.
     For example you can do the following::
 
-    => setenv ethact FEC
+    => env set ethact FEC
     => ping 192.168.0.1 # traffic sent on FEC
-    => setenv ethact SCC
+    => env set ethact SCC
     => ping 10.0.0.1 # traffic sent on SCC
 
 ethrotate
index 730cb85b39a2176f088c59f9e71c4edfe0df93cc..81e9512658a7845a079ebf54bfb9143afd3d4ff0 100644 (file)
@@ -88,8 +88,8 @@ Manually Loading and Applying Overlays
 
 ::
 
-    => setenv fdtaddr 0x87f00000
-    => setenv fdtovaddr 0x87fc0000
+    => env set fdtaddr 0x87f00000
+    => env set fdtovaddr 0x87fc0000
 
 2. Load the base binary device-tree and the binary device-tree overlay.
 
index b15399441eeb0275644d7883e4c48ab3d241fa54..c587b8c271d92bcdf894951f2281c42bf6a56817 100644 (file)
@@ -518,13 +518,13 @@ Here the card is /dev/sde::
 
 Boot the board using the commands below::
 
-    setenv bootargs console=ttyO0,115200n8 quiet root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait
+    env set bootargs console=ttyO0,115200n8 quiet root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait
     ext2load mmc 0:2 82000000 /boot/image.fit
     bootm 82000000
 
 You should then see something like this::
 
-    U-Boot# setenv bootargs console=ttyO0,115200n8 quiet root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait
+    U-Boot# env set bootargs console=ttyO0,115200n8 quiet root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait
     U-Boot# ext2load mmc 0:2 82000000 /boot/image.fit
     7824930 bytes read in 589 ms (12.7 MiB/s)
     U-Boot# bootm 82000000
index 9c8d86e50beb5fc10e69bddd50de84e92416cc2a..9c5f989bd7510cc58f4191c4a32f8dfaeb8ff923 100644 (file)
@@ -197,9 +197,9 @@ specific to the new image format).
 [on the target system]::
 
     => print nfsargs
-    nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath}
+    nfsargs=env set bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath}
     => print addip
-    addip=setenv bootargs ${bootargs} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:${netdev}:off panic=1
+    addip=env set bootargs ${bootargs} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:${netdev}:off panic=1
     => run nfsargs addip
     => tftp 900000 /path/to/tftp/location/kernel.itb
     Using FEC device
index f91712c0094602a92a60e824d83f784448425b19..27020be65daa8f10372e176e6c8ee52c194227a1 100644 (file)
@@ -19,4 +19,4 @@ If no command line arguments or bootargs are defined, CONFADDR is left
 uninitialized to permit manual configuration.  For example, PC-style
 configuration could be simulated by issuing a fatload in bootcmd::
 
-  # setenv bootcmd fatload mmc 0 $confaddr plan9.ini; ...; bootm
+  # env set bootcmd fatload mmc 0 $confaddr plan9.ini; ...; bootm