![[weng1 mai4 ke3]](/meng/inc/wmk.gif)
click to see · about · academic · photography · hacking · random · people · visitors' book
This page describes a number of Open Firmware commands on modern Apple Macintoshes. These commands permit the use of a boot menu, allowing the user to easily switch between Mac OS 9, Mac OS X, Linux, multiple boot devices, and so on.
HEALTH WARNING: It is possible to stop your computer from booting, leaving you with a dead Mac, or at worst to damage your hardware by inadvertent modification of hardware parameters in Open Firmware. In addition, Apple Support may refuse to support your Mac with such modifications in place. It is normally possible to reset Open Firmware variables to default settings by holding down Command-Option-P-R simultaneously whilst switching on the machine.
You should note that the management will not be responsible for any damage or distress caused by the correct or incorrect use of the software or commands specified on this page. So there.
Open Firmware is a inbuilt FORTH interpreter on the Mac which allows specification of boot variables and modification of system parameters, amongst other things. For readers familiar with Sun equipment, Open Firmware is very similar in design and use to Sun OpenBoot, as they conform to the same specification. In fact, many of the commands are compatible.
One of the principal differences between Open Firmware and OpenBoot is that Open Firmware is not designed for use by end-users. For this reason, there is relatively little help and documentation available. Primarily, documentation is provided in three Apple Developer TechNotes (see REFERENCES for details).
On 'new-world' Macs (from the iMac onwards), it is possible to get into Open Firmware by holding down Command-Option-O-F during power on (before the 'Happy Mac' or Apple logo appears on the display).
The following commands can then be typed at the prompt. The command reset-all will reboot the machine, writing any changes.
Download bootstrap to the root of your boot hard disk. Note that this is a plain-text file with Mac line breaks, not Unix line breaks. SimpleText on OS 9 can be used to edit such a file.
A Unix text version of bootstrap can be downloaded here. It is highly recommended that you examine the file carefully before installing it in your system!
Now enter the following commands in OF to load the bootstrap:
setenv boot-command boot setenv boot-device hd:\bootstrap reset-all
This allows you to see the boot messages on the console as the system comes up and down. It is similar to holding down V at boot time.
setenv boot-args -v reset-all
This is the well known modification which allows dual-head operation on some models of iBooks and iMacs.
nvedit " /" select-dev 00000008 " graphic-options" get-my-property 2drop ! unselect[press control-c to leave nvedit]
nvstore setenv use-nvramrc? true reset-all
password setenv security-mode full reset-all
To switch off password protection:
setenv security-mode none reset-all
Apple Technotes TN1044 TN1061 TN1052 and TN2001 are relevant.
Note: You are viewing the No-CSS (Netscape 4 friendly) version of this page. Your browser is: CCBot/1.0 (+http://www.commoncrawl.org/bot.html).
Michael Eng