|
NAMEnvram2env —
copy nvram-like data into kernel environment
SYNOPSISdevice nvram2env
DESCRIPTIONnvram2env implements a simple method of reading the
NVRAM-like data and information stored in flash and storing it in the kernel
environment. It can then be used by various device drivers at boot-time.
The NVRAM-like data is an array of zero terminated strings. Each string contains the string name, "=" delimiter and the string value.
Configuration of
basebase - physical address where data block is stored.fallbackbasefallbackbase - physical address where data block is stored, but only if not found at base.maxsizemaxsize - maximum size of data block.flagsflags - control flags, used to select nvram type and enable/disable CRC check.
EXAMPLESUsage in U-Boot case:hint.nvram.0.base=0x1f030000 hint.nvram.0.maxsize=0x2000 hint.nvram.0.flags=3 # 1 = No check, 2 = Format Generic hint.nvram.1.base=0x1f032000 hint.nvram.1.maxsize=0x4000 hint.nvram.1.flags=3 # 1 = No check, 2 = Format Generic CFE nvram with fallback: hint.nvram.0.base=0x1fff8000 hint.nvram.0.fallbackbase=0x1fc00400 hint.nvram.0.flags=4 # 4 = Format Broadcom but seems for CFE nvram preferred to read both blocks: NVRAM partition: Static, CFE internal hint.nvram.0.flags=0x05 # Broadcom + nocheck hint.nvram.0.base=0x1fc00400 Dynamic, editable form CFE, override values from first hint.nvram.1.flags=0x05 # Broadcom + nocheck hint.nvram.1.base=0x1cff8000 SEE ALSOkenv(1), kenv(2)HISTORYnvram2env first appeared in FreeBSD
9.0.
AUTHORSAleksandr Rybalko <ray@ddteam.net>
Visit the GSP FreeBSD Man Page Interface. |