Re: My first macppc install going poorly as well

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Re: My first macppc install going poorly as well

Kirill Bychkov-2
On Sat, December 8, 2012 22:29, Kirill Bychkov wrote:
> On Sat, December 8, 2012 15:54, Martin Pieuchot wrote:
>> I've just committed a fix for this, wait for the next snapshot or build a
release yourself and you'll be able to install OpenBSD on your machine. Thanks
for the report.
> Thank you! Tomorrow I'll try to build from sources on my iBook and then
install it on G5. And test my AGP video found in iBook G3.

Sorry for timeout - have no time to play with my Mac.
I've finally installed 5.3-beta snapshot on my G5 and it boots.
I have two SATA disks, so the first is occupied with OSX and second one now
contains OpenBSD.
I have some questions and suggestions about macppc support in OpenBSD.
Suggestions first. According to my dmesg [1] and to hardware I have in this
G5, next patch syncs macppc.html with reality:

Index: macppc.html
=================================================================== RCS file:
retrieving revision 1.224
diff -u -r1.224 macppc.html
--- macppc.html 4 Dec 2012 11:20:47 -0000 1.224
+++ macppc.html 13 Feb 2013 06:02:37 -0000
@@ -225,6 +225,7 @@
 <li>Apple Uni-North Eth
 <li>Apple Uni-North 2 AGP
 <li>Apple Uni-North 2 Eth
+<li>Apple Uni-North 3 AGP
 <li>Motorola MPC106 Host-PCI
@@ -239,6 +240,7 @@
 <li>ATI Radeon Mobility M7
 <li>ATI Radeon Mobility 9200 (M9+)
 <li>NVIDIA GeForce4 440 Go 64M
+<li>NVIDIA GeForce FX 5200 Ultra
 <li><strong>Ethernet Adapters</strong>
@@ -481,7 +483,7 @@
 <li>Firewire is not supported.
 <li>Power Macintosh G5 (October 2005, dual core (PowerMac 11,2)) is not
supported yet.
 <li>iMac G5 (iSight (PowerMac12,1)) is not supported yet.
-<li>SATA does not work on PowerMac G5 and Xserve G5 systems.
+<li>SATA does not work on some PowerMac G5 and Xserve G5 systems.

I don't know about other G5, but mine is booting from SATA wd1 fine: pciide0
at pci8 dev 12 function 0 "ServerWorks K2 SATA" rev 0x00: DMA pciide0: using
irq 0 for native-PCI interrupt
pciide0: port 0: device present, speed: 1.5Gb/s
wd0 at pciide0 channel 0 drive 0: <ST380013AS>
wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 6
pciide0: port 1: device present, speed: 1.5Gb/s
wd1 at pciide0 channel 1 drive 0: <ST3250823AS>
wd1: 16-sector PIO, LBA48, 238475MB, 488397168 sectors
wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 6

Internal NIC.
gem0 at pci7 dev 15 function 0 "Apple K2 GMAC" rev 0x00: irq 41, address
ukphy0 at gem0 phy 0: Generic IEEE 802.3u media interface, rev. 0: OUI
0x000000, model 0x0000
It works in OSX, but doesn't in OpenBSD:
        lladdr 00:0a:95:8f:3d:84
        priority: 0
        media: Ethernet autoselect (none)
        status: no carrier
It always show "no carrier" on my 100MB/s D-Link router. Looking deeper I
found that in OpenBSD only media 1000baseSX is supported. On openbsd-misc@
I've found message from Dale Rahn (drahn@) [2] which states that some Macs
have two PHYs and the second one is ignored. So I suppose it's my case. Only
the first is recognised with OpenBSD and it have no chance to work with
100MB/s hardware and I have no 1GB/s capable hw to test with.

So I installed PCI card:
xl0 at pci2 dev 3 function 0 "3Com 3c905C 100Base-TX" rev 0x74: irq 53,
address 00:00:00:00:00:00
xl0: WARNING: no media options bits set in the media options register!! xl0:
this could be a manufacturing defect in your adapter or system xl0: attempting
to guess media type; you should probably consult your vendor xl0: unknown
device ID: 0 -- defaulting to 10baseT
No phy attached.

And another card:
vr0 at pci3 dev 4 function 0 "VIA VT6105 RhineIII" rev 0x86: irq 54, address
It also has no phy attached.

Both xl0 and vr0 are working fine on amd64 machine:
xl0 at pci4 dev 0 function 0 "3Com 3c905C 100Base-TX" rev 0x74: apic 2 int 20,
address 00:04:76:a0:89:8a
bmtphy0 at xl0 phy 24: 3C905C internal PHY, rev. 6
vr0 at pci4 dev 1 function 0 "VIA VT6105 RhineIII" rev 0x86: apic 2 int 19,
address 00:40:f4:7f:dc:a4
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 4: OUI
0x004063, model 0x0034

The only thing which is ok on my G5:
rsu0 at uhub2 port 3 "Manufacturer Realtek ASUS EZ N Network Adapter" rev
2.00/2.00 addr 2
rsu0: MAC/BB RTL8712 cut 3, address c8:60:00:5e:11:bb

Is it an individual problem with my Mac only or not? Any other information
about this G5 needed? I'm willing to test patches or give an access to this

Why some amount of memory disappears?
real mem = 536870912 (512MB)
avail mem = 1029836800 (982MB)
If I add two more 512MB banks, I have about 1,5GB of real mem, so about 500MB
disappears again.

Some devices on iic behave strange. Any clues?
lmtemp0 at iic0 addr 0x4a: ds1775, fails to respond
adc0 at iic0 addr 0x2c: ad7417, config reset failed

Thanks for any help!