From owner-freebsd-sparc64@FreeBSD.ORG Sat May 22 10:14:51 2004 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 490B516A4CE for ; Sat, 22 May 2004 10:14:51 -0700 (PDT) Received: from newtrinity.zeist.de (newtrinity.zeist.de [217.24.217.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id B832543D3F for ; Sat, 22 May 2004 10:14:48 -0700 (PDT) (envelope-from marius@newtrinity.zeist.de) Received: from newtrinity.zeist.de (localhost [127.0.0.1]) i4MHEHfQ059193 for ; Sat, 22 May 2004 19:14:17 +0200 (CEST) (envelope-from marius@newtrinity.zeist.de) Received: (from marius@localhost) by newtrinity.zeist.de (8.12.10/8.12.10/Submit) id i4MHECUO059192 for freebsd-sparc@freebsd.org; Sat, 22 May 2004 19:14:12 +0200 (CEST) (envelope-from marius) Date: Sat, 22 May 2004 19:14:12 +0200 From: Marius Strobl To: freebsd-sparc@freebsd.org Message-ID: <20040522191412.B1600@newtrinity.zeist.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i X-AntiVirus: checked by AntiVir Milter 1.1-beta; AVE 6.25.0.59; VDF 6.25.0.73 (host: newtrinity.zeist.de) Subject: New utility eeprom(8) [marius@freebsd.org: cvs commit: src/usr.sbin/eeprom Makefile eeprom.8 eeprom.c ofw_options.c ofw_options.h] X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 May 2004 17:14:51 -0000 FYI, in case it didn't break world, -current FreeBSD/sparc64 now has a new utility. ----- Forwarded message from Marius Strobl ----- FreeBSD src repository Added files: usr.sbin/eeprom Makefile eeprom.8 eeprom.c ofw_options.c ofw_options.h Log: 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) Revision Changes Path 1.3 +12 -0 src/usr.sbin/eeprom/Makefile (new) 1.3 +668 -0 src/usr.sbin/eeprom/eeprom.8 (new) 1.4 +153 -0 src/usr.sbin/eeprom/eeprom.c (new) 1.1 +314 -0 src/usr.sbin/eeprom/ofw_options.c (new) 1.1 +34 -0 src/usr.sbin/eeprom/ofw_options.h (new) _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org" ----- End forwarded message -----