2007-07-12 18:35:42 +02:00
|
|
|
.\"***************************************************************************\
|
2008-10-31 06:40:04 +01:00
|
|
|
.\" nvramtool.8
|
2007-07-12 18:35:42 +02:00
|
|
|
.\"***************************************************************************
|
|
|
|
.\" Copyright (C) 2002, 2003 The Regents of the University of California.
|
|
|
|
.\" Produced at the Lawrence Livermore National Laboratory.
|
|
|
|
.\" Written by David S. Peterson <dsp@llnl.gov> <dave_peterson@pobox.com>.
|
|
|
|
.\" UCRL-CODE-2003-012
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
2008-03-01 20:06:32 +01:00
|
|
|
.\" This file is part of nvramtool, a utility for reading/writing coreboot
|
2008-01-18 16:33:49 +01:00
|
|
|
.\" parameters and displaying information from the coreboot table.
|
2008-03-01 20:06:32 +01:00
|
|
|
.\" For details, see http://coreboot.org/nvramtool.
|
2007-07-12 18:35:42 +02:00
|
|
|
.\"
|
|
|
|
.\" Please also read the file DISCLAIMER which is included in this software
|
|
|
|
.\" distribution.
|
|
|
|
.\"
|
|
|
|
.\" This program is free software; you can redistribute it and/or modify it
|
|
|
|
.\" under the terms of the GNU General Public License (as published by the
|
|
|
|
.\" Free Software Foundation) version 2, dated June 1991.
|
|
|
|
.\"
|
|
|
|
.\" This program is distributed in the hope that it will be useful, but
|
|
|
|
.\" WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
|
|
|
|
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
|
|
|
|
.\" conditions of the GNU General Public License for more details.
|
|
|
|
.\"
|
|
|
|
.\" You should have received a copy of the GNU General Public License along
|
|
|
|
.\" with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
.\" 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
|
|
|
|
.\"***************************************************************************/
|
2008-10-31 06:40:04 +01:00
|
|
|
.TH NVRAMTOOL 8 "September 2008"
|
2007-07-12 18:35:42 +02:00
|
|
|
.SH NAME
|
2008-03-01 20:06:32 +01:00
|
|
|
nvramtool \- read/write coreboot-related information
|
2007-07-12 18:35:42 +02:00
|
|
|
.SH SYNOPSIS
|
2008-03-01 20:06:32 +01:00
|
|
|
.B "nvramtool [OPTS] [-n] -r NAME"
|
2007-07-12 18:35:42 +02:00
|
|
|
.br
|
2008-03-01 20:06:32 +01:00
|
|
|
.B "nvramtool [OPTS] -e NAME"
|
2007-07-12 18:35:42 +02:00
|
|
|
.br
|
2008-03-01 20:06:32 +01:00
|
|
|
.B "nvramtool [OPTS] -a"
|
2007-07-12 18:35:42 +02:00
|
|
|
.br
|
2008-03-01 20:06:32 +01:00
|
|
|
.B "nvramtool [OPTS] -w NAME=VALUE"
|
2007-07-12 18:35:42 +02:00
|
|
|
.br
|
2008-03-01 20:06:32 +01:00
|
|
|
.B "nvramtool [OPTS] -p INPUT_FILE"
|
2007-07-12 18:35:42 +02:00
|
|
|
.br
|
2008-03-01 20:06:32 +01:00
|
|
|
.B "nvramtool [OPTS] -i"
|
2007-07-12 18:35:42 +02:00
|
|
|
.br
|
2008-03-01 20:06:32 +01:00
|
|
|
.B "nvramtool [OPTS] -c [VALUE]"
|
2007-07-12 18:35:42 +02:00
|
|
|
.br
|
2008-03-01 20:06:32 +01:00
|
|
|
.B "nvramtool [OPTS] -l [ARG]"
|
2007-07-12 18:35:42 +02:00
|
|
|
.br
|
2008-03-01 20:06:32 +01:00
|
|
|
.B "nvramtool [OPTS] -d"
|
2007-07-12 18:35:42 +02:00
|
|
|
.br
|
2008-03-01 20:06:32 +01:00
|
|
|
.B "nvramtool [OPTS] -Y"
|
2007-07-12 18:35:42 +02:00
|
|
|
.br
|
2008-03-01 20:06:32 +01:00
|
|
|
.B "nvramtool [OPTS] -b OUTPUT_FILE"
|
2007-07-12 18:35:42 +02:00
|
|
|
.br
|
2008-03-01 20:06:32 +01:00
|
|
|
.B "nvramtool [OPTS] -B INPUT_FILE"
|
2007-07-12 18:35:42 +02:00
|
|
|
.br
|
2008-03-01 20:06:32 +01:00
|
|
|
.B "nvramtool [OPTS] -x"
|
2007-07-12 18:35:42 +02:00
|
|
|
.br
|
2008-03-01 20:06:32 +01:00
|
|
|
.B "nvramtool [OPTS] -X DUMPFILE"
|
2007-07-12 18:35:42 +02:00
|
|
|
.br
|
2008-03-01 20:06:32 +01:00
|
|
|
.B "nvramtool [OPTS] -v"
|
2007-07-12 18:35:42 +02:00
|
|
|
.br
|
2008-03-01 20:06:32 +01:00
|
|
|
.B "nvramtool [OPTS] -h"
|
2007-07-12 18:35:42 +02:00
|
|
|
.SH DESCRIPTION
|
2008-03-01 20:06:32 +01:00
|
|
|
.B "nvramtool"
|
2008-01-18 16:33:49 +01:00
|
|
|
is a utility for reading/writing coreboot parameters and displaying
|
|
|
|
information from the coreboot table.
|
2007-07-12 18:35:42 +02:00
|
|
|
|
2008-01-18 16:33:49 +01:00
|
|
|
The coreboot table resides in low physical memory. It is created at boot
|
|
|
|
time by coreboot, and contains various system information such as the type
|
2007-07-12 18:35:42 +02:00
|
|
|
of mainboard in use. It specifies locations in the CMOS (nonvolatile RAM)
|
2008-01-18 16:33:49 +01:00
|
|
|
where the coreboot parameters are stored.
|
2007-07-12 18:35:42 +02:00
|
|
|
|
2008-01-18 16:33:49 +01:00
|
|
|
This program is intended for (x86-based) systems that use coreboot. For
|
|
|
|
information about coreboot, see
|
2007-07-12 18:35:42 +02:00
|
|
|
.br
|
2008-01-18 16:33:49 +01:00
|
|
|
http://www.coreboot.org/.
|
2007-07-12 18:35:42 +02:00
|
|
|
.SH PARAMETERS
|
|
|
|
.TP
|
|
|
|
.B "[-n] -r NAME"
|
2008-01-18 16:33:49 +01:00
|
|
|
Show the value of the coreboot parameter given by
|
2007-07-12 18:35:42 +02:00
|
|
|
.B "NAME."
|
|
|
|
If
|
|
|
|
.B "-n"
|
|
|
|
is specified, show only the value. Otherwise show both parameter name and
|
|
|
|
value.
|
|
|
|
.TP
|
|
|
|
.B "-e NAME"
|
|
|
|
Show all possible values for parameter given by
|
|
|
|
.B "NAME."
|
|
|
|
.TP
|
|
|
|
.B "-a"
|
2008-01-18 16:33:49 +01:00
|
|
|
Show the names and values for all coreboot parameters.
|
2007-07-12 18:35:42 +02:00
|
|
|
.TP
|
|
|
|
.B "-w NAME=VALUE"
|
|
|
|
Assign
|
|
|
|
.B "VALUE"
|
2008-01-18 16:33:49 +01:00
|
|
|
to coreboot parameter given by
|
2007-07-12 18:35:42 +02:00
|
|
|
.B "NAME."
|
|
|
|
.TP
|
|
|
|
.B "-p INPUT_FILE"
|
2008-01-18 16:33:49 +01:00
|
|
|
Assign values to coreboot parameters according to the contents of
|
2007-07-12 18:35:42 +02:00
|
|
|
.B "INPUT_FILE."
|
|
|
|
The format of this file is described below.
|
|
|
|
.TP
|
|
|
|
.B "-i"
|
|
|
|
This is similar to the
|
|
|
|
.B "-p"
|
|
|
|
option, except that the contents of the input file are taken from standard
|
|
|
|
input.
|
|
|
|
.TP
|
|
|
|
.B "-c [VALUE]"
|
|
|
|
If
|
|
|
|
.B "VALUE"
|
2008-01-18 16:33:49 +01:00
|
|
|
is present then set the CMOS checksum for the coreboot parameters to
|
2007-07-12 18:35:42 +02:00
|
|
|
.B "VALUE."
|
|
|
|
Otherwise, show the checksum value.
|
|
|
|
.TP
|
|
|
|
.B "-l [ARG]"
|
|
|
|
If
|
|
|
|
.B "ARG"
|
2008-01-18 16:33:49 +01:00
|
|
|
is present then show information from the coreboot table as specified by
|
2007-07-12 18:35:42 +02:00
|
|
|
.B "ARG."
|
|
|
|
Otherwise show all possible values for
|
|
|
|
.B "ARG."
|
|
|
|
.TP
|
|
|
|
.B "-d"
|
2008-01-18 16:33:49 +01:00
|
|
|
Do a low-level dump of the coreboot table.
|
2007-07-12 18:35:42 +02:00
|
|
|
.TP
|
|
|
|
.B "-Y"
|
|
|
|
Write CMOS layout information to standard output. If redirected to a file,
|
|
|
|
the layout information may be used as input for the
|
|
|
|
.B "'-y LAYOUT_FILE'"
|
|
|
|
option (see below).
|
|
|
|
.TP
|
|
|
|
.B "-b OUTPUT_FILE"
|
|
|
|
Write the contents of CMOS memory to the binary file
|
|
|
|
.B "OUTPUT_FILE."
|
|
|
|
The first 14 bytes of
|
|
|
|
.B "OUTPUT_FILE"
|
|
|
|
do not contain actual CMOS data, and are always written as zeros. This is
|
|
|
|
because the first 14 bytes of the CMOS area do not contain CMOS memory. These
|
|
|
|
bytes are involved with the functioning of the real time clock.
|
|
|
|
.TP
|
|
|
|
.B "-B INPUT_FILE"
|
|
|
|
Read binary data from
|
|
|
|
.B "INPUT_FILE"
|
|
|
|
and write the data to CMOS memory. The first 14 bytes of
|
|
|
|
.B "INPUT_FILE"
|
|
|
|
are skipped and data is written to CMOS starting at the 15th byte of the CMOS
|
|
|
|
area. This is because the first 14 bytes of the CMOS area do not contain CMOS
|
|
|
|
memory. These bytes are involved with the functioning of the real time clock.
|
|
|
|
.TP
|
|
|
|
.B "-x"
|
|
|
|
Show a hex dump of all CMOS data. The first 14 bytes of the dump do not
|
|
|
|
contain actual CMOS data, and are always shown as zeros. This is because the
|
|
|
|
first 14 bytes of the CMOS area do not contain CMOS memory. These bytes are
|
|
|
|
involved with the functioning of the real time clock.
|
|
|
|
.TP
|
|
|
|
.B "-X DUMPFILE"
|
|
|
|
Read binary data from
|
|
|
|
.B "DUMPFILE"
|
|
|
|
(presumably a CMOS dumpfile created using the
|
|
|
|
.B "-b OUTPUT_FILE"
|
|
|
|
option) and show a hex dump of the data.
|
|
|
|
.TP
|
|
|
|
.B "-v"
|
|
|
|
Show version information for this program.
|
|
|
|
.TP
|
|
|
|
.B "-h"
|
|
|
|
Show a help message for this program.
|
|
|
|
.SH "OPTIONS"
|
|
|
|
In all cases above,
|
|
|
|
.B "[OPTS]"
|
|
|
|
evaluates to the following:
|
|
|
|
|
|
|
|
.B " [-y LAYOUT_FILE | -t]"
|
|
|
|
|
|
|
|
The
|
|
|
|
.B "'-y LAYOUT_FILE'"
|
2008-03-01 20:06:32 +01:00
|
|
|
option tells nvramtool to obtain CMOS layout information from the contents of
|
2007-07-12 18:35:42 +02:00
|
|
|
.B "LAYOUT_FILE."
|
|
|
|
Likewise, the
|
|
|
|
.B "'-t'"
|
2008-03-01 20:06:32 +01:00
|
|
|
option tells nvramtool to obtain CMOS layout information from the CMOS option
|
2008-01-18 16:33:49 +01:00
|
|
|
table (contained within the coreboot table). If neither option is
|
2007-07-12 18:35:42 +02:00
|
|
|
specified, the CMOS option table is used by default.
|
|
|
|
.B "LAYOUT_FILE"
|
|
|
|
follows the format of the
|
|
|
|
.B "cmos.layout"
|
2008-01-18 16:33:49 +01:00
|
|
|
files provided by coreboot.
|
2007-07-12 18:35:42 +02:00
|
|
|
|
2008-01-18 16:33:49 +01:00
|
|
|
If the coreboot installed on your system was built without specifying
|
2009-06-30 17:23:20 +02:00
|
|
|
.B "CONFIG_HAVE_OPTION_TABLE,"
|
2008-01-18 16:33:49 +01:00
|
|
|
then the coreboot table will not contain a CMOS option table. In this case,
|
2007-07-12 18:35:42 +02:00
|
|
|
the
|
|
|
|
.B "'-y LAYOUT_FILE'"
|
|
|
|
option must be used.
|
|
|
|
|
|
|
|
These two options are silently ignored when used in combination with other
|
|
|
|
options (such as
|
|
|
|
.B "-h,"
|
|
|
|
for instance) for which they are not applicable.
|
|
|
|
.SH FILE FORMAT
|
|
|
|
For the
|
|
|
|
.B "-p"
|
|
|
|
option,
|
|
|
|
.B "INPUT_FILE"
|
|
|
|
must consist of a sequence of lines such that each line is either a blank
|
|
|
|
line, a comment, or an assignment. A blank line consists only of zero or
|
|
|
|
more whitespace characters (spaces and tabs). A comment is constructed as
|
|
|
|
follows:
|
|
|
|
|
|
|
|
.B " [ws]#[text]"
|
|
|
|
|
|
|
|
Here,
|
|
|
|
.B "[ws]"
|
|
|
|
indicates optional whitespace characters and
|
|
|
|
.B "[text]"
|
|
|
|
indicates optional text. Blank lines and comments are both ignored. An
|
|
|
|
assignment is constructed as follows:
|
|
|
|
|
|
|
|
.B " [ws]NAME[ws]=[ws]VALUE[ws]"
|
|
|
|
|
|
|
|
Here,
|
|
|
|
.B "NAME"
|
2008-01-18 16:33:49 +01:00
|
|
|
is the name of a coreboot parameter and
|
2007-07-12 18:35:42 +02:00
|
|
|
.B "VALUE"
|
|
|
|
is the value that will be assigned to
|
|
|
|
.B "NAME."
|
|
|
|
.B "VALUE"
|
|
|
|
is allowed to contain whitespace characters, but it must begin and end with
|
|
|
|
nonwhitespace characters. Note that each comment must appear on a line by
|
|
|
|
itself. If you attempt to add a comment to the end of an assignment, then the
|
|
|
|
comment will be interpreted as part of
|
|
|
|
.B "VALUE."
|
|
|
|
It is useful to observe that the output produced by both the
|
|
|
|
.B "-a"
|
|
|
|
and the
|
|
|
|
.B "'[-n] NAME'"
|
|
|
|
options (without
|
|
|
|
.B "-n"
|
|
|
|
specified) adheres to this file format.
|
|
|
|
.SH BUGS
|
|
|
|
This program does not implement any type of synchronization to ensure that
|
|
|
|
different processes don't stomp on each other when trying to access the
|
|
|
|
nonvolatile RAM simultaneously. Therefore, corruption of the BIOS parameter
|
|
|
|
values may occur if multiple instances of this program are executed
|
|
|
|
concurrently.
|
|
|
|
.SH AUTHORS
|
|
|
|
David S. Peterson <dsp@llnl.gov> <dave_peterson@pobox.com>
|
|
|
|
.br
|
2008-09-27 12:08:28 +02:00
|
|
|
Stefan Reinauer <stepan@coresystems.de>
|