LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 12-19-2004, 07:23 AM   #1
grcore
Member
 
Registered: Nov 2004
Distribution: Mandriva + kernel 2.6.15
Posts: 38

Rep: Reputation: 15
Cardbus memory problem


I have Mandrake 10.0 on a sharp PC-AV18 notebook. I am having problems getting cardbus cards to work, and its memory address problem. PCMCIA cards work fine, but the cardbus card (SMC2635W-AG) wireless card will not. I have tried other carbus cards, and they get similar errors. In order for the PC to boot, I need to turn off ACPI (acpi=off).

I have tried a few different live CD distros, and the same problem exists

I am using kernel 2.6.3-7.mdk

When I insert the card, dmesg reports:
Code:
PCI: Failed to allocate resource 0(e2010000-e2004fff) for 0000:02:00.0
lspci -vv reports the bridge:
Code:
00:05.0 CardBus bridge: Ricoh Co Ltd RL5c475 (rev b8)
        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
        Interrupt: pin A routed to IRQ 9
        Region 0: Memory at e2000000 (32-bit, non-prefetchable) [size=4K]
        Bus: primary=00, secondary=02, subordinate=05, sec-latency=176
        Memory window 0: e2001000-e2002000 (prefetchable)
        Memory window 1: e2003000-e2004000
        I/O window 0: 0000c000-0000c403
        I/O window 1: 0000c800-0000cc03
        BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset- 16bInt- PostWrite+
iomem reports:
Code:
00000000-0009f7ff : System RAM
0009f800-0009ffff : reserved
000a0000-000bffff : Video RAM area
000c0000-000c7fff : Video ROM
000ce000-000cffff : reserved
000f0000-000fffff : System ROM
00100000-1f6effff : System RAM
  00100000-002c6274 : Kernel code
  002c6275-0039a8ff : Kernel data
1f6f0000-1f6fbfff : ACPI Tables
1f6fc000-1f6fffff : ACPI Non-volatile Storage
1f700000-1f7fffff : reserved
a0000000-a0000fff : card services
e2000000-e2000fff : 0000:00:05.0
  e2000000-e2000fff : yenta_socket
e2001000-e2002fff : PCI CardBus #02
e2003000-e2004fff : PCI CardBus #02
e8000000-e80007ff : 0000:00:05.1
  e8000000-e80007ff : ohci1394
e8000800-e80008ff : 0000:00:06.0
  e8000800-e80008ff : 8139too
e8000c00-e8000cff : 0000:00:10.3
  e8000c00-e8000cff : ehci_hcd
e8100000-e81fffff : PCI Bus #01
  e8100000-e817ffff : 0000:01:00.0
ec000000-efffffff : 0000:00:00.0
f0000000-f7ffffff : PCI Bus #01
  f0000000-f7ffffff : 0000:01:00.0
    f0000000-f06effff : vesafb
fffe0000-ffffffff : reserved
Here is the BIOS mem report from dmesg
Code:
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009f800 (usable)
 BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000ce000 - 00000000000d0000 (reserved)
 BIOS-e820: 00000000000d8000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000001f6f0000 (usable)
 BIOS-e820: 000000001f6f0000 - 000000001f6fc000 (ACPI data)
 BIOS-e820: 000000001f6fc000 - 000000001f700000 (ACPI NVS)
 BIOS-e820: 000000001f700000 - 000000001f800000 (reserved)
 BIOS-e820: 00000000fffe0000 - 0000000100000000 (reserved)
502MB LOWMEM available.
 
Old 12-19-2004, 09:14 AM   #2
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hi,

http://pcmcia-cs.sourceforge.net/ftp...CIA-HOWTO.html
the link may help you...
One problem is address region allocation:
-e2010000-e2004fff region it tries to allocate
-e2001000-e2002000 and e2003000-e2004000 (from lspci for cardbus)
-e2000000-e2000fff : 0000:00:05.0
e2000000-e2000fff : yenta_socket
e2001000-e2002fff : PCI CardBus #02
e2003000-e2004fff : PCI CardBus #02 (from iomem)
it seems that start adress is wrong
another things which disturb me is PCI bus ID... cardbus is 00:05:00 whereas in your error message that's 00:02:00
what about 00:02:00 in lspci -vv ???

Oliv'
 
Old 12-19-2004, 09:32 AM   #3
grcore
Member
 
Registered: Nov 2004
Distribution: Mandriva + kernel 2.6.15
Posts: 38

Original Poster
Rep: Reputation: 15
The lspci in my original post was for the cardbus controller,

here is the lspci -vv for 02:00.0

Code:
02:00.0 Ethernet controller: Unknown device 168c:0013 (rev 01)
        Subsystem: Accton Technology Corporation: Unknown device ee00
        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 A routed to IRQ 9
        Region 0: [virtual] Memory at e2010000 (32-bit, non-prefetchable) [disabled]
        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=2 PME-
The card works fine in another laptop (friends thinkpad). (knoppix distro CD)

I read the info on the link you provided, particularly the section on memory probe failures. But I am not sure how to implement them.

Thanks for your help, its really appreciated!

G

Last edited by grcore; 12-19-2004 at 09:34 AM.
 
Old 12-19-2004, 09:38 AM   #4
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
At least, find where it takes the begin address:
Code:
Region 0: [virtual] Memory at e2010000 (32-bit, non-prefetchable) [disabled]
Now just need to find why (or what) your Ethernet Controller has to do with cardbus ???
a first indication is that they both use IRQ 9... so first thing to try is to disable your NIC before enabling cardbus...

Oliv'

PS: sorry for my poor english
 
Old 12-19-2004, 09:45 AM   #5
grcore
Member
 
Registered: Nov 2004
Distribution: Mandriva + kernel 2.6.15
Posts: 38

Original Poster
Rep: Reputation: 15
Don't worry about your english, its just fine!

lspci reports the cardbus card as an Ethernet controller, not sure why but I don't thik it matters really does it?

The built in ethernet uses a different IRQ:
Code:
00:06.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
        Subsystem: Sharp corporation: Unknown device 1031
        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 (8000ns min, 16000ns max)
        Interrupt: pin A routed to IRQ 10
        Region 0: I/O ports at 1000 [size=256]
        Region 1: Memory at e8000800 (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-
 
Old 12-19-2004, 09:56 AM   #6
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
could you post the following:
cat /proc/interrupts
cat /proc/ioports
cat /proc/pci
/var/log/messages (when kernel tries to do something with cardbus)
Thanks

Oliv'
 
Old 12-19-2004, 10:03 AM   #7
grcore
Member
 
Registered: Nov 2004
Distribution: Mandriva + kernel 2.6.15
Posts: 38

Original Poster
Rep: Reputation: 15
Code:
cat /proc/interrupts
           CPU0
  0:    2242210          XT-PIC  timer
  1:       1902          XT-PIC  i8042
  2:          0          XT-PIC  cascade
  7:       3008          XT-PIC  ehci_hcd
  8:          1          XT-PIC  rtc
  9:      37611          XT-PIC  uhci_hcd, yenta
 10:       2751          XT-PIC  eth0, VIA8233
 11:          2          XT-PIC  uhci_hcd, ohci1394
 12:      26168          XT-PIC  i8042
 14:       6354          XT-PIC  ide0
 15:      23028          XT-PIC  ide1
NMI:          0
LOC:    2242065
ERR:         43
MIS:          0
Code:
cat /proc/ioports
0000-001f : dma1
0020-0021 : pic1
0040-005f : timer
0060-006f : keyboard
0070-0077 : rtc
0080-008f : dma page reg
00a0-00a1 : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : ide1
01f0-01f7 : ide0
0376-0376 : ide1
03c0-03df : vesafb
03f6-03f6 : ide0
0cf8-0cff : PCI conf1
1000-10ff : 0000:00:06.0
  1000-10ff : 8139too
1400-14ff : 0000:00:11.5
  1400-14ff : VIA8233
1c00-1c1f : 0000:00:10.0
  1c00-1c1f : uhci_hcd
1c20-1c3f : 0000:00:10.1
  1c20-1c3f : uhci_hcd
1c40-1c4f : 0000:00:11.1
  1c40-1c47 : ide0
  1c48-1c4f : ide1
c000-c403 : PCI CardBus #02
c800-cc03 : PCI CardBus #02
Code:
cat /proc/pci
PCI devices found:
  Bus  0, device   0, function  0:
    Host bridge: VIA Technologies, Inc. P/KN266 Host Bridge (rev 0).
      Master Capable.  Latency=8.
      Prefetchable 32 bit memory at 0xec000000 [0xefffffff].
  Bus  0, device   1, function  0:
    PCI bridge: VIA Technologies, Inc. VT8633 [Apollo Pro266 AGP] (rev 0).
      Master Capable.  No bursts.  Min Gnt=12.
  Bus  0, device   5, function  0:
    CardBus bridge: Ricoh Co Ltd RL5c475 (rev 184).
      IRQ 9.
      Master Capable.  Latency=168.  Max Lat=5.
      Non-prefetchable 32 bit memory at 0xe2000000 [0xe2000fff].
  Bus  0, device   5, function  1:
    FireWire (IEEE 1394): Ricoh Co Ltd R5C551 IEEE 1394 Controller (rev 0).
      IRQ 11.
      Master Capable.  Latency=64.  Min Gnt=2.Max Lat=4.
      Non-prefetchable 32 bit memory at 0xe8000000 [0xe80007ff].
  Bus  0, device   6, function  0:
    Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 16).
      IRQ 10.
      Master Capable.  Latency=64.  Min Gnt=32.Max Lat=64.
      I/O at 0x1000 [0x10ff].
      Non-prefetchable 32 bit memory at 0xe8000800 [0xe80008ff].
  Bus  0, device  16, function  0:
    USB Controller: VIA Technologies, Inc. USB (rev 128).
      IRQ 9.
      Master Capable.  Latency=64.
      I/O at 0x1c00 [0x1c1f].
  Bus  0, device  16, function  1:
    USB Controller: VIA Technologies, Inc. USB (#2) (rev 128).
      IRQ 11.
      Master Capable.  Latency=64.
      I/O at 0x1c20 [0x1c3f].
  Bus  0, device  16, function  3:
    USB Controller: VIA Technologies, Inc. USB 2.0 (rev 130).
      IRQ 7.
      Master Capable.  Latency=64.
      Non-prefetchable 32 bit memory at 0xe8000c00 [0xe8000cff].
  Bus  0, device  17, function  0:
    ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge (rev 0).
  Bus  0, device  17, function  1:
    IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT8233/A/C/VT8235 PIPC Bus Master IDE (rev 6).
      IRQ 9.
      Master Capable.  Latency=64.
      I/O at 0x1c40 [0x1c4f].
  Bus  0, device  17, function  5:
    Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235 AC97 Audio Controller (rev 80).
      IRQ 10.
      I/O at 0x1400 [0x14ff].
  Bus  1, device   0, function  0:
    VGA compatible controller: S3 Inc. VT8375 [ProSavage8 KM266/KL266] (rev 0).
      IRQ 9.
      Master Capable.  Latency=64.  Min Gnt=4.Max Lat=255.
      Non-prefetchable 32 bit memory at 0xe8100000 [0xe817ffff].
      Prefetchable 32 bit memory at 0xf0000000 [0xf7ffffff].
  Bus  2, device   0, function  0:
    Ethernet controller: PCI device 168c:0013 (rev 1).
      IRQ 9.
      Master Capable.  No bursts.  Min Gnt=10.Max Lat=28.
      Non-prefetchable 32 bit memory at 0xe2010000 [0xe2004fff].
Code:
 from /var/messages
...
Dec 19 10:00:59 amd kernel: PCI: Failed to allocate resource 0(e2010000-e2004fff) for 0000:02:00.0
Dec 19 10:00:59 amd pci.agent[3247]: ... no modules for PCI slot 0000:02:00.0
...
 
Old 12-19-2004, 10:30 AM   #8
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
I think, I've found why That's a driver problem
http://variant.ch/phpwiki/SMC2635W%20Linux%20Driver
http://mandrakeusers.org/index.php?showtopic=20958
http://www.hpl.hp.com/personal/Jean_...1b.html#ADMtek
I hope this time this will work

Oliv'
 
Old 12-19-2004, 10:37 AM   #9
grcore
Member
 
Registered: Nov 2004
Distribution: Mandriva + kernel 2.6.15
Posts: 38

Original Poster
Rep: Reputation: 15
I am so sorry, I mistyped the card serial number.

its a SMC2536W-AG (not 2635).

It has an atheros chipset. The madifi drivers work fine in my buddies laptop.

I really appreciate the help, I am sorry about my mistake!!

G
 
Old 12-19-2004, 10:39 AM   #10
grcore
Member
 
Registered: Nov 2004
Distribution: Mandriva + kernel 2.6.15
Posts: 38

Original Poster
Rep: Reputation: 15
MCC Reports:
Code:
Vendor: ‎Atheros Communications Inc.
Bus: ‎PCI
Bus identification: ‎168c:13:1113:ee00
Location on the bus: ‎2:0:0
Description: ‎AR5213 802.11a/b/g Wireless Adapter
Module: ‎unknown
Media class: ‎NETWORK_ETHERNET
 
Old 12-19-2004, 10:44 AM   #11
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Dont' worry
If it works, that's great

Oliv'
 
Old 12-19-2004, 10:48 AM   #12
grcore
Member
 
Registered: Nov 2004
Distribution: Mandriva + kernel 2.6.15
Posts: 38

Original Poster
Rep: Reputation: 15
Thanks for your time, It is really appreciated.
I suppose some day I will get it working.

I tried reserving the memory address space for the card, but that does not seem to work either.

If you have any other suggestions, its appreciated!

Thanks again

G
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem to install RALINK RT2500 Cardbus card jenser Linux - Hardware 4 02-15-2005 01:34 AM
Reserve memory region for Cardbus card. grcore Linux - Hardware 0 12-17-2004 06:31 AM
xircom cardbus IBM laptop FEDORA problem mla Linux - Hardware 21 02-19-2004 02:54 PM
pcmcia Xircom cardbus problem on FEDORA mla Fedora 1 02-19-2004 02:43 PM
Edimax Cardbus CIS problem debjan Linux - Networking 0 08-17-2003 06:54 AM


All times are GMT -5. The time now is 08:02 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration