Author Topic: Booting Mac Os 9 on Mac Mini.  (Read 12128 times)

Offline MacTron

  • Global Moderator
  • Platinum Member
  • *****
  • Posts: 1942
  • keep it simple
Booting Mac Os 9 on Mac Mini.
« on: April 08, 2015, 02:00:45 PM »
I know that there was a few failed tries of booting Mac Os 9 on Mac Mini G4 with the iMic "Universal ROM" . I don't have any of this Macs nowadays, but I have a new suggestion if someone one is willing to try. I think the failure is because the G4 CPU is a 7447 or a 7448, so it needs the Openfirware Patch alongside the iMic "Universal ROM".
The Open Firmware commands needed are for just changing in the Device Tree the G4 CPU 7447 by 7455 or any other G4 CPU that the Mac Os 9 System knows about it . As we usually have to do when we use the 7447 or 7448 in a CPU upgrade card.
This commands were published around here... somewhere...

BTW: For the the Mac Os 8.6 fans, with this commands and a easy mod on the Mac Os ROM, may be we can boot the Mac Os 8.6 (the Sawtooth version) in to most of the Macintosh G4 family (up to QuickSilver)
Please don't PM about things that are not private.

Offline Knezzen

  • Platinum Member
  • *****
  • Posts: 723
  • Pro Tools addict!
    • Macintosh Garden
Re: Booting Mac Os 9 on Mac Mini.
« Reply #1 on: April 08, 2015, 02:44:25 PM »
It's worth a try! I have a 1.42ghz Mac Mini G4 here. I'll rig it up tomorrow for some tests :)

Offline mrhappy

  • Platinum Member
  • *****
  • Posts: 850
  • new to the forums
Re: Booting Mac Os 9 on Mac Mini.
« Reply #2 on: April 08, 2015, 06:11:48 PM »
That would be very cool! ;D

Offline MacTron

  • Global Moderator
  • Platinum Member
  • *****
  • Posts: 1942
  • keep it simple
Re: Booting Mac Os 9 on Mac Mini.
« Reply #3 on: April 09, 2015, 08:34:56 AM »
Bad news, it seems that this was tried already, but failed  :'(

https://www.thinkclassic.org/viewtopic.php?id=46&p=5

... but it seems that they have some success with the eMac 1.25
Please don't PM about things that are not private.

Offline Protools5LEGuy

  • Global Moderator
  • Platinum Member
  • *****
  • Posts: 2089
Re: Booting Mac Os 9 on Mac Mini.
« Reply #4 on: April 09, 2015, 09:04:36 AM »
There were 4 Minis (PPC) http://www.everymac.com/systems/apple/mac_mini/index-macmini.html
All the seem to share the Radeon 9200 with 16 or 32 or 64 gigs of VRAM.

They all have 10/100 ethernet, DVI output and a pair of USB.
Looking for MacOS 9.2.4

Offline custos

  • Consistant Contributor
  • ***
  • Posts: 78
Re: Booting Mac Os 9 on Mac Mini.
« Reply #5 on: December 26, 2015, 03:33:38 PM »
Just got a 1.25GHz model. There has got to be some way of getting it to boot os9.  :-\
"Things don't have to change the world to be important." -Steve Jobs

Offline Protools5LEGuy

  • Global Moderator
  • Platinum Member
  • *****
  • Posts: 2089
Re: Booting Mac Os 9 on Mac Mini.
« Reply #6 on: December 26, 2015, 04:46:35 PM »
4 Models with 7447a proc.

http://www.everymac.com/systems/apple/mac_mini/specs/mac_mini_g4_1.25.html

http://www.everymac.com/systems/apple/mac_mini/specs/mac_mini_g4_1.42.html

http://www.everymac.com/systems/apple/mac_mini/specs/mac_mini_g4_1.33.html

http://www.everymac.com/systems/apple/mac_mini/specs/mac_mini_g4_1.5.html

The first 3 have 32 and the last 64 Mb of RAM in the same ATI 9200 that is the last ATI (at least the PCI one) that has Mac OS 9 drivers.

As MacTron said, it should need some open firmware commands to allow those 7447a proc. run in 9.

Is the northbridge, MPX, MaxBuss chipset the same than on MDD/iMac G4?
Looking for MacOS 9.2.4

Offline nanopico

  • Platinum Member
  • *****
  • Posts: 665
Re: Booting Mac Os 9 on Mac Mini.
« Reply #7 on: January 16, 2016, 06:09:06 AM »
4 Models with 7447a proc.

http://www.everymac.com/systems/apple/mac_mini/specs/mac_mini_g4_1.25.html

http://www.everymac.com/systems/apple/mac_mini/specs/mac_mini_g4_1.42.html

http://www.everymac.com/systems/apple/mac_mini/specs/mac_mini_g4_1.33.html

http://www.everymac.com/systems/apple/mac_mini/specs/mac_mini_g4_1.5.html

The first 3 have 32 and the last 64 Mb of RAM in the same ATI 9200 that is the last ATI (at least the PCI one) that has Mac OS 9 drivers.

As MacTron said, it should need some open firmware commands to allow those 7447a proc. run in 9.

Is the northbridge, MPX, MaxBuss chipset the same than on MDD/iMac G4?

The northbridge/chipset in the mac mini is the same that was used in the G4 iBook and All but the last revision of the G4 PowerBooks.
It's the Intrepid chip.
If it ain't broke, don't fix it, or break it so you can fix it!

Offline androda

  • Active Member
  • **
  • Posts: 12
  • Auld Mac-Head
Mac Mini 1.33
« Reply #8 on: May 15, 2016, 05:02:04 AM »
By the way, anyone got a G4 mini?

Hello everyone, forum newbie here.

I just recently bought a G4 mini because of the work you guys are doing here.   :)  It's the 1.33Ghz model, with the original restore discs (10.4.2).  I'm willing to assist in testing things on my mini as I have time.
« Last Edit: May 17, 2016, 09:59:19 PM by Protools5LEGuy »
My Collection: Beige G3 300 w/USB+FW, Pismo G4 550, G4 Mini 1.33

Offline ELN

  • Consistant Contributor
  • ***
  • Posts: 104
  • new to the forums
Mac mini 2
« Reply #9 on: May 16, 2016, 05:49:11 AM »
Hello everyone, forum newbie here.

I just recently bought a G4 mini because of the work you guys are doing here.   :)  It's the 1.33Ghz model, with the original restore discs (10.4.2).  I'm willing to assist in testing things on my mini as I have time.

Very selfless -- thank you!

These are some instructions that a person with an Ethernet-connected unsupported machine can follow to produce an embarrassment of debug output.

Download and burn the "Unsupported G4" image from here: http://macos9lives.com/smforum/index.php?topic=2143.0. I have instructed one user, by private message, to use an image that was probably not going to work. My apologies to that user.

Start the test machine with cmd-opt-O-F held down, until you reach the Open Firmware prompt. Choose an IP address that is on your local network but preferably outside your router's DHCP assignment range. The address 192.168.0.255 is a safe bet, and I will use it in this example. Enter the Open Firmware command (including the oddly-placed spaces):
Code: [Select]
" enet:telnet,192.168.0.255" io
On a separate OS X or Linux machine, open a terminal and Telnet into the test machine with this command:
Code: [Select]
telnet 192.168.0.255
Then, enter these commands into your terminal:
Code: [Select]
dev /
.properties
5303ffff encode-int " AAPL,debug" property
boot cd:,\\tbxi

And post the output! (Or use a pastebin-like service if you think it's too long for the forum.)

Offline androda

  • Active Member
  • **
  • Posts: 12
  • Auld Mac-Head
Re: Mac mini 2
« Reply #10 on: May 17, 2016, 04:14:25 AM »
Here's the output from telnet:

Code: [Select]
ok
0 > dev /  ok
0 > .properties
model                   PowerMac10,2
compatible              PowerMac10,2
                        MacRISC3
                        Power Macintosh

serial-number           TA9
                        G86041P6TA9
customer-sw-config
pid#                    00000282
scb#                    00000001
display-config-info     00000000 00000001
name                    device-tree
copyright               Copyright 1983-2005 Apple Computer, Inc. All Rights Reserved
device_type             bootrom
system-id               0000000000000
#address-cells          00000001
#size-cells             00000001
clock-frequency         09eb1a55
AAPL,add-fcode-file     xt=^ff86.4150
 ok
0 > 5303ffff encode-int " AAPL,debug" property  ok
0 > boot cd:,\\tbxi  can't OPEN: cd:,\\tbxi
Can't open device or file
 ok
0 > boot cd:,\\tbxi  can't OPEN: cd:,\\tbxi
Can't open device or file
 ok
0 >

I heard the CD drive spin up when I ran the command "boot cd:,\\tbxi", so it did check the disc.  As you can see, I tried the command twice and got the same results.

After this, out of curiosity I ran the command 'boot' and this is the output it gave me:
Code: [Select]
0 > boot load-size=2a8c4 adler32=86b8074c

parsing <CHRP-BOOT>

evaluating <BOOT-SCRIPT>

Following this output, the mini booted into OS X.

I did not enter all that stuff about load-size and adler32.  It just appeared after I typed 'boot' and pressed enter.  After booting into OS X, the disc was read as 'MacOS9Lives' and it had a system folder and Mac OS ROM and everything.  So I think it was burned correctly.

I think we should move to this thread for more work on this subject: http://macos9lives.com/smforum/index.php/topic,2408.0.html
« Last Edit: May 17, 2016, 05:18:39 AM by androda »
My Collection: Beige G3 300 w/USB+FW, Pismo G4 550, G4 Mini 1.33

Offline nanopico

  • Platinum Member
  • *****
  • Posts: 665
Re: Mac mini 2
« Reply #11 on: May 17, 2016, 10:06:49 AM »
Here's the output from telnet:

Code: [Select]
ok
0 > dev /  ok
0 > .properties
model                   PowerMac10,2
compatible              PowerMac10,2
                        MacRISC3
                        Power Macintosh

serial-number           TA9
                        G86041P6TA9
customer-sw-config
pid#                    00000282
scb#                    00000001
display-config-info     00000000 00000001
name                    device-tree
copyright               Copyright 1983-2005 Apple Computer, Inc. All Rights Reserved
device_type             bootrom
system-id               0000000000000
#address-cells          00000001
#size-cells             00000001
clock-frequency         09eb1a55
AAPL,add-fcode-file     xt=^ff86.4150
 ok
0 > 5303ffff encode-int " AAPL,debug" property  ok
0 > boot cd:,\\tbxi  can't OPEN: cd:,\\tbxi
Can't open device or file
 ok
0 > boot cd:,\\tbxi  can't OPEN: cd:,\\tbxi
Can't open device or file
 ok
0 >

I heard the CD drive spin up when I ran the command "boot cd:,\\tbxi", so it did check the disc.  As you can see, I tried the command twice and got the same results.

After this, out of curiosity I ran the command 'boot' and this is the output it gave me:
Code: [Select]
0 > boot load-size=2a8c4 adler32=86b8074c

parsing <CHRP-BOOT>

evaluating <BOOT-SCRIPT>

Following this output, the mini booted into OS X.

I did not enter all that stuff about load-size and adler32.  It just appeared after I typed 'boot' and pressed enter.  After booting into OS X, the disc was read as 'MacOS9Lives' and it had a system folder and Mac OS ROM and everything.  So I think it was burned correctly.

I think we should move to this thread for more work on this subject: http://macos9lives.com/smforum/index.php/topic,2408.0.html

the load-size, parsing and evaluating lines are pretty standard no matter what OS you try to boot.  Both 9 and X use a CHRP script for initial loading all that says is that it's working to boot something.

It is booting X because it doesn't like something with the CD or it doesn't find a valid ROM file.  I've heard of Open firmware not mapping the CD alias correctly.  You can try ide1:,\\tbxi
Or you can try the full path to the ROM (if it is in a System Folder in the root)
Example...
boot " cd:,\System Folder\Mac OS ROM:tbxi" if that fails replace cd with ide1.
If it ain't broke, don't fix it, or break it so you can fix it!

Offline ELN

  • Consistant Contributor
  • ***
  • Posts: 104
  • new to the forums
Re: Mac mini 2
« Reply #12 on: May 17, 2016, 09:10:37 PM »
And if *that* fails, try this:

Code: [Select]
boot cd:,\System%20Folder\Mac%20OS%20ROM
But I suspect that your CD or your drive is no good. So if that doesn't work, I have something else for you to try.

Offline androda

  • Active Member
  • **
  • Posts: 12
  • Auld Mac-Head
Re: Booting Mac Os 9 on Mac Mini.
« Reply #13 on: May 18, 2016, 04:17:25 AM »
Specifying the entire path to the Mac OS ROM gave me different results:

Code: [Select]
0 > 5303ffff encode-int " AAPL,debug" property  ok
0 > boot " cd:,\System Folder\Mac OS ROM:tbxi" load-size=2a8c4 adler32=639f2646

parsing <CHRP-BOOT>

evaluating <BOOT-SCRIPT>

After these lines printed out, the OS X grey apple logo screen appeared and the Mini basically just hung there doing nothing.  No additional output appeared in the console.

I know the combo drive is good in the Mini because it can read discs without an issue.  I think the disc I burned is good as well, because all the expected contents show up when the disc is in the drive in the mini.  But my beige g3's DVD drive doesn't read the disc - maybe the drive is just too old now.

Other things of interest: the entire device tree
Code: [Select]
0 > dev /  ok
0 > ls
ff899330: /cpus
ff8995c0:   /PowerPC,G4@0
ff899a28:     /l2-cache
ff89aa80: /chosen
ff89ac20: /memory@0
ff89ae20: /openprom
ff89af80:   /client-services
ff89c1b0: /rom@ff800000
ff89c368:   /boot-rom@fff00000
ff89c560:   /macos
ff89c5f0: /options
ff89c680: /aliases
ff89e570: /packages
ff89e608:   /deblocker
ff89ef58:   /disk-label
ff89ffc0:   /obp-tftp
ff8aabb0:   /telnet
ff8ab460:   /mac-parts
ff8aea88:   /mac-files
ff8b1c20:   /hfs-plus-files
ff8b7330:   /fat-files
ff8bab08:   /iso-9660-files
ff8bb918:   /bootinfo-loader
ff8bd588:   /xcoff-loader
ff8be058:   /macho-loader
ff8c0ec0:   /pe-loader
ff8c18c8:   /elf-loader
ff8c3818:   /usb-hid-class
ff8c6380:   /usb-ms-class
ff8c90d0:   /usb-audio-class
ff936bd0:   /sbp2-disk
ff93a740:   /ata-disk
ff93cd08:   /atapi-disk
ff93f328:   /bootpath-search
ff945960:   /terminal-emulator
ff945a28: /firewire-disk-mode
ff95c4f8: /pseudo-hid
ff95c5b0:   /keyboard
ff95cc30:   /mouse
ff95d0d8:   /eject-key
ff95d4d0: /pseudo-sound
ff95d660: /multiboot
ff9727b8: /diagnostics
ff972850: /xmodem
ff975218: /nvram@fff04000
ff9768f8: /uni-n@f8000000
ff976ab0:   /hw-clock
ff978048:   /i2c@f8001000
ff978c48:     /cereal@1c0
ff979340: /pci@f0000000
ff9ce978:   /uni-north-agp@b
ff9cec40:   /ATY,RockHopper2Parent@10
ff9dd290:     /ATY,RockHopper2_A@0
ff97a508: /pci@f2000000
ff97c8e0:   /mac-io@17
ff97dd70:     /interrupt-controller@40000
ff97dfe8:     /gpio@50
ff97e5a8:       /modem-reset@1d
ff97e700:       /modem-power@1c
ff97e858:       /extint-gpio1@9
ff97ea38:       /programmer-switch@11
ff97efc0:       /gpio5@6f
ff97f140:       /gpio6@70
ff97f2c0:       /extint-gpio15@67
ff97f4b0:     /escc-legacy@12000
ff97f6d8:       /ch-a@12004
ff97f888:       /ch-b@12000
ff97fa38:     /escc@13000
ff97fc70:       /ch-a@13020
ff980880:       /ch-b@13000
ff9813e8:     /i2s@10000
ff9815d0:       /i2s-a@10000
ff981988:         /sound
ff9df600:       /i2s-b@11000
ff981af8:     /timer@15000
ff981ca0:     /via-pmu@16000
ff985500:       /pmu-i2c
ff9864f0:         /temp-monitor@190
ff986af8:           /local@0
ff986c90:           /remote@1
ff987230:       /rtc
ff987900:       /power-mgt
ff9dfd10:         /usb-power-mgt
ff987b40:       /pmu-pwm-fans
ff988078:         /fan
ff9882c0:     /i2c@18000
ff988ee8:       /cereal@1c0
ff9895e0:     /ata-3@20000
ff98c300:       /disk
ff99c0e0:   /usb@1a
ff9a4a00:   /usb@1b
ff9ad378:   /usb@1b,1
ff9de320:     /hub@1
ff9de5b8:       /keyboard@1
ff9de9e0:       /mouse@2
ff9b5cf0:   /usb@1b,2
ff97b708: /pci@f4000000
ff9b6178:   /ata-6@d
ff9b9360:     /disk
ff9b99c8:   /firewire@e
ff9c90a0:   /ethernet@f
ff9dfe60:     /ethernet-phy ok

And all the aliases for hardware:  apparently the graphics card is called a 'RockHopper'??

Code: [Select]
0 > devalias
pci0                /pci@f0000000
agp                 /pci@f0000000
pci1                /pci@f2000000
pci2                /pci@f4000000
uni-n               /uni-n
ui2c                /uni-n/i2c
ui2c-serial         /uni-n/i2c/cereal
keyboard            /pseudo-hid/keyboard
mouse               /pseudo-hid/mouse
sound               /pseudo-sound
eject-key           /pseudo-hid/eject-key
nvram               /nvram
enet                /pci@f4000000/ethernet
fw                  /pci@f4000000/firewire
cpu0                /cpus/@0
cpu1                /cpus/@1
pci                 /pci@f2000000
usb0                /pci@f2000000/usb@1b,1
usb1                /pci@f2000000/usb@1b
usb-1a              /pci@f2000000/@18
usb-1b              /pci@f2000000/@19
usb-1c              /pci@f2000000/@1a
usb-2a              /pci@f2000000/@1b
usb-2b              /pci@f2000000/@1b,1
usb-2c              /pci@f2000000/@1b,2
hd                  /pci@f4000000/ata-6@d/disk@0
cd                  /pci@f4000000/ata-6@d/disk@1
ide0                /pci@f2000000/mac-io@17/ata-3@20000/disk@0
ide1                /pci@f2000000/mac-io@17/ata-3@20000/disk@1
ultra0              /pci@f2000000/mac-io@17/ata-4@1f000/disk@0
ultra1              /pci@f2000000/mac-io@17/ata-4@1f000/disk@1
mac-io              /pci@f2000000/mac-io@17
mpic                /pci@f2000000/mac-io@17/interrupt-controller
scca                /pci@f2000000/mac-io@17/escc/ch-a
sccb                /pci@f2000000/mac-io@17/escc/ch-b
ki2c                /pci@f2000000/mac-io@17/i2c
ki2c-serial         /pci@f2000000/mac-io@17/i2c/cereal
via-pmu             /pci@f2000000/mac-io@17/via-pmu
rtc                 /pci@f2000000/mac-io@17/via-pmu/rtc
pi2c                /pci@f2000000/mac-io@17/via-pmu/pmu-i2c
wireless            /pci@f2000000/mac-io@17/@30000
usb2                /pci@f2000000/usb@1a
fans                /pci@f2000000/mac-io@17/via-pmu/pmu-pwm-fans
first-boot          /pci@f4000000/ata-6@d/disk
second-boot         /pci@f2000000/mac-io@17/ata-3@20000/disk
last-boot           /pci@f4000000/ethernet
screen              /pci@f0000000/ATY,RockHopper2Parent@10/ATY,RockHopper2_A@0
My Collection: Beige G3 300 w/USB+FW, Pismo G4 550, G4 Mini 1.33

Offline androda

  • Active Member
  • **
  • Posts: 12
  • Auld Mac-Head
Re: Booting Mac Os 9 on Mac Mini.
« Reply #14 on: May 18, 2016, 04:30:08 AM »
My guess is that we need to do the NVRAM modification that's noted on the ThinkClassic forums:
https://www.thinkclassic.org/viewtopic.php?pid=4863#p4863

But even that didn't get them past the grey screen.
My Collection: Beige G3 300 w/USB+FW, Pismo G4 550, G4 Mini 1.33

Offline androda

  • Active Member
  • **
  • Posts: 12
  • Auld Mac-Head
Re: Booting Mac Os 9 on Mac Mini.
« Reply #15 on: May 18, 2016, 05:44:07 AM »
Using my Beige G3 as the driver, I restored the MacOS9Lives disc onto the Mini's hard drive.  Then I booted into Open Firmware and enabled the debug output.  Then I ran "mac-boot" and WOW is that a lot of debug output.  It's captured here:

http://pastebin.com/GVKGjPaH
My Collection: Beige G3 300 w/USB+FW, Pismo G4 550, G4 Mini 1.33

Offline ELN

  • Consistant Contributor
  • ***
  • Posts: 104
  • new to the forums
Re: Booting Mac Os 9 on Mac Mini.
« Reply #16 on: May 18, 2016, 08:54:52 AM »
Wow indeed. It's getting pretty close.

Offline androda

  • Active Member
  • **
  • Posts: 12
  • Auld Mac-Head
Re: Booting Mac Os 9 on Mac Mini.
« Reply #17 on: May 19, 2016, 04:42:13 AM »
Tried a few things this morning:
* The modified Mac OS ROM from post 120 on this page: https://www.thinkclassic.org/viewtopic.php?id=46&p=5
* The script to change processor version numbers from here: https://www.thinkclassic.org/viewtopic.php?pid=4863#p4863
* Different flag values for the AAPL,debug property (trying to get more information)
* 'words': http://pastebin.com/tRhitb8U

But alas - still stuck at the grey OS 9 screen, just like the person in the second thinkclassic link above who tested their mini.
« Last Edit: May 19, 2016, 04:55:41 AM by androda »
My Collection: Beige G3 300 w/USB+FW, Pismo G4 550, G4 Mini 1.33

Offline nanopico

  • Platinum Member
  • *****
  • Posts: 665
Re: Booting Mac Os 9 on Mac Mini.
« Reply #18 on: May 19, 2016, 06:37:13 AM »
Tried a few things this morning:
* The modified Mac OS ROM from post 120 on this page: https://www.thinkclassic.org/viewtopic.php?id=46&p=5
* The script to change processor version numbers from here: https://www.thinkclassic.org/viewtopic.php?pid=4863#p4863
* Different flag values for the AAPL,debug property (trying to get more information)
* 'words': http://pastebin.com/tRhitb8U

But alas - still stuck at the grey OS 9 screen, just like the person in the second thinkclassic link above who tested their mini.

The ROM I posted here http://macos9lives.com/smforum/index.php/topic,2727.msg19816.html#msg19816
Is a modified version of the one you linked to, but it contains the scripts to update the processor version so you would not need to do that manually.
If it ain't broke, don't fix it, or break it so you can fix it!

Offline androda

  • Active Member
  • **
  • Posts: 12
  • Auld Mac-Head
Re: Booting Mac Os 9 on Mac Mini.
« Reply #19 on: May 21, 2016, 03:31:09 AM »
The ROM I posted here http://macos9lives.com/smforum/index.php/topic,2727.msg19816.html#msg19816
Is a modified version of the one you linked to, but it contains the scripts to update the processor version so you would not need to do that manually.

When I try to download the file from http://www.gnerder.com/files/rom.sit I get a 404 not found error.
My Collection: Beige G3 300 w/USB+FW, Pismo G4 550, G4 Mini 1.33

Offline nanopico

  • Platinum Member
  • *****
  • Posts: 665
Re: Booting Mac Os 9 on Mac Mini.
« Reply #20 on: May 21, 2016, 08:18:04 PM »
The ROM I posted here http://macos9lives.com/smforum/index.php/topic,2727.msg19816.html#msg19816
Is a modified version of the one you linked to, but it contains the scripts to update the processor version so you would not need to do that manually.

When I try to download the file from http://www.gnerder.com/files/rom.sit I get a 404 not found error.

I'm sorry about that. it's working now.
If it ain't broke, don't fix it, or break it so you can fix it!

Offline androda

  • Active Member
  • **
  • Posts: 12
  • Auld Mac-Head
Re: Booting Mac Os 9 on Mac Mini.
« Reply #21 on: May 23, 2016, 05:56:47 AM »
Thanks for fixing the link.

I tried that Mac OS ROM, and still didn't get past here:
Code: [Select]
parsing <CHRP-BOOT>

evaluating <BOOT-SCRIPT>
My Collection: Beige G3 300 w/USB+FW, Pismo G4 550, G4 Mini 1.33

Offline nanopico

  • Platinum Member
  • *****
  • Posts: 665
Re: Booting Mac Os 9 on Mac Mini.
« Reply #22 on: May 23, 2016, 06:18:43 AM »
Thanks for fixing the link.

I tried that Mac OS ROM, and still didn't get past here:
Code: [Select]
parsing <CHRP-BOOT>

evaluating <BOOT-SCRIPT>

I didn't think you would get any further, but it does make booting easier as you don't have to enter the commands to change the CPU version.
If it ain't broke, don't fix it, or break it so you can fix it!

Offline nanopico

  • Platinum Member
  • *****
  • Posts: 665
Re: Booting Mac Os 9 on Mac Mini.
« Reply #23 on: June 23, 2016, 07:59:02 AM »
Just got a mini in my hands.
Let's see where I can get with this.
It appears to have some graphics issues though.
If it ain't broke, don't fix it, or break it so you can fix it!

Offline nanopico

  • Platinum Member
  • *****
  • Posts: 665
Re: Booting Mac Os 9 on Mac Mini.
« Reply #24 on: June 23, 2016, 11:17:51 AM »
The mini is going to be the most difficult.  Just in case any one wants to know.

It get's through all hardware initialization without a hitch, until it actually loads the kernel.
Then boom. I haven't figured out exactly what it's hating on, as the kernel log dump isn't scrollable so it makes it a little hard to read the sequence leading up to the hang.

It looks like it hangs right before displaying the Happy Mac Logo


If it ain't broke, don't fix it, or break it so you can fix it!

Offline nanopico

  • Platinum Member
  • *****
  • Posts: 665
Re: Booting Mac Os 9 on Mac Mini.
« Reply #25 on: June 23, 2016, 11:53:27 AM »
As of right now it looks like it the pmu.

This is bad news if that's it.
The pmu used in the mini was use only in the mini and not in any other machine. 
There is a small possibility it is compatible with the via-pmu as was commonly used.  This is based on entries in open firmware.

Layout and interface wise the mini is closest to the eMac based on the block diagrams. Not that it helps, but it's something.
If it ain't broke, don't fix it, or break it so you can fix it!

Offline nanopico

  • Platinum Member
  • *****
  • Posts: 665
Re: Booting Mac Os 9 on Mac Mini.
« Reply #26 on: June 23, 2016, 02:34:56 PM »
I keep responding to myself.

PMU not the problem.
Looking at all properties now and the OS X xnu/applevia source it's compatible with the apple via drivers used in OS 9.

So I'm at a dead end until I am home from work in an hour.
Maybe more info tonight.
If it ain't broke, don't fix it, or break it so you can fix it!

Offline Bolkonskij

  • Active Member
  • **
  • Posts: 11
  • new to the forums
Re: Booting Mac Os 9 on Mac Mini.
« Reply #27 on: September 14, 2016, 10:35:03 AM »
aw it's a pity this hasn't worked out yet. The Mac Minis are such nice machines still. Fast, quiet, flexible and small. It'd be awesome to have OS 9 running on them. I have one of the last gen (I think a 1.42 Ghz model) Mini, so if there some way for me to helping in terms of testing, I'll gladly volunteer .. :)

Offline nanopico

  • Platinum Member
  • *****
  • Posts: 665
Re: Booting Mac Os 9 on Mac Mini.
« Reply #28 on: September 14, 2016, 11:30:36 AM »
aw it's a pity this hasn't worked out yet. The Mac Minis are such nice machines still. Fast, quiet, flexible and small. It'd be awesome to have OS 9 running on them. I have one of the last gen (I think a 1.42 Ghz model) Mini, so if there some way for me to helping in terms of testing, I'll gladly volunteer .. :)

Don't lose hope.  Still in process.
If it ain't broke, don't fix it, or break it so you can fix it!

Offline Bolkonskij

  • Active Member
  • **
  • Posts: 11
  • new to the forums
Re: Booting Mac Os 9 on Mac Mini.
« Reply #29 on: September 18, 2016, 07:07:45 AM »
Well, certainly crossing fingers! Would be awesome to boot back into OS 9 (and not Classic).

Let me know if I can help with some testing ...  :)

Offline geforceg4

  • Vault Members
  • Platinum Member
  • ***
  • Posts: 535
  • i did my time on mac os 9
Re: Booting Mac Os 9 on Mac Mini.
« Reply #30 on: September 18, 2016, 11:56:37 AM »
i would LOVE to have mac os 9 on a PPC mac mini!
i could try to track down one and help out any way i can???

Offline nanopico

  • Platinum Member
  • *****
  • Posts: 665
Re: Booting Mac Os 9 on Mac Mini.
« Reply #31 on: September 18, 2016, 07:55:36 PM »
i would LOVE to have mac os 9 on a PPC mac mini!
i could try to track down one and help out any way i can???

Good news is that I have two of them at the moment and a third on the way so thankfully I have access to them now to work on them.
If it ain't broke, don't fix it, or break it so you can fix it!

Offline geforceg4

  • Vault Members
  • Platinum Member
  • ***
  • Posts: 535
  • i did my time on mac os 9
Re: Booting Mac Os 9 on Mac Mini.
« Reply #32 on: September 18, 2016, 09:07:36 PM »
yea i cant imagine them being very expensive in this day + age

Offline MacOS Plus

  • Gold Member
  • *****
  • Posts: 306
  • The 9serve Lives!
Re: Booting Mac Os 9 on Mac Mini.
« Reply #33 on: September 18, 2016, 09:36:51 PM »
  I'm really only interested in buying one if I know it can be made to boot OS 9 and with adequate device support for enough of its critical guts.  Running OS X on it seems like a boring and underpowered waste of time! ;)

Offline nanopico

  • Platinum Member
  • *****
  • Posts: 665
Re: Booting Mac Os 9 on Mac Mini.
« Reply #34 on: September 19, 2016, 06:39:47 AM »
yea i cant imagine them being very expensive in this day + age

A couple people I know like to give me old mac stuff for some reason (oldest I've gotten so far is a G3 PowerBook PDQ).
I even acquired an xserve 2.8 Quad core xeon with an xServe Raid (maxed out with all 14 spaces holding 750GB drives)
So none of the mini's have cost me anything yet.
If it ain't broke, don't fix it, or break it so you can fix it!

Offline MacOS Plus

  • Gold Member
  • *****
  • Posts: 306
  • The 9serve Lives!
Re: Booting Mac Os 9 on Mac Mini.
« Reply #35 on: September 19, 2016, 11:57:24 AM »
  Man, I wish I had friends like yours!

Offline ELN

  • Consistant Contributor
  • ***
  • Posts: 104
  • new to the forums
Re: Booting Mac Os 9 on Mac Mini.
« Reply #36 on: September 23, 2016, 10:07:38 PM »
Anybody in Western Australia got a spare mini? I'd quite like to try my Nanokernel-patching toolkit on one.

Offline wilcofan

  • Active Member
  • **
  • Posts: 24
  • new to the forums
Re: Booting Mac Os 9 on Mac Mini.
« Reply #37 on: September 21, 2017, 03:02:53 PM »
Any news on OS9 and these G4 Mini's?  There's one locally here doesn't interest me if it's OSX only...
G3 400 B&W | Opcode Studio 3 | Midiman Biport | Digidesign TDM Mix

Offline macStuff

  • Silver Member
  • ****
  • Posts: 246
  • New Member
Re: Booting Mac Os 9 on Mac Mini.
« Reply #38 on: September 21, 2017, 07:10:08 PM »
the ppc mac mini?? its basically like an MDD in a smaller box minus the windtunnel + minus about 100lbs!!
http://www.everymac.com/systems/apple/mac_mini/specs/mac_mini_g4_1.42.html

lack of pci hardware compatibility kills my interest
i was pretty interested to see someone posting in another thread about using a tibook with a PCI expansion chassis that kind of blew my mind for a few minutes

Offline wilcofan

  • Active Member
  • **
  • Posts: 24
  • new to the forums
Re: Booting Mac Os 9 on Mac Mini.
« Reply #39 on: September 21, 2017, 07:58:52 PM »
Yep that's the one.  My tower could use a little help with a few vsti's and it wouldn't take up so much space.

Anybody get the install to work?  I am half tempted to grab it and try but I get the feeling it hasn't been solved.
G3 400 B&W | Opcode Studio 3 | Midiman Biport | Digidesign TDM Mix

Offline macStuff

  • Silver Member
  • ****
  • Posts: 246
  • New Member
Re: Booting Mac Os 9 on Mac Mini.
« Reply #40 on: September 21, 2017, 09:22:22 PM »
pretty sure if it was solved we would all be well-aware of the big news.

Offline MacTron

  • Global Moderator
  • Platinum Member
  • *****
  • Posts: 1942
  • keep it simple
Re: Booting Mac Os 9 on Mac Mini.
« Reply #41 on: September 22, 2017, 07:02:40 AM »
the ppc mac mini?? its basically like an MDD in a smaller box minus the windtunnel + minus about 100lbs!!
The PPC Mac Mini is basically an "iBook in a Box" ;D
Quote
http://www.everymac.com/systems/apple/mac_mini/specs/mac_mini_g4_1.42.html
You still trust this web ? LOL
Please don't PM about things that are not private.

Offline ELN

  • Consistant Contributor
  • ***
  • Posts: 104
  • new to the forums
Re: Booting Mac Os 9 on Mac Mini.
« Reply #42 on: September 22, 2017, 06:31:34 PM »
I have at long long last reversed the 68k code that the mini crashes on. But I can't get my hands on one for a reasonable price to start testing. Does anyone in Australia have one that they could send my way?

Offline Philgood

  • Gold Member
  • *****
  • Posts: 271
Re: Booting Mac Os 9 on Mac Mini.
« Reply #43 on: September 28, 2017, 12:34:22 AM »
Get together !
ELN has to be helped! !!!
*G4 MDD 1.25GHz (Single 2003)* with 2x 80Gb harddrives, 1Gb RAM, Tascam US-428 and Edirol FA-101 USB/Firewire soundcards-*iMac G3 DV 400MHz* with installs from OS 8.6-OSX Tiger on different harddrives-*Powerbook G4 1.67Ghz* with new SSD ! Love it.

Offline ELN

  • Consistant Contributor
  • ***
  • Posts: 104
  • new to the forums
Re: Booting Mac Os 9 on Mac Mini.
« Reply #44 on: September 30, 2017, 11:16:52 PM »
While the Trampoline bootloader and the NanoKernel start just fine on the mini, the 68k Start Manager subsequently hangs. I want to know exactly where and why. Now Nanopico and I have successfully tested patching the 68k ROM to print some debug output via the NanoKernel window.

Here is a ROM with about 30 debug messages inserted into the StartMgr. Would a few people mind testing this on a mini and posting a photo of the debug output? No Open Firmware commands should be required. Just boot from a FireWire drive, or a Mac in Target Disk Mode.

For comparison, here some abridged NK log output from a booting Mac:
Code: [Select]
...
Reset system - Into the 68K fire: 0002d032 6806c9e8
 VMAllocateMemory - creating area at 0x69000000 00080000
 CreateArea [ 69000000 6907ffff ] ID 00170001 placed ... created
*68k: initGestalt
*68k: FiddleWithEmulator
*68k: InitIntHandler
*68k: InitRSRCMgr
*68k: INTERC_1690_CODEREGISTER
*68k: INTERC_15C0_CODEPREPARE2
*68k: EXPANSIONBUSMGRFIRSTFUNC
Extend free pool: phys 0x7ff2d000  virt 0x00000000  count: 1
*68k: INTERC_2A80_ETHERPRINTFLIB
*68k: ENABLEONESECINTS
*68k: ENABLE60HZINTS
*68k: RSETKMAP
*68k: INTERC_2BC0_DEBUGPRINT
*68k: INITDEVICEDISPATCH
*68k: INITSCSIMGR
*68k: INITEXPANSIONMGR
*68k: INTERC_1980_DRIVERS
*68k: INITADB
*68k: INTERC_1910_USBFAMILYEXPERTLIB
*68k: INITBCSCREEN
*68k: TEGLOBALINIT
*68k: ENABLESLOTINTS
*68k: INITFASTERINVALS
*68k: INTERC_2780_FIREWIRE
*68k: INTERC_2A20_SCSITARGETMODE
*68k: INITSCSIBOOT
*68k: ATAMGR_5DAE0
*68k: ATAMGR_5DDE0
*68k: FINDSTARTUPDEVICE
...

Offline nanopico

  • Platinum Member
  • *****
  • Posts: 665
Re: Booting Mac Os 9 on Mac Mini.
« Reply #45 on: October 01, 2017, 07:38:27 PM »
Initial output from the latest ROM.
It does in fact require OF commands to boot

These may seem very familiar
Code: [Select]
dev /
" PowerMac 10,1" encode-string " MacRISC3" encode-string encode+ " MacRISC" encode-string encode+ " Power Macintosh" encode-string encode+ " compatibility" property

dev /cpus/PowerPC,G4
80010201 encode-int " cpu-version" property

So here's the thing now. And this is probably going to put a huge wall in the way.
So going through this, I realized something and did some checking.
The one thing that the other G4 systems have that the mini does not is ADB.
Yes there are no physical connectors on anything past the B&W G3 but, they all have a virtual bus via the PMU that is mapped from the usb ports.  I have suspected the PMU in the mini (being the only one that is not used in any other G4) would be a problem.  The mini has no ADB emulation in it at all so the 68K emulator and other managers will choke because they will not be able to find it.  There was a reason the virtual bus was there and it was exactly to support anything older than OS X which does not require this.  The G5's will sit in the exact same position as well.
So ultimately the mini is the first system that was really OS X only. 
Now this doesn't mean we can't work around it, but we are now talking about firmware level virtual device drivers. 

So long story short, I wouldn't hold your breath on the mini (i have been wrong before so don't hold me to this) as it would probably be a while before there is any possibility that it could boot and run.
If it ain't broke, don't fix it, or break it so you can fix it!

