kernel-2.6.* Anonymous Memory

Thomas Moritz th.moritz at gmx.de
Sat Nov 6 07:59:54 EST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Samstag, 6. November 2004 09:25 schrieb David Hinds:

Hello David,

> On Tue, Nov 02, 2004 at 08:29:10PM +0100, Thomas Moritz wrote:
> > device "pcmciamtd"
> >   class "memory" module "pcmciamtd"
>
> Change this to just:
>
>   device "pcmciamtd" module "pcmciamtd"
>
> This driver is not in the "memory" class because the "memory"
> configuration script doesn't know how to configure this device
> type.

Thank You! I have changed this setting, but the next problem is 
given. 
My notebook is a "HP compaq nx5000" and this is my problem child.
To exclude many errors from previous tests, I begin step by step 
from start.
- -install kernel-2.6.9.tar.bz2
- -config and install the new kernel and modules

CONFIG_EXPERIMENTAL=y
CONFIG_BROKEN=y
CONFIG_MTD_PCMCIA=m

- -"make && make modules && make modules_install; make install" are
  complet without errors
- -changing /etc/pcmcia/config
 
 device "pcmciamtd"
   class "pcmciamtd" module "pcmciamtd"		#Thanks David:-)

 card "Anonymous Memory"
   anonymous
   bind "pcmciamtd"

- -changing /etc/pcmcia/config.opts

#>>>
# from org-file
include port 0x100-0x3af, port 0x3e0-0x4ff, port 0x800-0x80f, 
   port 0x820-0x8ff, port 0xc00-0xcff
include memory 0xc0000-0xfffff

#here my tests, i found this areas in lspci -vv

include memory 0x20000000-0x20ffffff, memory0x20800000-0x20bff000
#include memory 0x1fc00000-0x1ffff000, memory 0x20400000-0x207ff000
#include memory 0x90000000-0x90ffffff
#include port 0x4000-0x40ff
#include port 0x4400-0x44ff
#include port 0x4800-0x48ff
#include port 0x4c00-0x4cff

include port 0x4000-0x4cff
#<<<
 
Here is the next problem, I can't found the correct memory-area. All 
entries above, send errors. (The output from lspci follows below)
See "cs: memory probe"  (include and exclude area are the same)

#>>>/var/log/messages

kernel: cs: memory probe 0x0c0000-0x0fffff: excluding
  0xc0000-0xfffff
kernel: cs: memory probe 0x20000000-0x20ffffff: excluding
  0x20000000-0x20ffffff
kernel: cs: unable to map card memory!
kernel: cs: unable to map card memory!
cardmgr[2268]: socket 0: Anonymous Memory
kernel: pcmciamtd: PCMCIA Flash memory card driver $Revision: 1.51 $
kernel: cs: unable to map card memory!
kernel: pcmciamtd: Cant allocate memory window
cardmgr[2268]: get dev info on socket 0 failed: Resource temporarily
  unavailable
#<<<

The output from "lspci -vv":

#>>>
0000:00:00.0 Host bridge: Intel Corp. 82852/855GM Host Bridge (rev 
02)
	Subsystem: Hewlett-Packard Company: Unknown device 08bc
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
	Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- 
<TAbort- <MAbort+ >SERR- <PERR-
	Latency: 0
	Region 0: Memory at <unassigned> (32-bit, prefetchable)
	Capabilities: [40] #09 [a105]

0000:00:00.1 System peripheral: Intel Corp.: Unknown device 3584 
(rev 02)
	Subsystem: Hewlett-Packard Company: Unknown device 08bc
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
	Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- 
<TAbort- <MAbort- >SERR- <PERR-
	Latency: 0

0000:00:00.3 System peripheral: Intel Corp.: Unknown device 3585 
(rev 02)
	Subsystem: Hewlett-Packard Company: Unknown device 08bc
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
	Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- 
<TAbort- <MAbort- >SERR- <PERR-
	Latency: 0

0000:00:02.0 VGA compatible controller: Intel Corp. 82852/855GM 
Integrated Graphics Device (rev 02) (prog-if 00 [VGA])
	Subsystem: Hewlett-Packard Company: Unknown device 08bc
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
	Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- 
<TAbort- <MAbort- >SERR- <PERR-
	Latency: 0
	Interrupt: pin A routed to IRQ 16
	Region 0: Memory at 98000000 (32-bit, prefetchable)
	Region 1: Memory at 90400000 (32-bit, non-prefetchable) [size=512K]
	Region 2: I/O ports at 2c30 [size=8]
	Capabilities: [d0] Power Management version 1
		Flags: PMEClk- DSI+ D1+ D2- AuxCurrent=0mA 
PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-

0000:00:02.1 Display controller: Intel Corp. 82852/855GM Integrated 
Graphics Device (rev 02)
	Subsystem: Hewlett-Packard Company: Unknown device 08bc
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
	Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- 
