No MAC address w/ RTL8139 1.08

Harald Milz (hm@seneca.muc.de)
Tue, 28 Dec 1999 09:16:27 +0100 (CET)


Hi,

I recently purchase a cheap RTL8139 (SiS900) card and have some strange
problems: when inserting the module, it reports:

Dec 28 09:05:25 seneca kernel: rtl8139.c:v1.08 6/25/99 Donald Becker http://cesdis.gsfc.nasa.gov/linux/drivers/rtl8139.html
Dec 28 09:05:25 seneca kernel: rtl8139.c:v1.08 6/25/99 Donald Becker http://cesdis.gsfc.nasa.gov/linux/drivers/rtl8139.html
Dec 28 09:05:25 seneca kernel: eth1: SiS 900 (RealTek RTL8139) Fast Ethernet at 0xd800, IRQ 11, 00:00:00:00:00:00.

The bad one is in the last line. The driver has no idea of the card's
burnt-in MAC address. When I try to set it to an arbitrary value:

seneca:~ # ifconfig eth1 192.168.21.1 broadcast 192.168.21.255 netmask 255.255.255.0 hw ether 00:00:be:ef:01:23 up
SIOCSIFHWADDR: Device or resource busy

But if I separate the steps it will work:

seneca:~ # ifconfig eth1 hw ether 00:00:be:ef:01:23
seneca:~ # ifconfig eth1 192.168.21.1 broadcast 192.168.21.255 netmask 255.255.255.0 up
seneca:~ # ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:00:BE:EF:01:23
inet addr:192.168.21.1 Bcast:192.168.21.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:11 Base address:0xd800

If I swap the two parts, (ifconfig eth1 hw ether 00:00:be:ef:01:23
192.168.21.1 broadcast 192.168.21.255 netmask 255.255.255.0 up) it will
work too. I guess the cmd line is parsed and executed left-to-right.

The driver does accept the address but there is no traffic on the line
afterwards. I have just one CAT5 crossover cable attached with a Xircom
REM56G-100 on the other side (which happily works in the company network).
eth1 is pingable from inside the machine, though.

Any clue what is wrong?

-- 
The trouble with superheros is what to do between phone booths.
		-- Ken Kesey

- To unsubscribe from this list: send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.rutgers.edu