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 11:46:22
The Farallon etherwave card is a CommSlot card. It doesn't show up in
the install kernel when I tried to set it up, that's why I had to get
an Apple CS card in order to get networking going. You'll notice in
dmesg I also have a LC-PDS video card, it works in X in 1 bit and
640x480 resolution so I have dual display. I tried to load
Xmac68k_color but it would complain about not finding colors (maybe
the CLUT is not there in the 3.1 files?).
Here's the output of trace on db with the kernel I downloaded from your site:

cpu_Debugger(2300,8,353ec8,353e24,353eb4) + 6
panic(27d530,0,cf20,80040372,51901000) + 118
trap(8,505,800e5ff8) + 268
tcp_timer_init(232ce,2333c,353f6c,187d9a,27e89c) + 54
tcp_init(27e89c,400,353f80,1887aa,28613c) + 6c
domain_attach(28613c) + 50
domaininit(11e00,cf20,80040372,ffffcffc,400) + 40
main(353ff4,22c472,6d2000,1000,2c9600) + 44e
low() + 2

Here's the output from dmesg with a stock 3.1 kernel:

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
    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 3.1 (GENERIC) #0: Tue Oct 31 04:42:59 UTC 2006
        builds@b3.netbsd.org:/home/builds/ab/netbsd-3-1-RELEASE/mac68k/200610302
053Z-obj/home/builds/ab/netbsd-3-1-RELEASE/src/sys/arch/mac68k/compile/GENERIC
Apple Macintosh LC 575  (68040)
cpu: delay factor 1280
total memory = 132 MB
avail memory = 124 MB
mrg: 'MacLC575 ROMs' ROM glue, tracing off, debug off, silent traps
mainbus0 (root)
obio0 at mainbus0
esp0 at obio0 addr 0 (quick): address 0x898000: 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)
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


> > I downloaded the kernel, but it won't finish loading and dumps into
> > the debugger.
> > I'm using 3.1 on a mystic color classic (full 040, oc'd to 40mhz) with
> > an apple cs
> > twisted pair card.
>
> Hmm, could you post output of "trace" command on the debugger prompt
> and dmesg on working 3.1 kernel?
> (it's also better to Cc: to the list to share info)
>
> > BTW, do you know if there's a patch to enable me to use a Farallon etherwave cs?
> > The chip on the card is:
> >
> > SMC91C94QF P
>
> Is it NuBus based, or something else?
> Is there any info (vendor ID etc.) about the card on boot?
>
> SMC91C94 seems supported by MI src/sys/dev/ic/smc91cxx.c
> and some NuBus based card should work with "sm* at nubus?",
> so it would be trivial to add support for your card
> if necessary info (address map, vendor info etc) is provided.
> (see sys/arch/mac68k/nubus/if_sm_nubus.c)
> ---