[realtek] Device or resource busy

Donald Becker becker@scyld.com
Tue, 25 Sep 2001 01:32:49 -0400 (EDT)


On Mon, 24 Sep 2001, tk wrote:

> Linux 2.2.14-5.0
> PnP OS not enabled in Bios (Award Modular Bios v6.00PG)

Not important here..

> I ran rtl8139-diag with the '-p' and '-t' options because it would not work
> otherwise.
...
>   Bus  0, device  13, function  0:
>     Ethernet controller: Unknown vendor Unknown device (rev 16).
>       Vendor id=1. Device id=1211.

Bad... the vendor ID is invalid.

> and used the i/o address of the card found there:
>     ./rtl8139-diag -p 0xdc00 -t 2 -e >& diag-3.log
> 
> This returned the following which I piped into a file:
> ------
> rtl8139-diag.c:v2.04 8/08/2001 Donald Becker (becker@scyld.com)
>  http://www.scyld.com/diag/index.html
> Assuming a SMC1211TX EZCard 10/100 (RealTek RTL8139) adapter at 0xdc00.
> Decoded EEPROM contents:
>    PCI IDs -- Vendor 0x0001, Device 0x1211.
>    PCI Subsystem IDs -- Vendor 0x1113, Device 0x1211.
>    PCI timer settings -- minimum grant 32, maximum latency 64.
>   General purpose pins --  direction 0xe1  value 0x10.
>   Station Address 00:E0:29:88:BC:C7.
>   Configuration register 0/1 -- 0x4d / 0xc2.
>  EEPROM active region checksum is 0798.

Everything is OK except the checksum and the Vendor ID.
The Vendor ID has been corrupted -- it should be 0x1113.


Around line 635 in rtl8139-diag.c make the following change
		}
	}
+	new_ee_contents[1] = 0x1113;
	/* To set another EEPROM value do  new_ee_contents[xxx] = new_value; */
-	if (set_hwaddr || new_default_media >= 0) {
+	if (set_hwaddr || new_default_media >= 0 || 1) {


> Also, I noticed that IRQ=11 is assigned to both the ethernet card and a scsi card -

Not a problem.

Donald Becker				becker@scyld.com
Scyld Computing Corporation		http://www.scyld.com
410 Severn Ave. Suite 210		Second Generation Beowulf Clusters
Annapolis MD 21403			410-990-9993