<TAbort- <MAbort- >SERR- <PERR-
	Latency: 0
	Region 0: Memory at a0000000 (32-bit, prefetchable)
	Region 1: Memory at 90480000 (32-bit, non-prefetchable) [size=512K]
	Capabilities: [d0] Power Management version 1
		Flags: PMEClk- DSI+ D1+ D2- AuxCurrent=0mA 
PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-

0000:00:1d.0 USB Controller: Intel Corp. 82801DB USB (Hub #1) (rev 
01) (prog-if 00 [UHCI])
	Subsystem: Hewlett-Packard Company: Unknown device 08bc
	Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
	Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- 
<TAbort- <MAbort- >SERR- <PERR-
	Latency: 0
	Interrupt: pin A routed to IRQ 16
	Region 4: I/O ports at 28c0 [size=32]

0000:00:1d.1 USB Controller: Intel Corp. 82801DB USB (Hub #2) (rev 
01) (prog-if 00 [UHCI])
	Subsystem: Hewlett-Packard Company: Unknown device 08bc
	Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
	Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- 
<TAbort- <MAbort- >SERR- <PERR-
	Latency: 0
	Interrupt: pin B routed to IRQ 19
	Region 4: I/O ports at 28e0 [size=32]

0000:00:1d.2 USB Controller: Intel Corp. 82801DB USB (Hub #3) (rev 
01) (prog-if 00 [UHCI])
	Subsystem: Hewlett-Packard Company: Unknown device 08bc
	Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
	Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- 
<TAbort- <MAbort- >SERR- <PERR-
	Latency: 0
	Interrupt: pin C routed to IRQ 18
	Region 4: I/O ports at 2c00 [size=32]

0000:00:1d.7 USB Controller: Intel Corp. 82801DB USB2 (rev 01) 
(prog-if 20 [EHCI])
	Subsystem: Hewlett-Packard Company: Unknown device 08bc
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
	Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- 
<TAbort- <MAbort- >SERR- <PERR-
	Latency: 0
	Interrupt: pin D routed to IRQ 23
	Region 0: Memory at 90500000 (32-bit, non-prefetchable)
	Capabilities: [50] Power Management version 2
		Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA 
PME(D0+,D1-,D2-,D3hot+,D3cold+)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-
	Capabilities: [58] #0a [2080]

0000:00:1e.0 PCI bridge: Intel Corp. 82801BAM/CAM PCI Bridge (rev 
81) (prog-if 00 [Normal decode])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR+ FastB2B-
	Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- 
<TAbort- <MAbort- >SERR- <PERR+
	Latency: 0
	Bus: primary=00, secondary=01, subordinate=03, sec-latency=32
	Memory behind bridge: 90000000-903fffff
	BridgeCtl: Parity- SERR+ NoISA+ VGA- MAbort- >Reset- FastB2B-

0000:00:1f.0 ISA bridge: Intel Corp. 82801DBM LPC Interface 
Controller (rev 01)
	Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr- 
Stepping- SERR+ FastB2B-
	Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- 
<TAbort- <MAbort- >SERR- <PERR-
	Latency: 0

0000:00:1f.1 IDE interface: Intel Corp. 82801DBM Ultra ATA Storage 
Controller (rev 01) (prog-if 8a [Master SecP PriP])
	Subsystem: Hewlett-Packard Company: Unknown device 08bc
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
	Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- 
<TAbort- <MAbort- >SERR- <PERR-
	Latency: 0
	Interrupt: pin A routed to IRQ 18
	Region 0: I/O ports at <unassigned>
	Region 1: I/O ports at <unassigned>
	Region 2: I/O ports at <unassigned>
	Region 3: I/O ports at <unassigned>
	Region 4: I/O ports at 2c20 [size=16]
	Region 5: Memory at 1f800000 (32-bit, non-prefetchable) [size=1K]

0000:00:1f.5 Multimedia audio controller: Intel Corp. 82801DB AC'97 
Audio Controller (rev 01)
	Subsystem: Hewlett-Packard Company: Unknown device 08bc
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
	Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- 
<TAbort- <MAbort- >SERR- <PERR-
	Latency: 0
	Interrupt: pin B routed to IRQ 17
	Region 0: I/O ports at 2000
	Region 1: I/O ports at 2880 [size=64]
	Region 2: Memory at 90600000 (32-bit, non-prefetchable) [size=512]
	Region 3: Memory at 90680000 (32-bit, non-prefetchable) [size=256]
	Capabilities: [50] Power Management version 2
		Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA 
PME(D0+,D1-,D2-,D3hot+,D3cold+)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-

0000:00:1f.6 Modem: Intel Corp. 82801DB AC'97 Modem Controller (rev 
01) (prog-if 00 [Generic])
	Subsystem: Hewlett-Packard Company: Unknown device 08bc
	Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
	Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- 
<TAbort- <MAbort- >SERR- <PERR-
	Interrupt: pin B routed to IRQ 17
	Region 0: I/O ports at 2400
	Region 1: I/O ports at 2800 [size=128]
	Capabilities: [50] Power Management version 2
		Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA 
PME(D0+,D1-,D2-,D3hot+,D3cold+)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-

0000:01:04.0 Network controller: Intel Corp.: Unknown device 4220 
(rev 05)
	Subsystem: Hewlett-Packard Company: Unknown device 12f6
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
	Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- 
<TAbort- <MAbort- >SERR- <PERR-
	Latency: 64 (750ns min, 6000ns max), cache line size 10
	Interrupt: pin A routed to IRQ 21
	Region 0: Memory at 90100000 (32-bit, non-prefetchable)
	Capabilities: [dc] Power Management version 2
		Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA 
PME(D0+,D1-,D2-,D3hot+,D3cold+)
		Status: D0 PME-Enable- DSel=0 DScale=1 PME-

0000:01:06.0 CardBus bridge: Texas Instruments: Unknown device ac8e
	Subsystem: Hewlett-Packard Company: Unknown device 08bc
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
	Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- 
<TAbort- <MAbort- >SERR- <PERR-
	Latency: 168, cache line size 20
	Interrupt: pin A routed to IRQ 18
	Region 0: Memory at 90180000 (32-bit, non-prefetchable)
	Bus: primary=01, secondary=02, subordinate=05, sec-latency=176
	Memory window 0: 1fc00000-1ffff000 (prefetchable)
	Memory window 1: 20000000-203ff000
	I/O window 0: 00004000-000040ff
	I/O window 1: 00004400-000044ff
	BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset+ 16bInt+ 
PostWrite+
	16-bit legacy interface ports at 0001

0000:01:06.1 CardBus bridge: Texas Instruments: Unknown device ac8e
	Subsystem: Hewlett-Packard Company: Unknown device 08bc
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
	Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- 
<TAbort- <MAbort- >SERR- <PERR-
	Latency: 168, cache line size 20
	Interrupt: pin A routed to IRQ 18
	Region 0: Memory at 90200000 (32-bit, non-prefetchable)
	Bus: primary=01, secondary=06, subordinate=09, sec-latency=176
	Memory window 0: 20400000-207ff000 (prefetchable)
	Memory window 1: 20800000-20bff000
	I/O window 0: 00004800-000048ff
	I/O window 1: 00004c00-00004cff
	BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset+ 16bInt+ 
PostWrite+
	16-bit legacy interface ports at 0001

0000:01:06.3 Unknown mass storage controller: Texas Instruments: 
Unknown device ac8f
	Subsystem: Hewlett-Packard Company: Unknown device 08bc
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
	Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- 
<TAbort- <MAbort- >SERR- <PERR-
	Latency: 64 (1750ns min, 1000ns max), cache line size 10
	Interrupt: pin A routed to IRQ 18
	Region 0: Memory at 90280000 (32-bit, non-prefetchable)
	Capabilities: [44] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA 
PME(D0+,D1+,D2+,D3hot+,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-

0000:01:0d.0 FireWire (IEEE 1394): Texas Instruments TSB43AB22/A 
IEEE-1394a-2000 Controller (PHY/Link) (prog-if 10 [OHCI])
	Subsystem: Hewlett-Packard Company: Unknown device 08bc
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
	Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- 
<TAbort- <MAbort- >SERR- <PERR-
	Latency: 64 (500ns min, 1000ns max), cache line size 10
	Interrupt: pin A routed to IRQ 23
	Region 0: Memory at 90300000 (32-bit, non-prefetchable)
	Region 1: Memory at 90000000 (32-bit, non-prefetchable) [size=16K]
	Capabilities: [44] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA 
PME(D0+,D1+,D2+,D3hot+,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME+

0000:01:0e.0 Ethernet controller: Broadcom Corporation: Unknown 
device 170c (rev 02)
	Subsystem: Hewlett-Packard Company: Unknown device 08bc
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
	Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- 
<TAbort- <MAbort- >SERR- <PERR-
	Latency: 64
	Interrupt: pin A routed to IRQ 20
	Region 0: Memory at 90080000 (32-bit, non-prefetchable)
	Capabilities: [40] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA 
PME(D0+,D1+,D2+,D3hot+,D3cold+)
		Status: D0 PME-Enable- DSel=0 DScale=2 PME-
#<<<

Sorry for this long posting. Perhaps anyone can help?

regards Th. Moritz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFBjMrOPBTBVZNAOL4RAkUqAKCu33boguFO+MY1jtgUeBWCtuqpKgCgyiLp
QTh0LagPNVeijT3NtU+LymI=
=+81J
-----END PGP SIGNATURE-----



More information about the linux-pcmcia mailing list