Subject: Re: MI SONIC Ethernet driver for mac68k
To: None <ivan.carrillo@gmail.com>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: port-mac68k
Date: 05/31/2007 02:58:58
ivan.carrillo@gmail.com wrote:

> 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.

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.)

> 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?).

I'm not familiar with X status on mac68k, but I think
the Booter has some options for "Monitor Depth."
You could try to change it in "Options" -> "Monitor" ->
"Change Monitor Depth" menu, but I'm not sure if
the Booter supports the secondary video.

> 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

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

Anyway, it's unlikely my patch causes such panic() in MI netinet
initialization. (it's in sys/netinet/tcp_timer.c:tcp_timer_init()
but it doesn't refer any pointers)

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

---
Izumi Tsutsui