On Wed, February 13, 2013 13:53, Martin Pieuchot wrote: > On 13/02/13(Wed) 11:47, Kirill Bychkov wrote: >> [..] >> 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: > > Also don't forget to send your dmesg to dmesg@ ;) > >> Index: macppc.html >> =================================================================== RCS >> file: >> /cvs/www/macppc.html,v >> 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 > > I think that here you want to add "Apple U3 AGP" as it shows up in your > dmesg, right? With this change it's ok mpi@.
I thought that U3 stands for Uni-North 3 and added a line like previous. If I'm mistaken, I'll commit it with "Apple U3 AGP" line. > >> <li>Motorola MPC106 Host-PCI >> </ul> >> @@ -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 >> </ul> >> <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. >> </ul> >> <hr> Martin, any comments about SATA support on PowerMac G5 and Xserver G5? >> Problems. >> Internal NIC. >> gem0 at pci7 dev 15 function 0 "Apple K2 GMAC" rev 0x00: irq 41, address >> 00:0a:95:8f:3d:84 >> 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: >> gem0: flags=8822<BROADCAST,NOTRAILERS,SIMPLEX,MULTICAST> mtu 1500 >> 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. > > I am aware of this problem as I have a similar PowerMac G5 that presents > the same symptoms. I didn't investigate further yet but I managed to get > this interface working when I first installed OpenBSD using a tftp > server. So I guess it has something to do with the firmware. > >> >> 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 >> 00:00:00:00:00:00 >> 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 >> Mac. > > I've no idea about why your other cards are not working, do they work > under an other OS on the same machine? Same 3com card in OSX, which doesn't work in OpenBSD: en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::210:22ff:fefd:7ab2%en1 prefixlen 64 scopeid 0x5 inet 192.168.1.38 netmask 0xffffff00 broadcast 192.168.1.255 ether 00:10:22:fd:7a:b2 media: autoselect (100baseTX <full-duplex>) status: active supported media: 10baseT/UTP <half-duplex> 10baseT/UTP <full-duplex> autoselect 100baseTX <half-duplex> 100baseTX <full-duplex> My noname VIA card isn't recognised by OSX. > Can you also provide the output of 'eeprom -p' alongside with your > dmesg? http://i386.linklevel.net/eeprom.g5 http://i386.linklevel.net/dmesg.g5 > M.