Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jun 2000 08:16:47 -0700
From:      Dan Yergeau <yergeau@gloworm.Stanford.EDU>
To:        Michael Lucas <mwlucas@blackhelicopters.org>
Cc:        freebsd-mobile@freebsd.org
Subject:   Re: 4.0-RELEASE, Netgear FA410TXC, device timeout 
Message-ID:  <200006131516.IAA09273@gloworm.Stanford.EDU>
In-Reply-To: Your message of "Fri, 09 Jun 2000 14:35:53 -0400." <200006091835.OAA30080@blackhelicopters.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
>I have the exact same problem.  Could you attach your dmesg.boot as well?

This is with the slightly modified if_ed.c (brute-force turning on
of the Linksys detection code).  This doesn't make any difference
wrt the original if_ed.c for the "device timeout" behavior, but it
does allow the probe of the correct ethernet hardware address.

Copyright (c) 1992-2000 The FreeBSD Project.
Copyright (c) 1982, 1986, 1989, 1991, 1993
	The Regents of the University of California. All rights reserved.
FreeBSD 4.0-RELEASE #2: Thu Jun  8 09:19:43 PDT 2000
    troot@ritter.Stanford.EDU:/usr/src/sys/compile/RITTER
Calibrating clock(s) ... TSC clock: 233829569 Hz, i8254 clock: 1193009 Hz
CLK_USE_I8254_CALIBRATION not specified - using default frequency
Timecounter "i8254"  frequency 1193182 Hz
CLK_USE_TSC_CALIBRATION not specified - using old calibration method
CPU: Pentium/P55C (quarter-micron) (233.86-MHz 586-class CPU)
  Origin = "GenuineIntel"  Id = 0x581  Stepping = 1
  Features=0x8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX>
real memory  = 67043328 (65472K bytes)
Physical memory chunk(s):
0x00001000 - 0x0009efff, 647168 bytes (158 pages)
0x00382000 - 0x03fe5fff, 63324160 bytes (15460 pages)
avail memory = 61394944 (59956K bytes)
bios32: Found BIOS32 Service Directory header at 0xc00ffe80
bios32: Entry = 0xffe90 (c00ffe90)  Rev = 0  Len = 1
pcibios: PCI BIOS entry at 0xbc9e
pnpbios: Found PnP BIOS data at 0xc00fe2d0
pnpbios: Entry = f0000:e2f4  Rev = 1.0
pnpbios: Event flag at 4b4
Other BIOS signatures found:
ACPI: 000f3f60
Preloaded elf kernel "kernel" at 0xc0369000.
Intel Pentium detected, installing workaround for F00F bug
md0: Malloc disk
Creating DISK md0
pci_open(1):	mode 1 addr port (0x0cf8) is 0x8000005c
pci_open(1a):	mode1res=0x80000000 (0x80000000)
pci_cfgcheck:	device 0 [class=060000] [hdr=00] is there (id=71008086)
npx0: <math processor> on motherboard
npx0: INT 16 interface
i586_bzero() bandwidth = 175346308 bytes/sec
bzero() bandwidth = 763941940 bytes/sec
apm0: <APM BIOS> on motherboard
apm: found APM BIOS v1.2, connected at v1.2
pci_open(1):	mode 1 addr port (0x0cf8) is 0x8000005c
pci_open(1a):	mode1res=0x80000000 (0x80000000)
pci_cfgcheck:	device 0 [class=060000] [hdr=00] is there (id=71008086)
pcib0: <Host to PCI bridge> on motherboard
found->	vendor=0x8086, dev=0x7100, revid=0x01
	class=06-00-00, hdrtype=0x00, mfdev=0
	subordinatebus=0 	secondarybus=0
found->	vendor=0x8086, dev=0x7110, revid=0x01
	class=06-80-00, hdrtype=0x00, mfdev=1
	subordinatebus=0 	secondarybus=0
found->	vendor=0x8086, dev=0x7111, revid=0x01
	class=01-01-80, hdrtype=0x00, mfdev=0
	subordinatebus=0 	secondarybus=0
	map[20]: type 1, range 32, base 00000860, size  4
found->	vendor=0x8086, dev=0x7112, revid=0x01
	class=0c-03-00, hdrtype=0x00, mfdev=0
	subordinatebus=0 	secondarybus=0
	intpin=d, irq=11
	map[20]: type 1, range 32, base 0000ece0, size  5
found->	vendor=0x8086, dev=0x7113, revid=0x01
	class=06-80-00, hdrtype=0x00, mfdev=0
	subordinatebus=0 	secondarybus=0
	map[90]: type 1, range 32, base 00000840, size  4
found->	vendor=0x10c8, dev=0x0004, revid=0x00
	class=03-00-00, hdrtype=0x00, mfdev=0
	subordinatebus=0 	secondarybus=0
	intpin=a, irq=11
	map[10]: type 1, range 32, base fd000000, size 24
	map[14]: type 1, range 32, base fbe00000, size 21
	map[18]: type 1, range 32, base fbd00000, size 20
found->	vendor=0x104c, dev=0xac15, revid=0x01
	class=06-07-00, hdrtype=0x02, mfdev=1
	subordinatebus=0 	secondarybus=0
	intpin=a, irq=11
found->	vendor=0x104c, dev=0xac15, revid=0x01
	class=06-07-00, hdrtype=0x02, mfdev=1
	subordinatebus=0 	secondarybus=0
	intpin=b, irq=11
pci0: <PCI bus> on pcib0
isab0: <Intel 82371AB PCI to ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0x860-0x86f at device 1.1 on pci0
ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0x0860
ata0: mask=03 status0=50 status1=00
ata0: mask=03 status0=50 status1=00
ata0: devices = 0x1
ata0: at 0x1f0 irq 14 on atapci0
ata1: iobase=0x0170 altiobase=0x0376 bmaddr=0x0868
ata1: mask=03 status0=50 status1=00
ata1: mask=03 status0=00 status1=00
ata1: devices = 0x4
ata1: at 0x170 irq 15 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xece0-0xecff irq 11 at device 1.2 on pci0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
chip1: <Intel 82371AB Power management controller> port 0x840-0x84f at device 1.3 on pci0
pci0: <NeoMagic MagicGraph 128XD SVGA controller> (vendor=0x10c8, dev=0x0004) at 2.0 irq 11
pcic-pci0: <TI PCI-1131 PCI-CardBus Bridge> irq 11 at device 3.0 on pci0
PCI Config space:
00:  ac15104c 02000007 06070001 00822008
10:  00000000 02000000 00000000 00000000
20:  00000000 00000000 00000000 00000000
30:  00000000 00000000 00000000 0340010b
40:  00751028 000003e1 00000000 00000000
50:  00000000 00000000 00000000 00000000
60:  00000000 00000000 00000000 00000000
70:  00000000 00000000 00000000 00000000
80:  00241024 00000000 00000000 00000000
90:  00748200 00000000 00000000 00000000
Cardbus Socket registers:
00:  f000afbe: f000afbe: f000e2c3: f000afbe:
10:  f000afbe: c00035c2: f000ae90: f000afbe:
ExCa registers:
00: 13 88 f5 5a 72 d0 80 e1 3f 74 c8 fa 66 8b 46 08
10: 52 66 0f b6 d9 66 31 d2 66 f7 f3 88 eb 88 d5 43
20: 30 d2 66 f7 f3 88 d7 5a 66 3d ff 03 00 00 fb 77
30: a2 86 c4 c0 c8 02 08 e8 40 91 88 fe 28 e0 8a 66
pcic-pci1: <TI PCI-1131 PCI-CardBus Bridge> irq 11 at device 3.1 on pci0
PCI Config space:
00:  ac15104c 02000007 06070001 00822008
10:  00000000 02000000 00000000 00000000
20:  00000000 00000000 00000000 00000000
30:  00000000 00000000 00000000 0340020b
40:  00751028 000003e1 00000000 00000000
50:  00000000 00000000 00000000 00000000
60:  00000000 00000000 00000000 00000000
70:  00000000 00000000 00000000 00000000
80:  00241024 00000000 00000000 00000000
90:  00748200 00000000 00000000 00000000
Cardbus Socket registers:
00:  f000afbe: f000afbe: f000e2c3: f000afbe:
10:  f000afbe: c00035c2: f000ae90: f000afbe:
ExCa registers:
00: 13 88 f5 5a 72 d0 80 e1 3f 74 c8 fa 66 8b 46 08
10: 52 66 0f b6 d9 66 31 d2 66 f7 f3 88 eb 88 d5 43
20: 30 d2 66 f7 f3 88 d7 5a 66 3d ff 03 00 00 fb 77
30: a2 86 c4 c0 c8 02 08 e8 40 91 88 fe 28 e0 8a 66
Trying Read_Port at 203
Trying Read_Port at 243
Trying Read_Port at 283
Trying Read_Port at 2c3
Trying Read_Port at 303
Trying Read_Port at 343
Trying Read_Port at 383
Trying Read_Port at 3c3
devclass_alloc_unit: ata0 already exists, using next available unit number
devclass_alloc_unit: ata1 already exists, using next available unit number
isa_probe_children: disabling PnP devices
isa_probe_children: probing non-PnP devices
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <keyboard controller (i8042)> at port 0x60-0x6f on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
atkbd: the current kbd controller command byte 0065
atkbd: keyboard ID 0x41ab (2)
kbdc: RESET_KBD return code:00fa
kbdc: RESET_KBD status:00aa
kbd0: atkbd0, AT 101/102 (2), config:0x0, flags:0x3d0000
psm0: current command byte:0065
kbdc: TEST_AUX_PORT status:0000
kbdc: RESET_AUX return code:00fa
kbdc: RESET_AUX status:00aa
kbdc: RESET_AUX ID:0000
psm: status 00 02 64
psm: status 00 00 64
psm: status 00 03 64
psm: status 00 03 64
psm: status 10 00 64
psm: data 08 00 00
psm: status 00 02 64
psm: data 08 00 00
psm: status 00 02 64
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0-00, 2 buttons
psm0: config:00000000, flags:00000000, packet size:3
psm0: syncmask:c0, syncbits:00
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
fb0: vga0, vga, type:VGA (5), flags:0x7007f
fb0: port:0x3c0-0x3df, crtc:0x3d4, mem:0xa0000 0x20000
fb0: init mode:24, bios mode:3, current mode:24
fb0: window:0xc00b8000 size:32k gran:32k, buf:0 size:32k
VGA parameters upon power-up
50 18 10 00 00 00 03 00 02 67 5f 4f 50 82 55 81 
bf 1f 00 4f 0d 0e 00 00 07 80 9c 8e 8f 28 1f 96 
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff 
VGA parameters in BIOS for mode 24
50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 
bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff 
EGA/VGA parameters to be used for mode 24
50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 
bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff 
sc0: <System console> on isa0
sc0: VGA <16 virtual consoles, flags=0x200>
sc0: fb0, kbd0, terminal emulator: sc (syscons terminal)
pcic0: <VLSI 82C146> at port 0x3e0 iomem 0xd0000 irq 10 on isa0
pcic0: management irq 10
pccard0: <PC Card bus -- kludge version> on pcic0
pccard1: <PC Card bus -- kludge version> on pcic0
pcic1: not probed (disabled)
sio0: irq maps: 0x241 0x251 0x241 0x241
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: irq maps: 0x241 0x241 0x241 0x241
sio1: probe failed test(s): 0 1 2 4 6 7 9
sio2: not probed (disabled)
sio3: not probed (disabled)
ppc0: parallel port found at 0x378
ppc0: ECP SPP ECP+EPP SPP
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppi0: <Parallel I/O> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
plip0: <PLIP network interface> on ppbus0
bpf: lp0 attached
mss_probe: no address given, try 0x530
mss_detect, busy still set (0xff)
isa_probe_children: probing PnP devices
BIOS Geometries:
 0:03127f3f 0..786=787 cylinders, 0..127=128 heads, 1..63=63 sectors
 0 accounted for
Device configuration finished.
bpf: sl0 attached
bpf: ppp0 attached
new masks: bio 4008c840, tty 40031092, net 40071092
bpf: lo0 attached
bpf: gif0 attached
bpf: gif1 attached
bpf: gif2 attached
bpf: gif3 attached
bpf: stf0 attached
bpf: faith0 attached
ata0-master: success setting up UDMA2 mode on PIIX4 chip
ad0: <IBM-DTCA-23240/TC5OAB1A> ATA-3 disk at ata0 as master
ad0: 3102MB (6354432 sectors), 6304 cyls, 16 heads, 63 S/T, 512 B/S
ad0: 16 secs/int, 1 depth queue, UDMA33
ad0: piomode=4 dmamode=2 udmamode=2 cblid=0
Creating DISK ad0
Creating DISK wd0
ata1-master: piomode=3 dmamode=1 udmamode=-1 dmaflag=1
ata1-master: success setting up PIO3 mode on generic chip
acd0: <CD-ROM CDR_U200/1.09> CDROM drive at ata1 as master
acd0: read 2755KB/s (2755KB/s), 128KB buffer, PIO3
acd0: Reads: CD-DA
acd0: Audio: play, 256 volume levels
acd0: Mechanism: ejectable tray
acd0: Medium: no/blank disc inside, unlocked
Mounting root from ufs:/dev/ad0s2a
pccard: card inserted, slot 0
pccard: card inserted, slot 1
ad0s1: type 0x7, start 63, end = 3378815, size 3378753 : OK
ad0s2: type 0xa5, start 3378816, end = 6201215, size 2822400 : OK
ad0s3: type 0x84, start 6201216, end = 6346367, size 145152 : OK
start_init: trying /sbin/init

The post-boot messages are

devclass_alloc_unit: sio2 already exists, using next available unit number
pcic: I/O win 0 flags 11 2e8-2ef
pcic: I/O win 0 flags 1 2e8-2ef
sio4 at port 0x2e8-0x2ef irq 3 slot 0 on pccard0
pcic: I/O win 0 flags 11 2e8-2ef
sio4: type 16550A
splash: image decoder found: daemon_saver
pcic: I/O win 0 flags 15 240-25f
pcic: I/O win 0 flags 5 240-25f
pcic: I/O win 0 flags 15 240-25f
pcic: I/O win 0 flags 5 240-25f
ed0 at port 0x240-0x25f irq 9 slot 1 on pccard1
pcic: I/O win 0 flags 15 240-25f
ed0: address 00:e0:98:79:df:88, type Linksys (16 bit) 
bpf: ed0 attached
ed0: device timeout

With the FA410, ed0 attaches on the same irq as the Linksys PCMPC100
V2, but uses a different i/o port (the PCMPC100 uses 0x300-0x31f).
Even so, there don't appear to be any i/o port conflicts (plus, it
seems to me that getting the i/o port correct and with no conflicts
is much more important for actually detecting the card).

Dan

