[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbsd-ppc
Subject:    Re: PowerMac G5 SATA etc.
From:       Kusalananda_Andreas_Kähäri <dh.kusalananda () gmail ! com>
Date:       2011-11-15 21:03:42
Message-ID: CAPT+Sx+zu7QUt87WFB39VOWKnZ_fDNwiNwERV1ktyBnz2BuKZw () mail ! gmail ! com
[Download RAW message or body]

Hi again,

I've been trying to find a way of getting the dmesg from the G5 off
the machine using the built-in telnet server in Open Firmware, but I
can't seem to get further than this before the connection breaks:

0 > " enet:telnet,10.0.0.1" io

(switching to a telnet client on my laptop:)

ok

0 > boot hd:,ofwboot load-size=fe28 adler32=df52276c

Loading ELF
>> OpenBSD/macppc BOOT 1.1
boot> boot bsd.rd
booting /ht/pci@7/k2-sata-root/k2-sata@0/disk@0:bsd.rd: 7740096+412716
[82+148352+134073]=0x8<here it hangs>


I've never hooked up anything against this telnet server before, so
I'm not sure it's a baud rate issue (unlikely) or if the kernel simply
can not cope with it. The machine doesn't have an external serial
port, and I was hoping to be able to use the telnet connection to Open
Firmware to copy-and-paste a couple of dmesg outputs as well as a
panic traces.

Here's a dmesg from the bsd.rd kernel at least (I'm sorry if Gmail
mangles it). As I said previously, the bsd.rd kernel is able to use
the SATA disk I have in the box, but the bsd.sp kernel has different
plumbing and just hangs when it's supposed to mount the disks (I also
have to disable the aoa driver in UKC).

[ using 283044 bytes of bsd ELF symbol table ]
console out [ATY,Piton_A]console in [keyboard] , using USB
using parent ATY,PitonParent:: memaddr 98000000 size 8000000, :
consaddr 98008000, : ioaddr 90020000, size 20000: memtag 8000, iotag
8000: width 1920 linebytes 2048 height 1080 depth 8
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2011 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 5.0-current (RAMDISK) #51: Thu Nov  3 00:56:21 MDT 2011
    deraadt@macppc.openbsd.org:/usr/src/sys/arch/macppc/compile/RAMDISK
