From owner-freebsd-hackers Sun Aug 18 8:18: 3 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 887FD37B400; Sun, 18 Aug 2002 08:17:46 -0700 (PDT) Received: from spyder.bytecraft.au.com (bytecr1.lnk.telstra.net [139.130.142.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id E46CD43E6A; Sun, 18 Aug 2002 08:17:44 -0700 (PDT) (envelope-from root@bytecraft.au.com) Received: by spyder.bytecraft.au.com (Postfix, from userid 0) id 58AA0BA80; Mon, 19 Aug 2002 01:17:43 +1000 (EST) Date: Mon, 19 Aug 2002 01:17:43 +1000 From: Charlie & To: freebsd-mobile@freebsd.org, freebsd-hackers@freebsd.org Subject: Cant get PCCARD stuff working Message-ID: <20020819011743.A10172@spyder.bytecraft.au.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Reposted to mobile and hackers as no answer on questions The only extra item I have gleaned from archives is some comment from Warner (?) about s memory mapping issue, which I have not found any follow up on... original message follows --------8<------------ I am trying to get a Card Master PCI-IF{T/I) card working so that I can create miniBSD Cf images for some new firewall boxes. At least that is the idea.. However I dont seem to be able to ge the Flash recognised.. I am not sure even if the PCMCIA PCI interface is working properly.. ie I have not been here before. I have seen stuff in the archives with the same TI1420 chip being recognised on the PCI buss, so Im hopeful there. But I am currently stuck and need help. The Box is an IBM xSeries 300 server and runs all the rest of FreeBSD Aok. Build world done this morning (in 40 minutes), from CVSup sources bout 24 hours old If the PCCARD gurus need any more data just let me know.. and H E L P please Murray Taylor Special Projects Engineer Bytecraft Systems --------------------------------------------------------------------- insert Panasonic CF carrier with Sandisk 32M CF module spyder# pccardc dumpcis 2 slots found spyder# pccardc rdreg Registers for slot 0 00: 84 00 00 10 00 00 00 00 00 00 00 00 00 00 00 00 10: 00 00 00 00 00 00 c0 00 00 00 00 00 00 00 00 00 20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Registers for slot 1 00: 84 00 00 10 00 00 00 00 00 00 00 00 00 00 00 00 10: 00 00 00 00 00 00 c0 00 00 00 00 00 00 00 00 00 20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 spyder# pccardc rdmap Mem 0: flags 0x000 host 0x0 card 0000 size 0 bytes Mem 1: flags 0x000 host 0x0 card 0000 size 0 bytes Mem 2: flags 0x000 host 0x0 card 0000 size 0 bytes Mem 3: flags 0x000 host 0x0 card 0000 size 0 bytes Mem 4: flags 0x000 host 0x0 card 0000 size 0 bytes I/O 0: flags 0x000 port 0x 0 size 0 bytes I/O 1: flags 0x000 port 0x 0 size 0 bytes Mem 0: flags 0x000 host 0x0 card 0000 size 0 bytes Mem 1: flags 0x000 host 0x0 card 0000 size 0 bytes Mem 2: flags 0x000 host 0x0 card 0000 size 0 bytes Mem 3: flags 0x000 host 0x0 card 0000 size 0 bytes Mem 4: flags 0x000 host 0x0 card 0000 size 0 bytes I/O 0: flags 0x000 port 0x 0 size 0 bytes I/O 1: flags 0x000 port 0x 0 size 0 bytes spyder# pccardc power 0 1 spyder# pccardc power 1 1 (extract from /var/log/messages) Aug 16 08:34:00 spyder /kernel: pccard: card inserted, slot 0 Aug 16 08:34:05 spyder pccardd[48]: No card in database for "(null)"("(null)") Aug 16 08:51:10 spyder /kernel: pccard: card inserted, slot 1 Aug 16 08:51:16 spyder pccardd[48]: No card in database for "(null)"("(null)") spyder# pccardc dumpcis Read return -1 bytes (expected 2) pccardc: CIS code read: Cannot allocate memory Read return -1 bytes (expected 10) Configuration data for card in slot 0 Read return -1 bytes (expected 2) pccardc: CIS code read: Cannot allocate memory Read return -1 bytes (expected 10) Configuration data for card in slot 1 2 slots found spyder# pccardc rdreg Registers for slot 0 00: 84 00 00 70 00 00 00 00 00 00 00 00 00 00 00 00 10: 00 00 00 00 00 00 c0 00 00 00 00 00 00 00 00 00 20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Registers for slot 1 00: 84 00 00 70 00 00 00 00 00 00 00 00 00 00 00 00 10: 00 00 00 00 00 00 c0 00 00 00 00 00 00 00 00 00 20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 spyder# pccardc rdmap Mem 0: flags 0x000 host 0x0 card 0000 size 0 bytes Mem 1: flags 0x000 host 0x0 card 0000 size 0 bytes Mem 2: flags 0x000 host 0x0 card 0000 size 0 bytes Mem 3: flags 0x000 host 0x0 card 0000 size 0 bytes Mem 4: flags 0x000 host 0x0 card 0000 size 0 bytes I/O 0: flags 0x000 port 0x 0 size 0 bytes I/O 1: flags 0x000 port 0x 0 size 0 bytes Mem 0: flags 0x000 host 0x0 card 0000 size 0 bytes Mem 1: flags 0x000 host 0x0 card 0000 size 0 bytes Mem 2: flags 0x000 host 0x0 card 0000 size 0 bytes Mem 3: flags 0x000 host 0x0 card 0000 size 0 bytes Mem 4: flags 0x000 host 0x0 card 0000 size 0 bytes I/O 0: flags 0x000 port 0x 0 size 0 bytes I/O 1: flags 0x000 port 0x 0 size 0 bytes spyder# more /etc/rc.conf # -- sysinstall generated deltas -- # Thu May 16 08:01:23 2002 # Created: Thu May 16 08:01:23 2002 # Enable network daemons for user convenience. # Please make all changes to this file, not to /etc/defaults/rc.conf. # This file now contains just the overrides from /etc/defaults/rc.conf. hostname="spyder.bytecraft.au.com" ifconfig_fxp0="inet 10.0.0.2/20" ##ifconfig_fxp1="inet 192.168.4.1 netmask 255.255.255.252" defaultrouter="10.0.0.1" kern_securelevel_enable="NO" linux_enable="YES" moused_enable="NO" moused_type="NO" nfs_reserved_port_only="YES" saver="logo" sendmail_enable="YES" sshd_enable="YES" usbd_enable="YES" pccard_enable="YES" spyder# more /etc/pccard.conf debuglevel 4 spyder# uname -a FreeBSD spyder.bytecraft.au.com 4.6-STABLE FreeBSD 4.6-STABLE #0: Fri Aug 16 08:26:33 EST 2002 root@spyder.bytecraft.au.com:/usr/obj/usr/src/sys/GENERIC i386 spyder# cat /var/run/dmesg.boot Copyright (c) 1992-2002 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.6-STABLE #0: Fri Aug 16 08:26:33 EST 2002 root@spyder.bytecraft.au.com:/usr/obj/usr/src/sys/GENERIC Timecounter "i8254" frequency 1193182 Hz CPU: Pentium III/Pentium III Xeon/Celeron (1000.02-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x68a Stepping = 10 Features=0x383fbff real memory = 536805376 (524224K bytes) config> di sn0 config> di lnc0 config> di ie0 config> di fe0 config> di ed0 config> di cs0 config> q avail memory = 517353472 (505228K bytes) Preloaded elf kernel "kernel" at 0xc04d6000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc04d609c. Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 7 entries at 0xc00fdcc0 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xd000-0xd00f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0xd400-0xd41f irq 10 at device 7.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xd800-0xd81f irq 10 at device 7.3 on pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered pci0: (vendor=0x1106, dev=0x3057) at 7.4 pcic0: mem 0xdd0c4000-0xdd0c4fff irq 5 at device 9.0 on pci0 pcic0: TI12XX PCI Config Reg: [pwr save][FUNC pci int + CSC serial isa irq] pccard0: on pcic0 pcic1: mem 0xdd0c9000-0xdd0c9fff irq 7 at device 9.1 on pci0 pcic1: TI12XX PCI Config Reg: [pwr save][FUNC pci int + CSC serial isa irq] pccard1: on pcic1 fxp0: port 0xdc00-0xdc3f mem 0xdd080000-0xdd09ffff,0xdd0c3000-0xdd0c3fff irq 11 at device 13.0 on pci0 fxp0: Ethernet address 00:02:55:fa:76:5f inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp1: port 0xe000-0xe03f mem 0xdd0a0000-0xdd0bffff,0xdd0c6000-0xdd0c6fff irq 10 at device 14.0 on pci0 fxp1: Ethernet address 00:02:55:fa:76:60 inphy1: on miibus1 inphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pci0: at 15.0 irq 5 orm0: