Subject: still no go for Megahertz XJ10BT on 486 laptops
To: NetBSD/i386 Discussion List <port-i386@NetBSD.ORG>
From: Greg A. Woods <woods@weird.com>
List: port-i386
Date: 04/13/2001 00:13:33
I'm still not having much luck getting a Megahertz XJ10BT card to work
in an older 486 laptop with even the 2001/03/24 sources.

However with an older CC10BT card *and* an XJ10BT card both installed
the second card probes properly and actually works:

| NetBSD 1.5T (GENERIC_LAPTOP) #3: Thu Apr 12 20:53:51 EDT 2001
|     woods@proven:/backups/NetBSD-obj.i386/arch/i386/compile/GENERIC_LAPTOP
| cpu0: Intel 486DX2 (486-class)
| cpu0: features b<FPU,VME,PSE>
| total memory = 20092 KB
| avail memory = 13180 KB
| using 276 buffers containing 1104 KB of memory
| biostramp installed @ 1000
| mainbus0 (root)
| isa0 at mainbus0
| com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
| pckbc0 at isa0 port 0x60-0x64
| pckbd0 at pckbc0 (kbd slot)
| pckbc0: using irq 1 for kbd slot
| wskbd0 at pckbd0: console keyboard
| pmsiprobe: intellimode -> 5
| pms0 at pckbc0 (aux slot)
| pckbc0: using irq 12 for aux slot
| wsmouse0 at pms0 mux 0
| pmsattach: disable error
| wdc0 at isa0 port 0x1f0-0x1f7 irq 14
| wd0 at wdc0 channel 0 drive 0: <ST9655AG>
| wd0: drive supports 16-sector PIO transfers, chs addressing
| wd0: 500 MB, 1016 cyl, 16 head, 63 sec, 512 bytes/sect x 1024128 sectors
| wd0: drive supports PIO mode 3, DMA mode 1
| vga0 at isa0 port 0x3b0-0x3df iomem 0xa0000-0xbffff
| wsdisplay0 at vga0: console (80x25, vt100 emulation), using wskbd0
| lpt0 at isa0 port 0x378-0x37b irq 7
| lptprobe: mask ff data 55 failed
| lptprobe: mask ff data 55 failed
| seaprobe: board type unknown at address 0xc8000
| pcppi0 at isa0 port 0x61
| midi0 at pcppi0: PC speaker
| sysbeep0 at pcppi0
| isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
| npx0 at isa0 port 0xf0-0xff: using exception 16
| fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
| fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
| pcic0 at isa0 port 0x3e0-0x3e1 iomem 0xd0000-0xdffff
| pcic0: controller 0 (Cirrus PD672X) has sockets A and B
| pcic0: controller 1 (Intel 82365SL Revision 1) has no sockets
| pcmcia0 at pcic0 controller 0 socket 0
| pcmcia1 at pcic0 controller 0 socket 1
| isapnp0: no ISA Plug 'n Play devices found
| apm0 at mainbus0: Power Management spec V1.2
| apm: 0 batteries, internal suspend, pccard suspend
| apm0: A/C state: on
| apm0: battery charge state:
| apm0: estimated 0m
| APM get event: unknown error code (0x530b)
| biomask ef6d netmask ef6d ttymask ffef
| pcic0: using irq 3 for socket events
| pcmcia0: CIS version PCMCIA 2.0 or 2.1
| pcmcia0: CIS info: Megahertz, CC10BT/2, PCMCIA 10BASE-T/2 ETHERNET ADAPTER, 0000860595E2
| pcmcia0: Manufacturer code 0x128, product 0x103
| pcmcia0: function 0: network adapter, ccr addr 300 mask 1
| pcmcia0: function 0, config table entry 1: I/O card; irq mask ffff; iomask 4, iospace 0-f; io8 io16 irqlevel
| pcmcia0: function 0, config table entry 3: I/O card; irq mask ffff; iomask 5, iospace 0-1f; io8 io16 irqlevel
| sm1 at pcmcia0 function 0 port 0x400-0x40f: Megahertz X-JACK Ethernet

note the above is a lie -- the card is actually an older Megahertz model
"CC10BT or CC10B2" *without* the X-Jack connector.

| sm1: unknown chip id 15, revision 15, buffer size: 0
| sm1: MAC address 00:00:86:05:95:e2, default media UTP
| pcmcia1: CIS version PCMCIA 2.0 or 2.1
| pcmcia1: CIS info: Megahertz, CC10BT/2, PCMCIA 10BASE-T/2 ETHERNET ADAPTER, 00008616C6E4
| pcmcia1: Manufacturer code 0x128, product 0x103
| pcmcia1: function 0: network adapter, ccr addr 300 mask 1
| pcmcia1: function 0, config table entry 1: I/O card; irq mask ffff; iomask 4, iospace 0-f; io8 io16 irqlevel
| pcmcia1: function 0, config table entry 3: I/O card; irq mask ffff; iomask 5, iospace 0-1f; io8 io16 irqlevel
| sm2 at pcmcia1 function 0 port 0x410-0x41f: Megahertz X-JACK Ethernet
| sm2: SMC91C94, revision 1, buffer size: 4608
| sm2: MAC address 00:00:86:16:c6:e4, default media UTP
| boot device: wd0
| root on wd0a dumps on wd0b
| mountroot: trying coda...
| mountroot: trying msdos...
| mountroot: trying cd9660...
| mountroot: trying ntfs...
| mountroot: trying nfs...
| mountroot: trying lfs...
| mountroot: trying ext2fs...
| mountroot: trying ffs...
| root file system type: ffs
| init: copying out path `/sbin/init' 11
| pcmcia1: card irq 5
| wsdisplay0: screen 1 added (80x50, vt100 emulation)
| wsdisplay0: screen 2 added (80x50, vt100 emulation)
| wsdisplay0: screen 3 added (80x50, vt100 emulation)
| wsdisplay0: screen 4 added (80x50, vt100 emulation)
| wsdisplay0: screen 5 added (80x50, vt100 emulation)
| wsdisplay0: screen 6 added (80x50, vt100 emulation)
| wsmux1: connecting to wsdisplay0

[[ Note that I've edited out many instances of "APM get event: unknown
error code (0x530b)", and as well suspends don't work (the machine drops
down and springs right back to life even with cron, syslogd, etc. all
killed off) and stand-by mode hangs the system -- i.e. there's something
not quite right about APM support on this machine too, and APM_NO_V12
doesn't help (though it improves the meaningfulness of "apm -v"
output).... ]]

Note also that detatching just sm1 does nothing (no "detached" event is
reported).

However detatching sm2 first works:

| sm2 detached
| sm1 detached

but re-installing just the X-Jack card desn't work (note the "unknown
chip id, etc.):

| pcmcia0: CIS version PCMCIA 2.0 or 2.1
| pcmcia0: CIS info: Megahertz, CC10BT/2, PCMCIA 10BASE-T/2 ETHERNET ADAPTER, 00008616C6E4
| pcmcia0: Manufacturer code 0x128, product 0x103
| pcmcia0: function 0: network adapter, ccr addr 300 mask 1
| pcmcia0: function 0, config table entry 1: I/O card; irq mask ffff; iomask 4, iospace 0-f; io8 io16 irqlevel
| pcmcia0: function 0, config table entry 3: I/O card; irq mask ffff; iomask 5, iospace 0-1f; io8 io16 irqlevel
| sm1 at pcmcia0 function 0 port 0x400-0x40f: Megahertz X-JACK Ethernet
| sm1: unknown chip id 15, revision 15, buffer size: 0
| sm1: MAC address 00:00:86:16:c6:e4, default media UTP
| sm1 detached

If the interface is configured with an address then all that happens is
a "sm1 device timeout" message is printed when transmit interrupts are
not received by the kernel (though packets are transmitted, at least the
initial ARP who-has requests are seen on the wire).

Re-inserting first the old CC10BT card and then the XJ10BT X-Jack card
makes it work again:

| pcmcia0: CIS version PCMCIA 2.0 or 2.1
| pcmcia0: CIS info: Megahertz, CC10BT/2, PCMCIA 10BASE-T/2 ETHERNET ADAPTER, 0000860595E2
| pcmcia0: Manufacturer code 0x128, product 0x103
| pcmcia0: function 0: network adapter, ccr addr 300 mask 1
| pcmcia0: function 0, config table entry 1: I/O card; irq mask ffff; iomask 4, iospace 0-f; io8 io16 irqlevel
| pcmcia0: function 0, config table entry 3: I/O card; irq mask ffff; iomask 5, iospace 0-1f; io8 io16 irqlevel
| sm1 at pcmcia0 function 0 port 0x400-0x40f: Megahertz X-JACK Ethernet
| sm1: unknown chip id 15, revision 15, buffer size: 0
| sm1: MAC address 00:00:86:05:95:e2, default media UTP
| pcmcia1: CIS version PCMCIA 2.0 or 2.1
| pcmcia1: CIS info: Megahertz, CC10BT/2, PCMCIA 10BASE-T/2 ETHERNET ADAPTER, 00008616C6E4
| pcmcia1: Manufacturer code 0x128, product 0x103
| pcmcia1: function 0: network adapter, ccr addr 300 mask 1
| pcmcia1: function 0, config table entry 1: I/O card; irq mask ffff; iomask 4, iospace 0-f; io8 io16 irqlevel
| pcmcia1: function 0, config table entry 3: I/O card; irq mask ffff; iomask 5, iospace 0-1f; io8 io16 irqlevel
| sm2 at pcmcia1 function 0 port 0x410-0x41f: Megahertz X-JACK Ethernet
| sm2: SMC91C94, revision 1, buffer size: 4608
| sm2: MAC address 00:00:86:16:c6:e4, default media UTP
| pcmcia1: card irq 5


IIRC the same sequencing works for the CC10BT, but I don't have the
coax dongle handy to test again just at this moment....

-- 
							Greg A. Woods

+1 416 218-0098      VE3TCP      <gwoods@acm.org>     <woods@robohack.ca>
Planix, Inc. <woods@planix.com>;   Secrets of the Weird <woods@weird.com>