Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 06 Jun 2001 22:58:25 +0200
From:      Harald Hanche-Olsen <hanche@math.ntnu.no>
To:        freebsd-mobile@FreeBSD.ORG
Subject:   Memory card, Device not configured
Message-ID:  <20010606225825E.hanche@math.ntnu.no>

next in thread | raw e-mail | index | archive | help
Okay, I give up solving this one on my own.

For much too long, I have failed to be able to read memory flash cards
from FreeBSD, resorting instead to the cheap trick of descending into
windows hell to read these cards.  But lately, the windows has started
dying on me every time I try reading the flash card, so it's time to
grow up and do it from FreeBSD instead.  Except I cannot seem to
figure out how.  I have successfully managed to get both a modem and a
network card to run, so the PC card slots are operational.

First, when inserting a PC card produces a message "Device not
configured" from pccardd, does that mean literally what it says, or
can it be a symptom of other problems, like perhaps an IRQ or memory
conflict?

If the former, I cannot understand it.  For the card in question - a
48 MB flash memory card - is specified thus in pccard.conf:

card "SiliconTech,Inc." "48MB Compact PC Card"
	config 0x2 "ata" 15
	reset 1000
	insert echo "48 MB flash card inserted"
	remove echo "48 MB flash card removed"

And I do have the ata driver in my kernel config, like this:

# ATA and ATAPI devices
# device		ata0	at isa? port IO_WD1 irq 14
device		ata
device		atadisk			# ATA disk drives
device		atapicd			# ATAPI CDROM drives
device		atapifd			# ATAPI floppy drives
device		atapist			# ATAPI tape drives
options 	ATA_STATIC_ID		#Static device numbering
#options 	ATA_ENABLE_ATAPI_DMA	#Enable DMA on ATAPI devices

