Subject: Re: More SPARCbook insanity
To: None <port-sparc@NetBSD.org>
From: Mike Parson <mparson@bl.org>
List: port-sparc
Date: 04/07/2005 21:17:53
On Thu, Apr 07, 2005 at 09:14:22PM -0400, Michael wrote:
> Hello,

Howdy!

<snip>

> I also made a new test kernel, with boye-flipping on PCMCIA reversed,
> please try it and tell me if anything PCMCIAish works with it.

> Get it here: http://macallan.homeunix.org:6704/stuff/BSD/sparc/SPARCbook3GX_04_07.bz2

Closer, the ep0 initializes, but the link light never comes on:

le0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	address: 00:00:83:ae:20:37
	media: Ethernet autoselect (10base5)
	status: active
	inet 192.168.15.4 netmask 0xffffff00 broadcast 192.168.15.255
lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 33192
	inet 127.0.0.1 netmask 0xff000000
ep0: flags=8822<BROADCAST,NOTRAILERS,SIMPLEX,MULTICAST> mtu 1500
	address: 00:60:97:89:d4:19
	media: Ethernet 10baseT (none)

Links fine under Sol 2.6.

And the dmesg at the end, used the same CF->PCMCIA adapter, but this
time with a 128M CF card in it.  Looks like it saw the right sized card,
but still don't have the /dev/wd* entries.

Progress!

-- 
Michael Parson
mparson@bl.org

for devices to settle...
Event kthread starts...
sd0 at scsibus0 target 3 lun 0: <IC25N020, ATCS04-0, 1.06> disk fixed
sd0: 19077 MB, 38760 cyl, 16 head, 63 sec, 512 bytes/sect x 39070080 sectors
sd0: sync (100.00ns offset 15), 8-bit (10.000MB/s) transfers
root on le0
nfs_boot: trying DHCP/BOOTP
nfs_boot: timeout...
nfs_boot: timeout...
nfs_boot: timeout...
nfs_boot: trying RARP (and RPC/bootparam)
nfs_boot: client_addr=192.168.15.4 (RARP from 192.168.15.2)
nfs_boot: server_addr=192.168.15.2
nfs_boot: hostname=tadpole
nfs_boot: timeout...
nfs_boot: timeout...
nfs_boot: timeout...
root on 192.168.15.2:/home/netboot
root file system type: nfs
tslot0: interrupt on socket 1 ir 8a8 sts 0
tslot0: slot 1 status changed from 0 to 0
tslot0: interrupt on socket 1 ir 888 sts 1601
tslot0: slot 1 status changed from 0 to 0
tslot0: enable slot 1
pcmcia1: ++enabled_count = 1
[mem alloc 400][mem map 1 0/400->fe434000/400]cis mem map fe434000
pcmcia1: CIS tuple chain:
 01 04 df 4a 01 ff
CISTPL_DEVICE type=funcspec speed=ext
 1c 04 02 d9 01 ff
unhandled CISTPL 1c
 18 02 df 01
unhandled CISTPL 18
 20 04 07 00 00 00
CISTPL_MANFID
 15 15 04 01 31 32 38 4d 42 00 20 20 20 20 20 20
 20 00 35 2e 30 00 ff
CISTPL_VERS_1
 21 02 04 01
CISTPL_FUNCID
 22 02 01 01
 22 03 02 0c 0f
 1a 05 01 03 00 02 0f
CISTPL_CONFIG
 1b 08 c0 40 a1 01 55 08 00 20
CISTPL_CFTABLE_ENTRY
 1b 06 00 01 21 b5 1e 4d
CISTPL_CFTABLE_ENTRY
 1b 0a c1 41 99 01 55 64 f0 ff ff 20
CISTPL_CFTABLE_ENTRY
 1b 06 01 01 21 b5 1e 4d
CISTPL_CFTABLE_ENTRY
 1b 0f c2 41 99 01 55 ea 61 f0 01 07 f6 03 01 ee
 20
CISTPL_CFTABLE_ENTRY
 1b 06 02 01 21 b5 1e 4d
CISTPL_CFTABLE_ENTRY
 1b 0f c3 41 99 01 55 ea 61 70 01 07 76 03 01 ee
 20
CISTPL_CFTABLE_ENTRY
 1b 06 03 01 21 b5 1e 4d
CISTPL_CFTABLE_ENTRY
 14 00
CISTPL_NO_LINK
 ff
CISTPL_END
[mem unmap 0][mem free]pcmcia1: CIS version PCMCIA 2.0 or 2.1
pcmcia1: CIS info: 128MB,        , 5.0
pcmcia1: Manufacturer code 0x7, product 0x0
pcmcia1: function 0: fixed disk(ata), ccr addr 200 mask f
pcmcia1: function 0, config table entry 0: memory card; irq mask 0; memspace 0-7ff; rdybsy_active powerdown
pcmcia1: function 0, config table entry 1: I/O card; irq mask ffff; iomask 4, iospace 0-f; memspace 0-7ff; rdybsy_active io8 io16 irqshare irqpulse irqlevel powerdown
pcmcia1: function 0, config table entry 2: I/O card; irq mask 4000; iomask a, iospace 1f0-1f7 3f6-3f7; memspace 0-7ff; rdybsy_active io8 io16 irqshare irqpulse irqlevel powerdown
pcmcia1: function 0, config table entry 3: I/O card; irq mask 4000; iomask a, iospace 170-177 376-377; memspace 0-7ff; rdybsy_active io8 io16 irqshare irqpulse irqlevel powerdown
wdc0 at pcmcia1 function 0: <128MB,        , 5.0>
pcmcia_config_alloc: io 0 start=0 length=10 align=10 skew=0
[io alloc 10][io map 0/10->fe534000/10]0000: 0000 0000 0000 0000 0000 0000 0000 0000
window iobase 0 iomax f
function iobase 0 iomax f
wdc0: i/o mapped mode
pcmcia1: ++enabled_count = 2
[mem alloc 14][mem map 1 200/14->fe434200/14]pcmcia1: function 0 CCR at 0 offset 0: 41 80 2e 0, 0 0 0 0, 0
tslot_slot_settype(1)
atabus0 at wdc0 channel 0
pcmcia1: --enabled_count = 1
wd0 at atabus0 drive 0tslot0: interrupt on socket 1 ir 911 sts 8e23
: <Hitachi ATA 6.1>
wd0: drive supports 1-sector PIO transfers, LBA addressing
wd0: 122 MB, 978 cyl, 8 head, 32 sec, 512 bytes/sect x 250368 sectors
tslot0: interrupt on socket 1 ir 911 sts 8e23
tslot0: interrupt on socket 1 ir 911 sts 8e23
[mem unmap 0][mem free]tslot0: disable slot 1
pcmcia1: --enabled_count = 0
tslot0: interrupt on socket 0 ir 888 sts 0
tslot0: slot 0 status changed from 0 to 0
tslot0: interrupt on socket 0 ir 888 sts 1701
tslot0: slot 0 status changed from 0 to 0
tslot0: enable slot 0
pcmcia0: ++enabled_count = 1
[mem alloc 400][mem map 1 0/400->fe134000/400]cis mem map fe134000
pcmcia0: CIS tuple chain:
 01 02 00 ff
CISTPL_DEVICE type=null speed=null
 17 03 43 02 ff
CISTPL_DEVICE_A type=eeprom speed=150ns
 20 04 01 01 89 05
CISTPL_MANFID
 21 02 06 00
CISTPL_FUNCID
 15 3a 04 01 33 43 6f 6d 20 43 6f 72 70 6f 72 61
 74 69 6f 6e 00 33 43 35 38 39 44 00 54 50 2f 42
 4e 43 20 4c 41 4e 20 43 61 72 64 20 56 65 72 2e
 20 32 61 00 30 30 30 30 30 32 00 ff
CISTPL_VERS_1
 1a 06 02 03 00 00 01 03
CISTPL_CONFIG
 1b 0f c1 01 1d 71 55 35 55 54 e0 72 5d 64 30 ff
 ff
CISTPL_CFTABLE_ENTRY
 1b 07 03 01 71 55 26 26 54
CISTPL_CFTABLE_ENTRY
 19 03 00 00 ff
unhandled CISTPL 19
 14 00
CISTPL_NO_LINK
 10 05 88 ff 81 00 00
CISTPL_CHECKSUM addr=0 len=81 cksum=0 ok
 ff
CISTPL_END
[mem unmap 0][mem free]pcmcia0: CIS version PCMCIA 2.0 or 2.1
pcmcia0: CIS info: 3Com Corporation, 3C589D, TP/BNC LAN Card Ver. 2a, 000002
pcmcia0: Manufacturer code 0x101, product 0x589
pcmcia0: function 0: network adapter, ccr addr 10000 mask 3
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 4, iospace 0-f; io8 io16 irqlevel
ep0 at pcmcia0 function 0: <3Com Corporation, 3C589D, TP/BNC LAN Card Ver. 2a, 000002>
[io alloc 10][io map 0/10->fe234000/10]0000: ffff ffff ffff ffff ffff ffff ffff ffff
window iobase 0 iomax f
function iobase 0 iomax f
pcmcia0: ++enabled_count = 2
[mem alloc 14][mem map 1 10000/14->fe144000/14]pcmcia0: function 0 CCR at 0 offset 0: 41 0 0 0, 0 0 0 0, 0
tslot_slot_settype(1)
ep0: address 00:60:97:89:d4:19, 8KB byte-wide FIFO, 5:3 Rx:Tx split
ep0: 10baseT, 10base5, 10base2 (default 10baseT)
[mem unmap 0][mem free]pcmcia0: --enabled_count = 1
tslot0: disable slot 0
pcmcia0: --enabled_count = 0
tslot0: interrupt on socket 0 ir 8a8 sts 0
tslot0: slot 0 status changed from 1 to 1
tslot0: interrupt on socket 0 ir 888 sts 0
tslot0: slot 0 status changed from 1 to 1
tslot0: interrupt on socket 0 ir 888 sts 0
tslot0: slot 0 status changed from 1 to 1
pcmcia0: detaching ep0 (function 0)
[io unmap]0000: 0000 0000 0000 0000 0000 0000 0000 0000
0010: 0000 0000 0000 0000 0000 0000 0000 0000
0020: 0000 0000 0000 0000 0000 0000 0000 0000
0030: 0000 0000 0000 0000 0000 0000 0000 0000
0040: 0000 0000 0000 0000 0000 0000 0000 0000
0050: 0000 0000 0000 0000 0000 0000 0000 0000
0060: 0000 0000 0000 0000 0000 0000 0000 0000
0070: 0000 0000 0000 0000 0000 0000 0000 0000
[io free]ep0 detached
tslot0: interrupt on socket 0 ir 888 sts 1701
tslot0: slot 0 status changed from 0 to 0
tslot0: enable slot 0
pcmcia0: ++enabled_count = 1
[mem alloc 400][mem map 1 0/400->fe134000/400]cis mem map fe134000
pcmcia0: CIS tuple chain:
 01 02 00 ff
CISTPL_DEVICE type=null speed=null
 17 03 43 02 ff
CISTPL_DEVICE_A type=eeprom speed=150ns
 20 04 01 01 89 05
CISTPL_MANFID
 21 02 06 00
CISTPL_FUNCID
 15 3a 04 01 33 43 6f 6d 20 43 6f 72 70 6f 72 61
 74 69 6f 6e 00 33 43 35 38 39 44 00 54 50 2f 42
 4e 43 20 4c 41 4e 20 43 61 72 64 20 56 65 72 2e
 20 32 61 00 30 30 30 30 30 32 00 ff
CISTPL_VERS_1
 1a 06 02 03 00 00 01 03
CISTPL_CONFIG
 1b 0f c1 01 1d 71 55 35 55 54 e0 72 5d 64 30 ff
 ff
CISTPL_CFTABLE_ENTRY
 1b 07 03 01 71 55 26 26 54
CISTPL_CFTABLE_ENTRY
 19 03 00 00 ff
unhandled CISTPL 19
 14 00
CISTPL_NO_LINK
 10 05 88 ff 81 00 00
CISTPL_CHECKSUM addr=0 len=81 cksum=0 ok
 ff
CISTPL_END
[mem unmap 0][mem free]pcmcia0: CIS version PCMCIA 2.0 or 2.1
pcmcia0: CIS info: 3Com Corporation, 3C589D, TP/BNC LAN Card Ver. 2a, 000002
pcmcia0: Manufacturer code 0x101, product 0x589
pcmcia0: function 0: network adapter, ccr addr 10000 mask 3
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 4, iospace 0-f; io8 io16 irqlevel
ep0 at pcmcia0 function 0: <3Com Corporation, 3C589D, TP/BNC LAN Card Ver. 2a, 000002>
[io alloc 10][io map 0/10->fe234000/10]0000: 0000 0000 0000 0000 0000 0000 0000 0000
window iobase 0 iomax f
function iobase 0 iomax f
pcmcia0: ++enabled_count = 2
[mem alloc 14][mem map 1 10000/14->fe144000/14]pcmcia0: function 0 CCR at 0 offset 0: 41 0 0 0, 0 0 0 0, 0
tslot_slot_settype(1)
ep0: address 00:60:97:89:d4:19, 8KB byte-wide FIFO, 5:3 Rx:Tx split
ep0: 10baseT, 10base5, 10base2 (default 10baseT)
[mem unmap 0][mem free]pcmcia0: --enabled_count = 1
tslot0: disable slot 0
pcmcia0: --enabled_count = 0