[The rest of the message is preserved for completeness, not because
 I like clogging mailboxes.  Hey, if this were a Windoze forum,
 these could be 500K Word attachments. :^(]

>> As I mentioned in an earlier message, I was unable to get a new
>> FA410TXC to work with 4.0.  The card doesn't seem to negotiate a
>> link and, on the FreeBSD side, the only response is "device
>> timeout".  There are no apparent IRQ or I/O address space conflicts.
>> 
>> With the default if_ed.c, the card was recognized as a NE2000
>> 
>>   ed0: address 01:d1:ff:03:00:20, type NE2000 (16 bit)
>> 
>> with the incorrect ethernet MAC address (different than that printed
>> on the card).
>> 
>> As some else mentioned that these may get recognized as a Linksys
>> (see
>> http://www.FreeBSD.org/cgi/getmsg.cgi?fetch=98471+0+/usr/local/www/db/text/1
 999/freebsd-mobile/19991107.freebsd-mobile),
>> I left my "force it to be tested as a Linksys" hack in if_ed.c see (
>> http://www.FreeBSD.org/cgi/getmsg.cgi?fetch=225190+227782+/usr/local/www/db/
 text/2000/freebsd-mobile/20000604.freebsd-mobile),
>> and it was probed with the correct ethernet MAC address
>> 
>>   ed0: address 00:e0:98:79:df:88, type Linksys (16 bit) 
>> 
>> but still didn't negotiate a link or get past the device timeout
>> behavior.  (Hey, isn't 00:e0:98 assigned to Linksys?)
>> 
>> Anyway, the dumpcis is attached below.
>> 
>> 
>> Dan
>> 
>> 
>> 
>> Configuration data for card in slot 1
>> Tuple #1, code = 0x1 (Common memory descriptor), length = 3
>>     000:  d1 3a ff
>> 	Common memory device information:
>> 		Device number 1, type Function specific, WPS = OFF
>> 		Speed = 250nS, Memory block size = 8Kb, 8 units
>> Tuple #2, code = 0x17 (Attribute memory descriptor), length = 3
>>     000:  41 00 ff
>> 	Attribute memory device information:
>> 		Device number 1, type EEPROM, WPS = OFF
>> 		Speed = 250nS, Memory block size = 512b, 1 units
>> Tuple #3, code = 0x20 (Manufacturer ID), length = 4
>>     000:  49 01 30 02
>> 	PCMCIA ID = 0x149, OEM ID = 0x230
>> Tuple #4, code = 0x21 (Functional ID), length = 2
>>     000:  06 01
>> 	Network/LAN adapter - POST initialize
>> Tuple #5, code = 0x15 (Version 1 info), length = 33
>>     000:  04 01 4e 45 54 47 45 41 52 00 46 41 34 31 30 54
>>     010:  58 00 46 61 73 74 20 45 74 68 65 72 6e 65 74 00
>>     020:  ff
>> 	Version = 4.1, Manuf = [NETGEAR],card vers = [FA410TX]
>> 	Addit. info = [Fast Ethernet]
>> Tuple #6, code = 0x1a (Configuration map), length = 5
>>     000:  01 20 00 04 0b
>> 	Reg len = 2, config register addr = 0x400, last config = 0x20
>> 	Registers: XX-X---- 
>> Tuple #7, code = 0x1b (Configuration entry), length = 7
>>     000:  e0 81 18 45 30 fc be
>> 	Config index = 0x20(default)
>> 	Interface byte = 0x81 (I/O)  wait signal supported
>> 	Card decodes 5 address lines, limited 8/16 Bit I/O
>> 		IRQ modes:  Pulse
>> 		IRQ level = 5
>> Tuple #8, code = 0x1b (Configuration entry), length = 7
>>     000:  01 08 ca 60 00 03 1f
>> 	Config index = 0x1
>> 	Card decodes 10 address lines, limited 8/16 Bit I/O
>> 		I/O address # 1: block start = 0x300 block length = 0x20
>> Tuple #9, code = 0x1b (Configuration entry), length = 7
>>     000:  02 08 ca 60 20 03 1f
>> 	Config index = 0x2
>> 	Card decodes 10 address lines, limited 8/16 Bit I/O
>> 		I/O address # 1: block start = 0x320 block length = 0x20
>> Tuple #10, code = 0x1b (Configuration entry), length = 7
>>     000:  03 08 ca 60 40 03 1f
>> 	Config index = 0x3
>> 	Card decodes 10 address lines, limited 8/16 Bit I/O
>> 		I/O address # 1: block start = 0x340 block length = 0x20
>> Tuple #11, code = 0x1b (Configuration entry), length = 7
>>     000:  04 08 ca 60 80 03 1f
>> 	Config index = 0x4
>> 	Card decodes 10 address lines, limited 8/16 Bit I/O
>> 		I/O address # 1: block start = 0x380 block length = 0x20
>> Tuple #12, code = 0x14 (No link), length = 0
>> Tuple #13, code = 0xff (Terminator), length = 0
>> 2 slots found


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200006131516.IAA09273>