Subject: I.B.iM. part deux: diskless rocks!
To: None <port-macppc@netbsd.org>
From: Todd Whitesel <toddpw@best.com>
List: port-macppc
Date: 10/19/1999 04:06:10
Thanks to Mitch Spector's iMac booting web page, I now have a pure diskless
setup working for this 333mhz grape iMac. (Yes, it does appear to work with
the 333mhz version!).  Of course, some comments...

1. mountd and nfsd are presumed to appear in /sbin, but on i386/1.4.1 I found
	them in /usr/sbin.

2. I edited root/etc/ttys and changed the vt100's to vt220's so I wouldn't
	have to type it seperately for each login.

3. I had to stty erase ^H because the keyboard map for the iMac keyboard maps
	delete to control-H...

4. Don't seem to be having the "infinite repeat" problem on this machine. good

5. If I hold down the N key on powerup, the first thing I see is the NetBSD
	dmesg in "Sun console font"; however when it gets to mounting the
	root device, it finds nothing and prompts for a root device BUT the
	keyboard is dead so I have to power-cycle it. It looks like we depend
	on some console/keyboard initialization that happens when you use the
	OpenFirmware command line to boot the kernel.

6. If I try 'startx' with slightly modified skel startup scripts, I get:

OsVendorInit
X: open kbd/mouse: No such file or directory
_X11TransSocketUNIXConnect: Can't connect: errno = 2
_X11TransSocketUNIXConnect: Can't connect: errno = 2
_X11TransSocketUNIXConnect: Can't connect: errno = 2
_X11TransSocketUNIXConnect: Can't connect: errno = 2
_X11TransSocketUNIXConnect: Can't connect: errno = 2
_X11TransSocketUNIXConnect: Can't connect: errno = 2
giving up.
xinit:  No such file or directory (errno 2):  unable to connect to X server
xinit:  No such process (errno 3):  Server error.

Not sure what device nodes it is looking for. dmesg follows:

NetBSD 1.4.1 (GENERIC) #1: Wed Aug 11 18:08:32 JST 1999
    tsubai@mint.iri.co.jp:/usr/src/sys/arch/macppc/compile/GENERIC
CPU: 750 (Revision 202)
real mem  = 33554432
avail mem = 26529792
using 409 buffers containing 1675264 bytes of memory
mainbus0 (root)
cpu0 at mainbus0
pci0 at mainbus0 bus 0
pci0: i/o enabled, memory enabled
pchb0 at pci0 dev 0 function 0
pchb0: Motorola product 0x0002 (rev. 0x40)
obio0 at pci0 dev 16 function 0: addr 0x80800000
interrupt-controller at obio0 offset 0x10 not configured
scsi at obio0 offset 0x10000 not configured
escc-legacy at obio0 offset 0x12000 not configured
zsc0 at obio0 offset 0x13000: irq 15,16
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
davbus at obio0 offset 0x14000 not configured
fdc at obio0 offset 0x15000 not configured
adb0 at obio0 offset 0x16000 irq 18: 0 targets
aed0 at adb0 addr 0: ADB Event device
wdc0 at obio0 offset 0x20000 irq 13
wd0 at wdc0 channel 0 drive 0: <WDC AC26400R>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 6149MB, 13328 cyl, 15 head, 63 sec, 512 bytes/sect x 12594960 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4
wdc1 at obio0 offset 0x21000 irq 14
atapibus0 at wdc1 channel 0
cd0 at atapibus0 drive 0: <MATSHITA CR-175, , 5ADF> type 5 cdrom removable
cd0: drive supports PIO mode 4, DMA mode 2
bm0 at obio0 offset 0x11000 irq 42,33: address 00:50:e4:ce:9b:06
nvram0 at obio0 offset 0x60000
ofb0 at pci0 dev 18 function 0: ATI Technologies product 0x4750
ofb0: 1024 x 768, 8bpp
wsdisplay0 at ofb0: console (std, vt100 emulation)
ohci0 at pci0 dev 20 function 0: Fujitsu Limited (4th PCI Vendor ID) product 0x5801 (rev. 0x12)
ohci0: interrupting at irq 28
ohci0: OHCI version 1.0
usb0 at ohci0
uhub0 at usb0
uhub0: Fujitsu Limited  OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub0: port error, giving up port 1
uhub1 at uhub0 port 1
uhub1: Alps Electric Hub in Apple USB Keyboard, class 9/0, rev 1.10/2.10, addr 2
uhub1: 3 ports with 2 removable, bus powered
ukbd0 at uhub1 port 1 configuration 1 interface 0
ukbd0: Alps Electric Apple USB Keyboard, rev 1.10/1.02, addr 3, iclass 3/1
wskbd1 at ukbd0: console keyboard
ums0 at uhub1 port 2 configuration 1 interface 0
ums0: Logitech M4848, rev 1.00/5.00, addr 4, iclass 3/1
ums0: 1 buttons
wsmouse1 at ums0
uhub0: port error, giving up port 2
ugen0 at uhub0 port 2
ugen0: Connectix QuickCam, rev 1.00/1.00, addr 5
wscons: wskbd1 glued to wsdisplay0 (console)
boot device: bm0
nfs_boot: trying DHCP/BOOTP
nfs_boot: BOOTP server: 0xa000001
nfs_boot: my_addr=0xa000900
nfs_boot: my_mask=0xff000000
root on uni.wrs.com:/data/export/leia/root/
root file system type: nfs

# eof

Todd Whitesel
toddpw @ best.com