U-boot Default Environmental Variables and Values

Reference Page for U-boot Env Vars & Values
Please add only stock or standard values from a U-boot version supplied by Buffalo or by a developer associated w/ the Wiki, and no custom values, except in the place at the end. Please list: The version and date can be found in U-boot's boot messages via netcat or a serial terminal (if you have fitted a cable to your box's Serial_port). The values can be found by issuing the command "printenv" while in U-boot, or the command "nvram -c printenv" whilst in EM etc. It is also possible using the fw_printenv command available as part of the uboot-envtools package in Debian (assuming you haven't changed the default uboot environment of course).
 * 1) source of U-boot (Buffalo, wiki, foonas)
 * 2) the version
 * 3) the date of build and
 * 4) all stock/standard env vars.

U-Boot 1.1.4 LiSt 2.1.0 (Nov 15 2006 - 18:03:28) LinkStation HG / KuroBox HG
version & date above, made by kuroguy values: to be listed...

U-Boot 1.2.0 (Apr 10 2007 - 19:13:32) LinkStation HG / KuroBox HG
version and date above, made by bitbake/timtimred - for foonas-em on a KuroHG

bootargs=root=/dev/sda1 netconsole=6666@192.168.11.150/,@192.168.11.149/ rtc-rs5c372.probe=0,0x32 bootcmd=run bootcmd1 nfsboot=bootp;run nfsargs;bootm bootdelay=10 baudrate=57600 autoload=no stdin=nc stdout=nc stderr=nc ipaddr=192.168.11.150 netmask=255.255.255.0 serverip=192.168.11.149 ncip=192.168.11.149 netretry=no nc=setenv stdin nc;setenv stdout nc;setenv stderr nc ser=setenv stdin serial;setenv stdout serial;setenv stderr serial ldaddr=800000 hdpart=0:1 hdload=echo Loading ${hdpart}:${hdfile};ext2load ide ${hdpart} ${ldaddr} ${hdfile};ext2load ide ${hdpart} 7f0000 boot/kuroboxHG.dtb boothd=setenv bootargs root=/dev/sda1 netconsole=6666@192.168.11.150/,@192.168.11.149/ rtc-rs5c372.probe=0,0x32 hdboot=run hdload boothd flboot=setenv bootargs root=/dev/hda1;bootm ffc00000 emboot=setenv bootargs root=/dev/ram0;bootm ffc00000 nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off bootretry=30 bootcmd1=run hdboot;run flboot bootcmd2=run flboot bootcmd3=run emboot writeng=protect off fff70000 fff7ffff;era fff70000 fff7ffff;mw.l 800000 4e474e47 1;cp.b 800000 fff70000 4 writeok=protect off fff70000 fff7ffff;era fff70000 fff7ffff;mw.l 800000 4f4b4f4b 1;cp.b 800000 fff70000 4 ubpart=0:1 ubfile=share/u-boot/u-boot-hg.flash.bin ubload=echo Loading ${ubpart}:${ubfile};ext2load ide ${ubpart} ${ldaddr} ${ubfile} ubsaddr=fff00000 ubeaddr=fff2ffff ubflash=protect off ${ubsaddr} ${ubeaddr};era ${ubsaddr} ${ubeaddr};cp.b ${ldaddr} ${ubsaddr} ${filesize};cmp.b ${ldaddr} ${ubsaddr} ${filesize} upgrade=run ubload ubflash ethact=RTL8169#0 hdfile=boot/uImage foofl1=cp.b FFC00000 800000 2FFFFF;cp.b fff80000 AFFFFF 7E887 foofl2=setenv bootargs netconsole=6666@192.168.11.150/,@192.168.11.149/ rtc-rs5c372.probe=0,0x32 root=/dev/ram0 rw;bootm ${ldaddr} - FFFFF743 fooflboot=run foofl1 foofl2 Environment size: 1895/65532 bytes