(um, maybe it's safe to uncomment the last line...)

Anyway, this is what the log file says:

Jun  6 22:03:33 glen pccardd[48]: driver allocation failed for SiliconTech,Inc.(48MB Compact PC Card): Device not configured

It doesn't seem to be an IRQ problem either:  I got the same result
when trying the IRQ usually used by my ethernet card (having removed
said card and its entry from pccard.conf of course).

But a problem with io or memory addresses maybe?

I have these entries in pccard.conf:

io	0x240-0x360
memory	0xd4000  96k

I include below the output of pccardc dumpcis (I really don't
understand how to read it) and dmesg.  Any idea what I could try next?

Oh, sorry, I almost forgot to mention that I am still running
4.1-RELEASE.  (My stationary computer runs 4.3-RELEASE and I'll get
around to upgrading the laptop one of these days.  If you think maybe
that will be the answer to my problem, please don't hesitate to say
so.)

- Harald


Configuration data for card in slot 0
Tuple #1, code = 0x1 (Common memory descriptor), length = 4
    000:  df 4a 01 ff
	Common memory device information:
		Device number 1, type Function specific, WPS = ON
		Speed = 4.0 x 100 ns, Memory block size = reserved, 32 units
		Device number 2, type No device, WPS = OFF
		Speed = No speed, Memory block size = 512b, 1 units
Tuple #2, code = 0x1c (Other conditions for common memory), length = 4
    000:  02 d9 01 ff
	 (3V card)
Tuple #3, code = 0x18 (JEDEC descr for common memory), length = 2
    000:  df 01
Tuple #4, code = 0x20 (Manufacturer ID), length = 4
    000:  4d 01 01 00
	PCMCIA ID = 0x14d, OEM ID = 0x1
Tuple #5, code = 0x15 (Version 1 info), length = 49
    000:  04 01 53 69 6c 69 63 6f 6e 54 65 63 68 2c 49 6e
    010:  63 2e 00 34 38 4d 42 20 43 6f 6d 70 61 63 74 20
    020:  50 43 20 43 61 72 64 00 56 65 72 20 33 2e 30 00
    030:  ff
	Version = 4.1, Manuf = [SiliconTech,Inc.], card vers = [48MB Compact PC Card]
	Addit. info = [Ver 3.0]
Tuple #6, code = 0x21 (Functional ID), length = 2
    000:  04 01
	Fixed disk card - POST initialize
Tuple #7, code = 0x22 (Functional EXT), length = 2
    000:  01 01
	Disk interface: IDE
Tuple #8, code = 0x22 (Functional EXT), length = 3
    000:  02 0c 0f
	Disk features: Silicon, Unique, Single
		Sleep, Standby, Idle, Low power, 
Tuple #9, code = 0x1a (Configuration map), length = 5
    000:  01 03 00 02 0f
	Reg len = 2, config register addr = 0x200, last config = 0x3
	Registers: XXXX---- 
Tuple #10, code = 0x1b (Configuration entry), length = 8
    000:  c0 40 a1 01 55 08 00 20
	Config index = 0x0(default)
	Interface byte = 0x40 (memory)  +RDY/-BSY active
	Vcc pwr:
		Nominal operating supply voltage: 5 x 1V
	Memory space length = 0x8
	Max twin cards = 0
	Misc attr: (Power down supported)
Tuple #11, code = 0x1b (Configuration entry), length = 6
    000:  00 01 21 b5 1e 4d
	Config index = 0x0
	Vcc pwr:
		Nominal operating supply voltage: 3 x 1V, ext = 0x1e
		Max current average over 10 ms: 4.5 x 10mA
Tuple #12, code = 0x1b (Configuration entry), length = 10
    000:  c1 41 99 01 55 64 f0 ff ff 20
	Config index = 0x1(default)
	Interface byte = 0x41 (I/O)  +RDY/-BSY active
	Vcc pwr:
		Nominal operating supply voltage: 5 x 1V
	Card decodes 4 address lines, full 8/16 Bit I/O
		IRQ modes: Level, Pulse, Shared
		IRQs:  0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
	Max twin cards = 0
	Misc attr: (Power down supported)
Tuple #13, code = 0x1b (Configuration entry), length = 6
    000:  01 01 21 b5 1e 4d
	Config index = 0x1
	Vcc pwr:
		Nominal operating supply voltage: 3 x 1V, ext = 0x1e
		Max current average over 10 ms: 4.5 x 10mA
Tuple #14, code = 0x1b (Configuration entry), length = 15
    000:  c2 41 99 01 55 ea 61 f0 01 07 f6 03 01 ee 20
	Config index = 0x2(default)
	Interface byte = 0x41 (I/O)  +RDY/-BSY active
	Vcc pwr:
		Nominal operating supply voltage: 5 x 1V
	Card decodes 10 address lines, full 8/16 Bit I/O
		I/O address # 1: block start = 0x1f0 block length = 0x8
		I/O address # 2: block start = 0x3f6 block length = 0x2
		IRQ modes: Level, Pulse, Shared
		IRQ level = 14
	Max twin cards = 0
	Misc attr: (Power down supported)
Tuple #15, code = 0x1b (Configuration entry), length = 6
    000:  02 01 21 b5 1e 4d
	Config index = 0x2
	Vcc pwr:
		Nominal operating supply voltage: 3 x 1V, ext = 0x1e
		Max current average over 10 ms: 4.5 x 10mA
Tuple #16, code = 0x1b (Configuration entry), length = 15
    000:  c3 41 99 01 55 ea 61 70 01 07 76 03 01 ee 20
	Config index = 0x3(default)
	Interface byte = 0x41 (I/O)  +RDY/-BSY active
	Vcc pwr:
		Nominal operating supply voltage: 5 x 1V
	Card decodes 10 address lines, full 8/16 Bit I/O
		I/O address # 1: block start = 0x170 block length = 0x8
		I/O address # 2: block start = 0x376 block length = 0x2
		IRQ modes: Level, Pulse, Shared
		IRQ level = 14
	Max twin cards = 0
	Misc attr: (Power down supported)
Tuple #17, code = 0x1b (Configuration entry), length = 6
    000:  03 01 21 b5 1e 4d
	Config index = 0x3
	Vcc pwr:
		Nominal operating supply voltage: 3 x 1V, ext = 0x1e
		Max current average over 10 ms: 4.5 x 10mA
Tuple #18, code = 0x14 (No link), length = 0
Tuple #19, code = 0xff (Terminator), length = 0



; dmesg
Copyright (c) 1992-2000 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.1-RELEASE #9: Wed Jun  6 21:59:36 CEST 2001
    root@glen:/usr/src/sys/compile/GLEN
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium II/Pentium II Xeon/Celeron (363.96-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x66a  Stepping = 10
  Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
real memory  = 134152192 (131008K bytes)
config> q
avail memory = 127111168 (124132K bytes)
Preloaded elf kernel "kernel" at 0xc0342000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc034209c.
Pentium Pro MTRR support enabled
md0: Malloc disk
npx0: <math processor> on motherboard
npx0: INT 16 interface
apm0: <APM BIOS> on motherboard
apm: found APM BIOS v1.2, connected at v1.2
pcib0: <Intel 82443BX (440 BX) host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <Intel 82443BX (440 BX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <NeoMagic MagicMedia 256AV SVGA controller> at 0.0
chip1: <NeoMagic MagicMedia 256AX Audio controller> mem 0xfe700000-0xfe7fffff,0xfe000000-0xfe3fffff irq 11 at device 0.1 on pci1
pcic-pci0: <TI PCI-1220 PCI-CardBus Bridge> at device 4.0 on pci0
pcic-pci0: TI12XX PCI Config Reg: [ring enable][speaker enable][pwr save][FUNC pci int + CSC serial isa irq]
pcic-pci1: <TI PCI-1220 PCI-CardBus Bridge> at device 4.1 on pci0
pcic-pci1: TI12XX PCI Config Reg: [ring enable][speaker enable][pwr save][FUNC pci int + CSC serial isa irq]
isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0xfcd0-0xfcdf at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xfce0-0xfcff irq 11 at device 7.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
uhub0: port 1 power on failed, IOERROR
uhub0: port 2 power on failed, IOERROR
chip2: <Intel 82371AB Power management controller> port 0x2180-0x218f at device 7.3 on pci0
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,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
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
unknown0: <PNP0c02> at port 0x80,0x401-0x407 iomem 0xfff80000-0xffffffff on isa0
unknown1: <PNP0200> at port 0-0xf,0x81-0x8f,0xc0-0xdf drq 4 on isa0
unknown: <PNP0000> can't assign resources
unknown2: <PNP0100> at port 0x40-0x43 irq 0 on isa0
unknown3: <PNP0b00> at port 0x70-0x71,0x72-0x73 irq 8 on isa0
unknown4: <PNP0c01> at iomem 0-0x9ffff,0xdc000-0xfffff,0x100000-0x7ffffff on isa0
unknown: <PNP0303> can't assign resources
unknown5: <PNP0c04> at port 0xf0-0xff irq 13 on isa0
unknown6: <PNP0800> at port 0x61 on isa0
unknown7: <PNP0a03> at port 0xcf8-0xcff on isa0
unknown8: <PNP0c02> at port 0x4d0-0x4d1,0x8000-0x803f,0x2180-0x218f on isa0
unknown9: <PNP0c02> on isa0
sio0: <16550A-compatible COM port> at port 0x3f8-0x3ff irq 4 on isa0
sio0: type 16550A
pcm0: <Neomagic 256AV (non-ac97)> at port 0x220-0x22f,0x530-0x537,0x388-0x38f,0x320-0x321 irq 5 drq 0,1 on isa0
unknown: <PNP0f13> can't assign resources
unknown: <PNP0700> can't assign resources
ad0: 9590MB <FUJITSU MHG2102AT> [19485/16/63] at ata0-master using UDMA33
Mounting root from ufs:/dev/ad0s2a
pccard: card inserted, slot 0
pccard: card inserted, slot 1
ed1 at port 0x240-0x25f irq 7 slot 1 on pccard1
ed1: address 00:e0:98:09:8d:10, type Linksys (16 bit) 

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?20010606225825E.hanche>