Re: fmvj18x_cs.c misidentifies card

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Komuro wrote:
Please post the full dmesg and
output of dump_cis.

OK, here they are. (This system is a fairly ancient Compaq laptop, model "LTE 5380".)

vincas:~# dump_cis
Socket 0:
  dev_info
    fn_specific 100ns, 32kb
  attr_dev_info
    EEPROM 150ns, 2kb
    fn_specific 100ns, 512b
  manfid 0x0004, 0x0004
  funcid network_adapter
  vers_1 4.1, "EAGLE Technology", "NE200 ETHERNET LAN MBH10302  04",
    "  07"
  config base 0x0fe0 mask 0x000f last_index 0x11
  cftable_entry 0x01 [default]
    [rdybsy] [mwait] [pwrdown]
    Vcc Vnom 5V Vmin 4750mV Vmax 5250mV Istatic 116mA
      Iavg 200mA Idown 40mA
    io 0x0000-0x001f [lines=0] [8bit] [16bit] [range]
    irq mask 0xffff [level]
    memory 0x0000-0x7fff @ 0x0000
  cftable_entry 0x02
    io 0x0100-0x011f [lines=10] [8bit] [16bit] [range]
  cftable_entry 0x03
    io 0x0120-0x013f [lines=10] [8bit] [16bit] [range]
  cftable_entry 0x04
    io 0x0140-0x015f [lines=10] [8bit] [16bit] [range]
  cftable_entry 0x05
    io 0x0160-0x017f [lines=10] [8bit] [16bit] [range]
  cftable_entry 0x06
    io 0x0180-0x019f [lines=10] [8bit] [16bit] [range]
  cftable_entry 0x07
    io 0x01a0-0x01bf [lines=10] [8bit] [16bit] [range]
  cftable_entry 0x08
    io 0x01c0-0x01df [lines=10] [8bit] [16bit] [range]
  cftable_entry 0x09
    io 0x0220-0x023f [lines=10] [8bit] [16bit] [range]
  cftable_entry 0x0a
    io 0x0240-0x025f [lines=10] [8bit] [16bit] [range]
  cftable_entry 0x0b
    io 0x0260-0x027f [lines=10] [8bit] [16bit] [range]
  cftable_entry 0x0c
    io 0x0280-0x029f [lines=10] [8bit] [16bit] [range]
  cftable_entry 0x0d
    io 0x02c0-0x02df [lines=10] [8bit] [16bit] [range]
  cftable_entry 0x0e
    io 0x0300-0x031f [lines=10] [8bit] [16bit] [range]
  cftable_entry 0x0f
    io 0x0340-0x035f [lines=10] [8bit] [16bit] [range]
  cftable_entry 0x10
    io 0x0360-0x037f [lines=10] [8bit] [16bit] [range]
  cftable_entry 0x11
    io 0x0380-0x039f [lines=10] [8bit] [16bit] [range]

Socket 1:
  no CIS present

vincas:~# dmesg
Linux version 2.4.27 (root@vincas) (gcc version 3.3.5 (Debian 1:3.3.5-13)) #1 SMP Thu Jul 27 15:26:36 PDT 2006
BIOS-provided physical RAM map:
 BIOS-e801: 0000000000000000 - 000000000009f000 (usable)
 BIOS-e801: 0000000000100000 - 0000000003000000 (usable)
48MB LOWMEM available.
On node 0 totalpages: 12288
zone(0): 4096 pages.
zone(1): 8192 pages.
zone(2): 0 pages.
DMI not present.
ACPI: Unable to locate RSDP
Kernel command line: root=/dev/hda3 ro rootdev=/dev/hda3
No local APIC present or hardware disabled
Initializing CPU#0
Detected 133.333 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 265.42 BogoMIPS
Memory: 46640k/49152k available (1010k kernel code, 2124k reserved, 230k data, 80k init, 0k highmem)
Dentry cache hash table entries: 8192 (order: 4, 65536 bytes)
Inode cache hash table entries: 4096 (order: 3, 32768 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
Intel Pentium with F0 0F bug - workaround enabled.
CPU:     After generic, caps: 000001bf 00000000 00000000 00000000
CPU:             Common caps: 000001bf 00000000 00000000 00000000
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
CPU:     After generic, caps: 000001bf 00000000 00000000 00000000
CPU:             Common caps: 000001bf 00000000 00000000 00000000
CPU0: Intel Pentium 75 - 200 stepping 0c
per-CPU timeslice cutoff: 160.14 usecs.
SMP motherboard not detected.
Local APIC not detected. Using dummy APIC emulation.
Waiting on wait_init_idle (map = 0x0)
All processors have done init_idle
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Journalled Block Device driver loaded
pty: 256 Unix98 ptys configured
loop: loaded (max 8 devices)
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
hda: IBM-DCRA-22160, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hda: attached ide-disk driver.
hda: 4233600 sectors (2168 MB) w/96KiB Cache, CHS=525/128/63
Partition check:
 hda: hda1 hda2 hda3 hda4 < hda5 hda6 >
NET4: Linux TCP/IP 1.0 for NET4.0
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 4096)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 80k freed
Adding Swap: 96696k swap-space (priority -1)
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,3), internal journal
Linux Kernel Card Services 3.1.22
  options:  none
Intel ISA PCIC probe:
  Cirrus PD672x ISA-to-PCMCIA at port 0x3e0 ofs 0x00, 2 sockets
    host opts [0]: [ring] [65/6/3] [1/15/3]
    host opts [1]: [ring] [65/6/3] [1/15/3]
    ISA irqs (default) = 3,4,5,7,9,10,11,12 polling interval = 1000 ms
cs: IO port probe 0x0120-0x04ff: excluding 0x220-0x22f 0x300-0x307 0x378-0x37f 0
x388-0x38f 0x3f8-0x3ff 0x428-0x42f 0x480-0x48f
cs: IO port probe 0x0800-0x08ff: excluding 0x828-0x82f
cs: IO port probe 0x0c00-0x0cff: excluding 0xc28-0xc2f 0xcf8-0xcff
cs: IO port probe 0x0a00-0x0aff: clean.
cs: memory probe 0x0d0000-0x0dffff: clean.
eth0: FMV-J181, sram 4K TX*2, port 0x120, irq 3, hw_addr 00:00:1B:29:11:3A

You didn't ask for it, but here also is a snippet from ifconfig eth0
          RX packets:177543 errors:0 dropped:0 overruns:0 frame:0
          TX packets:72437 errors:0 dropped:0 overruns:0 carrier:0

which shows how nicely the driver works with this card!

(Actually, I have added the RATOC code to fmvj18x_cs before)

If you can implement a smart way to distinguish between the RATOC and the Eagle, that would be great!

Best Regards
Komuro

Thank you!

I have a card sold circa 1995 under the Eagle Technology brand as a
"NE200T PCMCIA LAN Adapter."  (Eagle Technology was at the time a
business unit of Artisoft, Inc., but was soon sold to Microdyne.)  This
card works perfectly when it is correctly identified as a clone of the
Fujitsu MBH10302.

The "cardctl info" is:

PRODID_1="EAGLE Technology"
PRODID_2="NE200 ETHERNET LAN MBH10302  04"
PRODID_3="  07"
PRODID_4=""
MANFID=0004,0004
FUNCID=6

Unfortunately, comments in fmvj18x_cs.c indicate a "RATOC" card also
reports MANFID=0004,0004, but actually needs to be handled as a MBH10304.
Removing the support for this other card (see below) gets my card working
fine.

But is there some further test that could be performed to determine which
type of card is actually present in the system?

--
Sean Shapira    sds@xxxxxxxxxx

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux