The version and date can be found in U-boot's boot messages via [[NetCat-A_UBoot-Friendly_Network_Utility|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.

+

The version and date can be found in U-boot's boot messages via [[NetCat-A_UBoot-Friendly_Network_Utility|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).

'''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:

+

*research (in UBoot sources, see the include/configs/<boardname-or-linkstation-name>.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 :

+

#define CFG_ENV_ADDR 0xfffff000

+

#define CFG_ENV_SIZE 0x1000

+

#define CFG_ENV_SECT_SIZE 0x1000

+

*compute the begin and end ( '''get out your "hexadecimal calculator" if your hex math skills are rusty!''' )

+

begin = fffff000

+

end = begin + 1000 = ffffffff

+

*unprotect, erase and protect

+

=> protect off fffff000 ffffffff

+

Un-Protected 1 sectors

+

=> erase fffff000 ffffffff

+

Erased 1 sectors

+

=> protect on fffff000 ffffffff

+

Protected 1 sectors

+

+

===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)

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:

source of U-boot (Buffalo, wiki, foonas)

the version

the date of build and

all stock/standard env vars.

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).

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:

research (in UBoot sources, see the include/configs/<boardname-or-linkstation-name>.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 :