PDA

View Full Version : HP Pavilion dv6000 Ricoh Card Reader



wvn
24th August 2008, 06:51 AM
Hi everyone,

i am a satisfied Fedora 9 user and i am facing a small problem.

On my laptop i tuned everything to perfection and everything works except the Ricoh Card Reader (partially)

The reader can take SD-MS-MMC-XD

About XD i dont care but MS ( sony memory stick, pro or not) does not work

SD-MMC cards are auto mounted and shown

MS are not accepted nor i get any errors. Simply nothing happens.

Here is my /sbin/lspci -v :

...........

07:05.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (prog-if 10 [OHCI])
Subsystem: Hewlett-Packard Company Presario V6133CL
Flags: bus master, medium devsel, latency 64, IRQ 5
Memory at b8000000 (32-bit, non-prefetchable) [size=2K]
Capabilities: [dc] Power Management version 2
Kernel driver in use: firewire_ohci
Kernel modules: firewire-ohci

07:05.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 19)
Subsystem: Hewlett-Packard Company Presario V6133CL
Flags: bus master, medium devsel, latency 64, IRQ 7
Memory at b8000800 (32-bit, non-prefetchable) [size=256]
Capabilities: [80] Power Management version 2
Kernel driver in use: sdhci
Kernel modules: sdhci

07:05.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 0a)
Subsystem: Hewlett-Packard Company Presario V6133CL
Flags: medium devsel, IRQ 11
Memory at b8000c00 (32-bit, non-prefetchable) [size=256]
Capabilities: [80] Power Management version 2
Kernel driver in use: ricoh-mmc
Kernel modules: ricoh_mmc

07:05.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 05)
Subsystem: Hewlett-Packard Company Presario V6133CL
Flags: medium devsel, IRQ 11
Memory at b8001000 (32-bit, non-prefetchable) [size=256]
Capabilities: [80] Power Management version 2

07:05.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev ff) (prog-if ff)
!!! Unknown header type 7f



Any help is very appreciated,

Thanks in advance

wvn

wvn
24th August 2008, 04:35 PM
c'mmon ppl. Anyone?

wvn
1st September 2008, 05:59 AM
so no one, ha? mods maybe?

wvn
8th September 2008, 06:32 AM
So i take it nothing can be done?

Hlingler
8th September 2008, 06:44 AM
We usually discourage "bumping" of posts, but I see that you've been patient in waiting for a response, so that's OK. But it is entirely possible that no one has a good answer for you. Perhaps if you could give some more info as to what you have been doing to try to fix the problem, it would stimulate some responses....

> Where have you searched for answers/info, and what have you found?
> What documentation have you searched/reviewed/read, and what does/doesn't it say?
> What other steps have you tried to remedy the situation?

V

wvn
8th September 2008, 06:57 AM
We usually discourage "bumping" of posts, but I see that you've been patient in waiting for a response, so that's OK. But it is entirely possible that no one has a good answer for you. Perhaps if you could give some more info as to what you have been doing to try to fix the problem, it would stimulate some responses....

> Where have you searched for answers/info, and what have you found?
> What documentation have you searched/reviewed/read, and what does/doesn't it say?
> What other steps have you tried to remedy the situation?

V


Excuse the bumping but i need to use my MS pro daily for work, so....

I searched the net and the only thing i came across was a post in the Arch forums about a script that needs to be executed, but noone seems to know more nor i can find the script.

Also, the reason that the stick is not supported is because of Sony drivers (proprietary) but they mentioned that it can be done.

Just that.

TY H


http://bbs.archlinux.org/viewtopic.php?id=39836

Hlingler
8th September 2008, 07:02 AM
Can you find that Ubungtu forum post again, and place the link here? Maybe it will provide some clues for others to step in and help....

V

wvn
8th September 2008, 07:11 AM
I edited my post.

It was Arch linux and link now provided.

Hlingler
8th September 2008, 07:23 AM
According to what I found, the tifm_ms.ko kmod is included with current kernels. Try:
su -
modprobe tifm_ms (OR: tifm)

See what happens....

V

wvn
8th September 2008, 07:27 AM
According to what I found, the tifm_ms.ko kmod is included with current kernels. Try:
su -
modprobe tifm_ms (OR: tifm)

See what happens....

V

S**t, i knew i should stay at home today...

I am at work now. Will do, the moment i go home H. Thanx a bunch. We will take it from there.

wvn
8th September 2008, 06:34 PM
UPDATE

Nothing happens

command not found

Hlingler
9th September 2008, 02:10 AM
"Command not found" indicates that you were not running the command as full root user. Log into the terminal with:
su -

That's: "su" followed by a space (" ") and a dash ("-").

V

wvn
9th September 2008, 01:47 PM
"Command not found" indicates that you were not running the command as full root user. Log into the terminal with:
su -

That's: "su" followed by a space (" ") and a dash ("-").

V



U were right H, i was doing it wrong.

After the su - the command was accepted, but sustem responds the same upon inserting the MS.

wvn
9th September 2008, 02:16 PM
UPDATE
--------------------------------------------------------------------------------------------------------------------

came across this:

http://forum.ubuntu-fr.org/viewtopic.php?id=219005

which is in french (ubuntu.fr) and its a how to for memory stick duo and pro with the patch i mentioned before. Although its in french the steps are quite clear. Now, at the part that says to download the patch, the link is broken,so i am providing it as an attachment.

i did follow all the steps but when coming to patching the driver some error pops up about a line 36 problem (honestly i dont understand)


Anyhow, if someone can try it out as well, that would be great

wvn
9th September 2008, 02:34 PM
UPDATE #2
------------------------------------------------------------------------------------------------------

THESE ARE THE CORRECT STEPS

svn co -r155 http://svn.berlios.de/svnroot/repos/tifmxx/trunk/driver/
cd driver/
------USE MY ATTACHMENT--------
patch -p0 < tifm_ms.patch
make
sudo make install

can not compile though. trying.

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/222557

wvn
11th September 2008, 05:47 AM
did anyone try? No luck yet for me

Hlingler
11th September 2008, 09:10 AM
You did not list a ./configure step in the post, only patch + make + make install. Did you try to configure? What error(s) is the compile giving?

I don't have F9 booted right now, so I can't even try to reproduce....

V

sanjay_ankur
11th September 2008, 09:40 AM
did anyone try? No luck yet for me
hi,

this is my lspci -v


07:05.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (prog-if 10 [OHCI])
Subsystem: Hewlett-Packard Company Unknown device 30bb
Flags: bus master, medium devsel, latency 64, IRQ 16
Memory at de000000 (32-bit, non-prefetchable) [size=2K]
Capabilities: [dc] Power Management version 2
Kernel driver in use: firewire_ohci
Kernel modules: firewire-ohci

07:05.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 19)
Subsystem: Hewlett-Packard Company Unknown device 30bb
Flags: bus master, medium devsel, latency 64, IRQ 17
Memory at de000800 (32-bit, non-prefetchable) [size=256]
Capabilities: [80] Power Management version 2
Kernel driver in use: sdhci
Kernel modules: sdhci

07:05.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 0a)
Subsystem: Hewlett-Packard Company Unknown device 30bb
Flags: medium devsel, IRQ 11
Memory at de000c00 (32-bit, non-prefetchable) [disabled] [size=256]
Capabilities: [80] Power Management version 2
Kernel driver in use: ricoh-mmc
Kernel modules: ricoh_mmc

07:05.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 05)
Subsystem: Hewlett-Packard Company Unknown device 30bb
Flags: medium devsel, IRQ 11
Memory at de001000 (32-bit, non-prefetchable) [disabled] [size=256]
Capabilities: [80] Power Management version 2

07:05.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev ff) (prog-if ff)
!!! Unknown header type 7f


Looks ditto so should work for my system.. will try it out and let you know..

regards,

Ankur

sanjay_ankur
11th September 2008, 09:54 AM
hi,

tried it..

Dint work.. :(

Heres the output..



[root@Ankur driver]# ls
built-in.o flash_bd-pp.c jmb38x_xd.c l.sh memstick.c ms_block.c tifm_7xx1.c tifm_ms.c tifm_sd.c xd_card_blk.c
flash_bd.c jmb38x_ms.c linux Makefile memstick.o mspro_block.c tifm_core.c tifm_ms.patch ul.sh xd_card_ecc.c

[root@Ankur driver]# patch -p0 < tifm_ms.patch
patching file tifm_ms.c
patching file mspro_block.c
patching file Makefile

[root@Ankur driver]# make
echo /root/driver
/root/driver
make -C /lib/modules/2.6.25.14-108.fc9.x86_64/build M=/root/driver
make[1]: Entering directory `/usr/src/kernels/2.6.25.14-108.fc9.x86_64'
CC [M] /root/driver/tifm_core.o
/root/driver/tifm_core.c: In function ‘tifm_uevent’:
/root/driver/tifm_core.c:69: warning: passing argument 1 of ‘add_uevent_var’ from incompatible pointer type
/root/driver/tifm_core.c:69: warning: passing argument 2 of ‘add_uevent_var’ makes pointer from integer without a cast
/root/driver/tifm_core.c: At top level:
/root/driver/tifm_core.c:173: warning: initialization from incompatible pointer type
CC [M] /root/driver/tifm_7xx1.o
CC [M] /root/driver/tifm_sd.o
/root/driver/tifm_sd.c: In function ‘tifm_sd_transfer_data’:
/root/driver/tifm_sd.c:194: error: ‘struct scatterlist’ has no member named ‘page’
/root/driver/tifm_sd.c: In function ‘tifm_sd_bounce_block’:
/root/driver/tifm_sd.c:243: error: ‘struct scatterlist’ has no member named ‘page’
/root/driver/tifm_sd.c:250: error: ‘struct scatterlist’ has no member named ‘page’
/root/driver/tifm_sd.c:254: error: ‘struct scatterlist’ has no member named ‘page’
/root/driver/tifm_sd.c: In function ‘tifm_sd_check_status’:
/root/driver/tifm_sd.c:407: error: ‘MMC_ERR_NONE’ undeclared (first use in this function)
/root/driver/tifm_sd.c:407: error: (Each undeclared identifier is reported only once
/root/driver/tifm_sd.c:407: error: for each function it appears in.)
/root/driver/tifm_sd.c: In function ‘tifm_sd_card_event’:
/root/driver/tifm_sd.c:507: error: ‘MMC_ERR_NONE’ undeclared (first use in this function)
/root/driver/tifm_sd.c:524: error: ‘MMC_ERR_TIMEOUT’ undeclared (first use in this function)
/root/driver/tifm_sd.c:526: error: ‘MMC_ERR_BADCRC’ undeclared (first use in this function)
/root/driver/tifm_sd.c: In function ‘tifm_sd_request’:
/root/driver/tifm_sd.c:726: error: ‘MMC_ERR_TIMEOUT’ undeclared (first use in this function)
/root/driver/tifm_sd.c: In function ‘tifm_sd_remove’:
/root/driver/tifm_sd.c:1021: error: ‘MMC_ERR_TIMEOUT’ undeclared (first use in this function)
make[2]: *** [/root/driver/tifm_sd.o] Error 1
make[1]: *** [_module_/root/driver] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.25.14-108.fc9.x86_64'
make: *** [all] Error 2

[root@Ankur driver]#

Did I do something wrong??

wvn.. was your output something like this?

regards,

Ankur


EDIT : i tried the entire thing twice.. dint work.. have used the patch file from wvn's attachment..

Hlingler
11th September 2008, 10:10 AM
Looks like the kinds of errors I would expect to see if GCC/C++ versions are wrong. Could try with compat-gcc34 & compat-g++34:
~]$ CC=gcc34 CXX=g++34 ./configure
~]$ make

ETC....

V

sanjay_ankur
11th September 2008, 10:20 AM
Looks like the kinds of errors I would expect to see if GCC/C++ versions are wrong. Could try with compat-gcc34 & compat-g++34:
~]$ CC=gcc34 CXX=g++34 ./configure
~]$ make

ETC....

V


hi,

uhm.. dint work..


[root@Ankur driver]# CC=gcc34 CXX=g++34 ./configure
-bash: ./configure: No such file or directory
[root@Ankur driver]#

there is no configure file at the svn checkout..

regards,

Ankur

Hlingler
11th September 2008, 10:27 AM
Try:
~]$ CC=gcc34 CXX=g++34 make

V

sanjay_ankur
11th September 2008, 10:33 AM
Try:
~]$ CC=gcc34 CXX=g++34 make

V


hi,


[root@Ankur driver]# CC=gcc34 CXX=g++34 make
echo /root/driver
/root/driver
make -C /lib/modules/2.6.25.14-108.fc9.x86_64/build M=/root/driver
make[1]: Entering directory `/usr/src/kernels/2.6.25.14-108.fc9.x86_64'
CC [M] /root/driver/tifm_sd.o
/root/driver/tifm_sd.c: In function ‘tifm_sd_transfer_data’:
/root/driver/tifm_sd.c:194: error: ‘struct scatterlist’ has no member named ‘page’
/root/driver/tifm_sd.c: In function ‘tifm_sd_bounce_block’:
/root/driver/tifm_sd.c:243: error: ‘struct scatterlist’ has no member named ‘page’
/root/driver/tifm_sd.c:250: error: ‘struct scatterlist’ has no member named ‘page’
/root/driver/tifm_sd.c:254: error: ‘struct scatterlist’ has no member named ‘page’
/root/driver/tifm_sd.c: In function ‘tifm_sd_check_status’:
/root/driver/tifm_sd.c:407: error: ‘MMC_ERR_NONE’ undeclared (first use in this function)
/root/driver/tifm_sd.c:407: error: (Each undeclared identifier is reported only once
/root/driver/tifm_sd.c:407: error: for each function it appears in.)
/root/driver/tifm_sd.c: In function ‘tifm_sd_card_event’:
/root/driver/tifm_sd.c:507: error: ‘MMC_ERR_NONE’ undeclared (first use in this function)
/root/driver/tifm_sd.c:524: error: ‘MMC_ERR_TIMEOUT’ undeclared (first use in this function)
/root/driver/tifm_sd.c:526: error: ‘MMC_ERR_BADCRC’ undeclared (first use in this function)
/root/driver/tifm_sd.c: In function ‘tifm_sd_request’:
/root/driver/tifm_sd.c:726: error: ‘MMC_ERR_TIMEOUT’ undeclared (first use in this function)
/root/driver/tifm_sd.c: In function ‘tifm_sd_remove’:
/root/driver/tifm_sd.c:1021: error: ‘MMC_ERR_TIMEOUT’ undeclared (first use in this function)
make[2]: *** [/root/driver/tifm_sd.o] Error 1
make[1]: *** [_module_/root/driver] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.25.14-108.fc9.x86_64'
make: *** [all] Error 2

Hlingler
11th September 2008, 10:35 AM
In that case, I'm out of ideas at the moment. :confused:

V

sanjay_ankur
11th September 2008, 10:37 AM
In that case, I'm out of ideas at the moment. :confused:

V


lol.. :D

sanjay_ankur
11th September 2008, 11:29 AM
In that case, I'm out of ideas at the moment. :confused:

V


hi,

i went on to the IRC .. heres what i got..

the patch is not for 2.6.26 kernel.. am updating to 2.6.27 from rawhide..hope that works..

another solution was backporting the patch.. which i dont know how to do.. :D

regards,

Ankur

wvn
11th September 2008, 11:35 AM
Hi guys, i am getting same results as ankur. Shall we get 2.6.27 from rawhide then?

sanjay_ankur
11th September 2008, 02:40 PM
Hi guys, i am getting same results as ankur. Shall we get 2.6.27 from rawhide then?


hi,

here are the results of trying rawhide.. All i get is a white screen.. the akmods fail.. i cant do anything.. :(

Anyone here who knows howto backport or can direct me to somewhere where i can learn to do it for myself??

regards,

Ankur

wvn
11th September 2008, 02:43 PM
sorry to hear that friend.

Cybertooth
10th November 2008, 10:44 AM
i've been searching for a solution for few days with no use..
i hope if some one can help us backport the patch :)

Cybertooth
16th November 2008, 05:39 AM
hi,

i went on to the IRC .. heres what i got..

the patch is not for 2.6.26 kernel.. am updating to 2.6.27 from rawhide..hope that works..

another solution was backporting the patch.. which i dont know how to do.. :D

regards,

Ankur

after updating to 2.6.27 =) nothing fixed..




[cybertooth@DarK-SidE driver]$ make
echo /home/cybertooth/compile/driver
/home/cybertooth/compile/driver
make -C /lib/modules/2.6.27.5-37.fc9.i686.PAE/build M=/home/cybertooth/compile/driver
make[1]: Entering directory `/usr/src/kernels/2.6.27.5-37.fc9.i686.PAE'
LD /home/cybertooth/compile/driver/built-in.o
CC [M] /home/cybertooth/compile/driver/memstick.o
In file included from /home/cybertooth/compile/driver/memstick.c:15:
/home/cybertooth/compile/driver/linux/memstick.h:279: error: field ‘cdev’ has incomplete type
/home/cybertooth/compile/driver/memstick.c: In function ‘memstick_uevent’:
/home/cybertooth/compile/driver/memstick.c:71: warning: passing argument 1 of ‘add_uevent_var’ from incompatible pointer type
/home/cybertooth/compile/driver/memstick.c:71: warning: passing argument 2 of ‘add_uevent_var’ makes pointer from integer without a cast
/home/cybertooth/compile/driver/memstick.c:74: warning: passing argument 1 of ‘add_uevent_var’ from incompatible pointer type
/home/cybertooth/compile/driver/memstick.c:74: warning: passing argument 2 of ‘add_uevent_var’ makes pointer from integer without a cast
/home/cybertooth/compile/driver/memstick.c:77: warning: passing argument 1 of ‘add_uevent_var’ from incompatible pointer type
/home/cybertooth/compile/driver/memstick.c:77: warning: passing argument 2 of ‘add_uevent_var’ makes pointer from integer without a cast
/home/cybertooth/compile/driver/memstick.c: At top level:
/home/cybertooth/compile/driver/memstick.c:195: warning: initialization from incompatible pointer type
/home/cybertooth/compile/driver/memstick.c: In function ‘memstick_free’:
/home/cybertooth/compile/driver/memstick.c:204: warning: type defaults to ‘int’ in declaration of ‘__mptr’
/home/cybertooth/compile/driver/memstick.c:204: warning: initialization from incompatible pointer type
/home/cybertooth/compile/driver/memstick.c: At top level:
/home/cybertooth/compile/driver/memstick.c:211: error: unknown field ‘release’ specified in initializer
/home/cybertooth/compile/driver/memstick.c:212: warning: initialization from incompatible pointer type
/home/cybertooth/compile/driver/memstick.c: In function ‘memstick_alloc_host’:
/home/cybertooth/compile/driver/memstick.c:509: error: implicit declaration of function ‘class_device_initialize’
/home/cybertooth/compile/driver/memstick.c: In function ‘memstick_add_host’:
/home/cybertooth/compile/driver/memstick.c:535: error: implicit declaration of function ‘class_device_add’
/home/cybertooth/compile/driver/memstick.c: In function ‘memstick_remove_host’:
/home/cybertooth/compile/driver/memstick.c:566: error: implicit declaration of function ‘class_device_del’
/home/cybertooth/compile/driver/memstick.c: In function ‘memstick_free_host’:
/home/cybertooth/compile/driver/memstick.c:577: error: implicit declaration of function ‘class_device_put’
make[2]: *** [/home/cybertooth/compile/driver/memstick.o] Error 1
make[1]: *** [_module_/home/cybertooth/compile/driver] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.27.5-37.fc9.i686.PAE'
make: *** [all] Error 2
[cybertooth@DarK-SidE driver]$ uname -r
2.6.27.5-37.fc9.i686.PAE

Brian1
16th November 2008, 08:12 PM
As far as I know there is no memory stick support for Ricoh readers even in the latest 2.6.27.5 kernel. Only supported memory stick ones are texas instrument and jmicron. My old notebook that dies had Ricoh and no luck on it. Another one I have is texas instruments and as say the 2.6.25 kernels that would be precompiled from fedora would still require adding the cvs of tifm and compile it to the kernel. Unless using standard kernels then it can be enabled at build time. Newest notebook which is a HP dv7-1020us has jmicron and sd and memory stick worked out of fedroa stock install. Took awhile for the sound but using newest stable kernel 2.6.27.5 I have all hardware working under this notebook plus and addtional harddrive that can be installed in it as well. One cool notebook.

Brian

sanjay_ankur
30th November 2008, 11:41 PM
hi,

updated to F10 which runs a 2,6.27 kernel.. The svn links asking fo rauthorization.. Its become members only !!.. Do any of you have the folder downloaded?? Ill try patching it then..

regards,

Ankur

sanjay_ankur
20th December 2008, 08:43 AM
hi,

a little update.. I emailed one of the developers of the tifm thing requesting help on the compiling error..

Alex Dubov <oakad@yahoo.com>

This is the reply i got..

"Ricoh devices are not compatible to tifm ones, to the best of my knowledge."

Did we start wrong? :confused: Is this patch not even SUPPOSED to work??? :eek:

regards,

Ankur


PS : noob question : is the linux driver unavailable? if so.. is it okay if someone writes a driver (open source)? i mean no licence issues or something?


EDIT : i emailed HP support requesting assistance.. Let see what comes of it..