Judging from my analysis of the Firmware Updaters for various G4 (including the cube) it should be surprisingly easy to run those flashers officially "requiring" Mac OS 9 from OS X instead !
The "Firmware Updater" included in such a download does NOT perform the flashing, but only checks if the update can be applied ("Firmware" file supports the Mac model and has a newer version) and arranges to restart the Mac into the "Firmware" file. This file not only contains the new firmware image, but in front of it also the complete program required to flash the ROM. The flasher is written (mostly) in FCode source allowing deep insights into its inner workings (if Forth is your kind of bedtime reading).
All of this means that the flasher runs in the context of the Open Firmware before any part of (any) Mac OS is even loaded and does NOT depend on a specific version. It should therefore be possible to simply boot a copy of the "Firmware" file on a hard disk from the Open Firmware command prompt.
In order to make this process painless to comply with I've created a short script (available for download as fwupdater):
#! /bin/bash - flasher='/Volumes/G4 Cube Firmware Update/G4 Cube Firmware' cp -ip "$flasher" /TrashMe || exit preferred=(`nvram boot-device`) IFS=\", bootpath=(`ioreg -p IODeviceTree -n chosen -w0 | fgrep bootpath`) sudo nvram boot-command=mac-boot boot-device="${bootpath[3]},\\TrashMe" \ preferred-boot-device="${preferred[1]}" && osascript -e 'tell application "System Events" to shut down' sudo -k
It first copies the "Firmware" file to the root of the boot disk and carefully sets it up as boot-device so the flasher will run on the next system start, even it is on a slave ATA disk or maybe an external firewire drive. The flasher will restore the former boot-device after it's done. No verification is performed, but the flasher will roughly test for compatibility on its own.
Steps to follow while logged in as an administrator:
- Download the updater. English is assumed, but the firmware itself is not language dependent.
- Print the instructions while still on this page.
- Open the disk image so it will appear on the desktop.
- Open fwupdater from the Finder. It will launch in a Terminal window and ask for your password so the boot device can be set. After that the Mac will be shut down.
- Closely obey the printed instruction on turning on again while holding the programmer's button (beginning with step 4).
- The flasher will restart the Mac after the update. Use the System Profiler to verify the new Boot ROM Version.
- Delete "TrashMe" from the root of the boot disk.
The script can be used for other PowerMacs with Mac OS 9-based firmware updaters, if the pathname at the top is set to the correct "Firmware" file.
IMPORTANT: I don't have a PowerMac requiring an update anywhere near me, so my tests couldn't include the flashing itself, and were only performed under Leopard. I'm confident that the method described here does work (under any version of Mac OS X), and it eliminates the need to "borrow" (or buy) and install Mac OS 9 when a firmware update is all that is needed.
Volunteers ?
No comments:
Post a Comment