summaryrefslogtreecommitdiffstats
path: root/usr.sbin/eeprom/Makefile
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2004-05-22 16:56:04 +0000
committermarius <marius@FreeBSD.org>2004-05-22 16:56:04 +0000
commita08266267ee34fb4f993b271afb0a9b5fbd4df42 (patch)
tree4e9c977ad4a945e205be216e03f8b677a1253d9e /usr.sbin/eeprom/Makefile
parent5d73753e317837b93ebb38e6e949890f3bd419e6 (diff)
downloadFreeBSD-src-a08266267ee34fb4f993b271afb0a9b5fbd4df42.zip
FreeBSD-src-a08266267ee34fb4f993b271afb0a9b5fbd4df42.tar.gz
Add eeprom(8), a utility to display and modify system configurations
stored in EEPROM or NVRAM. It's inspired by the NetBSD eeprom(8) and the SunOS/Solaris eeprom(1M) utilities. Currently, this eeprom(8) only supports systems equipped with Open Firmware and is only tested on Sun machines but should work on any platform using Open Firmware. A bit more specific, eeprom(8) can be used on these systems to do the same under FreeBSD as can be done using the printenv and setenv commandos in the boot monitor. One thing that only hardly can be done using the boot monitor but easily with eeprom(8) is to write a logo to the "oem-logo" property. eeprom(8) may also be useful to recover the boot monitor password (in the default configuration only as root, of course), i.e. when the boot monitor allows you to boot but you can't alter the configuration because the password is unknown. The man page may also be a useful reference of the various configuration variables. The idea of eeprom(8) is that handlers can be written to add support for any firmware that stores such configuration in EEPROM or NVRAM; sort of e.g. eeprom(1M) on Solaris/x86 is used to turn PAE-support on and off (stored in a file then, not hardware). In FreeBSD, a candidate for this would be a handler for the EFI boot environment for FreeBSD/ia64. eeprom(8) uses some code from NetBSD (eeprom.c and the base for eeprom.8), the handler for the Open Firmware /options node (ofw_options.[c,h]) was written using ofw_util.[c,h] from ofwdump(8). Reviewed by: ru (slightly earlier version of the man page)
Diffstat (limited to 'usr.sbin/eeprom/Makefile')
-rw-r--r--usr.sbin/eeprom/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/usr.sbin/eeprom/Makefile b/usr.sbin/eeprom/Makefile
new file mode 100644
index 0000000..fa5f411
--- /dev/null
+++ b/usr.sbin/eeprom/Makefile
@@ -0,0 +1,12 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../ofwdump
+
+PROG= eeprom
+MAN= eeprom.8
+MANSUBDIR= /sparc64
+SRCS= eeprom.c ofw_options.c ofw_util.c
+WARNS?= 6
+CFLAGS+= -I${.CURDIR}/../ofwdump
+
+.include <bsd.prog.mk>
OpenPOWER on IntegriCloud