Subject: problem with sip0 (SiS 900 10/100 Ethernet, rev 0x90)
To: None <netbsd-users@NetBSD.org>
From: Carl Brewer <carl@bl.echidna.id.au>
List: netbsd-users
Date: 06/01/2004 10:51:04
Hello,

I've just started building a new NetBSD 1.6.2 server, with an
SiS chipset all in one MB.  dmesg says :

sip0 at pci0 dev 4 function 0: SiS 900 10/100 Ethernet, rev 0x90
sip0: interrupting at irq 12
sip0: Ethernet address 00:0d:61:91:96:84
rtk0 at pci0 dev 9 function 0: RealTek 8139 10/100BaseTX
rtk0: interrupting at irq 11
rtk0: Ethernet address 00:02:44:7a:a2:45


I've got a second interface on the box as well, the rtk0 one, which
works fine.

I can get the sip0 interface to ping itself :
cccfw: {14} ifconfig sip0 inet 192.168.0.55 netmask 255.255.255.0 up

sip0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
         address: 00:0d:61:91:96:84
         media: Ethernet none (none)
         inet 192.168.0.55 netmask 0xffffff00 broadcast 192.168.0.255
         inet6 fe80::20d:61ff:fe91:9684%sip0 prefixlen 64 scopeid 0x1

cccfw: {17} ping 192.168.0.55
PING 192.168.0.55 (192.168.0.55): 56 data bytes
64 bytes from 192.168.0.55: icmp_seq=0 ttl=255 time=0.078 ms
64 bytes from 192.168.0.55: icmp_seq=1 ttl=255 time=0.115 ms

It's not currently connected to a hub, but I had exactly the same
output when it was (with a known good cable, I'm connected to it
via that cable and hub now).  My concern is the media detection,
which seems to not work, and when the interface was connected, it was
very intermittant.

I should be able to set the media type.  I figured (it's at home, I'm at 
work, so I can't
physically touch it at the moment) that maybe the problem was
ethernet mode selection, so I tried to set the media type :

cccfw: {16} ifconfig sip0 media 10baseT
ifconfig: SIOCSIFMEDIA: Invalid argument

I haven't had to set media before on any box (have I been lucky?!)
but searching through man pages I think my argument to media is
correct?

Is there a list somewhere (I read through the man pages, but didn't find
anything obvious) of supported media arguments for this driver?
All I found on google was :

     http://mail-index.netbsd.org/netbsd-bugs/2001/12/21/0005.html

which lists

     ifconfig sip0 media 10baseT

as a legal argument, but as above, that doesn't work for me!


cccfw: {18} uname -a
NetBSD cccfw 1.6.2 NetBSD 1.6.2 (ccc) #0: Tue Jun  1 09:18:37 EST 2004 
    carl@cccfw:/usr/src/sys/arch/i386/compile/ccc i386

The kernel's GENERIC, with maxusers bumped up to 128, thus the "ccc"
ID.

thanks!

Carl