Subject: Newbie macppc user with some problems/questions
To: None <port-macppc@netbsd.org>
From: Dave Huang <khym@bga.com>
List: port-macppc
Date: 12/31/2000 17:12:54
Since Apple had this end of year rebate thing, I decided to get a dual
G4 500MHz... it's shiny :) Got NetBSD-current installed (latest 1.5Q
kernel, userland stuff is still 1.5 since I haven't recompiled it yet),
which went pretty smoothly. Had a few questions/problems though:

1) The install docs say that once ofwboot or ofwboot.xcf is loaded, it
can load the kernel off of a NetBSD ffs filesystem... I assume this is
true for ofwboot.elf too? I can't get it to work; partitions 1-8 are
various driver partitions, 9 is a HFS+ partition, 10 is NetBSD root/usr,
and 11 is NetBSD swap. I have ofwboot.elf on the root of the HFS
partition, and /netbsd on the NetBSD partition. If I do:
  boot hd:,ofwboot.elf hd:10,netbsd

I get:
MAC-PARTS: specified partition is not validopen hd:10,netbsd: Device not
configured
open hd:10,netbsd/netbsd: Device not configured

Does that mean OpenFirmware doesn't see my NetBSD partition 10? If I
put the kernel on the root of the HFS partition, and tell ofwboot to
boot hd:9,netbsd, it works fine. (hd:,netbsd works too)

2) Why does swapctl -A say "swapctl: /dev/wd0b: Cannot allocate memory"?
Is there such a thing as too much swap? :) (I made the swap partition
that size so it could be a dump partition too, but then I found out that
macppc doesn't do kernel dumps yet...)

Here's my disklabel:
5 partitions:
#        size   offset     fstype   [fsize bsize   cpg]
  a:  4300800 35034565     4.2BSD        0     0     0   # (Cyl. 34756*- 39023*)
  b:   853594 39335365       swap                        # (Cyl. 39023*- 39869*)
  c: 40188960        0     unused        0     0         # (Cyl.    0 - 39869)
  d:      200      320    unknown                        # (Cyl.    0*- 0*)
  e: 35033021     1544        HFS                        # (Cyl.    1*- 34756*)

3) I occasionally get "Spurious interrupt" messages. I'm not sure about
it, but it kinda looks like it has something to do with heavy network
activity? (I've got all the NetBSD source and stuff on a NFS server, so
I'm doing all my compiles over NFS. Objdir is on a local drive though).
Perhaps related is that the network will occasionally lock up and I have
to "ifconfig gm0 down; ifconfig gm0 up" to get it back.

4) Also got a kernel panic while trying to compile some stuff from
pkgsrc:

panic: pmap_alloc_pv: uvm_km_zalloc() failed
Stopped in pid 953 (sh) at     cpu_Debugger+0x10:     lwz r0, r1, 0x14,
db> t
at panic+e8
at pmap_copy_page+70
at pmap_enter+2e0
at uvm_fault+8b0
at trap+23c
at ddblow+e0
at end+14f6128
at end+ffcf5f90

(don't know why it's not showing the function names...)

I guess that's it for now :) Here's my dmesg output:

NetBSD 1.5Q (PMAC) #4: Sun Dec 31 10:01:10 CST 2000
    khym@pmac.metonymy.com:/usr/obj.macppc/PMAC
total memory = 320 MB
avail memory = 285 MB
using 2867 buffers containing 16484 KB of memory
mainbus0 (root)
cpu0 at mainbus0: 7400 (Revision 209), ID 0 (primary)
cpu0: 1MB backside cache
cpu1 at mainbus0 not configured
uninorth0 at mainbus0
pci0 at uninorth0 bus 0
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 11 function 0
pchb0: Apple Computer UniNorth AGP Interface (rev. 0x00)
ofb0 at pci0 dev 16 function 0: ATI Technologies product 0x5144
ofb0: 1280 x 1024, 8bpp
wsdisplay0 at ofb0: console (std, vt100 emulation)
uninorth1 at mainbus0
pci1 at uninorth1 bus 0
pci1: i/o space, memory space enabled
pchb1 at pci1 dev 11 function 0
pchb1: Apple Computer UniNorth Host-PCI Bridge (rev. 0x00)
ppb0 at pci1 dev 13 function 0: Digital Equipment DECchip 21154 PCI-PCI Bridge (rev. 0x05)
pci2 at ppb0 bus 1
pci2: i/o space, memory space enabled
obio0 at pci2 dev 7 function 0: addr 0x80000000
zsc0 at obio0 offset 0x13000: irq 22,50
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
davbus at obio0 offset 0x14000 not configured
adb0 at obio0 offset 0x16000 irq 25: 0 targets
aed0 at adb0 addr 0: ADB Event device
wdc0 at obio0 offset 0x1f000 irq 19: DMA transfer
wd0 at wdc0 channel 0 drive 0: <IBM-DTLA-305020>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 19623 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 40188960 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(wdc0:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
wdc1 at obio0 offset 0x20000 irq 20: DMA transfer
atapibus0 at wdc1 channel 0
cd0 at atapibus0 drive 0: <MATSHITADVD-ROM SR-8585F, , 2A25> type 5 cdrom removable
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd0(wdc1:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
wdc2 at obio0 offset 0x21000 irq 21: DMA transfer
ohci0 at pci2 dev 8 function 0: Apple Computer KeyLargo USB Controller (rev. 0x00)
ohci0: interrupting at irq 27
ohci0: OHCI version 1.0
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Apple Computer OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ohci1 at pci2 dev 9 function 0: Apple Computer KeyLargo USB Controller (rev. 0x00)
ohci1: interrupting at irq 28
ohci1: OHCI version 1.0
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: Apple Computer OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
fwohci0 at pci2 dev 10 function 0: Texas Instruments TSB12LV26 OHCI IEEE 1394 Host Controller (rev. 0x00)
fwohci0: interrupting at irq 63
fwohci0: OHCI 1.0
fwohci0: fatal: no global UID ROM
uninorth2 at mainbus0
pci3 at uninorth2 bus 0
pci3: i/o space, memory space enabled
pchb2 at pci3 dev 11 function 0
pchb2: Apple Computer UniNorth Host-PCI Bridge (rev. 0x00)
gm0 at pci3 dev 15 function 0: Ethernet address 00:30:65:c6:c8:6c
gm0: interrupting at irq 41
ukphy0 at gm0 phy 0: Generic IEEE 802.3u media interface
ukphy0: BCM5400 1000baseTX PHY (OUI 0x000818, model 0x0004), rev. 7
ukphy0: 100baseTX, 100baseTX-FDX, auto
uhub2 at uhub0 port 2
uhub2: Philips Semiconductors product 0x1122, class 9/0, rev 1.10/1.10, addr 2
uhub2: 3 ports with 3 removable, self powered
uhub3 at uhub2 port 1
uhub3: Mitsumi Electric Hub in Apple Extended USB Keyboard, class 9/0, rev 1.10/1.22, addr 3
uhub3: 3 ports with 2 removable, bus powered
ukbd0 at uhub3 port 1 configuration 1 interface 0
ukbd0: Mitsumi Electric Apple Extended USB Keyboard, rev 1.10/1.22, addr 4, iclass 3/1
wskbd1 at ukbd0: console keyboard, using wsdisplay0
uhid0 at uhub3 port 1 configuration 1 interface 1
uhid0: Mitsumi Electric Apple Extended USB Keyboard, rev 1.10/1.22, addr 4, iclass 3/0
ums0 at uhub3 port 2 configuration 1 interface 0
ums0: Fujitsu Takamisawa Component Apple Optical USB Mouse, rev 1.10/1.06, addr 5, iclass 3/1
ums0: 1 button
wsmouse1 at ums0
uhid1 at uhub2 port 3 configuration 1 interface 0
uhid1: Apple Computer Studio Display, rev 1.00/6.49, addr 6, iclass 3/0
boot device: wd0
root on wd0a dumps on wd0b

-- 
Name: Dave Huang     |   Mammal, mammal / their names are called /
INet: khym@bga.com   |   they raise a paw / the bat, the cat /
FurryMUCK: Dahan     |   dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 25 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++