real mem = 2684354560 (2560MB)
avail mem = 2025930752 (1932MB)
mainbus0 at root: model PowerMac7,3
cpu0 at mainbus0: 970FX (Revision 0x300): 2300 MHz
cpu at mainbus0 not configured
mem at mainbus0 not configured
memc0 at mainbus0: u3
kiic0 at memc0 offset 0xf8001000
"dart" at memc0 offset 0xf8033000 not configured
"mpic" at memc0 offset 0xf8040000 not configured
mpcpcibr0 at mainbus0 pci: u3-agp, Revision 0xff
pci0 at mpcpcibr0 bus 0
pchb0 at pci0 dev 11 function 0 "Apple K2 AGP" rev 0x00
vgafb0 at pci0 dev 16 function 0 "ATI Radeon 9600 Pro" rev 0x00, mmio
wsdisplay0 at vgafb0 mux 1: console (std, vt100 emulation)
ht0 at mainbus0: u3-ht, 8 devices
pci1 at ht0 bus 0
pchb1 at pci1 dev 0 function 0 "Apple K2" rev 0x00
ppb0 at pci1 dev 1 function 0 "AMD 8131 PCIX" rev 0x12
pci2 at ppb0 bus 6
ppb1 at pci1 dev 2 function 0 "AMD 8131 PCIX" rev 0x12
pci3 at ppb1 bus 7
ppb2 at pci1 dev 3 function 0 "Apple U3 PCI-PCI" rev 0x00
pci4 at ppb2 bus 1
macobio0 at pci4 dev 7 function 0 "Apple K2 Macio" rev 0x60
openpic0 at macobio0 offset 0x40000: version 0x4614 feature 770302 LE
macgpio0 at macobio0 offset 0x50
"pmu-interrupt" at macgpio0 offset 0x9 not configured
"programmer-switch" at macgpio0 offset 0x11 not configured
"modem-reset" at macgpio0 offset 0x1d not configured
"modem-power" at macgpio0 offset 0x1e not configured
"chip-fault" at macgpio0 offset 0x1c not configured
"fcu-interrupt" at macgpio0 offset 0x15 not configured
"fcu-hw-reset" at macgpio0 offset 0x3a not configured
"slewing-done" at macgpio0 offset 0x23 not configured
"line-input-detect" at macgpio0 offset 0xc not configured
"dig-hw-reset" at macgpio0 offset 0x14 not configured
"line-output-detect" at macgpio0 offset 0x16 not configured
"headphone-detect" at macgpio0 offset 0x17 not configured
"codec-input-data-mux" at macgpio0 offset 0xb not configured
"codec-error-irq" at macgpio0 offset 0xd not configured
"codec-irq" at macgpio0 offset 0x18 not configured
"headphone-mute" at macgpio0 offset 0x1f not configured
"amp-mute" at macgpio0 offset 0x20 not configured
"hw-reset" at macgpio0 offset 0x24 not configured
"line-output-mute" at macgpio0 offset 0x25 not configured
"codec-clock-mux" at macgpio0 offset 0x26 not configured
"escc-legacy" at macobio0 offset 0x12000 not configured
zsc0 at macobio0 offset 0x13000: irq 22,23
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
"i2c" at macobio0 offset 0x18000 not configured
"i2s" at macobio0 offset 0x10000 not configured
"timer" at macobio0 offset 0x15000 not configured
adb0 at macobio0 offset 0x16000 irq 25: via-pmu, 0 targets
"fans" at macobio0 offset 0x4c not configured
ohci0 at pci4 dev 8 function 0 "Apple K2 USB" rev 0x00: irq 27,
version 1.0, legacy support
ohci1 at pci4 dev 9 function 0 "Apple K2 USB" rev 0x00: irq 28,
version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0 "Apple OHCI root hub" rev 1.00/1.00 addr 1
usb1 at ohci1: USB revision 1.0
uhub1 at usb1 "Apple OHCI root hub" rev 1.00/1.00 addr 1
ppb3 at pci1 dev 4 function 0 "Apple U3 PCI-PCI" rev 0x00
pci5 at ppb3 bus 2
ohci2 at pci5 dev 11 function 0 "NEC USB" rev 0x43: irq 63, version 1.0
ohci3 at pci5 dev 11 function 1 "NEC USB" rev 0x43: irq 63, version 1.0
ehci0 at pci5 dev 11 function 2 "NEC USB" rev 0x04: irq 63
usb2 at ehci0: USB revision 2.0
uhub2 at usb2 "NEC EHCI root hub" rev 2.00/1.00 addr 1
usb3 at ohci2: USB revision 1.0
uhub3 at usb3 "NEC OHCI root hub" rev 1.00/1.00 addr 1
usb4 at ohci3: USB revision 1.0
uhub4 at usb4 "NEC OHCI root hub" rev 1.00/1.00 addr 1
ppb4 at pci1 dev 5 function 0 "Apple U3 PCI-PCI" rev 0x00
pci6 at ppb4 bus 3
kauaiata0 at pci6 dev 13 function 0 "Apple K2 ATA" rev 0x00
wdc0 at kauaiata0 irq 39: DMA
atapiscsi0 at wdc0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <PIONEER, DVD-RW DVR-109, A912> ATAPI
5/cdrom removable
cd0(wdc0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 4
"Apple K2 Firewire" rev 0x00 at pci6 dev 14 function 0 not configured
ppb5 at pci1 dev 6 function 0 "Apple U3 PCI-PCI" rev 0x00
pci7 at ppb5 bus 4
gem0 at pci7 dev 15 function 0 "Apple K2 GMAC" rev 0x00: irq 41,
address 00:11:24:7f:a1:26
ukphy0 at gem0 phy 0: Generic IEEE 802.3u media interface, rev. 0: OUI
0x000000, model 0x0000
ppb6 at pci1 dev 7 function 0 "Apple U3 PCI-PCI" rev 0x00
pci8 at ppb6 bus 5
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: <Maxtor 6B250S0>
wd0: 16-sector PIO, LBA48, 239372MB, 490234752 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 6
pciide0: port 1: PHY offline
pciide0: port 2: PHY offline
pciide0: port 3: PHY offline
pciide1 at pci8 dev 12 function 1 "ServerWorks K2 SATA" rev 0x00
uhub5 at uhub2 port 3 "Apple, Inc. Keyboard Hub" rev 2.00/96.15 addr 2
uhidev0 at uhub5 port 1 configuration 1 interface 0 "Mitsumi Electric
Apple Optical USB Mouse" rev 1.10/1.10 addr 3
uhidev0: iclass 3/1
uhid0 at uhidev0: input=6, output=0, feature=0
uhidev1 at uhub5 port 2 configuration 1 interface 0 "Apple, Inc Apple
Keyboard" rev 2.00/0.69 addr 4
uhidev1: iclass 3/1
ukbd0 at uhidev1
wskbd0 at ukbd0: console keyboard, using wsdisplay0
uhidev2 at uhub5 port 2 configuration 1 interface 1 "Apple, Inc Apple
Keyboard" rev 2.00/0.69 addr 4
uhidev2: iclass 3/0
uhid1 at uhidev2: input=1, output=0, feature=0
softraid0 at root
scsibus1 at softraid0: 256 targets
bootpath: /ht/pci@7/k2-sata-root/k2-sata@0/disk@0:/bsd.rd
root on rd0a swap on rd0b dump on rd0b
WARNING: clock lost 15274 days, using FS time -- CHECK AND RESET THE DATE!
umass0 at uhub2 port 4 configuration 1 interface 0 "CBM Flash Disk"
rev 2.00/1.00 addr 5
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, initiator 0
sd0 at scsibus2 targ 1 lun 0: <CBM, Flash Disk, 5.00> SCSI2 0/direct
removable serial.020460251501770F3209
sd0: 992MB, 512 bytes/sector, 2033152 sectors


With kind regards,
Kusalananda

On 9 November 2011 11:06, Kusalananda Andreas Kdhdri
<dh.kusalananda@gmail.com> wrote:
> On 9 November 2011 10:54, Dale Rahn <drahn@dalerahn.com> wrote:
>> On Wed, Nov 09, 2011 at 09:58:47AM +0000, Kusalananda Andreas K?h?ri
wrote:
>>> Hi list,
>>>
>>> I have a dual core PowerMac G5, the type with three USB ports, so it's
>>> the early 2005 version of that model.
>>>
>>> I managed to boot bsd.rd from CDROM and to install the operating
>>> system on its SATA disk.
>>>
>>> Rebooting, I'm able to start loading the SMP kernel but I get a panic
>>> from the aoa driver. Disabling this, I get as far as the point when
>>> it's supposed to mount the file systems, which it obviously fails as
>>> SATA isn't supported.
>>
>> The SMP kernel does not work on G5, for now use the GENERIC (bsd) kernel.
>
> Ah, I will try the bsd.sp kernel instead.
>
>>> Now I wonder, how come I was able to install the operating system on
>>> the SATA disk when booting bsd.rd off the CDROM? Is there any way to
>>> work with the system by getting it to not use SATA somehow?
>>
>> This quite surprised me as well. When I have had the time to try recently,
>> the disk on SATA was never found (I have a machine running of a USB memory
>> stick).
>
> I was hoping not to have to do this, but if I can't get the hard drive
> to function, then I might have to resort to running off a USB stick
> myself.
>
>>> I'm currently using the November 3 snapshot of macppc from
>>> ftp.mirrorservice.org.
>>>
>>> Sorry for the lack of dmesg and panic trace output.
>>> I'm going to try setting up a telnet connection to the machine tonight
>>> or sometime soon to capture this.
>>
>> I am currently in Portugal at a hackathon and will be back sometime next
week
>> and will attempt to look at this then, please ping me if you have not
heard
>> anything from me by next Wednesday.
>>
>
> Ok, thanks. In the meanwhile, I'll try to produce dmesg and panic
> traces for you (probably during the weekend or so). If I manage to
> extract the dmesg from both the bsd.sp and the bsd.rd kernels, I'll
> look at what the differences are with regards to wd, wdc etc.
>
> Kusalananda
>
>>>
>>> Kind regards,
>>> Kusalananda
>>>
>>> --
>>> Dharmachari Kusalananda (Andreas Kdhdri)
>>> Somewhere in the general Cambridge area, UK.
>>>
>> Dale Rahn                               drahn@dalerahn.com
>>
>
>
>
> --
> Dharmachari Kusalananda (Andreas Kdhdri)
> Somewhere in the general Cambridge area, UK.
>



--
Dharmachari Kusalananda (Andreas Kdhdri)
Somewhere in the general Cambridge area, UK.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic