Deleted Added
full compact
nvram2env.4 (233515) nvram2env.4 (233648)
1.\" Copyright (c) 2011 Aleksandr Rybalko
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 8 unchanged lines hidden (view full) ---

17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
1.\" Copyright (c) 2011 Aleksandr Rybalko
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 8 unchanged lines hidden (view full) ---

17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
25.\" $FreeBSD: head/share/man/man4/nvram2env.4 233515 2012-03-26 16:40:45Z joel $
25.\" $FreeBSD: head/share/man/man4/nvram2env.4 233648 2012-03-29 05:02:12Z eadler $
26.\"
27.Dd April 3, 2011
28.Dt NVRAM2ENV 4
29.Os
30.Sh NAME
31.Nm nvram2env
32.Nd "copy nvram-like data into kernel environment"
33.Sh SYNOPSIS

--- 5 unchanged lines hidden (view full) ---

39used by various device drivers at boot-time.
40.Pp
41The NVRAM-like data is an array of zero terminated strings. Each string contains
42the string name, "=" delimiter and the string value.
43.Pp
44.Nm
45copies the environment values into kernel environment using the kernel setenv call.
46.Pp
26.\"
27.Dd April 3, 2011
28.Dt NVRAM2ENV 4
29.Os
30.Sh NAME
31.Nm nvram2env
32.Nd "copy nvram-like data into kernel environment"
33.Sh SYNOPSIS

--- 5 unchanged lines hidden (view full) ---

39used by various device drivers at boot-time.
40.Pp
41The NVRAM-like data is an array of zero terminated strings. Each string contains
42the string name, "=" delimiter and the string value.
43.Pp
44.Nm
45copies the environment values into kernel environment using the kernel setenv call.
46.Pp
47Configuration of
47Configuration of
48.Nm
49is done in
50.Xr device.hints 5
51defining the NVRAM base address, fallback base address, maxsize and flags.
52.Pp
53.Nm
54is currently MIPS-specific.
55.Ss base

--- 8 unchanged lines hidden (view full) ---

64.Bl -tag -width indent
65.It Fa 0x0001
66Avoid CRC checking. Currently CRC checking is not implemented, so to be future
67compatible, please set it to "1".
68.It Fa 0x0002
69Use format "Generic", skip uint32_t field, then zero terminating array of
70strings.
71.It Fa 0x0004
48.Nm
49is done in
50.Xr device.hints 5
51defining the NVRAM base address, fallback base address, maxsize and flags.
52.Pp
53.Nm
54is currently MIPS-specific.
55.Ss base

--- 8 unchanged lines hidden (view full) ---

64.Bl -tag -width indent
65.It Fa 0x0001
66Avoid CRC checking. Currently CRC checking is not implemented, so to be future
67compatible, please set it to "1".
68.It Fa 0x0002
69Use format "Generic", skip uint32_t field, then zero terminating array of
70strings.
71.It Fa 0x0004
72Use Broadcom CFE format. uint32_t signature "FLSH", uint32_t size,
72Use Broadcom CFE format. uint32_t signature "FLSH", uint32_t size,
73three unused fields uint32_t, then data.
74.It Fa 0x0008
75Use U-Boot format, uint32_t crc, then zero terminating array of strings.
76.El
77.Sh EXAMPLES
78Usage in U-Boot case:
79.Bd -literal -offset indent
80hint.nvram.0.base=0x1f030000

--- 38 unchanged lines hidden ---
73three unused fields uint32_t, then data.
74.It Fa 0x0008
75Use U-Boot format, uint32_t crc, then zero terminating array of strings.
76.El
77.Sh EXAMPLES
78Usage in U-Boot case:
79.Bd -literal -offset indent
80hint.nvram.0.base=0x1f030000

--- 38 unchanged lines hidden ---