Offline ELN

  • Consistant Contributor
  • ***
  • Posts: 104
  • new to the forums
Re: Booting Mac Os 9 on Mac Mini.
« Reply #46 on: October 02, 2017, 02:29:18 AM »

Online Daniel

  • Consistant Contributor
  • ***
  • Posts: 85
  • new to the forums
Re: Booting Mac Os 9 on Mac Mini.
« Reply #47 on: October 02, 2017, 03:48:22 AM »
Later stages of boot can handle usb devices from pci cards not integrated with the PMU, right? What happens if we patch the ADB manager to always report that there are 0 adb devices connected?

Offline nanopico

  • Platinum Member
  • *****
  • Posts: 665
Re: Booting Mac Os 9 on Mac Mini.
« Reply #48 on: October 02, 2017, 01:27:04 PM »
Later stages of boot can handle usb devices from pci cards not integrated with the PMU, right? What happens if we patch the ADB manager to always report that there are 0 adb devices connected?

Yes and no.
No devices are required to be present, but the bus is expected to be.
I believe (and I could be very wrong on this one) the ADB manager would also need to be patched to not check for the bus and implement a sudo/virtual bus.  There would be the Start Manager as well which is apparently checking for the bus.
If it ain't broke, don't fix it, or break it so you can fix it!

Online Daniel

  • Consistant Contributor
  • ***
  • Posts: 85
  • new to the forums
Re: Booting Mac Os 9 on Mac Mini.
« Reply #49 on: October 02, 2017, 06:20:54 PM »
Looking at the code, the routine InitADB (in ADBMgr.a ) loads a routine from the function table ProductInfo.ADBDebugUtilPtr. The ProductInfo structure appears to contain important info that can vary between machines. So we would have to look at the ADB routines for a few machines to write do-nothing versions of all relevent routines. Then we can create a ProductInfo structure for the Mac Mini (and possibly other machines).

Does the 9serve have ADB? I see no reason why Apple would put ADB emulation in it.

Offline nanopico

  • Platinum Member
  • *****
  • Posts: 665
Re: Booting Mac Os 9 on Mac Mini.
« Reply #50 on: October 02, 2017, 07:32:12 PM »
Looking at the code, the routine InitADB (in ADBMgr.a ) loads a routine from the function table ProductInfo.ADBDebugUtilPtr. The ProductInfo structure appears to contain important info that can vary between machines. So we would have to look at the ADB routines for a few machines to write do-nothing versions of all relevent routines. Then we can create a ProductInfo structure for the Mac Mini (and possibly other machines).

Does the 9serve have ADB? I see no reason why Apple would put ADB emulation in it.

I'm thinking along the same line so we are on the same page.
The other machines all use a PMU that is used in at least one supported machine. So it wouldn't be a matter of adding it if it's not needed. It's just a mater of using the same chip.
The interesting thing is that i have not seen the mini's PMU used in anything else.

If it ain't broke, don't fix it, or break it so you can fix it!

Offline MacOS Plus

  • Gold Member
  • *****
  • Posts: 306
  • The 9serve Lives!
Re: Booting Mac Os 9 on Mac Mini.
« Reply #51 on: October 03, 2017, 08:35:58 PM »
Does the 9serve have ADB? I see no reason why Apple would put ADB emulation in it.

  Is there any way I can test for this on mine?  There may be a chance it was part of the Rev.1 motherboard and left out of the subsequent revisions.  I can at least check the Rev.1 for you.  The working theory in discussion here suggests that it would have it since it will boot OS 9 with minor help.  (I still remain suspicious that the Rev.1 machine had the FW800 parts omitted from the component pads as part of a halted plan to support OS9.  We'll probably never know for sure.  There's so little that doesn't work on OS 9 with it.  You may have read my recent post about the serial port - http://macos9lives.com/smforum/index.php/topic,3902.0.html)

Online Daniel

  • Consistant Contributor
  • ***
  • Posts: 85
  • new to the forums
Re: Booting Mac Os 9 on Mac Mini.
« Reply #52 on: October 04, 2017, 03:47:06 AM »
Does the 9serve have ADB? I see no reason why Apple would put ADB emulation in it.

  Is there any way I can test for this on mine?  There may be a chance it was part of the Rev.1 motherboard and left out of the subsequent revisions.  I can at least check the Rev.1 for you.  The working theory in discussion here suggests that it would have it since it will boot OS 9 with minor help.  (I still remain suspicious that the Rev.1 machine had the FW800 parts omitted from the component pads as part of a halted plan to support OS9.  We'll probably never know for sure.  There's so little that doesn't work on OS 9 with it.  You may have read my recent post about the serial port - http://macos9lives.com/smforum/index.php/topic,3902.0.html)
Probably not. I have no clue how to check the type of PMU and what firmware is on it.

As for designing it to work with OS 9, that could be why they didn't use a new PMU chip. After they decided OS9 shouldn't work on it they probably just kept the same PMU.

Offline nanopico

  • Platinum Member
  • *****
  • Posts: 665
Re: Booting Mac Os 9 on Mac Mini.
« Reply #53 on: October 04, 2017, 06:05:31 AM »
Does the 9serve have ADB? I see no reason why Apple would put ADB emulation in it.

  Is there any way I can test for this on mine?  There may be a chance it was part of the Rev.1 motherboard and left out of the subsequent revisions.  I can at least check the Rev.1 for you.  The working theory in discussion here suggests that it would have it since it will boot OS 9 with minor help.  (I still remain suspicious that the Rev.1 machine had the FW800 parts omitted from the component pads as part of a halted plan to support OS9.  We'll probably never know for sure.  There's so little that doesn't work on OS 9 with it.  You may have read my recent post about the serial port - http://macos9lives.com/smforum/index.php/topic,3902.0.html)
Probably not. I have no clue how to check the type of PMU and what firmware is on it.

As for designing it to work with OS 9, that could be why they didn't use a new PMU chip. After they decided OS9 shouldn't work on it they probably just kept the same PMU.

Apple's tech notes and developer documentation outlines chips used on all the PPC machines (well almost all of them).
I had create a spreadsheet that outlined all of this. I can't find the thread/post regarding that. (Hint if anyone else can find it can you post a link?)
So know the chips used in all the machines is fairly easy.

As for determining which one.
Go into open firmware and list all the devices.  In there you will see a virtual bus (I can't remember the name off the top of my head). I did just check the iMac I have here at work and it does not list it, but it does list a pseudo-hid with the same devices I saw in the virtual bus.  So you can look for both of those.

If it ain't broke, don't fix it, or break it so you can fix it!

Offline ELN

  • Consistant Contributor
  • ***
  • Posts: 104
  • new to the forums
Re: Booting Mac Os 9 on Mac Mini.
« Reply #54 on: October 04, 2017, 07:03:03 AM »
Looking for this?

https://github.com/elliotnunn/toolboxtoolbox/wiki/Custom-IC-Chips-Used-in-G3's-and-G4's

Anyone keen to test this ROM build out? It will tell us where the mini is crashing with better resolution than before. I want to know this before I take a deep dive into the Expansion Bus Mgr. Some reference output:

Code: [Select]
Reset system - Into the 68K fire: 0002d032 6806c9e8
 VMAllocateMemory - creating area at 0x69000000 00080000
 CreateArea [ 69000000 6907ffff ] ID 00170001 placed ... created
*68k: EXPANSIONBUSMGRFIRSTFUNC
*68k: InterC_2560
*68k: InterC_2090_PowerMgr

Offline MacOS Plus

  • Gold Member
  • *****
  • Posts: 306
  • The 9serve Lives!
Re: Booting Mac Os 9 on Mac Mini.
« Reply #55 on: October 04, 2017, 07:11:46 AM »
The complete OF device tree for the Xserve Rev.1 can be viewed in an older post of mine here:

http://macos9lives.com/smforum/index.php/topic,1964.msg20383.html#msg20383

The block diagram shown in the following post indicates PMU99, same as every other G4 machine in ELN's linked table:

http://macos9lives.com/smforum/index.php/topic,1964.msg9985.html#msg9985

« Last Edit: October 04, 2017, 09:32:07 AM by MacOS Plus »

Offline nanopico

  • Platinum Member
  • *****
  • Posts: 665
Re: Booting Mac Os 9 on Mac Mini.
« Reply #56 on: October 04, 2017, 10:06:44 AM »
Looking for this?

https://github.com/elliotnunn/toolboxtoolbox/wiki/Custom-IC-Chips-Used-in-G3's-and-G4's

Anyone keen to test this ROM build out? It will tell us where the mini is crashing with better resolution than before. I want to know this before I take a deep dive into the Expansion Bus Mgr. Some reference output:

Code: [Select]
Reset system - Into the 68K fire: 0002d032 6806c9e8
 VMAllocateMemory - creating area at 0x69000000 00080000
 CreateArea [ 69000000 6907ffff ] ID 00170001 placed ... created
*68k: EXPANSIONBUSMGRFIRSTFUNC
*68k: InterC_2560
*68k: InterC_2090_PowerMgr

Yup that is the one I put together.
If it ain't broke, don't fix it, or break it so you can fix it!

Offline nanopico

  • Platinum Member
  • *****
  • Posts: 665
Re: Booting Mac Os 9 on Mac Mini.
« Reply #57 on: October 04, 2017, 06:26:28 PM »
Results. Fyi for those trying.
Uh ou still need to change the compatible property to boot.
If it ain't broke, don't fix it, or break it so you can fix it!

Offline ELN

  • Consistant Contributor
  • ***
  • Posts: 104
  • new to the forums
Re: Booting Mac Os 9 on Mac Mini.
« Reply #58 on: October 05, 2017, 05:15:51 AM »
Oh darn. It is definitely hanging on EXPANSIONBUSMGRFIRSTFUNC (my name). I'll start poking into the Expansion Bus Mgr. Unfortunately, there is no "System 7.1" source to compare it to. But the ExpansionBusDispatch trap will be a good starting point.

Offline nanopico

  • Platinum Member
  • *****
  • Posts: 665
Re: Booting Mac Os 9 on Mac Mini.
« Reply #59 on: October 05, 2017, 06:21:15 AM »
As I have two G4 mini's I'm more than willing to fuck with OpenFirmware on one and only one in the event I brick it like has happened in the past.
If it ain't broke, don't fix it, or break it so you can fix it!

Online Daniel

  • Consistant Contributor
  • ***
  • Posts: 85
  • new to the forums
Re: Booting Mac Os 9 on Mac Mini.
« Reply #60 on: October 05, 2017, 05:26:57 PM »
The name Expansion Bus Mgr suggests that something is making some incorrect assumptions about pci.

How is it failing? Is it looping forever? Did it jump to an uninitialized pointer? Did it fall off the end of its code into another function? Did it notice a problem and abort? Those seem to be the most likely crash behaviors.

Offline nanopico

  • Platinum Member
  • *****
  • Posts: 665
Re: Booting Mac Os 9 on Mac Mini.
« Reply #61 on: October 06, 2017, 05:55:35 AM »
I was equating Expansion Bus Mgr to the ADB Bus.  It's a made up name from ELN I believe.
If it ain't broke, don't fix it, or break it so you can fix it!

Offline ELN

  • Consistant Contributor
  • ***
  • Posts: 104
  • new to the forums
Re: Booting Mac Os 9 on Mac Mini.
« Reply #62 on: October 06, 2017, 10:06:49 PM »
The Manager in question is definitely the Expansion Bus Manager. I named the function "FIRSTFUNC" only because it sits at the very start of the Manager code.

This morning I have identified about half of the external entry points to the Manager (all via the AAF3 ExpansionBusDispatch trap, so not from the Start Manger). Check the repo. But my disassembly of the "FIRSTFUNC" still looks like this:

Code: [Select]
                      EXPANSIONBUSMGRFIRSTFUNC:
42160  4E56 0000                 Link      A6, #$0
42164  4EBA 742A                 Jsr       (* + $742C)
42168  4EBA 5074                 Jsr       __g__EXPANSIONBUSMGR_VEC0110
4216C  4EBA 2E82                 Jsr       (* + $2E84)
42170  4E5E                      Unlk      A6
42172  4E75                      Rts

It calls three functions, all within the Expansion Bus Mgr. The use of otherwise-rare JSR instructions, and the superfluous LINK/UNLK pair, reveal this to be a compiled C function. Indeed, most of the Manager is in C.

Here is a brief overview of the three functions being called:

1. Offset $49590
  • last function in Manager
  • makes NameRegistry calls
  • also called from unexplored function at offset $47F62
  • 4 strings: "pci", "device-type", "name", "device-tree"
2. Offset $471DE
  • vector $208c/$0110 (no known name)
  • no other callers
  • 1 string: "aapl,pci"
3. Offset $44FF0
  • no other callers
  • 1 string: "driver-reg,AAPL,MacOS,PowerPC"

Offline ELN

  • Consistant Contributor
  • ***
  • Posts: 104
  • new to the forums
Re: Booting Mac Os 9 on Mac Mini.
« Reply #63 on: October 06, 2017, 10:34:08 PM »
And here is a test ROM that squeezes debug strings between those three calls.

Expected output:

Code: [Select]
Reset system - Into the 68K fire: 0002d032 6806c9e8
 VMAllocateMemory - creating area at 0x69000000 00080000
 CreateArea [ 69000000 6907ffff ] ID 00170001 placed ... created
*68k: Entered fake FirstFunc
*68k: returned from 49590
*68k: returned from 471DE
*68k: returned from 44FF0 ... returning

Online Daniel

  • Consistant Contributor
  • ***
  • Posts: 85
  • new to the forums
Re: Booting Mac Os 9 on Mac Mini.
« Reply #64 on: October 07, 2017, 06:42:02 PM »
Looking at Androda's debug output, these lines caught my eye:
Code: [Select]
-- Initializing ADB information.
---- Virtual (USB-emulated) ADB detected!
The device tree has a pseudo-hid node:
Code: [Select]
ff95c4f8: /pseudo-hid
ff95c5b0:   /keyboard
ff95cc30:   /mouse
ff95d0d8:   /eject-key
And the word list contains '_adb-ihandle'.
The following are the posts that contain or link to the info I used, in the order I used them.
Using my Beige G3 as the driver, I restored the MacOS9Lives disc onto the Mini's hard drive.  Then I booted into Open Firmware and enabled the debug output.  Then I ran "mac-boot" and WOW is that a lot of debug output.  It's captured here:

http://pastebin.com/GVKGjPaH
Specifying the entire path to the Mac OS ROM gave me different results:

Code: [Select]
0 > 5303ffff encode-int " AAPL,debug" property  ok
0 > boot " cd:,\System Folder\Mac OS ROM:tbxi" load-size=2a8c4 adler32=639f2646

parsing <CHRP-BOOT>

evaluating <BOOT-SCRIPT>

After these lines printed out, the OS X grey apple logo screen appeared and the Mini basically just hung there doing nothing.  No additional output appeared in the console.

I know the combo drive is good in the Mini because it can read discs without an issue.  I think the disc I burned is good as well, because all the expected contents show up when the disc is in the drive in the mini.  But my beige g3's DVD drive doesn't read the disc - maybe the drive is just too old now.

Other things of interest: the entire device tree
Code: [Select]
0 > dev /  ok
0 > ls
ff899330: /cpus
ff8995c0:   /PowerPC,G4@0
ff899a28:     /l2-cache
ff89aa80: /chosen
ff89ac20: /memory@0
ff89ae20: /openprom
ff89af80:   /client-services
ff89c1b0: /rom@ff800000
ff89c368:   /boot-rom@fff00000
ff89c560:   /macos
ff89c5f0: /options
ff89c680: /aliases
ff89e570: /packages
ff89e608:   /deblocker
ff89ef58:   /disk-label
ff89ffc0:   /obp-tftp
ff8aabb0:   /telnet
ff8ab460:   /mac-parts
ff8aea88:   /mac-files
ff8b1c20:   /hfs-plus-files
ff8b7330:   /fat-files
ff8bab08:   /iso-9660-files
ff8bb918:   /bootinfo-loader
ff8bd588:   /xcoff-loader
ff8be058:   /macho-loader
ff8c0ec0:   /pe-loader
ff8c18c8:   /elf-loader
ff8c3818:   /usb-hid-class
ff8c6380:   /usb-ms-class
ff8c90d0:   /usb-audio-class
ff936bd0:   /sbp2-disk
ff93a740:   /ata-disk
ff93cd08:   /atapi-disk
ff93f328:   /bootpath-search
ff945960:   /terminal-emulator
ff945a28: /firewire-disk-mode
ff95c4f8: /pseudo-hid
ff95c5b0:   /keyboard
ff95cc30:   /mouse
ff95d0d8:   /eject-key
ff95d4d0: /pseudo-sound
ff95d660: /multiboot
ff9727b8: /diagnostics
ff972850: /xmodem
ff975218: /nvram@fff04000
ff9768f8: /uni-n@f8000000
ff976ab0:   /hw-clock
ff978048:   /i2c@f8001000
ff978c48:     /cereal@1c0
ff979340: /pci@f0000000
ff9ce978:   /uni-north-agp@b
ff9cec40:   /ATY,RockHopper2Parent@10
ff9dd290:     /ATY,RockHopper2_A@0
ff97a508: /pci@f2000000
ff97c8e0:   /mac-io@17
ff97dd70:     /interrupt-controller@40000
ff97dfe8:     /gpio@50
ff97e5a8:       /modem-reset@1d
ff97e700:       /modem-power@1c
ff97e858:       /extint-gpio1@9
ff97ea38:       /programmer-switch@11
ff97efc0:       /gpio5@6f
ff97f140:       /gpio6@70
ff97f2c0:       /extint-gpio15@67
ff97f4b0:     /escc-legacy@12000
ff97f6d8:       /ch-a@12004
ff97f888:       /ch-b@12000
ff97fa38:     /escc@13000
ff97fc70:       /ch-a@13020
ff980880:       /ch-b@13000
ff9813e8:     /i2s@10000
ff9815d0:       /i2s-a@10000
ff981988:         /sound
ff9df600:       /i2s-b@11000
ff981af8:     /timer@15000
ff981ca0:     /via-pmu@16000
ff985500:       /pmu-i2c
ff9864f0:         /temp-monitor@190
ff986af8:           /local@0
ff986c90:           /remote@1
ff987230:       /rtc
ff987900:       /power-mgt
ff9dfd10:         /usb-power-mgt
ff987b40:       /pmu-pwm-fans
ff988078:         /fan
ff9882c0:     /i2c@18000
ff988ee8:       /cereal@1c0
ff9895e0:     /ata-3@20000
ff98c300:       /disk
ff99c0e0:   /usb@1a
ff9a4a00:   /usb@1b
ff9ad378:   /usb@1b,1
ff9de320:     /hub@1
ff9de5b8:       /keyboard@1
ff9de9e0:       /mouse@2
ff9b5cf0:   /usb@1b,2
ff97b708: /pci@f4000000
ff9b6178:   /ata-6@d
ff9b9360:     /disk
ff9b99c8:   /firewire@e
ff9c90a0:   /ethernet@f
ff9dfe60:     /ethernet-phy ok

And all the aliases for hardware:  apparently the graphics card is called a 'RockHopper'??

Code: [Select]
0 > devalias
pci0                /pci@f0000000
agp                 /pci@f0000000
pci1                /pci@f2000000
pci2                /pci@f4000000
uni-n               /uni-n
ui2c                /uni-n/i2c
ui2c-serial         /uni-n/i2c/cereal
keyboard            /pseudo-hid/keyboard
mouse               /pseudo-hid/mouse
sound               /pseudo-sound
eject-key           /pseudo-hid/eject-key
nvram               /nvram
enet                /pci@f4000000/ethernet
fw                  /pci@f4000000/firewire
cpu0                /cpus/@0
cpu1                /cpus/@1
pci                 /pci@f2000000
usb0                /pci@f2000000/usb@1b,1
usb1                /pci@f2000000/usb@1b
usb-1a              /pci@f2000000/@18
usb-1b              /pci@f2000000/@19
usb-1c              /pci@f2000000/@1a
usb-2a              /pci@f2000000/@1b
usb-2b              /pci@f2000000/@1b,1
usb-2c              /pci@f2000000/@1b,2
hd                  /pci@f4000000/ata-6@d/disk@0
cd                  /pci@f4000000/ata-6@d/disk@1
ide0                /pci@f2000000/mac-io@17/ata-3@20000/disk@0
ide1                /pci@f2000000/mac-io@17/ata-3@20000/disk@1
ultra0              /pci@f2000000/mac-io@17/ata-4@1f000/disk@0
ultra1              /pci@f2000000/mac-io@17/ata-4@1f000/disk@1
mac-io              /pci@f2000000/mac-io@17
mpic                /pci@f2000000/mac-io@17/interrupt-controller
scca                /pci@f2000000/mac-io@17/escc/ch-a
sccb                /pci@f2000000/mac-io@17/escc/ch-b
ki2c                /pci@f2000000/mac-io@17/i2c
ki2c-serial         /pci@f2000000/mac-io@17/i2c/cereal
via-pmu             /pci@f2000000/mac-io@17/via-pmu
rtc                 /pci@f2000000/mac-io@17/via-pmu/rtc
pi2c                /pci@f2000000/mac-io@17/via-pmu/pmu-i2c
wireless            /pci@f2000000/mac-io@17/@30000
usb2                /pci@f2000000/usb@1a
fans                /pci@f2000000/mac-io@17/via-pmu/pmu-pwm-fans
first-boot          /pci@f4000000/ata-6@d/disk
second-boot         /pci@f2000000/mac-io@17/ata-3@20000/disk
last-boot           /pci@f4000000/ethernet
screen              /pci@f0000000/ATY,RockHopper2Parent@10/ATY,RockHopper2_A@0
Specifying the entire path to the Mac OS ROM gave me different results:

Code: [Select]
0 > 5303ffff encode-int " AAPL,debug" property  ok
0 > boot " cd:,\System Folder\Mac OS ROM:tbxi" load-size=2a8c4 adler32=639f2646

parsing <CHRP-BOOT>

evaluating <BOOT-SCRIPT>

After these lines printed out, the OS X grey apple logo screen appeared and the Mini basically just hung there doing nothing.  No additional output appeared in the console.

I know the combo drive is good in the Mini because it can read discs without an issue.  I think the disc I burned is good as well, because all the expected contents show up when the disc is in the drive in the mini.  But my beige g3's DVD drive doesn't read the disc - maybe the drive is just too old now.

Other things of interest: the entire device tree
Code: [Select]
0 > dev /  ok
0 > ls
ff899330: /cpus
ff8995c0:   /PowerPC,G4@0
ff899a28:     /l2-cache
ff89aa80: /chosen
ff89ac20: /memory@0
ff89ae20: /openprom
ff89af80:   /client-services
ff89c1b0: /rom@ff800000
ff89c368:   /boot-rom@fff00000
ff89c560:   /macos
ff89c5f0: /options
ff89c680: /aliases
ff89e570: /packages
ff89e608:   /deblocker
ff89ef58:   /disk-label
ff89ffc0:   /obp-tftp
ff8aabb0:   /telnet
ff8ab460:   /mac-parts
ff8aea88:   /mac-files
ff8b1c20:   /hfs-plus-files
ff8b7330:   /fat-files
ff8bab08:   /iso-9660-files
ff8bb918:   /bootinfo-loader
ff8bd588:   /xcoff-loader
ff8be058:   /macho-loader
ff8c0ec0:   /pe-loader
ff8c18c8:   /elf-loader
ff8c3818:   /usb-hid-class
ff8c6380:   /usb-ms-class
ff8c90d0:   /usb-audio-class
ff936bd0:   /sbp2-disk
ff93a740:   /ata-disk
ff93cd08:   /atapi-disk
ff93f328:   /bootpath-search
ff945960:   /terminal-emulator
ff945a28: /firewire-disk-mode
ff95c4f8: /pseudo-hid
ff95c5b0:   /keyboard
ff95cc30:   /mouse
ff95d0d8:   /eject-key
ff95d4d0: /pseudo-sound
ff95d660: /multiboot
ff9727b8: /diagnostics
ff972850: /xmodem
ff975218: /nvram@fff04000
ff9768f8: /uni-n@f8000000
ff976ab0:   /hw-clock
ff978048:   /i2c@f8001000
ff978c48:     /cereal@1c0
ff979340: /pci@f0000000
ff9ce978:   /uni-north-agp@b
ff9cec40:   /ATY,RockHopper2Parent@10
ff9dd290:     /ATY,RockHopper2_A@0
ff97a508: /pci@f2000000
ff97c8e0:   /mac-io@17
ff97dd70:     /interrupt-controller@40000
ff97dfe8:     /gpio@50
ff97e5a8:       /modem-reset@1d
ff97e700:       /modem-power@1c
ff97e858:       /extint-gpio1@9
ff97ea38:       /programmer-switch@11
ff97efc0:       /gpio5@6f
ff97f140:       /gpio6@70
ff97f2c0:       /extint-gpio15@67
ff97f4b0:     /escc-legacy@12000
ff97f6d8:       /ch-a@12004
ff97f888:       /ch-b@12000
ff97fa38:     /escc@13000
ff97fc70:       /ch-a@13020
ff980880:       /ch-b@13000
ff9813e8:     /i2s@10000
ff9815d0:       /i2s-a@10000
ff981988:         /sound
ff9df600:       /i2s-b@11000
ff981af8:     /timer@15000
ff981ca0:     /via-pmu@16000
ff985500:       /pmu-i2c
ff9864f0:         /temp-monitor@190
ff986af8:           /local@0
ff986c90:           /remote@1
ff987230:       /rtc
ff987900:       /power-mgt
ff9dfd10:         /usb-power-mgt
ff987b40:       /pmu-pwm-fans
ff988078:         /fan
ff9882c0:     /i2c@18000
ff988ee8:       /cereal@1c0
ff9895e0:     /ata-3@20000
ff98c300:       /disk
ff99c0e0:   /usb@1a
ff9a4a00:   /usb@1b
ff9ad378:   /usb@1b,1
ff9de320:     /hub@1
ff9de5b8:       /keyboard@1
ff9de9e0:       /mouse@2
ff9b5cf0:   /usb@1b,2
ff97b708: /pci@f4000000
ff9b6178:   /ata-6@d
ff9b9360:     /disk
ff9b99c8:   /firewire@e
ff9c90a0:   /ethernet@f
ff9dfe60:     /ethernet-phy ok

And all the aliases for hardware:  apparently the graphics card is called a 'RockHopper'??

Code: [Select]
0 > devalias
pci0                /pci@f0000000
agp                 /pci@f0000000
pci1                /pci@f2000000
pci2                /pci@f4000000
uni-n               /uni-n
ui2c                /uni-n/i2c
ui2c-serial         /uni-n/i2c/cereal
keyboard            /pseudo-hid/keyboard
mouse               /pseudo-hid/mouse
sound               /pseudo-sound
eject-key           /pseudo-hid/eject-key
nvram               /nvram
enet                /pci@f4000000/ethernet
fw                  /pci@f4000000/firewire
cpu0                /cpus/@0
cpu1                /cpus/@1
pci                 /pci@f2000000
usb0                /pci@f2000000/usb@1b,1
usb1                /pci@f2000000/usb@1b
usb-1a              /pci@f2000000/@18
usb-1b              /pci@f2000000/@19
usb-1c              /pci@f2000000/@1a
usb-2a              /pci@f2000000/@1b
usb-2b              /pci@f2000000/@1b,1
usb-2c              /pci@f2000000/@1b,2
hd                  /pci@f4000000/ata-6@d/disk@0
cd                  /pci@f4000000/ata-6@d/disk@1
ide0                /pci@f2000000/mac-io@17/ata-3@20000/disk@0
ide1                /pci@f2000000/mac-io@17/ata-3@20000/disk@1
ultra0              /pci@f2000000/mac-io@17/ata-4@1f000/disk@0
ultra1              /pci@f2000000/mac-io@17/ata-4@1f000/disk@1
mac-io              /pci@f2000000/mac-io@17
mpic                /pci@f2000000/mac-io@17/interrupt-controller
scca                /pci@f2000000/mac-io@17/escc/ch-a
sccb                /pci@f2000000/mac-io@17/escc/ch-b
ki2c                /pci@f2000000/mac-io@17/i2c
ki2c-serial         /pci@f2000000/mac-io@17/i2c/cereal
via-pmu             /pci@f2000000/mac-io@17/via-pmu
rtc                 /pci@f2000000/mac-io@17/via-pmu/rtc
pi2c                /pci@f2000000/mac-io@17/via-pmu/pmu-i2c
wireless            /pci@f2000000/mac-io@17/@30000
usb2                /pci@f2000000/usb@1a
fans                /pci@f2000000/mac-io@17/via-pmu/pmu-pwm-fans
first-boot          /pci@f4000000/ata-6@d/disk
second-boot         /pci@f2000000/mac-io@17/ata-3@20000/disk
last-boot           /pci@f4000000/ethernet
screen              /pci@f0000000/ATY,RockHopper2Parent@10/ATY,RockHopper2_A@0

Offline ELN

  • Consistant Contributor
  • ***
  • Posts: 104
  • new to the forums
Re: Booting Mac Os 9 on Mac Mini.
« Reply #65 on: October 10, 2017, 06:19:14 PM »
And here is a test ROM that squeezes debug strings between those three calls.
Code: [Select]

Anyone able to try it?

Offline ELN

  • Consistant Contributor
  • ***
  • Posts: 104
  • new to the forums
Re: Booting Mac Os 9 on Mac Mini.
« Reply #66 on: October 19, 2017, 02:54:00 AM »
Bumpity bump. We're making some progress here but we need testers!

Offline Philgood

  • Gold Member
  • *****
  • Posts: 271
Re: Booting Mac Os 9 on Mac Mini.
« Reply #67 on: October 19, 2017, 01:23:06 PM »
I have a mini Mac at work. Will try to help you.
*G4 MDD 1.25GHz (Single 2003)* with 2x 80Gb harddrives, 1Gb RAM, Tascam US-428 and Edirol FA-101 USB/Firewire soundcards-*iMac G3 DV 400MHz* with installs from OS 8.6-OSX Tiger on different harddrives-*Powerbook G4 1.67Ghz* with new SSD ! Love it.

Offline ELN

  • Consistant Contributor
  • ***
  • Posts: 104
  • new to the forums
Re: Booting Mac Os 9 on Mac Mini.
« Reply #68 on: October 25, 2017, 07:41:49 PM »
Any luck? I posted a ROM a few weeks ago that still hasn't been tested.

Offline Philgood

  • Gold Member
  • *****
  • Posts: 271
Re: Booting Mac Os 9 on Mac Mini.
« Reply #69 on: October 26, 2017, 04:34:33 AM »
Can you guide me a little bit how i can do that?
I have a mini mac at work and could bring another mac laptop if its needed for the remote console output.
« Last Edit: October 26, 2017, 02:27:39 PM by Philgood »
*G4 MDD 1.25GHz (Single 2003)* with 2x 80Gb harddrives, 1Gb RAM, Tascam US-428 and Edirol FA-101 USB/Firewire soundcards-*iMac G3 DV 400MHz* with installs from OS 8.6-OSX Tiger on different harddrives-*Powerbook G4 1.67Ghz* with new SSD ! Love it.

Offline nanopico

  • Platinum Member
  • *****
  • Posts: 665
Re: Booting Mac Os 9 on Mac Mini.
« Reply #70 on: October 26, 2017, 05:57:03 AM »
Can you guide me a little bit how i can do that?
I have an mini mac at work and could bring another mac laptop if its needed for the remote console output.

Have a second Mac that can boot OS 9.
Start the mini in target disc mode.
Connect to second mac.
Download this http://macos9lives.com/smforum/index.php/topic,2143.0.html and run from the second Mac, but use the mini's disc as the install location.
Remove the installed ROM from the mini and replace with the special one provided here.
Reboot the mini into open firmware.
I don't know if all the right OF commands are in this ROM to enable boot so you might need to change the compatibility property at the root of the device tree and the cpu version in the cpu node of the device tree.
Then just type boot.
If it ain't broke, don't fix it, or break it so you can fix it!

Offline nanopico

  • Platinum Member
  • *****
  • Posts: 665
Re: Booting Mac Os 9 on Mac Mini.
« Reply #71 on: October 26, 2017, 05:58:36 AM »
Any luck? I posted a ROM a few weeks ago that still hasn't been tested.

Sorry I have not gotten to this either.  Been too busy making a totally awesome TRON costume for my son.
If it ain't broke, don't fix it, or break it so you can fix it!

Offline Philgood

  • Gold Member
  • *****
  • Posts: 271
Re: Booting Mac Os 9 on Mac Mini.
« Reply #72 on: October 26, 2017, 02:30:26 PM »
Will this render the OS installation unusable afterwards?
Is there a way to reinstall the original ROM after I did that ?
*G4 MDD 1.25GHz (Single 2003)* with 2x 80Gb harddrives, 1Gb RAM, Tascam US-428 and Edirol FA-101 USB/Firewire soundcards-*iMac G3 DV 400MHz* with installs from OS 8.6-OSX Tiger on different harddrives-*Powerbook G4 1.67Ghz* with new SSD ! Love it.

Online Daniel

  • Consistant Contributor
  • ***
  • Posts: 85
  • new to the forums
Re: Booting Mac Os 9 on Mac Mini.
« Reply #73 on: October 26, 2017, 03:27:15 PM »
Everything will be fine. Neither the mac mini nor the system you use to install os9 will be affected by this meddling. As long as you don't mess with the nvram, all changes will be easily reversible.

Offline nanopico

  • Platinum Member
  • *****
  • Posts: 665
Re: Booting Mac Os 9 on Mac Mini.
« Reply #74 on: October 27, 2017, 06:51:25 AM »
Will this render the OS installation unusable afterwards?
Is there a way to reinstall the original ROM after I did that ?

Actually it depends on the format of the drive.  The drive will need to be formatted with OS 9 drivers, which it probably doesn't so you would have to reformat.
And which original ROM are you asking about? The OS 9 one which will not work at all?

But yes it is not permanent.
If it ain't broke, don't fix it, or break it so you can fix it!