[OFFTOPIC] Getting via-rhine to work

Mogens Kjaer mk@crc.dk
Mon Jan 25 02:44:14 1999


I have some questions:

Q1:	Is there a mailing list for the via-rhine driver?

I couldn't find one. The URL in the driver:
http://cesdis.gsfc.nasa.gov/linux/drivers/via-rhine.html
doesn't exist, and sending a "lists" request to this
majordomo server doesn't list anything related to via or
rhine.

Hopefully, some of you might know the answer to my problem:

Senario: I have an IBM PC 750, Model 6887-YAE, with a
Matrox Millennium card and a D-Link DFE-500 card, working
without any trouble with the tulip.c driver.

Now, we have received new cards from D-Link, DFE-530TX. They
require the via-rhine.c driver, also written by Donald Becker.

If I insert this board instead of the DFE-500, I can't get it
to work in Linux. It works in win95 using the new driver.

I have:

a:	Made a new kernel with the via-rhine.c and the tulip.c driver. This
	is kernel 2.0.36. The board isn't recognized during boot.

b:	I've tried compiling it in the kernel or as a module, no difference.

c:	If I insert both the DFE-500 and the DFE-530TX they both work!!!

d:	I have tried shuffeling the Matrox card and the D-Link card around
(they
	are the only boards installed in the system), still the 530 isn't
	recognized.

e:	The version of via-rhine.c in the 2.0.36 kernel is identified as:

	via-rhine.c:v1.00 9/5/98  Written by Donald Becker

	However, it differes as follows between the latest via-rhine.c
downloaded
	from the ftp site:

diff ftp-via-rhine.c kernel-via-rhine.c
515c515
< static int via_rhine_probe(struct device *dev)
---
> int via_rhine_probe(struct device *dev)
517d516
<       printk(KERN_INFO "%s" KERN_INFO "%s", versionA, versionB);
525a525
>       static int did_version = 0;             /* Already printed version info */
527a528,530
> 
>       if (debug > 0 && did_version++ == 0)
>               printk(KERN_INFO "%s" KERN_INFO "%s", versionA, versionB);

	Strange, isn't it?

f:	Listings from /proc:

/proc/pci
=========

PCI devices found:
  Bus  0, device  11, function  0:
    VGA compatible controller: Matrox Millennium (rev 1).
      Medium devsel.  Fast back-to-back capable.  IRQ 9.
      Non-prefetchable 32 bit memory at 0x40800000.
      Prefetchable 32 bit memory at 0x40000000.
  Bus  0, device   8, function  0:
    VGA compatible controller: S3 Inc. Trio32/Trio64 (rev 84).
      Medium devsel.
      Non-prefetchable 32 bit memory at 0x70000000.
  Bus  0, device   7, function  0:
    Ethernet controller: VIA Technologies Unknown device (rev 6).
      Vendor id=1106. Device id=3043.
      Medium devsel.  IRQ 11.  Master Capable.  Latency=208.  Min
Gnt=118.Max Lat=152.
      I/O at 0x5000.
      Non-prefetchable 32 bit memory at 0x60000000.
  Bus  0, device   1, function  1:
    IDE interface: Intel 82371 Triton PIIX (rev 2).
      Medium devsel.  Fast back-to-back capable.  Master Capable. 
Latency=32.
      I/O at 0x5080.
  Bus  0, device   1, function  0:
    ISA bridge: Intel 82371 Triton PIIX (rev 2).
      Medium devsel.  Fast back-to-back capable.  Master Capable.  No
bursts.
  Bus  0, device   0, function  0:
    Host bridge: Intel Unknown device (rev 2).
      Vendor id=8086. Device id=4d0.
      Medium devsel.  Master Capable.  Latency=64.

/proc/interrupts
================

 0:     138280   timer   
 1:        360   keyboard
 2:          0   cascade 
 4:       1009 + serial
13:          1   math error
14:     106272 + ide0
15:          0 + ide1

/proc/ioports
=============

0000-001f : dma1
0020-003f : pic1
0040-005f : timer 
0060-006f : keyboard
0080-009f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : npu
0170-0177 : ide1
01f0-01f7 : ide0
02f8-02ff : serial(auto)
0376-0376 : ide1
03bc-03be : lp
03c0-03df : vga+
03f0-03f5 : floppy
03f6-03f6 : ide0
03f7-03f7 : floppy DIR
03f8-03ff : serial(auto)
5080-5087 : IDE DMA 
5088-508f : IDE DMA 

Any suggestions???

TIA,

Mogens

-- 
Mogens Kjaer, Carlsberg Laboratory, Dept. of Chemistry
Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark
Phone: +45 33 27 53 25, Fax: +45 33 27 47 08
Email: mk@crc.dk Homepage: http://www.crc.dk