blob: c75c0be5fb886587d6c6a007239ee7da95b43985 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
<table class="head">
<tr>
<td class="head-ltitle">NVRAM(4)</td>
<td class="head-vol">Device Drivers Manual</td>
<td class="head-rtitle">NVRAM(4)</td>
</tr>
</table>
<div class="manual-text">
<section class="Sh">
<h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
<p class="Pp"><code class="Nm">nvram</code> —
<span class="Nd">non-volatile RAM</span></p>
</section>
<section class="Sh">
<h1 class="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
<p class="Pp">To compile this driver into the kernel, place the following line
in your kernel configuration file:</p>
<div class="Bd Pp Bd-indent"><code class="Cd">device nvram</code></div>
<p class="Pp">Alternatively, to load the driver as a module at boot time, place
the following line in <a class="Xr">loader.conf(5)</a>:</p>
<div class="Bd Pp Bd-indent Li">
<pre>nvram_load="YES"</pre>
</div>
</section>
<section class="Sh">
<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
<p class="Pp">The <code class="Nm">nvram</code> driver provides access to BIOS
configuration NVRAM on i386 and amd64 systems.</p>
<p class="Pp">PC motherboard uses a small non-volatile memory to store BIOS
settings which is usually part of its clock chip and sometimes referred as
“CMOS SRAM”. This driver exposes bytes 14 through 128 of the
NVRAM, or a total of 114 bytes, at offset zero of the device file
<span class="Pa">/dev/nvram</span>.</p>
<p class="Pp">This driver is useful for cloning machines that shares the same
hardware configuration and need same BIOS setting tweaks.</p>
</section>
<section class="Sh">
<h1 class="Sh" id="IMPLEMENTATION_NOTES"><a class="permalink" href="#IMPLEMENTATION_NOTES">IMPLEMENTATION
NOTES</a></h1>
<p class="Pp">The BIOS NVRAM's bytes 16 through 31 are checksummed at byte 32.
This driver <a class="permalink" href="#does"><i class="Em" id="does">does
not</i></a> take care for these checksums.</p>
</section>
<section class="Sh">
<h1 class="Sh" id="EXAMPLES"><a class="permalink" href="#EXAMPLES">EXAMPLES</a></h1>
<p class="Pp">Backup existing BIOS NVRAM to
<span class="Pa">nvram.bin</span>:</p>
<p class="Pp"></p>
<div class="Bd Bd-indent"><code class="Li">dd if=/dev/nvram
of=nvram.bin</code></div>
<p class="Pp">Restore BIOS NVRAM from <span class="Pa">nvram.bin</span>:</p>
<p class="Pp"></p>
<div class="Bd Bd-indent"><code class="Li">dd if=nvram.bin
of=/dev/nvram</code></div>
</section>
<section class="Sh">
<h1 class="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
ALSO</a></h1>
<p class="Pp"><a class="Xr">dd(1)</a></p>
</section>
<section class="Sh">
<h1 class="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
<p class="Pp">The <code class="Nm">nvram</code> device driver first appeared in
<span class="Ux">FreeBSD 6.4</span>.</p>
</section>
<section class="Sh">
<h1 class="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
<p class="Pp">The <code class="Nm">nvram</code> device driver was written by
<span class="An">Peter Wemm</span>. This manual page was written by
<span class="An">Xin LI</span>.</p>
</section>
</div>
<table class="foot">
<tr>
<td class="foot-date">February 8, 2010</td>
<td class="foot-os">FreeBSD 15.0</td>
</tr>
</table>
|