U-Boot 1.1.1 (Jun 12 2006 - 10:32:00) Marvell version: 1.10.8 Stock Buffalo U-boot
baudrate=115200 loads_echo=0 ipaddr=192.168.11.150 rootpath=/nfs/arm cpuName=926 CASset=min MALLOC_len=4 bootargs_end=:::DB88FXX81:eth0:none ethact=egiga0 ethaddr=00:16:01:41:8E:33 buffalo_minor_ver=BOOT_MINOR_VER=1.00 ethprime=egiga0 usb0Mode=host usb1Mode=host bootargs=console=ttyS0,115200 root=/dev/sda2 rw initrd=0x00800040,15M panic=5 BOOTVER=1.10 serverip=192.168.11.1 buffalo_ver=BOOTVER=1.01 build_time=10:35:38 initrd=initrd.buffalo kernel=uImage.buffalo bootargs_base=console=ttyS0,115200 bootargs_root=root=/dev/sda2 rw initrd=0x00800040,15M panic=5 def_tftp=tftp 0x00100000 $(kernel);tftp 0x00800000 $(initrd);setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver);bootm 0x00100000 0x00800000 stdin=serial stdout=serial stderr=serial enaMonExt=no enaFlashBuf=yes enaCpuStream=no bootdelay=3 disaMvPnp=no overEthAddr=no force_tftp=1 bootcmd=ide reset; ext2load ide 1:1 0x00100000 /$(kernel);ext2load ide 1:1 0x00800000 /$(initrd);setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver);bootm 0x00100000 0x00800000 Environment size: 1010/4092 bytes Note: if you stop uboot via serial or netconsole, and select tftp booting, bootcmd will assume a different value: bootcmd=tftp 0x00100000 $(kernel);tftp 0x00800000 $(initrd);setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver);bootm 0x00100000 0x00800000

U-Boot 1.1.1 (Apr 18 2007 - 18:35:44) Marvell version: 1.12.1 - TINY
bootargs=$(bootargs_base) $(bootargs_root) baudrate=115200 loads_echo=0 rootpath=/nfs/arm cpuName=926 CASset=min MALLOC_len=4 bootargs_end=:::DB88FXX81:eth0:none ethact=egiga0 ethaddr=00:16:01:41:4E:2B filesize=40000 fileaddr=100000 ipaddr=192.168.11.150 serverip=192.168.11.1 stdin=serial stdout=serial stderr=serial enaMonExt=no enaFlashBuf=yes enaCpuStream=no ethprime=egiga0 buffalo_ver=BOOTVER=1.10 buffalo_minor_ver=BOOT_MINOR_VER=1.00 build_time=18:35:39 initrd=initrd.buffalo kernel=uImage.buffalo bootargs_base=console=ttyS0,115200 bootargs_root=root=/dev/sda2 rw initrd=0x00800040,15M panic=5 def_tftp=tftp 0x00100000 $(kernel);tftp 0x00800000 $(initrd);setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver) tftpboot=yes;bootm 0x00100000 0x00800000 bootdelay=3 disaMvPnp=no overEthAddr=no usb0Mode=host usb1Mode=host force_tftp=1 bootcmd=ide reset; ext2load ide 0:1 0x00100000 /$(kernel);ext2load ide 0:1 0x00800000 /$(initrd);setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver);bootm 0x00100000 0x00800000 Environment size: 1019/4092 bytes Note: if you stop uboot via serial or netconsole, and select tftp booting, bootcmd will assume a different value: bootcmd=tftp 0x00100000 $(kernel);tftp 0x00800000 $(initrd);setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver) tftpboot=yes;bootm 0x00100000 0x00800000

U-Boot 1.1.1 (Apr 10 2007 - 18:10:08) Marvell version: 1.12.1 - TINY
baudrate=115200 loads_echo=0 ipaddr=192.168.11.150 serverip=192.168.11.1 rootpath=/nfs/arm cpuName=926 CASset=min MALLOC_len=4 bootargs_end=:::DB88FXX81:eth0:none ethact=egiga0 buffalo_ver=BOOTVER=1.091 build_time=18:10:02 initrd=initrd.buffalo kernel=uImage.buffalo bootargs_base=console=ttyS0,115200 bootargs_root=root=/dev/mtdblock2 rw panic=5 bootargs=$(bootargs_base) $(bootargs_root) $(buffalo_ver) nand_uImage_offset=20000 default_kernel_addr=0x00100000 default_initrd_addr=0x02000000 bootcmd=nboot $(default_kernel_addr) 0 $(nand_uImage_offset) ;setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver); bootm $(default_kernel_addr) def_tftp=tftp $(default_kernel_addr) $(kernel); tftp $(default_initrd_addr) $(initrd); setenv bootargs $(bootargs_base) $(bootargs_root) rw initrd=0x02000040,20M panic=5 $(buffalo_ver); bootm $(default_kernel_addr) $(default_initrd_addr) nand_boot=yes ethaddr=00:16:01:A4:E5:5A stdin=serial stdout=serial stderr=serial enaMonExt=no enaFlashBuf=yes enaCpuStream=no ethprime=egiga0 bootdelay=3 disaMvPnp=no overEthAddr=no usb0Mode=host usb1Mode=host Environment size: 1099/4092 bytes

U-Boot 1.1.1 (Feb 25 2008 - 15:41:58) Marvell version: 1.12.1 - TINY
bootargs=$(bootargs_base) $(bootargs_root) baudrate=115200 loads_echo=0 ipaddr=192.168.11.150 serverip=192.168.11.1 rootpath=/nfs/arm stdin=serial stdout=serial stderr=serial cpuName=926 CASset=min enaMonExt=no enaFlashBuf=yes enaCpuStream=no MALLOC_len=4 ethprime=egiga0 bootargs_end=:::DB88FXX81:eth0:none buffalo_ver=BOOTVER=1.13 buffalo_minor_ver=BOOT_MINOR_VER=1.00 build_time=15:41:55 initrd=initrd.buffalo kernel=uImage.buffalo bootargs_base=console=ttyS0,115200 bootargs_root=root=/dev/sda2 rw initrd=0x00800040,15M panic=5 bootcmd=ide reset; ext2load ide 1:1 0x00100000 /$(kernel); ext2load ide 1:1 0x00800000 /$(initrd); setenv bootargs $(bootargs_base) $(bootargs_root) $(bootargs_func) $(bootargs_debug) $(buffalo_ver); bootm 0x00100000 0x00800000 def_tftp=tftp 0x00100000 $(kernel); tftp 0x00800000 $(initrd); setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver) tftpboot=yes; bootm 0x00100000 0x00800000 bootdelay=3 disaMvPnp=no overEthAddr=no usb0Mode=host usb1Mode=host ethact=egiga0 ethaddr=re:mo:ve:dt:hi:s!

U-Boot 1.1.1 (Feb 22 2008 - 18:48:54) Marvell version: 1.12.1 - TINY
LS Mini: Serial Port Output - U-Boot

Buffalo Stock Firmware 1.05
bootargs=$(bootargs_base) $(bootargs_root) baudrate=115200 loads_echo=0 ipaddr=192.168.11.150 serverip=192.168.11.1 rootpath=/nfs/arm cpuName=926 CASset=min MALLOC_len=4 bootargs_end=:::DB88FXX81:eth0:none ethact=egiga0 ethaddr=00:1D:73:A5:35:77 stdin=serial stdout=serial stderr=serial enaMonExt=no enaFlashBuf=yes enaCpuStream=no ethprime=egiga0 buffalo_ver=BOOTVER=1.24 buffalo_minor_ver=BOOT_MINOR_VER=1.00 build_time=15:36:59 initrd=initrd.buffalo kernel=uImage.buffalo bootargs_base=console=ttyS0,115200 bootargs_root=root=/dev/sda2 rw initrd=0x00800040,32M panic=5 bootcmd=ide reset; ext2load ide 1:1 0x00100000 /$(kernel); ext2load ide 1:1 0x00800000 /$(initrd); setenv bootargs $(bootargs_base) $(bootargs_root) $(bootargs_func) $(bootargs_debug) $(buffalo_ver); bootm 0x00100000 0x00800000 def_tftp=tftp 0x00100000 $(kernel); tftp 0x00800000 $(initrd); setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver) tftpboot=yes; bootm 0x00100000 0x00800000 bootdelay=3 disaMvPnp=no overEthAddr=no usb0Mode=host

Buffalo Stock Firmware 1.52
U-Boot 1.1.4 (Jul 6 2011 - 20:16:40) Marvell version: 3.5.3

root@LS-WVL2C9:~# nvram -c printenv 1: [baudrate=115200] 2: [loads_echo=0] 3: [ipaddr=192.168.11.150] 4: [serverip=192.168.11.1] 5: [rootpath=/mnt/ARM_FS/] 6: [netmask=255.255.255.0] 7: [run_diag=yes] 8: [stdin=serial] 9: [stdout=serial] 10: [stderr=serial] 11: [console=console=ttyS0,115200] 12: [mainlineLinux=no] 13: [CASset=min] 14: [enaMonExt=no] 15: [enaCpuStream=no] 16: [enaWrAllo=no] 17: [pexMode=RC] 18: [disL2Cache=no] 19: [setL2CacheWT=yes] 20: [disL2Prefetch=yes] 21: [enaICPref=yes] 22: [enaDCPref=yes] 23: [sata_dma_mode=yes] 24: [MALLOC_len=1] 25: [bootargs_root=root=/dev/sda2 rw initrd=0x00800040,12M panic=5] 26: [bootargs_end=:::DB88FXX81:eth0:none] 27: [image_name=uImage] 28: [buffalo_ver=BOOTVER=0.18] 29: [kernel=uImage.buffalo] 30: [initrd=initrd.buffalo] 31: [bootcommon=setenv bootargs $console $bootargs_root $bootargs_func $bootargs_wol $buffalo_ver $mtdparts $tftpboot $nandboot; bootm 0x00100000 0x00800000] 32: [tftpbootcmd=tftp 0x00100000 $kernel; tftp 0x00800000 $initrd; setenv tftpboot tftpboot=yes; run bootcommon] 33: [idebootcmd=ext2load ide 0:1 0x00100000 /$kernel; ext2load ide 0:1 0x00800000 /$initrd; run bootcommon] 34: [mtdids=nand0=nand_mtd] 35: [mtdparts=mtdparts=nand_mtd:0x1000000(boot),0xfe800000(rootfs),0x800000(reserve)] 36: [nandbootcmd=fsload 0x00100000 /$kernel; fsload 0x00800000 /$initrd; setenv nandboot nandboot=yes; run bootcommon] 37: [bootcmd=for i in $bootorder; do run ${i}bootcmd; done] 38: [lcd0_enable=0] 39: [lcd0_params=640x480-16@60] 40: [lcd0_bootargs=video-dovefb:lcd0:$(lcd0_params) clcd.lcd0_enable=$(lcd0_enable)] 41: [bootdelay=3] 42: [disaMvPnp=no] 43: [ethmtu=1500] 44: [mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo] 45: [mvNetConfig=mv_net_config=(00:11:88:0f:xx:xx,0:1:2:3),mtu=1500] 46: [usb0Mode=host] 47: [nandEcc=1bit] 48: [netretry=no] 49: [rcvrip=169.254.100.100] 50: [loadaddr=0x02000000] 51: [autoload=no] 52: [enaAutoRecovery=yes] 53: [ethaddr=4C:E6:76:xx:xx:xx] 54: [bootorder=ide]

U-Boot 1.1.1 (Oct 19 2008 - 21:02:54) Marvell version: 1.12.1 - TINY
baudrate=115200 loads_echo=0 ipaddr=192.168.11.150 rootpath=/nfs/arm cpuName=926 CASset=min MALLOC_len=4 bootargs_end=:::DB88FXX81:eth0:none ethact=egiga0 ethaddr=00:16:01:41:8E:33 buffalo_minor_ver=BOOT_MINOR_VER=1.00 ethprime=egiga0 usb0Mode=host usb1Mode=host bootargs=console=ttyS0,115200 root=/dev/sda2 rw initrd=0x00800040,15M panic=5 BOOTVER=1.10 serverip=192.168.11.1 buffalo_ver=BOOTVER=1.01 build_time=10:35:38 initrd=initrd.buffalo kernel=uImage.buffalo bootargs_base=console=ttyS0,115200 bootargs_root=root=/dev/sda2 rw initrd=0x00800040,15M panic=5 def_tftp=tftp 0x00100000 $(kernel);tftp 0x00800000 $(initrd);setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver);bootm 0x00100000 0x00800000 stdin=serial stdout=serial stderr=serial enaMonExt=no enaFlashBuf=yes enaCpuStream=no bootdelay=3 disaMvPnp=no overEthAddr=no force_tftp=1 bootcmd=ide reset; ext2load ide 1:1 0x00100000 /$(kernel);ext2load ide 1:1 0x00800000 /$(initrd);setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver);bootm 0x00100000 0x00800000 Environment size: 1010/4092 bytes

U-Boot 1.1.1 (Feb 27 2008 - 22:04:35) D_G's BuffNASCentral Marvell version: 1.12.1 - TINY
bootargs=$(bootargs_base) $(bootargs_root) baudrate=115200 loads_echo=0 rootpath=/nfs/arm cpuName=926 CASset=min MALLOC_len=4 bootargs_end=:::DB88FXX81:eth0:none ethact=egiga0 ethaddr=00:16:01:41:4E:2B buffalo_minor_ver=BOOT_MINOR_VER=1.00 filesize=3c010 fileaddr=100000 ipaddr=192.168.11.150 serverip=192.168.11.149 buffalo_ver=BOOTVER=1.09 build_time=22:04:27 initrd=initrd.buffalo kernel=uImage.buffalo bootargs_base=console=ttyS0,115200 bootargs_root=root=/dev/sda2 rw initrd=0x00800040,15M panic=5 def_tftp=tftp 0x00100000 $(kernel);tftp 0x00800000 $(initrd);setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver) tftpboot=yes;bootm 0x0010000 stdin=serial stdout=serial stderr=serial enaMonExt=no enaFlashBuf=yes enaCpuStream=no ethprime=egiga0 bootdelay=3 disaMvPnp=no overEthAddr=no usb0Mode=host usb1Mode=host force_tftp=1 bootcmd=tftp 0x00100000 $(kernel);tftp 0x00800000 $(initrd);setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver) tftpboot=yes;bootm 0x00100000 Environment size: 1130/4092 bytes

Restoring Default Values to U-Boot Env Vars
'''Use at your own risk. Erasing in U-Boot can be potentially disasterous.''' Make sure you research your board before proceeding.

The values shown below are for a custom build of UBoot for an LSPro that uses the standard address and size. If you want to restore the values that were specified at build time for UBoot, you can do it with these steps: "CFG_FLASH_BASE"   CFG_FLASH_BASE "CFG_FLASH_SIZE"   CFG_FLASH_SIZE "CFG_ENV_SIZE"     CFG_ENV_SIZE "CFG_ENV_SECT_SIZE" CFG_ENV_SECT_SIZE "CFG_ENV_OFFSET"   CFG_ENV_OFFSET "CFG_ENV_ADDR"     CFG_ENV_ADDR
 * research (in UBoot sources, see the include/configs/.h) to see where the environment variables are and the size of the sector(s) for them, then compute the begin and the end, as in feroceon.h :
 * 1) define CFG_ENV_ADDR   			0xfffff000
 * 2) define CFG_ENV_SIZE			       0x1000
 * 3) define CFG_ENV_SECT_SIZE			0x1000
 * For newer versions of the u-boot source, it is more complicated to spot the valies, since there are many '#ifdefs'. Here is a help:
 * Identify your Board and determine which config has to be build, e.g. `buffalo_mvlswvl_6282_config` for a LS-WVL)
 * Run 'make _config'.
 * Fix `include/config.mk`:
 * One of the lines my start with `-e CPPFLAGS`: remove the `-e ` there.
 * If not cross-compiling, set `CROSS_COMPILE =`
 * Add this file `xxx.h` to the u-boot source:
 * 1) include 
 * Add this lines to the end of the Makefile (mind the Makefile syntax: the second line must star with a tab character):

xxxxxx: $(CPP) $(CPPFLAGS) xxx.h
 * run:

make xxxxxx | tail
 * This will give you something like this:

"CFG_FLASH_BASE" 0xf8000000 "CFG_FLASH_SIZE" 0x00080000 "CFG_ENV_SIZE" 0x10000 "CFG_ENV_SECT_SIZE" 0x10000 "CFG_ENV_OFFSET" (0x00080000 - 0x10000) "CFG_ENV_ADDR" ((0xf8000000) + 0x00080000 - 0x10000)

begin = fffff000 end = begin + 1000 = ffffffff => protect off fffff000 ffffffff Un-Protected 1 sectors => erase fffff000 ffffffff Erased 1 sectors => protect on fffff000 ffffffff Protected 1 sectors
 * compute the begin and end ( get out your "hexadecimal calculator" if your hex math skills are rusty! )
 * unprotect, erase and protect

LSPro
see the example above, but check your uboot source first

LS-HG
Using LNI's setup, it is as follows (check and adjust if you have a custom build) protect off fff60000 fff6ffff era fff60000 fff6ffff protect on fff60000 fff6ffff