Port-macppc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

NetBSD-current booted from internal HDD on PowerMac G5 11,2



Hi,

i managed to boot NetBSD-current from the internal HDD on my
PowerMac G5 11,2.

The loader ofwboot hat to be patched a little and
it has problems with gzipped kernels but boots non-gzipped kernels
just fine ;)

The ServerWorks K2 SATA driver had to be patched too.
Thanks to Linux, FreeBSD and OpenBSD i could fix minor problems
in the driver and it works perfectly now.


bootpath: /ht/pci@9/k2-sata-root/k2-sata@0/disk@0:0/netbsd



g5-netbsd# mount
/dev/wd0a on / type ffs (local)
kernfs on /kern type kernfs (local)

g5-netbsd# df -h
Filesystem         Size       Used      Avail %Cap Mounted on
/dev/wd0a           34G       554M        32G   1% /
kernfs             1.0K       1.0K         0B 100% /kern




g5-netbsd# pdisk /dev/wd0c
Edit /dev/wd0c -
Command (? for help): p

Partition map (with 512 byte blocks) on '/dev/wd0c'
 #:                type name       length   base      ( size )
 1: Apple_partition_map Apple          63 @ 1
 2:     Apple_Bootstrap Boot       262144 @ 64        (128.0M)
 3:     Apple_UNIX_SVR2 Linux    78125001 @ 262208    ( 37.3G)
 4:         FreeBSD-UFS FreeBSD  78125001 @ 78387209  ( 37.3G)
5: Apple_UNIX_SVR2 NetBSD 73400320 @ 156512210 ( 35.0G) S0 RUFS k0 / 6: Apple_UNIX_SVR2 OpenBSD 73400320 @ 229912530 ( 35.0G) S0 RUFS k0 / 7: Apple_UNIX_SVR2 swap 9268909 @ 303312850 ( 4.4G) S1 SFS k0 (swap)
 8:          Apple_Free Extra           0 @ 0

Device block size=512, Number of Blocks=312581808 (149.1G)
DeviceType=0x0, DeviceId=0x0




g5-netbsd# vmstat -i
interrupt                                     total     rate
cpu0 clock                                    26247      100
openpic irq 66                                  318        1
openpic irq 67                                    8        0
openpic irq 70                                   20        0
openpic irq 10                                 2346        9
Total                                         28939      111



Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 6.99.19 (POWERMAC_G5_11_2) #38: Sat Apr  6 23:01:26 UTC 2013
        root@.intern:/usr/current/sys/arch/macppc/compile/obj/POWERMAC_G5_11_2
total memory = 2048 MB
oea_startup: failed to allocate DEAD ZONE: error=12
avail memory = 1963 MB
timecounter: Timecounters tick every 10.000 msec
cprng kernel: WARNING insufficient entropy at creation.
found U3/U4 HT PIC at f8040000
OpenPIC Version 1.2: Supports 4 CPUs and 124 interrupt sources.
bootpath: /ht/pci@9/k2-sata-root/k2-sata@0/disk@0:0/netbsd
mainbus0 (root)
cpu0 at mainbus0: 970MP (Revision 1.0), ID 0 (primary)
cpu0: HID0 , powersave: -1
cpu1 at mainbus0: ID 1
cpu1: processor off-line; multiprocessor support not present in kernel
uninorth0 at mainbus0
pci0 at uninorth0 bus 10
pci0: i/o space, memory space enabled
genfb0 at pci0 dev 0 function 0found EDID property...
: NVIDIA GeForce 6600 (rev. 0xa2)
genfb0: framebuffer at 0x98020000, size 1280x1024, depth 8, stride 1536
wsdisplay0 at genfb0 kbdmux 1: console (default, vt100 emulation)
wsmux1: connecting to wsdisplay0
drm at genfb0 not configured
ibmcpc0 at mainbus0
Mapping in config space @ pa 0xf2000000, size: 0x02800000
pci1 at ibmcpc0 bus 4
pci1: i/o space, memory space enabled
pci2 at ibmcpc0 bus 5
pci2: i/o space, memory space enabled
bge0 at pci2 dev 4 function 0: Broadcom BCM5780 Gigabit Ethernet
genppc_pci_intr_map: pin: 1, line: 66
bge0: interrupting at irq 66
bge0: NVRAM lock timedout!
bge0: ASIC BCM5714 B3 (0x8003), Ethernet address 00:14:51:62:09:78
bge0: setting short Tx thresholds
brgphy0 at bge0 phy 1: BCM5780 1000BASE-T media interface, rev. 0
brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
bge1 at pci2 dev 4 function 1: Broadcom BCM5780 Gigabit Ethernet
genppc_pci_intr_map: pin: 2, line: 67
bge1: interrupting at irq 67
bge1: NVRAM lock timedout!
bge1: ASIC BCM5714 B3 (0x8003), Ethernet address 00:14:51:62:09:79
bge1: setting short Tx thresholds
brgphy1 at bge1 phy 1: BCM5780 1000BASE-T media interface, rev. 0
brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
pci3 at ibmcpc0 bus 6
pci3: i/o space, memory space enabled
pci4 at ibmcpc0 bus 7
pci4: i/o space, memory space enabled
pci5 at ibmcpc0 bus 8
pci5: i/o space, memory space enabled
pci6 at ibmcpc0 bus 9
pci6: i/o space, memory space enabled
pci7 at ibmcpc0 bus 2
pci7: i/o space, memory space enabled
Apple Computer Shasta GMAC (ethernet network) at pci7 dev 15 function 0 not configured
pci8 at ibmcpc0 bus 1
pci8: i/o space, memory space enabled
Apple Computer Shasta (undefined, subclass 0x00) at pci8 dev 7 function 0 not configured
ohci0 at pci8 dev 11 function 0: NEC USB Host Controller (rev. 0x43)
csr: 02100006
genppc_pci_intr_map: pin: 1, line: 70
ohci0: interrupting at irq 70
ohci0: OHCI version 1.0
usb0 at ohci0: USB revision 1.0
ohci1 at pci8 dev 11 function 1: NEC USB Host Controller (rev. 0x43)
csr: 02100006
genppc_pci_intr_map: pin: 2, line: 70
ohci1: interrupting at irq 70
ohci1: OHCI version 1.0
usb1 at ohci1: USB revision 1.0
ehci0 at pci8 dev 11 function 2: NEC USB2 Host Controller (rev. 0x04)
genppc_pci_intr_map: pin: 3, line: 70
ehci0: interrupting at irq 70
ehci0: EHCI version 1.0
ehci0: companion controllers, 3 ports each: ohci0 ohci1
usb2 at ehci0: USB revision 2.0
pci9 at ibmcpc0 bus 3
pci9: i/o space, memory space enabled
svwsata0 at pci9 dev 12 function 0: ServerWorks K2 SATA Controller (rev. 0x00)
svwsata0: bus-master DMA support present
genppc_pci_intr_map: pin: 0, line: 10
pci_intr_map: interrupt pin 0
svwsata0: using irq 10 for native-PCI interrupt
svwsata0: primary channel wired to native-PCI mode
atabus0 at svwsata0 channel 0
svwsata0: secondary channel wired to native-PCI mode
atabus1 at svwsata0 channel 1
svwsata0: secondary channel wired to compatibility mode
atabus2 at svwsata0 channel 2
svwsata0: secondary channel configured to compatibility mode
atabus3 at svwsata0 channel 3
Apple Computer Shasta ATA (undefined, subclass 0x00) at pci9 dev 13 function 0 not configured Apple Computer Shasta Firewire (Firewire serial bus, interface 0x10) at pci9 dev 14 function 0 not configured
vmmask 68000000 schedmask 78000000 highmask 78000000
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
timecounter: Timecounter "mftb" frequency 33333333 Hz quality 100
uhub0 at usb0: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
uhub1 at usb1: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhub2 at usb2: NEC EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub2: 5 ports with 5 removable, self powered
svwsata0 port 0: device present, speed: 1.5Gb/s
wd0 at atabus0 drive 0
wd0: <WDC WD1600JS-41MVB1>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 149 GB, 310101 cyl, 16 head, 63 sec, 512 bytes/sect x 312581808 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(svwsata0:0:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
ehci0: handing over low speed device on port 2 to ohci0
svwsata0 port 1: PHY offline
cprng sysctl: WARNING insufficient entropy at creation.
boot device: <unknown>
root on wd0a dumps on wd0b
mountroot: trying udf...
mountroot: trying ntfs...
mountroot: trying nfs...
mountroot: trying msdos...
mountroot: trying ext2fs...
mountroot: trying ffs...
root file system type: ffs
WARNING: no TOD clock present
WARNING: using filesystem time
WARNING: CHECK AND RESET THE DATE!
init: copying out path `/sbin/init' 11
uhidev0 at uhub1 port 1 configuration 1 interface 0
uhidev0: vendor 0x046a product 0x0011, rev 2.00/1.00, addr 2, iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd0 at ukbd0: console keyboard, using wsdisplay0
wsdisplay0: screen 1 added (default, vt100 emulation)
wsdisplay0: screen 2 added (default, vt100 emulation)
wsdisplay0: screen 3 added (default, vt100 emulation)
wsdisplay0: screen 4 added (default, vt100 emulation)



Home | Main Index | Thread Index | Old Index