Computers 'n Stuff: Using Sony Clie PEG NR70V as a Memory-Stick Reader under Linux

I here share the resolutions for my Linux problems so they might safe somebody some time.

Thursday, February 17, 2005 parmanent link to this post

Using Sony Clie PEG NR70V as a Memory-Stick Reader under Linux

Make sure appropriate Kernel and modules are installed: You will need usbserial, usb_storage, usbcore, sg and scsi_mod( #lsmod). Start the MS-import utility on the Clié. Check If Clié was detected as scsi device ( #cat /proc/scsi/scsi). If not, leave MS-Import running and turn off the Clié and swich on again. This is because the MS-Imprort starts too slow to be recoginiszed by Linux as scsi device sometimes. If the Sony was detected as a scsi device you can just mount it.

I reacently tried to install the card reading option of my sony clie nr70V so that it workes for linux. I was amazed as I realized, that linux has native support for the card reading option of the sony clie.
What I did was the following:
Just plug the sony into the craddle which is connected to some USB port of the linux box. Then turn on the clie and run MS-import on the sony. Than linxux shoud automatically detect the PDA as a USB mass storage device and mount it if you have hotplugging functionallity installed.
But on my device it didnt work. Then I Googled a bit and found out that a lot of users had the same problem, althogh the have the appropriate Kernel and modules installed ( You will need usbserial, usb_storage, usbcore, sg and scsi_mod)
but I couldnt find the solution.
Then I checked /var/log/messages. It reads:
-snip-
Feb 17 21:35:59 linux kernel: usb 3-1: new full speed USB device using address 4
Feb 17 21:35:59 linux kernel: usb 3-1: Product: Sony PEG Mass Storage
Feb 17 21:35:59 linux kernel: usb 3-1: Manufacturer: Sony
Feb 17 21:35:59 linux /etc/hotplug/usb.agent[6143]: need a device for this command
Feb 17 21:35:59 linux kernel: scsi2 : SCSI emulation for USB Mass Storage devices
Feb 17 21:35:59 linux kernel: USB Mass Storage device found at 4
-snip-

So the device was recognized but it was not installed as a scsi device (Generic scsi - sg module)
# cat /proc/scsi/scsi revealed no entries. This probalbly means the USB device is recognized but scsi support is not installed. Actually I never figured out why, yet I found a work around.

What I did was the following:

Start and Leave MS-Import running on the palm while connected to the PC. Turn off the palm.

kernel messages:
-snip-
Feb 17 21:51:16 linux kernel: usb 3-1: USB disconnect, address 4
Feb 17 21:51:16 linux /etc/hotplug/usb.agent[6345]: need a device for this command
Feb 17 21:51:17 linux kpilotDaemon: resmgr: server response code 501
-snip-

Then turn on the palm again, e voila:

-snip-
Feb 17 21:52:04 linux kernel: usb 3-1: new full speed USB device using address 5
Feb 17 21:52:04 linux kernel: usb 3-1: Product: Sony PEG Mass Storage
Feb 17 21:52:04 linux kernel: usb 3-1: Manufacturer: Sony
Feb 17 21:52:04 linux /etc/hotplug/usb.agent[6398]: need a device for this command
Feb 17 21:52:04 linux kernel: scsi3 : SCSI emulation for USB Mass Storage devices
Feb 17 21:52:05 linux kernel: Vendor: Sony Model: CLIE MGMS Rev: 1.00
Feb 17 21:52:05 linux kernel: Type: Direct-Access ANSI SCSI revision: 02
Feb 17 21:52:05 linux kernel: SCSI device sde: 253696 512-byte hdwr sectors (130 MB)
Feb 17 21:52:05 linux kernel: sde: assuming Write Enabled
Feb 17 21:52:05 linux kernel: sde: assuming drive cache: write through
Feb 17 21:52:05 linux /etc/hotplug/block.agent[6458]: try 1 while waiting for /block/sde's bus_id 3:0:0:0
Feb 17 21:52:05 linux kernel: sde: sde1
Feb 17 21:52:05 linux kernel: Attached scsi removable disk sde at scsi3, channel 0, id 0, lun 0
Feb 17 21:52:05 linux kernel: Attached scsi generic sg4 at scsi3, channel 0, id 0, lun 0, type 0
Feb 17 21:52:05 linux kernel: USB Mass Storage device found at 5
Feb 17 21:52:05 linux /etc/hotplug/block.agent[6480]: new block device /block/sde/sde1
Feb 17 21:52:06 linux /etc/hotplug/block.agent[6458]: waiting for /var/lock/block.agent.lock, process 6480 holds it
Feb 17 21:52:13 linux /etc/hotplug/block.agent[6480]: mount by-path/usb-storage-odd-Sony-SonyPEGMassStorage:0:0:0p1
Feb 17 21:52:14 linux /etc/hotplug/block.agent[6458]: new block device /block/sde
-snip-
and
# cat /proc/scsi/scsi
Attached devices:
ANSI SCSI revision: 02
Host: scsi3 Channel: 00 Id: 00 Lun: 00
Vendor: Sony Model: CLIE MGMS Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 02

And a window opend on by KDE by whichcraft which revealed all the contents of the memory stick of my Sony Clie. Good!

1 Comments:

Blogger Vee Lee said...

here i found a link with a solution for the same problem. They do i just the other way round. But i think mine is easier. http://www.linuxmuse.com/articles.php?action=section&article=29&num=3

Thursday, February 17, 2005 1:25:00 PM

 

Post a Comment

Links to this post:

Create a Link

<< Home