Scientific Linux Forum.org



  Reply to this topicStart new topicStart Poll

> Ricoh R5U880 USB SD card reader
tux99
 Posted: Nov 5 2015, 05:03 AM
Quote Post


SLF Moderator
********

Group: Moderators
Posts: 1276
Member No.: 224
Joined: 28-May 11









Does anybody know how to get a USB connected Ricoh R5U880 SD card reader working on SL6.7?

lsusb is not showing it at all, even though it's supposed to be Linux compatible and it's definitely working as the BIOS sees it.

http://www.linux-hardware-guide.com/2015-07-11-ricoh-r5u880-card-reader-usb

I can't really try a newer kernel on this box, for various reasons it has to run the official SL kernel.

--------------------
My personal SL6 repository, specialized in audio/video software: http://pkgrepo.linuxtech.net/el6/
(can be used together with EPEL and ELRepo repositories) - repository mirror: http://linuxsoft.cern.ch/linuxtech/el6/
PM
^
toracat
 Posted: Nov 5 2015, 01:33 PM
Quote Post


SLF Geek
****

Group: Members
Posts: 303
Member No.: 11
Joined: 10-April 11









I'm sure you have checked these already but ...when you plugin or unplug the device, nothing shows up in /var/log/messages? Tried moving to other ports?

--------------------
ELRepo: repository specializing in hardware support for EL
PMUsers Website
^
tux99
 Posted: Nov 5 2015, 02:08 PM
Quote Post


SLF Moderator
********

Group: Moderators
Posts: 1276
Member No.: 224
Joined: 28-May 11









QUOTE (toracat @ Nov 5 2015, 02:33 PM)
I'm sure you have checked these already but ...when you plugin or unplug the device, nothing shows up in /var/log/messages?

Correct, there's nothing is /var/log/messages.

QUOTE
Tried moving to other ports?

Unfortunately I can't do that as this is actually a mini-PCIe card which makes use of the USB connection on the mini-PCIe slot and this PC has only one mini-PCIe slot (in case you are not aware of it, a mini-PCIe slot provides both a PCIe x1 and a USB connection, some cards use the USB connection while others use the PCIe connection).

This is the card reader I'm trying to get working:
http://www.ebay.com/itm/271824297463

I have a feeling that for some reason the Ricoh controller chip is blacklisted in the SL6 kernel, as I found this Fedora bug report about it from the time when RHEL6.0 was being readied, but I'm not sure where to look to see whether this is really the case:
https://bugzilla.redhat.com/show_bug.cgi?id=508324

This post has been edited by tux99: Nov 5 2015, 02:09 PM

--------------------
My personal SL6 repository, specialized in audio/video software: http://pkgrepo.linuxtech.net/el6/
(can be used together with EPEL and ELRepo repositories) - repository mirror: http://linuxsoft.cern.ch/linuxtech/el6/
PM
^
tux99
 Posted: Nov 5 2015, 03:26 PM
Quote Post


SLF Moderator
********

Group: Moderators
Posts: 1276
Member No.: 224
Joined: 28-May 11









Hmm, I did a few greps through the SL kernel sources and through all files in /etc but I can't find any reference to the USB ID of this chip (05ca:1880, tried a few variations too, only major and only minor nr. and case insensitive).

Unfortunately I know next to nothing about how the Linux USB subsystem works, does anyone know where I should be looking to find this device either blacklisted or supported?

This post has been edited by tux99: Nov 5 2015, 03:27 PM

--------------------
My personal SL6 repository, specialized in audio/video software: http://pkgrepo.linuxtech.net/el6/
(can be used together with EPEL and ELRepo repositories) - repository mirror: http://linuxsoft.cern.ch/linuxtech/el6/
PM
^
helikaon
 Posted: Nov 5 2015, 03:27 PM
Quote Post


SLF Administrator
*******

Group: Admins
Posts: 836
Member No.: 4
Joined: 8-April 11









hmm,
which kernel driver is this suppose to use? do you know?

did you try to have a look at your kernel config?

like eg.

CODE

cat /boot/config-2.6.32-504.23.4.el6.x86_64 | grep -i ext4
CONFIG_EXT4_FS=m
CONFIG_EXT4_FS_XATTR=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y
# CONFIG_EXT4_DEBUG is not set


if kernel does not have the needed module turned on or doesn't have it at all, then i believe, it will behave as you say - you see it in bios, but nothing happens on the OS level ..

Solution would be to find the driver and compile it into the existing kernel ..

cheers smile.gif

--------------------
PMEmail Poster
^
helikaon
 Posted: Nov 5 2015, 03:37 PM
Quote Post


SLF Administrator
*******

Group: Admins
Posts: 836
Member No.: 4
Joined: 8-April 11









it looks like there is various mmc turned on, though some are not - not sure if it has a impact .. and also, if i run this on the SL 7 kernel config, i get more hits, so maybe the SL6 kernel just lack module for it?

CODE

uname -a
Linux orionis 2.6.32-504.23.4.el6.x86_64 #1 SMP Tue Jun 9 11:55:03 CDT 2015 x86_64 x86_64 x86_64 GNU/Linux


cat config-2.6.32-504.23.4.el6.x86_64 | grep -i mmc
CONFIG_PCI_MMCONFIG=y
CONFIG_MMC=m
# CONFIG_MMC_DEBUG is not set
# CONFIG_MMC_UNSAFE_RESUME is not set
# MMC/SD/SDIO Card Drivers
CONFIG_MMC_BLOCK=m
CONFIG_MMC_BLOCK_BOUNCE=y
# CONFIG_MMC_TEST is not set
# MMC/SD/SDIO Host Controller Drivers
CONFIG_MMC_SDHCI=m
CONFIG_MMC_SDHCI_PCI=m
CONFIG_MMC_RICOH_MMC=y
CONFIG_MMC_SDHCI_PLTFM=m
# CONFIG_MMC_WBSD is not set
# CONFIG_MMC_AT91 is not set
# CONFIG_MMC_ATMELMCI is not set
CONFIG_MMC_TIFM_SD=m
CONFIG_MMC_SDRICOH_CS=m
CONFIG_MMC_CB710=m
CONFIG_MMC_VIA_SDMMC=m
CONFIG_MMC_REALTEK_PCI=m

--------------------
PMEmail Poster
^
burakkucat
 Posted: Nov 5 2015, 04:52 PM
Quote Post


SLF Administrator
****

Group: Admins
Posts: 205
Member No.: 14
Joined: 10-April 11









I appreciate that you must use the SL distributed kernel but until we know what driver is required for that device, it is difficult to know how to proceed.

As a purely temporary measure, would you be able to install kernel-ml? If that would be possible, scrutinisation of the dmesg file may then show the device and the corresponding driver that is being used.

--------------------
user posted image 100% Linux and, previously, Unix. Co-founder of the ELRepo Project.
PMUsers Website
^
tux99
 Posted: Nov 5 2015, 08:05 PM
Quote Post


SLF Moderator
********

Group: Moderators
Posts: 1276
Member No.: 224
Joined: 28-May 11









I will try to temporarily install kernel-ml tonight for a test to see if it works with that and hopefully to figure out what module it uses.

I don't understand why I can't find anywhere (neither on the web nor by grepping through the kernel source) an indication about which module is necessary for this specific USB ID. mad.gif

As I said I'm clueless about the Linux USB subsystem sad.gif, as I never had issues with USB devices so far.

This post has been edited by tux99: Nov 5 2015, 08:10 PM

--------------------
My personal SL6 repository, specialized in audio/video software: http://pkgrepo.linuxtech.net/el6/
(can be used together with EPEL and ELRepo repositories) - repository mirror: http://linuxsoft.cern.ch/linuxtech/el6/
PM
^
tux99
 Posted: Nov 5 2015, 08:44 PM
Quote Post


SLF Moderator
********

Group: Moderators
Posts: 1276
Member No.: 224
Joined: 28-May 11









It gets weirder, this is the official Linux USB ID list and this particular product ID (1880) is not even in there:
http://www.linux-usb.org/usb.ids

QUOTE
# Version: 2015.09.28
# Date:    2015-09-28 20:34:09
...
05ca  Ricoh Co., Ltd
...
1870  Webcam 1000
18b0  Sony Vaio Integrated Webcam
...


So how come it's working for people (for example with Fedora 10 as mentioned in the bugzilla link)? huh.gif

This post has been edited by tux99: Nov 5 2015, 08:47 PM

--------------------
My personal SL6 repository, specialized in audio/video software: http://pkgrepo.linuxtech.net/el6/
(can be used together with EPEL and ELRepo repositories) - repository mirror: http://linuxsoft.cern.ch/linuxtech/el6/
PM
^
toracat
 Posted: Nov 5 2015, 09:30 PM
Quote Post


SLF Geek
****

Group: Members
Posts: 303
Member No.: 11
Joined: 10-April 11









That ID list may not be complete/perfect. I just spotted at least 2 USB devices on my systems (that are working) that are not on that list.

--------------------
ELRepo: repository specializing in hardware support for EL
PMUsers Website
^
tux99
 Posted: Nov 5 2015, 11:41 PM
Quote Post


SLF Moderator
********

Group: Moderators
Posts: 1276
Member No.: 224
Joined: 28-May 11









Tried kernel-ml from elrepo (4.3.0), and there is no difference, still no sign of the adapter in dmesg or in lsusb. unsure.gif

I'm going to try the card in a different PC now.

--------------------
My personal SL6 repository, specialized in audio/video software: http://pkgrepo.linuxtech.net/el6/
(can be used together with EPEL and ELRepo repositories) - repository mirror: http://linuxsoft.cern.ch/linuxtech/el6/
PM
^
burakkucat
 Posted: Nov 6 2015, 12:05 AM
Quote Post


SLF Administrator
****

Group: Admins
Posts: 205
Member No.: 14
Joined: 10-April 11









Hmm . . . So it does appear to belong to the class of devices listed under the heading Unsupported. unsure.gif

--------------------
user posted image 100% Linux and, previously, Unix. Co-founder of the ELRepo Project.
PMUsers Website
^
tux99
 Posted: Nov 6 2015, 12:57 AM
Quote Post


SLF Moderator
********

Group: Moderators
Posts: 1276
Member No.: 224
Joined: 28-May 11









QUOTE (burakkucat @ Nov 6 2015, 01:05 AM)
Hmm . . . So it does appear to belong to the class of devices listed under the heading Unsupported.   unsure.gif


This is a very tenacious cat, she's not giving up so fast. wink.gif


Update:
I got the card working in SL (but in a different PC)!!

http://dl.dropbox.com/u/2835777/egyptian.gif http://dl.dropbox.com/u/2835777/egyptian.gif http://dl.dropbox.com/u/2835777/egyptian.gif http://dl.dropbox.com/u/2835777/egyptian.gif http://dl.dropbox.com/u/2835777/egyptian.gif http://dl.dropbox.com/u/2835777/egyptian.gif

This is the mobo I tested it on now where it's working fine:
http://scientificlinuxforum.org/index.php?showtopic=415&hl=



Now I only have to figure out why it's not working on the PC where I actually wanted to use it. sad.gif

This post has been edited by tux99: Nov 6 2015, 12:58 AM

--------------------
My personal SL6 repository, specialized in audio/video software: http://pkgrepo.linuxtech.net/el6/
(can be used together with EPEL and ELRepo repositories) - repository mirror: http://linuxsoft.cern.ch/linuxtech/el6/
PM
^
burakkucat
 Posted: Nov 6 2015, 05:16 PM
Quote Post


SLF Administrator
****

Group: Admins
Posts: 205
Member No.: 14
Joined: 10-April 11









Congratulations! biggrin.gif

I wonder which driver is required for that device? (Feline curiosity.)

--------------------
user posted image 100% Linux and, previously, Unix. Co-founder of the ELRepo Project.
PMUsers Website
^
tux99
 Posted: Nov 6 2015, 08:39 PM
Quote Post


SLF Moderator
********

Group: Moderators
Posts: 1276
Member No.: 224
Joined: 28-May 11









It seems it doesn't require any special driver, just the generic usb-storage module (that's probably why I wasn't able to find any specific info for this Ricoh chip on the web or in the sources). This is what I found in dmesg:

CODE

usb 3-3: new high speed USB device number 2 using ehci_hcd
usb 3-3: New USB device found, idVendor=05ca, idProduct=1880
usb 3-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 3-3: Product: USB2.0-FLASH Media
usb 3-3: Manufacturer: RICOH
usb 3-3: SerialNumber: R5U880-00003
usb 3-3: configuration #1 chosen from 1 choice
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
usb-storage: device scan complete
scsi 0:0:0:0: Direct-Access     RICOH    R5U880FlashMedia 0000 PQ: 0 ANSI: 2
sd 0:0:0:0: [sdb] 16121856 512-byte logical blocks: (8.25 GB/7.68 GiB)
sd 0:0:0:0: [sdb] Write Protect is off
sd 0:0:0:0: [sdb] Mode Sense: 0b 00 00 08
sd 0:0:0:0: [sdb] Assuming drive cache: write through
sd 0:0:0:0: [sdb] Assuming drive cache: write through
sdb: sdb1
sd 0:0:0:0: [sdb] Assuming drive cache: write through
sd 0:0:0:0: [sdb] Attached SCSI removable disk


As can be seen above I currently have an 8 GB SD Card with one partition inserted in this adapter.


By the way, the cat pictured in my avatar came back home earlier with bundles of white fur stuck between her front claws and moments earlier I had heard wild cat fight noises outside. I better don't get on the wrong side of her... unsure.gif

This post has been edited by tux99: Nov 6 2015, 08:44 PM

--------------------
My personal SL6 repository, specialized in audio/video software: http://pkgrepo.linuxtech.net/el6/
(can be used together with EPEL and ELRepo repositories) - repository mirror: http://linuxsoft.cern.ch/linuxtech/el6/
PM
^
burakkucat
 Posted: Nov 6 2015, 09:00 PM
Quote Post


SLF Administrator
****

Group: Admins
Posts: 205
Member No.: 14
Joined: 10-April 11









Thank you. That all makes sense. smile.gif

--------------------
user posted image 100% Linux and, previously, Unix. Co-founder of the ELRepo Project.
PMUsers Website
^
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll