6/29/2000
STOP! Read this first:
To get into Open Firmware on Apple hardware, reboot the machine and hold down the keys <cmd> <option> <O> <F>. The <cmd> key is the one with the picture of the apple or the cloverleaf in it.
printenv |
Prints all current variables and their defaults |
printenv variable |
Prints current and devault value of variable |
setenv variable value |
Sets variable to given value |
set-defaults |
Resets all variables to factory defaults |
reset-all |
Reboots the machine |
shut-down |
Powers down |
boot |
Boots the machine with the value of boot-device |
: reboot reset-all ; |
Defines reboot as a command to reboot the computer, but it doesn't persist across reboots. |
Values of boot-device. These values are what you'll probably spend most of your time on.
setenv boot-device value
where value is:
hd:8,\\bootinfo.txt |
Tells the machine to use the file bootinfo.txt in the System folder on disk partition 8 as boot instructions |
enet:bootp |
Boot from the network |
enet:123.100.100.3 |
Boot from a specific BootP server |
enet:123.100.100.3,\usr\local\bin\kernel.elf |
Boot from a specific file on a specific server |
hd:8,\\:tbxi |
Tells the machine to find the first file of Mac type tbxi in the System folder on disk partition 8 as boot instructions |
How do you define a Forth word that persists across reboots? I think you gotta use nvramrc. More on this as I figure it out.