Subject: eMac USB2.0 1.25 and NetBSD
To: None <port-macppc@NetBSD.ORG>
From: Marco Trillo <toad@arsystel.com>
List: port-macppc
Date: 02/19/2005 02:06:21
Hi all!

I've installed NetBSD 2.0 release successfully on my eMac USB2.0 1.25 . 
On "Model Support Page" say that this model was untested.

So here is the "dmesg":

==========
NetBSD 2.0 (EMAC) #1: Sat Feb 19 01:24:09 CET 2005
	root@ununhexium:/usr/src/sys/arch/macppc/compile/EMAC
total memory = 256 MB
avail memory = 239 MB
mainbus0 (root)
cpu0 at mainbus0: Version 0x8003 (Revision 0x0101), ID 0 (primary)
cpu0: HID0 8410c09c<EMCP,EICE,DPM,ICE,DCE,SGE,FBIOB,ABE,BHT>
cpu0: 1250.00 MHz, 256KB L2 cache
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 Bridge (rev. 0x00)
ofb0 at pci0 dev 16 function 0: ATI Technologies product 0x5962
ofb0: 1024 x 768, 8bpp
wsdisplay0 at ofb0 kbdmux 1: console (std, vt100 emulation)
wsmux1: connecting to wsdisplay0
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)
obio0 at pci1 dev 23 function 0: addr 0x80000000
zsc0 at obio0 offset 0x13000: irq 22,23
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
snapper0 at obio0 offset 0x10000snapper0: irq 30,1,2
adb0 at obio0 offset 0x16000 irq 47: pm_adb_op: timeout. command = 0x0
0 targets
aed0 at adb0 addr 0: ADB Event device
apm0 at adb0: battery flags 0x9, 0% charged
ki2c0 at obio0
wdc0 at obio0 offset 0x20000 irq 24: DMA transfer
atabus0 at wdc0 channel 0
ohci0 at pci1 dev 24 function 0: Apple Computer product 0x003f (rev. 
0x00)
ohci0: can't map mem space
ohci1 at pci1 dev 25 function 0: Apple Computer product 0x003f (rev. 
0x00)
ohci1: can't map mem space
ohci2 at pci1 dev 26 function 0: Apple Computer product 0x003f (rev. 
0x00)
ohci2: interrupting at irq 29
ohci2: OHCI version 1.0, legacy support
usb0 at ohci2: 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
ohci3 at pci1 dev 27 function 0: NEC USB Host Controller (rev. 0x43)
ohci3: interrupting at irq 63
ohci3: OHCI version 1.0
usb1 at ohci3: USB revision 1.0
uhub1 at usb1
uhub1: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
ohci4 at pci1 dev 27 function 1: NEC USB Host Controller (rev. 0x43)
ohci4: interrupting at irq 63
ohci4: OHCI version 1.0
usb2 at ohci4: USB revision 1.0
uhub2 at usb2
uhub2: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
NEC USB Host Controller (USB serial bus, interface 0x20, revision 0x04) 
at pci1 dev 27 function 2 not configured
uninorth2 at mainbus0
pci2 at uninorth2 bus 0
pci2: i/o space, memory space enabled
pchb2 at pci2 dev 11 function 0
pchb2: Apple Computer UniNorth Host-PCI Bridge (rev. 0x00)
wdc1 at pci2 dev 13 function 0: interrupting at irq 39
atabus1 at wdc1 channel 0
fwohci0 at pci2 dev 14 function 0: Apple Computer UniNorth Firewire 
(rev. 0x81)
fwohci0: interrupting at irq 40
fwohci0: OHCI 1.1, 00:0d:93:ff:fe:57:39:60, 400Mb/s, 2048 max_rec, 8 
ir_ctx, 8 it_ctx
gem0 at pci2 dev 15 function 0: Apple Computer GMAC Ethernet (rev. 0x80)
gem0: interrupting at irq 41
gem0: Ethernet address 00:0d:93:57:39:60, 10KB RX fifo, 4KB TX fifo
bmtphy0 at gem0 phy 0: BCM5221 10/100 media interface, rev. 4
bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
audio0 at snapper0: full duplex
atapibus0 at atabus0: 2 targets
fw0 at fwohci0: 00:0d:93:ff:fe:57:39:60:0a:02:ff:ff:f0:01:00:00
cd0 at atapibus0 drive 0: <HL-DT-ST RW/DVD GCC-4481B, , 2.05> cdrom 
removable
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd0(wdc0:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
uhub3 at uhub1 port 1
uhub3: Mitsumi Electric Hub in Apple Extended USB Keyboard, class 9/0, 
rev 1.10/4.10, addr 2
uhub3: 3 ports with 2 removable, bus powered
uhidev0 at uhub3 port 1 configuration 1 interface 0
uhidev0: Logitech Apple Optical USB Mouse, rev 2.00/3.40, addr 3, 
iclass 3/1
ums0 at uhidev0: 1 button
wsmouse1 at ums0 mux 0
uhidev1 at uhub3 port 3 configuration 1 interface 0
uhidev1: Mitsumi Electric Apple Extended USB Keyboard, rev 1.10/4.10, 
addr 4, iclass 3/1
ukbd0 at uhidev1: 8 modifier keys, 6 key codes
wd0 at atabus1 drive 0: <ST340015A>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 38166 MB, 77545 cyl, 16 head, 63 sec, 512 bytes/sect x 78165360 
sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(wdc1:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 5 
(Ultra/100) (using DMA data transfers)
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev2 at uhub3 port 3 configuration 1 interface 1
uhidev2: Mitsumi Electric Apple Extended USB Keyboard, rev 1.10/4.10, 
addr 4, iclass 3/0
uhidev2: 3 report ids
uhid0 at uhidev2 reportid 2: input=1, output=0, feature=0
uhid1 at uhidev2 reportid 3: input=3, output=0, feature=0
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
==========

The "EMAC" kernel I built is only a simple modification to GENERIC to 
turn on the "snapper" driver.

# audioplay -v 50 -d /dev/audio0 ./4thsym.wav

The driver works great and nice :-)

So this eMac model of course runs NetBSD :-)

Cheers,
Marco
===================================