A question to creators of ROM file for Mac Mini or those in the know: why are there two instances of 'PowerMac10,1 PowerMac10,2' and several other lines in the boot script in ROM file? Was it done on purpose? If so, why?
I'm playing with ROMs for other unsupported Macs and trying to learn..
<COMPATIBLE>
PowerMac10,1 PowerMac10,2 PowerMac10,1 PowerMac10,2 MacRISC
</COMPATIBLE>
\ Hacks for Mac mini, should not affect other machines
" /" select-dev " model" active-package get-package-property 0= if
decode-string 2swap 2drop 2dup " PowerMac10,1" $= -rot " PowerMac10,2" $= or if
\ Pretend to be a Power Mac G4 Cube
" /" select-dev
" PowerMac5,1" encode-string 2dup
" model" property
" MacRISC" encode-string encode+
" MacRISC2" encode-string encode+
" Power Macintosh" encode-string encode+
" compatible" property
device-end
\ Pretend to have a PowerPC 7445/55, actual PVR unaffected
" /cpus/PowerPC,G4@0" select-dev
80010201 encode-int " cpu-version" property
device-end
\ Set prim-info (for PwrMgr v2 in NativePowerMgrLib)
" via-pmu/power-mgt" select-dev
000000ff encode-int
0000002c encode-int encode+
00030d40 encode-int encode+
0001e705 encode-int encode+ \ public features
00001400 encode-int encode+ \ private features
00000000 encode-int encode+
0000260d encode-int encode+
46000270 encode-int encode+
" prim-info" property
device-end
then
then \ End of mini hacks
\ Hacks for Mac mini, should not affect other machines
" /" select-dev " model" active-package get-package-property 0= if
decode-string 2swap 2drop 2dup " PowerMac10,1" $= -rot " PowerMac10,2" $= or if
\ Pretend to be a Power Mac G4 Cube
" /" select-dev
" PowerMac5,1" encode-string 2dup
" model" property
" MacRISC" encode-string encode+
" MacRISC2" encode-string encode+
" Power Macintosh" encode-string encode+
" compatible" property
device-end
\ Pretend to have a PowerPC 7445/55, actual PVR unaffected
" /cpus/PowerPC,G4@0" select-dev
80010201 encode-int " cpu-version" property
device-end
\ Set prim-info (for PwrMgr v2 in NativePowerMgrLib)
" via-pmu/power-mgt" select-dev
000000ff encode-int
0000002c encode-int encode+
00030d40 encode-int encode+
0001e705 encode-int encode+ \ public features
00001400 encode-int encode+ \ private features
00000000 encode-int encode+
0000260d encode-int encode+
46000270 encode-int encode+
" prim-info" property
device-end
then
then \ End of mini hacks