Is there a way to dump a specific fcode image to a file then load it in OF with the byte-load-file command?
In the iMac Bondi Blue FW I'm looking to extract the fcode image for the Rage Pro so I can load it for and AGP Rage Pro PC Card I have.
I wouldn't copy the fcode image directly to a file.
I would copy the Forth code created by DumpMacRom.sh into a new .of file and use
toke
to create the fcode from that.
toke
will verify that the Forth code doesn't use non-standard words that aren't guaranteed to exist in every version of Open Firmware.
toke
may shorten the fcode by substituting literals -1, 0, 1, 2, 3 with shorter fcodes numbers.
toke
may need to be modified to support adding external words (to define them but not implement them, like a C header file).
toke
may need to be modified to support some Mac specific Forth such as support for local variables.
I believe the built-in ATI GPU fcode should work as is without modification to
toke
.
Alas, it doesn't seem to work under 10.3.9. It's looking for kextutil, which either doesn't exist or isn't in the default path.
There's probably a way to load DirectHW.kext manually but it's been so long that I can't remember.
It only uses kextutil if it exists, otherwise it uses kextload.
View the contents of
get-new-world-rom.command
The first thing it does is load
KextUtil.sh
from the same folder.
The first thing that does is check if
kextutil
exists. If it doesn't exist then it will use kextload.
Is there something wrong with this command in Panther?
command -v kextutil && echo foundit || echo notfound
I haven't done testing in Mac OS X earlier than Tiger 10.4.11. My Panther 10.3.9 doesn't seem to boot currently. I need to reinstall if I can't repair it.[/icode]