There is a set of commands within Open Firmware that deal with this NVRAMRC. These commands are entered from the Open Firmware prompt (i.e. the 0 > prompt). As with all Open Firmware settings, it is best if you reset your machine after changing any settings using the reset-all command.
Modifying the NVRAMRC is pretty annoying, because the FORTH syntax is very picky (particularly about white space presence or absence) and the editor is very primitive. You might want to temporarily change to using a serial console so you can just paste in whatever patches you want.
nvedit | start the editor with the current nvramrc contents. If there is still a file in the temporary buffer, it resumes editing that file. Otherwise, it copies the NVRAMRC contents into the temporary buffer and starts editing it. |
nvstore | stores the temporary nvram buffer into NVRAMRC and discards the contents of the temporary buffer |
nvquit | discards the contents of the temporary nvramrc buffer without writing to NVRAMRC |
nvrun | executes the contents of the temporary nvram buffer |
nvalias <alias> <device-path-name> | defines an alias to the specified device (you must use the full path,
not other devaliases), for example: nvalias bsd-cd /bandit/gc/mesh/sd@3:0,\OFWBOOT.XCF will let you type `boot bsd-cd' and it will load ofwboot.xcf from the CD-ROM drive in a PowerMacintosh 7300 |
nvunalias <alias> | removes the device alias from the NVRAMRC |
setenv use-nvramrc? <value> | where <value> is either true or false. This environment variable determines whether or not the contents of the NVRAM are executed each time the machine is reset or rebooted |
Note: some Open Firmware 1.0.5 systems do not have enough NVRAM storage for the System Disk patches in addition to a nvalias setting. You should probably keep the System Disk patches instead of the nvalias.
C-l | refreshes the display |
C-k | deletes from the cursor to the end of that line of text |
C-n | moves to the next line of text |
C-p | moves to the previous line of text |
C-f | moves forward one character |
C-b | moves back one character |
C-c | exit the editor and store edited contents into a temporary buffer note: this does not save the changes to the NVRAMRC, you still need to run nvstore |
0 > nvedit cpoke 0a7 0f3000032 cpoke 093 0f3000033 cpoke 03e 0f300003a <C-c> 0 > nvstore 0 > setenv use-nvramrc? true 0 > reset-all
|
|