LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-10-2013, 10:18 PM   #1
seskanda
Member
 
Registered: Jun 2007
Posts: 68

Rep: Reputation: 0
Need to get card reader working


I have Slackware 13.37 64-bit, and the built-in card reader on my HP Pavilion DV4 laptop does not work. It is JMB38x by JMicron and I need it to read SD cards at least. I already e-mailed JMicron tech support the best they could do is give me two drivers, one for XD/MS/MS-Pro and another for SD/MMC. I asked JMicron if i'm supposed to install both of them or just one, but i got no response.

So, i decided to install each of them starting with the XD driver first, that seems to install fine. The INSTALL file says to run just make, then make install. However, the SD driver needs me to run make header_install, and that gives me *** [header_install] Error 1. Then, i continued with make, and it gives some warnings. Oddly, make install does not show any errors. After restarting, it still does not read an SD card. I'm attaching logs for the make header_install and make commands. Any ideas what to do next?

Thanks in advance
Attached Files
File Type: txt make_header install.txt (495 Bytes, 54 views)
File Type: txt make.txt (3.0 KB, 36 views)
 
Old 12-11-2013, 07:23 AM   #2
unclejed613
Member
 
Registered: Mar 2009
Posts: 352

Rep: Reputation: 32
adding or compiling drivers must be done as root.

is there a configure script? check in the "root" directory of the source code file tree, and see if there's a file with the name "configure". that script (if it's there) checks for the necessary libraries, etc... and sets build options before you continue with "make".

if it's there, run it with a "dot slash"

Code:
./configure
otherwise, if you're sure the drivers were built correctly, you may need to add them with modprobe. it's been a while since i've had to use modprobe, so i recommend you familiarize yourself with it:
Code:
man modprobe
or
Code:
modprobe --help

Last edited by unclejed613; 12-11-2013 at 07:47 AM.
 
Old 12-11-2013, 06:28 PM   #3
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,791

Rep: Reputation: 427Reputation: 427Reputation: 427Reputation: 427Reputation: 427
I'm running 32-bit Fedora 19 with kernel 3.10.5-201.f19.i686 on my Acer Aspire One ZG5 with the JMB385 multi-card reader. It's using the jmb38x_ms module, which is apparently part of the Fedora build. Seems to me it had problems booting off an xD card (haven't done that in quite a while), but works fine with SD and SDHC cards.
 
Old 12-11-2013, 11:30 PM   #4
seskanda
Member
 
Registered: Jun 2007
Posts: 68

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by unclejed613 View Post
adding or compiling drivers must be done as root.

is there a configure script? check in the "root" directory of the source code file tree, and see if there's a file with the name "configure". that script (if it's there) checks for the necessary libraries, etc... and sets build options before you continue with "make".

if it's there, run it with a "dot slash"

Code:
./configure
Im logged in root account, and no configure file or script here. i need to compile the drivers first, so i fail to see how modprobe can help. I may install a 32 bit linux and see how that goes. Oddly, if SD card is inserted during bootup, it seems to work, but that's hardly a workaround.

Last edited by seskanda; 12-12-2013 at 12:38 AM.
 
Old 12-12-2013, 12:31 AM   #5
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
"Oddly, if SD card is inserted during bootup, it seems to work" This means there is no driver problem. The problem is that a builtin cardreader is only scanned when the whole device is initialized. When a card is later inserted this does not cause a kernel event -hence the card doesn't get recognized. It might help to use the old 'scanluns' script.
 
Old 12-12-2013, 04:10 PM   #6
seskanda
Member
 
Registered: Jun 2007
Posts: 68

Original Poster
Rep: Reputation: 0
Well, i see some SD card drivers loaded when i run modprobe -l, namely: kernel/drivers/mmc/core/mmc_core.ko, kernel/drivers/mmc/card/mmc_block.ko, kernel/drivers/mmc/card/sdio_uart.ko, kernel/drivers/mmc/host/sdhci.ko, kernel/drivers/mmc/host/sdhci-pci.ko, and kernel/drivers/mmc/host/sdhci_platform.ko. This is the case whether or not i insert an SD card during bootup.

But these could all be a generic SD card driver that does not support JMB38x. When can be done to cause JMB38x card reader device to be initialized after bootup? How can i make it so when SD card is inserted it makes a kernel event happen? What is 'scanluns'? The best i can find about that is something to do with SCSI.
 
Old 12-13-2013, 08:29 AM   #7
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,791

Rep: Reputation: 427Reputation: 427Reputation: 427Reputation: 427Reputation: 427
An often-necessary extra step from the early days of the AOA150:
Code:
sudo modprobe pciehp pciehp_force=1
Don't know if it will help, but it shouldn't do any harm
 
Old 12-14-2013, 08:06 PM   #8
seskanda
Member
 
Registered: Jun 2007
Posts: 68

Original Poster
Rep: Reputation: 0
Unfortunately, sudo modprobe pciehp pciehp_force=1, is unable to make the JMB38x read an SD card when its inserted. Any other ideas or suggestions would be great. I've noticed live distros like knoppix also do not work with this card reader either.
 
Old 12-14-2013, 10:32 PM   #9
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,791

Rep: Reputation: 427Reputation: 427Reputation: 427Reputation: 427Reputation: 427
I'm running out of ideas, but you might give Fedora a try.
 
Old 12-15-2013, 01:18 AM   #10
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Card insertion does not cause any hardware event which can be detected. The only way to detect a card is by polling.
 
Old 12-15-2013, 01:56 AM   #11
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Your first attachment is basically useless.

The second one shows a few .ko files that were created. These are kernel modules aka drivers. Although if there's no make install option. Or if there's no kernel versioning and your kernel requires it, they may be difficult to use. You could modprobe driver[.ko] and see if that works for you.

# cd /root/jmb_38X_sdxcUHS_patch/jmb38x_sdxc/core/
# modprobe mmc_block
# modprobe sdio_uart
# modprobe mmc_core
# modprobe cb710-mmc
# modprobe sdhci-pci
# modprobe sdhci

If there was a make install and it worked you might be able to skip the cd. Although you might need a depmod -a to merge the modules into the list. The sequence might differ, but the modules should show in lsmod when loaded. Or some other message on the CLI saying you don't have matching hardware when you try to modprobe. Note that # implies as root.
 
Old 12-16-2013, 10:48 AM   #12
seskanda
Member
 
Registered: Jun 2007
Posts: 68

Original Poster
Rep: Reputation: 0
I'm going to attach the results of make install in case something is in there that might be useful. I did a modprobe on each of those drivers listed one by one, but that did not make Slackware detect an SD card when it's inserted. I'm not sure how to use depmod -a to merge the drivers, some help here would be great.

However, i do see the drivers present when i run lsmod, if that means anything. If drivers are loaded, what is preventing it from recognizing the card as its inserted? How can i cause a hardware event to occur when SD card goes in the reader? I installed Slackware 14.1 on a Dell Vostro 3450, and card reader works when SD card is put in it fine. And just what is polling?
Attached Files
File Type: txt make install.txt (1.1 KB, 30 views)
 
Old 12-16-2013, 08:42 PM   #13
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
I'm not quite sure what you're doing there with the install commands. They "should" exist with the .ko extension for 2.6+ kernels, including 3.x series. As least where your install commands seem to place them anyway. When you plug in or power on or remove the device, something should log the event in dmesg or /var/log/syslog. Depending on distro. Live discs might avoid writing logs, but most other distros or flavours do not.
 
Old 12-17-2013, 09:56 PM   #14
seskanda
Member
 
Registered: Jun 2007
Posts: 68

Original Poster
Rep: Reputation: 0
Well, i solved the problem it had nothing to do with any settings within Slackware at all. The issue was in the BIOS of the HP Pavilion DV4 laptop. There is a power saver setting for card reader; i disabled it, and now it detects SD card once its inserted. Thanks everyone for the help

Last edited by seskanda; 12-17-2013 at 09:58 PM.
 
  


Reply



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
Sony M2 card reader is not working. memodee Linux - Laptop and Netbook 1 03-21-2009 03:20 AM
sd/mmc card reader not working wisdomvk Linux - Laptop and Netbook 2 03-15-2007 12:51 AM
SD Card reader not working pburn Ubuntu 3 11-07-2006 04:26 PM
Card Reader + Udev not working bingo Slackware 16 10-27-2006 08:07 PM
card reader almost working, just need a bit more help peterrus Linux - Hardware 1 07-14-2006 05:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:25 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration