coreboot-kgpe-d16/util/nvramtool
Stefan Reinauer a67aab7083 Add string support to nvramtool.
To add a string to your cmos.layout, you need to specify type 's':

#start     len       type    unused   name
416        512       s       0        boot_devices

With this patch you can do

$ nvramtool -w boot_devices="(hd0,0);(hd2,1);(hd3)"

And FILO will attempt to load a menu.lst from any of these devices in that
order.

The patch is not exactly pretty, but a cleaner solution might have resulted in
a complete rewrite of the tool, which I did not want.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Joseph Smith <joe@settoplinux.org>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3613 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2008-09-27 10:08:28 +00:00
..
COPYING Rename lxbios to nvramtool, step 3 (rename directory). 2008-03-01 19:09:01 +00:00
ChangeLog Add string support to nvramtool. 2008-09-27 10:08:28 +00:00
DISCLAIMER Add string support to nvramtool. 2008-09-27 10:08:28 +00:00
Makefile Add string support to nvramtool. 2008-09-27 10:08:28 +00:00
README Add string support to nvramtool. 2008-09-27 10:08:28 +00:00
cmos_lowlevel.c Add string support to nvramtool. 2008-09-27 10:08:28 +00:00
cmos_lowlevel.h Add string support to nvramtool. 2008-09-27 10:08:28 +00:00
cmos_ops.c Add string support to nvramtool. 2008-09-27 10:08:28 +00:00
cmos_ops.h Add string support to nvramtool. 2008-09-27 10:08:28 +00:00
common.c Add string support to nvramtool. 2008-09-27 10:08:28 +00:00
common.h Add string support to nvramtool. 2008-09-27 10:08:28 +00:00
compute_ip_checksum.c Add string support to nvramtool. 2008-09-27 10:08:28 +00:00
coreboot_tables.h Rename lxbios to nvramtool, step 3 (rename directory). 2008-03-01 19:09:01 +00:00
hexdump.c Add string support to nvramtool. 2008-09-27 10:08:28 +00:00
hexdump.h Add string support to nvramtool. 2008-09-27 10:08:28 +00:00
input_file.c Add string support to nvramtool. 2008-09-27 10:08:28 +00:00
input_file.h Add string support to nvramtool. 2008-09-27 10:08:28 +00:00
ip_checksum.h Add string support to nvramtool. 2008-09-27 10:08:28 +00:00
layout.c Add string support to nvramtool. 2008-09-27 10:08:28 +00:00
layout.h Add string support to nvramtool. 2008-09-27 10:08:28 +00:00
layout_file.c Add string support to nvramtool. 2008-09-27 10:08:28 +00:00
layout_file.h Add string support to nvramtool. 2008-09-27 10:08:28 +00:00
lbtable.c Add string support to nvramtool. 2008-09-27 10:08:28 +00:00
lbtable.h Add string support to nvramtool. 2008-09-27 10:08:28 +00:00
nvramtool.1 Add string support to nvramtool. 2008-09-27 10:08:28 +00:00
nvramtool.c Add string support to nvramtool. 2008-09-27 10:08:28 +00:00
nvramtool.spec Add string support to nvramtool. 2008-09-27 10:08:28 +00:00
opts.c Add string support to nvramtool. 2008-09-27 10:08:28 +00:00
opts.h Add string support to nvramtool. 2008-09-27 10:08:28 +00:00
reg_expr.c Add string support to nvramtool. 2008-09-27 10:08:28 +00:00
reg_expr.h Add string support to nvramtool. 2008-09-27 10:08:28 +00:00

README

Summary of Operation
--------------------
nvramtool is a utility for reading/writing coreboot parameters and
displaying information from the coreboot table.  It is intended for x86-based
systems (both 32-bit and 64-bit) that use coreboot.

The coreboot table resides in low physical memory, and may be accessed
through the /dev/mem interface.  It is created at boot time by coreboot, and
contains various system information such as the type of mainboard in use.  It
specifies locations in the CMOS (nonvolatile RAM) where the coreboot
parameters are stored.

For information about coreboot, see http://www.coreboot.org/.

Ideas for Future Improvements
-----------------------------
1.  Move the core functionality of this program into a shared library.
2.  Consider adding options for displaying other BIOS-provided information
    such as the MP table, ACPI table, PCI IRQ routing table, etc.