Find the answer to your Linux question:
Results 1 to 3 of 3
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2004
    Posts
    10

    Cardbus memory problem...(SOLVED!)


    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 (SMC2536W-AG, Atheros chipset) 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

    I have turned off PnP-OS in the BIOS, and there are no BIOS updates for this notebook.

    Any suggestions?

    When I insert the card, dmesg reports:
    Code:
    PCI: Failed to allocate resource 0(e2010000-e2004fff) for 0000:02:00.0
    lspci shows for the controller and card:
    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&#58; Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
            Latency&#58; 168
            Interrupt&#58; pin A routed to IRQ 9
            Region 0&#58; Memory at e2000000 &#40;32-bit, non-prefetchable&#41; &#91;size=4K&#93;
            Bus&#58; primary=00, secondary=02, subordinate=05, sec-latency=176
            Memory window 0&#58; e2001000-e2002000 &#40;prefetchable&#41;
            Memory window 1&#58; e2003000-e2004000
            I/O window 0&#58; 0000c000-0000c403
            I/O window 1&#58; 0000c800-0000cc03
            BridgeCtl&#58; Parity- SERR- ISA- VGA- MAbort- >Reset- 16bInt- PostWrite+
    
    
    
    02&#58;00.0 Ethernet controller&#58; Unknown device 168c&#58;0013 &#40;rev 01&#41;
            Subsystem&#58; Accton Technology Corporation&#58; Unknown device ee00
            Control&#58; I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
            Status&#58; Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
            Interrupt&#58; pin A routed to IRQ 9
            Region 0&#58; &#91;virtual&#93; Memory at e2010000 &#40;32-bit, non-prefetchable&#41; &#91;disabled&#93;
            Capabilities&#58; <available only to root>
    /proc/iomem reports:
    Code:
    00000000-0009f7ff &#58; System RAM
    0009f800-0009ffff &#58; reserved
    000a0000-000bffff &#58; Video RAM area
    000c0000-000c7fff &#58; Video ROM
    000ce000-000cffff &#58; reserved
    000f0000-000fffff &#58; System ROM
    00100000-1f6effff &#58; System RAM
      00100000-002c6274 &#58; Kernel code
      002c6275-0039a8ff &#58; Kernel data
    1f6f0000-1f6fbfff &#58; ACPI Tables
    1f6fc000-1f6fffff &#58; ACPI Non-volatile Storage
    1f700000-1f7fffff &#58; reserved
    a0000000-a0000fff &#58; card services
    e2000000-e2000fff &#58; 0000&#58;00&#58;05.0
      e2000000-e2000fff &#58; yenta_socket
    e2001000-e2002fff &#58; PCI CardBus #02
    e2003000-e2004fff &#58; PCI CardBus #02
    e8000000-e80007ff &#58; 0000&#58;00&#58;05.1
      e8000000-e80007ff &#58; ohci1394
    e8000800-e80008ff &#58; 0000&#58;00&#58;06.0
      e8000800-e80008ff &#58; 8139too
    e8000c00-e8000cff &#58; 0000&#58;00&#58;10.3
      e8000c00-e8000cff &#58; ehci_hcd
    e8100000-e81fffff &#58; PCI Bus #01
      e8100000-e817ffff &#58; 0000&#58;01&#58;00.0
    ec000000-efffffff &#58; 0000&#58;00&#58;00.0
    f0000000-f7ffffff &#58; PCI Bus #01
      f0000000-f7ffffff &#58; 0000&#58;01&#58;00.0
        f0000000-f06effff &#58; vesafb
    fffe0000-ffffffff &#58; reserved
    Here is the BIOS mem report from dmesg:
    Code:
    BIOS-provided physical RAM map&#58;
     BIOS-e820&#58; 0000000000000000 - 000000000009f800 &#40;usable&#41;
     BIOS-e820&#58; 000000000009f800 - 00000000000a0000 &#40;reserved&#41;
     BIOS-e820&#58; 00000000000ce000 - 00000000000d0000 &#40;reserved&#41;
     BIOS-e820&#58; 00000000000d8000 - 0000000000100000 &#40;reserved&#41;
     BIOS-e820&#58; 0000000000100000 - 000000001f6f0000 &#40;usable&#41;
     BIOS-e820&#58; 000000001f6f0000 - 000000001f6fc000 &#40;ACPI data&#41;
     BIOS-e820&#58; 000000001f6fc000 - 000000001f700000 &#40;ACPI NVS&#41;
     BIOS-e820&#58; 000000001f700000 - 000000001f800000 &#40;reserved&#41;
     BIOS-e820&#58; 00000000fffe0000 - 0000000100000000 &#40;reserved&#41;
    502MB LOWMEM available.
    /proc/interrupts:
    Code:
    /proc/interrupts
               CPU0
      0&#58;    2242210          XT-PIC  timer
      1&#58;       1902          XT-PIC  i8042
      2&#58;          0          XT-PIC  cascade
      7&#58;       3008          XT-PIC  ehci_hcd
      8&#58;          1          XT-PIC  rtc
      9&#58;      37611          XT-PIC  uhci_hcd, yenta
     10&#58;       2751          XT-PIC  eth0, VIA8233
     11&#58;          2          XT-PIC  uhci_hcd, ohci1394
     12&#58;      26168          XT-PIC  i8042
     14&#58;       6354          XT-PIC  ide0
     15&#58;      23028          XT-PIC  ide1
    NMI&#58;          0
    LOC&#58;    2242065
    ERR&#58;         43
    MIS&#58;          0
    /proc/ioports
    Code:
    0000-001f &#58; dma1
    0020-0021 &#58; pic1
    0040-005f &#58; timer
    0060-006f &#58; keyboard
    0070-0077 &#58; rtc
    0080-008f &#58; dma page reg
    00a0-00a1 &#58; pic2
    00c0-00df &#58; dma2
    00f0-00ff &#58; fpu
    0170-0177 &#58; ide1
    01f0-01f7 &#58; ide0
    0376-0376 &#58; ide1
    03c0-03df &#58; vesafb
    03f6-03f6 &#58; ide0
    0cf8-0cff &#58; PCI conf1
    1000-10ff &#58; 0000&#58;00&#58;06.0
      1000-10ff &#58; 8139too
    1400-14ff &#58; 0000&#58;00&#58;11.5
      1400-14ff &#58; VIA8233
    1c00-1c1f &#58; 0000&#58;00&#58;10.0
      1c00-1c1f &#58; uhci_hcd
    1c20-1c3f &#58; 0000&#58;00&#58;10.1
      1c20-1c3f &#58; uhci_hcd
    1c40-1c4f &#58; 0000&#58;00&#58;11.1
      1c40-1c47 &#58; ide0
      1c48-1c4f &#58; ide1
    c000-c403 &#58; PCI CardBus #02
    c800-cc03 &#58; PCI CardBus #02
    /proc/pci
    Code:
    PCI devices found&#58;
      Bus  0, device   0, function  0&#58;
        Host bridge&#58; VIA Technologies, Inc. P/KN266 Host Bridge &#40;rev 0&#41;.
          Master Capable.  Latency=8.
          Prefetchable 32 bit memory at 0xec000000 &#91;0xefffffff&#93;.
      Bus  0, device   1, function  0&#58;
        PCI bridge&#58; VIA Technologies, Inc. VT8633 &#91;Apollo Pro266 AGP&#93; &#40;rev 0&#41;.
          Master Capable.  No bursts.  Min Gnt=12.
      Bus  0, device   5, function  0&#58;
        CardBus bridge&#58; Ricoh Co Ltd RL5c475 &#40;rev 184&#41;.
          IRQ 9.
          Master Capable.  Latency=168.  Max Lat=5.
          Non-prefetchable 32 bit memory at 0xe2000000 &#91;0xe2000fff&#93;.
      Bus  0, device   5, function  1&#58;
        FireWire &#40;IEEE 1394&#41;&#58; Ricoh Co Ltd R5C551 IEEE 1394 Controller &#40;rev 0&#41;.
          IRQ 11.
          Master Capable.  Latency=64.  Min Gnt=2.Max Lat=4.
          Non-prefetchable 32 bit memory at 0xe8000000 &#91;0xe80007ff&#93;.
      Bus  0, device   6, function  0&#58;
        Ethernet controller&#58; Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ &#40;rev 16&#41;.
          IRQ 10.
          Master Capable.  Latency=64.  Min Gnt=32.Max Lat=64.
          I/O at 0x1000 &#91;0x10ff&#93;.
          Non-prefetchable 32 bit memory at 0xe8000800 &#91;0xe80008ff&#93;.
      Bus  0, device  16, function  0&#58;
        USB Controller&#58; VIA Technologies, Inc. USB &#40;rev 128&#41;.
          IRQ 9.
          Master Capable.  Latency=64.
          I/O at 0x1c00 &#91;0x1c1f&#93;.
      Bus  0, device  16, function  1&#58;
        USB Controller&#58; VIA Technologies, Inc. USB &#40;#2&#41; &#40;rev 128&#41;.
          IRQ 11.
          Master Capable.  Latency=64.
          I/O at 0x1c20 &#91;0x1c3f&#93;.
      Bus  0, device  16, function  3&#58;
        USB Controller&#58; VIA Technologies, Inc. USB 2.0 &#40;rev 130&#41;.
          IRQ 7.
          Master Capable.  Latency=64.
          Non-prefetchable 32 bit memory at 0xe8000c00 &#91;0xe8000cff&#93;.
      Bus  0, device  17, function  0&#58;
        ISA bridge&#58; VIA Technologies, Inc. VT8235 ISA Bridge &#40;rev 0&#41;.
      Bus  0, device  17, function  1&#58;
        IDE interface&#58; VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT8233/A/C/VT8235 PIPC Bus Master IDE &#40;rev 6&#41;.
          IRQ 9.
          Master Capable.  Latency=64.
          I/O at 0x1c40 &#91;0x1c4f&#93;.
      Bus  0, device  17, function  5&#58;
        Multimedia audio controller&#58; VIA Technologies, Inc. VT8233/A/8235 AC97 Audio Controller &#40;rev 80&#41;.
          IRQ 10.
          I/O at 0x1400 &#91;0x14ff&#93;.
      Bus  1, device   0, function  0&#58;
        VGA compatible controller&#58; S3 Inc. VT8375 &#91;ProSavage8 KM266/KL266&#93; &#40;rev 0&#41;.
          IRQ 9.
          Master Capable.  Latency=64.  Min Gnt=4.Max Lat=255.
          Non-prefetchable 32 bit memory at 0xe8100000 &#91;0xe817ffff&#93;.
          Prefetchable 32 bit memory at 0xf0000000 &#91;0xf7ffffff&#93;.
      Bus  2, device   0, function  0&#58;
        Ethernet controller&#58; PCI device 168c&#58;0013 &#40;rev 1&#41;.
          IRQ 9.
          Master Capable.  No bursts.  Min Gnt=10.Max Lat=28.
          Non-prefetchable 32 bit memory at 0xe2010000 &#91;0xe2004fff&#93;.
    Here is a snip from /var/messages
    Code:
    from /var/messages
    ...
    Dec 19 10&#58;00&#58;59 amd kernel&#58; PCI&#58; Failed to allocate resource 0&#40;e2010000-e2004fff&#41; for 0000&#58;02&#58;00.0
    Dec 19 10&#58;00&#58;59 amd pci.agent&#91;3247&#93;&#58; ... no modules for PCI slot 0000&#58;02&#58;00.0
    ...

  2. #2
    Just Joined!
    Join Date
    Dec 2004
    Posts
    10

    I think I found a patch that should work..

    I think I found a patch that should work, but I could use a little assistance with the actual patching process. I tried patching, but I really dont know what I am doing here.

    First, there are a few patches listed on the bug thread, do I apply them all? Or just the last one? I am not having much luck getting things right.

    I appreciate any help you can offer.

    Thanks

    g

  3. #3
    Just Joined!
    Join Date
    Dec 2004
    Posts
    10
    Apply Patch and recompile kernel:

    Problem solved!

    *** linux-2.4.25/drivers/pcmcia/yenta.c.old Wed Feb 18 13:36:31 2004
    --- linux-2.4.25/drivers/pcmcia/yenta.c Fri May 7 05:29:56 2004
    ***************
    *** 753,758 ****
    --- 753,767 ----

    start = config_readl(socket, offset) & mask;
    end = config_readl(socket, offset+4) | ~mask;
    + #if 1
    + if (!(type & IORESOURCE_IO) && (((end - start) < BRIDGE_SIZE_MIN) ||
    + (start & (end - start))))
    + {
    + printk(KERN_INFO "yenta %s: Preassigned resource start %lx end %lx too small or not aligned.\n", socket->dev->slot_name, start, end);
    + res->start = res->end = 0;
    + }
    + else
    + #endif
    if (start && end > start) {
    res->start = start;
    res->end = end;

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •