Subject: Re: MI SONIC Ethernet driver for mac68k
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
From: Ivan Carrillo <ivan.carrillo@gmail.com>
List: port-mac68k
Date: 05/30/2007 13:58:34
> Hmm, then we need an attachment like obio/if_sm_obio.c.
> As you can see obio/if_sn_obio.c and obio_if_mc_obio.c,
> the necessary info is device address to access its registers
> and ROM address to get MAC address. Is there any hardware
> document about the Farallon etherwave card?
> (If there is no doc we might have to do reverse engineering etc.)

I'll try to find out more about the card.

> Is there "sn0 at obio0" line during configure before the panic?
>

Yes, there's a line that reads:

sn0 at obio0: integrated SONIC Ethernet adapter

> Could you also try a stock -current kernel in NetBSD-daily?
> ftp://ftp.NetBSD.org/pub/NetBSD-daily/HEAD/200705270002Z/mac68k/binary/kernel/
>

Tried it and it seems to work fine (seems to boot faster too!).
Network throughput still seems somewhat slow, I'm getting max at
around 130KB/s (in os 8.1 I get over 270KB/s). Here's the output from
dmesg:

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007
    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 4.99.20 (GENERIC) #0: Sun May 27 20:37:24 PDT 2007
        builds@wb29:/home/builds/ab/HEAD/mac68k/200705270002Z-obj/home/builds/ab
/HEAD/src/sys/arch/mac68k/compile/GENERIC
Apple Macintosh LC 575  (68040)
cpu: delay factor 1280
total memory = 132 MB
avail memory = 124 MB
timecounter: Timecounters tick every 16.666 msec
mrg: 'MacLC575 ROMs' ROM glue, tracing off, debug off, silent traps
mainbus0 (root)
obio0 at mainbus0
esp0 at obio0 addr 0 (quick): address 0x366000: NCR53C96, 16MHz, SCSI ID 7
scsibus0 at esp0: 8 targets, 8 luns per target
adb0 at obio0
asc0 at obio0: Apple Sound Chip
intvid0 at obio0 @ f9001000: DAFB video subsystem, monitor sense 0
intvid0: 640 x 480, monochrome
macfb0 at intvid0
wsdisplay0 at macfb0 (kbdmux ignored): console (std, vt100 emulation)
sn0 at obio0: integrated Ethernet adapter
sn0: Ethernet address 00:a0:40:1f:d0:5a
iwm0 at obio0: Apple GCR floppy disk controller
fd0 at iwm0 drive 0: (HD disk -- not supported)
fd1 at iwm0 drive 1: (HD disk -- not supported)
zsc0 at obio0 chip type 0
zsc0 channel 0: d_speed   9600 DCD clk 0 CTS clk 0
zstty0 at zsc0 channel 0
zsc0 channel 1: d_speed   9600 DCD clk 0 CTS clk 0
zstty1 at zsc0 channel 1
nubus0 at mainbus0
macvid0 at nubus0 slot e: FOCUS LC24 - 21" PDS
macvid0: Unknown video card ID 0x2345 -- Not installing interrupt routine.
macvid0: 640 x 481, monochrome
macfb1 at macvid0
wsdisplay1 at macfb1 (kbdmux ignored)
fpu0 at mainbus0 (mc68040)
timecounter: Timecounter "clockinterrupt" frequency 60 Hz quality 0
timecounter: Timecounter "VIA1 T2" frequency 783360 Hz quality 100
adb0 (direct, Cuda): 4 targets
aed0 at adb0 addr 0: ADB Event device
akbd0 at adb0 addr 2: adjustable keyboard (ISO layout)
wskbd0 at akbd0 (mux ignored): console keyboard, using wsdisplay0
ams0 at adb0 addr 15: EMP mouse <KML1> 2-button, 400 dpi
wsmouse0 at ams0 (mux ignored)
adb0 addr 7:  unsupported
ams1 at adb0 addr 3: relative positioning device (mouse?) (50)
wsmouse1 at ams1 (mux ignored)
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 0 lun 0: <SEAGATE, ST39216N, 0010> disk fixed
sd0: 8761 MB, 14384 cyl, 3 head, 415 sec, 512 bytes/sect x 17942584 sectors
sd0: async, 8-bit transfers, tagged queueing
sd1 at scsibus0 target 1 lun 0: <FUJITSU, MCE3064SS, 0060> optical removable
sd1: drive offline
sd1: sync (248.00ns offset 15), 8-bit (4.032MB/s) transfers
boot device: sd0
root on sd0a dumps on sd0b
root file system type: ffs