JMB38x Card reader and Debian Lenny

Discussion in 'Linux' started by TontonSimon, Sep 13, 2008.

  1. TontonSimon

    TontonSimon

    Joined:
    Sep 13, 2008
    Messages:
    2
    Likes Received:
    0
    I bought an aspire one 150 (bios v0.3114)
    I installed a Debian lenny with a 2.6.26-1-686 kernel.
    Everything work perfectly else the card reader.
    I can't use the card reader even with jmb38x_d3e.sh script.
    I tried setpci -d 197b:2381 AE=47 in /etc/rc.local

    after doing : modprobe pciehp pciehp_force=1
    dmesg :
    Code:
    [ 6005.768954] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
    [ 6005.782136] pciehp: HPC vendor_id 8086 device_id 27d0 ss_vid 0 ss_did 0
    [ 6005.786137] Load service driver hpdriver on pcie device 0000:00:1c.0:pcie02
    [ 6005.786137] pciehp: HPC vendor_id 8086 device_id 27d2 ss_vid 0 ss_did 0
    [ 6006.793321] pciehp: Device 0000:02:00.0 already exists at 2:0, cannot hot-add
    [ 6006.793346] pciehp: Cannot add device 0x2:0
    [ 6007.797388] Load service driver hpdriver on pcie device 0000:00:1c.1:pcie02
    [ 6007.797460] pciehp: HPC vendor_id 8086 device_id 27d4 ss_vid 0 ss_did 0
    [ 6008.801838] pciehp: Device 0000:03:00.0 already exists at 3:0, cannot hot-add
    [ 6008.801863] pciehp: Cannot add device 0x3:0
    [ 6009.812025] Load service driver hpdriver on pcie device 0000:00:1c.2:pcie02
    [ 6009.812098] pciehp: HPC vendor_id 8086 device_id 27d6 ss_vid 0 ss_did 0
    [ 6009.812196] pciehp: pci_hp_register failed with error -17
    [ 6009.812211] pciehp: Failed to register slot because of name collision. Try 'pciehp_slot_with_bus' module option.
    [ 6009.812228] pciehp: pciehp: slot initialization failed
    [ 6009.812344] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
    
    pciehp_slot_with_bus option makes notebook freeze

    What can I do ?
    Thanks for help.
     
    TontonSimon, Sep 13, 2008
    #1
  2. TontonSimon

    yodersj

    Joined:
    Aug 21, 2008
    Messages:
    72
    Likes Received:
    0
    Location:
    NC
    On Fedora 8 w/ a 2.6.25.x kernel I had system freezes until I blacklisted the 'jmb38x_ms' module. For me that was adding a file to '/etc/modprobe.d/' that only contained the line 'blacklist jmb38x_ms', but I don't know if Debian does it differently. A 2.6.26.x kernel is now available, but I haven't tried it yet.
     
    yodersj, Sep 13, 2008
    #2
  3. TontonSimon

    esaym

    Joined:
    Aug 7, 2008
    Messages:
    60
    Likes Received:
    0
    Yes you have to blacklist jmb38x_ms. Then the card will only work if it is inserted at boot time. Even more sadly, unmounting and remounting the card more than a couple of times seems to cause all kinds of wackiness with it :(
     
    esaym, Sep 14, 2008
    #3
  4. TontonSimon

    TontonSimon

    Joined:
    Sep 13, 2008
    Messages:
    2
    Likes Received:
    0
    Oups :X
    After blacklisted jmb38x_ms module it works.
    Sorry for didn't try it earlier...
    Thank you.
     
    TontonSimon, Sep 14, 2008
    #4
  5. TontonSimon

    yodersj

    Joined:
    Aug 21, 2008
    Messages:
    72
    Likes Received:
    0
    Location:
    NC
    I can get mine to work without having a card inserted at boot. Though you do have to insert, pause, eject, pause a bit longer, then re-insert for the very first card. Following some other things here, what I've done is:

    http://fedoraproject.org/wiki/Acer_Aspire_One
    Code:
    cat > /etc/modprobe.d/blacklist-msreader <<EOF
    blacklist jmb38x_ms
    EOF
    Help udev with the cardreader (OpenSUSE tip)
    Code:
    cat > /etc/udev/rules.d/81-mmc-config.rules <<EOF
    KERNEL=="mmc0", RUN+="/sbin/setpci -d 197b:2381 AE=47"
    KERNEL=="mmc1", RUN+="/sbin/setpci -d 197b:2382 AE=47"
    EOF
    viewtopic.php?f=5&t=2130&start=20#p18817
    Code:
    cat > /etc/modprobe.d/aa1-reader <<EOF
    options pciehp pciehp_force=1
    EOF
    Got most of the following at Petaramesh's and tweaked with things posted here. '/etc/rc.d/rc.local' additions:
    Code:
    modprobe pciehp pciehp_force=1
    modprobe sdhci
    
    # Right card reader
    setpci -d 197b:2381 AE=47
    # Left card reader
    setpci -d 197b:2382 AE=47
    # F9 tip
    setpci -d 197b:2383 AE=47
    setpci -d 197b:2384 AE=47
    # Leave script off for now
    #nice /usr/local/sbin/jmb38x_d3e.sh &
    As you can see I'm not running the jmb38x_d3e.sh script yet.
     
    yodersj, Sep 14, 2008
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.