Sony DSC 71 USB and Linux

Sony DSC 71 USB and Linux

Post by Keit » Fri, 19 Jul 2002 22:12:10



I am trying to get a Sony DSC-71 camera to play nicely with Linux,
kernel 2.4.18  (Mandrake 8.2).

After a bit of ferretting around, I found a few hints... and got this
far:

Being root;

modprobe usb-storage
modprobe uhci
mount -t usbdevfs none /proc/bus/usb

Now,
cat /proc/bus/usb/devices

gives this:
T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 0.00
S:  Product=USB UHCI-alt Root Hub
S:  SerialNumber=cce0
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=255ms
T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=054c ProdID=0010 Rev= 4.10
S:  Manufacturer=Sony
S:  Product=Sony DSC
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  2mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=ff Prot=01
Driver=usb-storage
E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
E:  Ad=83(I) Atr=03(Int.) MxPS=   8 Ivl=255ms

Now, usbview shows the camera. This is great... but how do I get
pictures off it?

ls -al /proc/bus/usb/
total 0
dr-xr-xr-x    1 root     root            0 Jul 18 14:49 ./
dr-xr-xr-x    5 root     root            0 Jul 18 14:49 ../
dr-xr-xr-x    1 root     root            0 Jul 18 14:49 001/
-r--r--r--    1 root     root            0 Jul 18 14:49 devices
-r--r--r--    1 root     root            0 Jul 18 14:49 drivers

tree /proc/bus/usb/
/proc/bus/usb/
|-- 001
|   |-- 001
|   `-- 002
|-- devices
`-- drivers

I think I can mount something from the usb bus as a filesystem, as if
it were a SCSI device, but I am unsure of the exact steps... Or is
there a way to configure gtKam (aside from the fact that the DSC-P71
is not in the list of supported cameras)?

 
 
 

Sony DSC 71 USB and Linux

Post by bgee » Fri, 19 Jul 2002 23:49:18


 >I am trying to get a Sony DSC-71 camera to play nicely with Linux,
 >kernel 2.4.18  (Mandrake 8.2).

 >After a bit of ferretting around, I found a few hints... and got this
 >far:

 >Being root;

 >modprobe usb-storage
 >modprobe uhci
 >mount -t usbdevfs none /proc/bus/usb
 >...
 >I think I can mount something from the usb bus as a filesystem, as if
 >it were a SCSI device, but I am unsure of the exact steps... Or is
 >there a way to configure gtKam (aside from the fact that the DSC-P71
 >is not in the list of supported cameras)?

First, I haven't plugged my DSC-S75 directly into my computer - I plug
in a cheap PQI memory stick reader, but I believe the result should be
nearly identical.

Try modprobe sg - this is "scsi generic support" for the kernel.  It
must either be compiled into the kernel or a module.

Then cat /proc/scsi/sg/device_strs - this should reveal:

  General         USB Disk Drive          1.00

& cat /proc/scsi/sg/host_strs should reveal:

  SCSI emulation for USB Mass Storage devices

& dmesg should reveal:

  SCSI device sdb: 7904 512-byte hdwr sectors (4 MB)

where "sdb" may be "sda" in your case; it's "b" on my machine since I
have scsi disk drives.

For my system, I executed as root "md /camera" & added this entry into
/etc/fstab:

  /dev/sdb1       /camera     vfat          user,noauto,rw,noexec

(which of course may need to be /dev/sda1 on your system).  Now, as
any user I can execute "mount /camera" & "ls -al /camera/dcim/100msdcf"
& all is good!

Good luck, Bob

<> Robert Geer & Donna Tomky |          ||||      We sure       ||||    <>


<>   Albuquerque, NM  USA    |      ||||       here!        ||||    <>

 
 
 

Sony DSC 71 USB and Linux

Post by Keith Rhode » Sat, 20 Jul 2002 06:09:19



> First, I haven't plugged my DSC-S75 directly into my computer - I plug
> in a cheap PQI memory stick reader, but I believe the result should be
> nearly identical.

> Try modprobe sg - this is "scsi generic support" for the kernel.  It
> must either be compiled into the kernel or a module.

> Then cat /proc/scsi/sg/device_strs - this should reveal:

>   General         USB Disk Drive          1.00

> & cat /proc/scsi/sg/host_strs should reveal:

>   SCSI emulation for USB Mass Storage devices

> & dmesg should reveal:

>   SCSI device sdb: 7904 512-byte hdwr sectors (4 MB)

> where "sdb" may be "sda" in your case; it's "b" on my machine since I
> have scsi disk drives.

> For my system, I executed as root "md /camera" & added this entry into
> /etc/fstab:

>   /dev/sdb1       /camera     vfat          user,noauto,rw,noexec

> (which of course may need to be /dev/sda1 on your system).  Now, as
> any user I can execute "mount /camera" & "ls -al /camera/dcim/100msdcf"
> & all is good!

> Good luck, Bob

Thanks a lot for this advice. I followed these instructions, and apart
from seeing the memory stick as sda, it looks just as you describe.

I can use gtKam in "browse directory" mode to get the pictures, but it
is more useful to simply copy them and open them in Gimp.

But what I would *really* like to do, is drive the camera from the gtKam
interface; i.e. set the camera's parameters and take shots... I've tried
setting gtKam to use port usb: but I keep getting "Could not configure
camera"...

--
++
If I'd wanted you to spam me, I would have given you my real address

 
 
 

1. Sony DSC-F505 as SCSI device on Linux USB

I am trying to connect a Sony DSC-F505 camera to a Linux
PC via its USB connector, but somehow it doesn't work.

Can somebody tell from the data below whether I am doing
something wrong, or if this device just can't be used
with Linux USB (yet)?

Thanks for any ideas

Klaus

I am running SuSE Linux 6.3, kernel 2.2.13.

When I plug in the USB connector I get the following
in /var/log/messages:

Feb 11 16:03:34 video kernel: USB new device connect, assigned device number 1
Feb 11 16:03:34 video kernel: Manufacturer: Sony
Feb 11 16:03:34 video kernel: Product: DSC-F505
Feb 11 16:03:34 video kernel: scsi0 : usbscsi0
Feb 11 16:03:34 video kernel: scsi : 1 host.
Feb 11 16:03:34 video kernel: Data is 70 00 00 00 00 00 00 0a 00 00 00 00 00 00 00 00 00 00
Feb 11 16:03:34 video kernel: Data is 00 80 00 01 1f 00 00 00 53 6f 6e 79 20 20 20 20 44 53 43 20 2d
20 46 35 30 35 20 20 20 20 20 20 ...
Feb 11 16:03:34 video kernel:   Vendor: Sony      Model: DSC - F505        Rev: 1.06
Feb 11 16:03:34 video kernel:   Type:   Direct-Access                      ANSI SCSI revision: 00
Feb 11 16:03:34 video kernel: Detected scsi removable disk sda at scsi0, channel 0, id 0, lun 0
Feb 11 16:03:34 video kernel: SCSI device sda: hdwr sector= 512 bytes. Sectors= 7936 [3 MB] [0.0 GB]
Feb 11 16:03:34 video kernel: usb-ohci: restarting ED c635f010 at TD c635f220
Feb 11 16:03:39 video last message repeated 8 times
Feb 11 16:03:39 video kernel: sda: test WP failed, assume Write Protected
Feb 11 16:03:39 video kernel:  sda:scsidisk I/O error: dev 08:00, sector 0
Feb 11 16:03:39 video kernel:  unable to read partition table
Feb 11 16:03:39 video kernel: USB SCSI device found at address 1
Feb 11 16:03:39 video kernel: ohci-control thread sleeping

Trying to mount /dev/sda fails:

video:/home/kls # mount /dev/sda /mnt
mount: /dev/sda is not a valid block device

Here's the data from the /proc/scsi files:

video:/home/kls # cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: Sony     Model: DSC - F505       Rev: 1.06
  Type:   Direct-Access                    ANSI SCSI revision: ffffffff
video:/home/kls # cat /proc/scsi/usbscsi0/0
Host scsi0: usb-scsi
Device: DSC-F505 DSC-F505 - GUID 054c00100000000000000000
Style: Control/Bulk

2. Cat error:Using SED

3. Port availability under linux

4. Sony DSC T1 and usb-storage?

5. Backwards Compatibility

6. Problem with Sony DSC P-51 / usb-storage.o

7. Linux-friendly UPS

8. Getting Sony DSC-P1 USB Camera to work

9. Sony DSC-S70 USB DIGITAL CAMERA.

10. Sony dsc-707 digital camera and usb-storage not working

11. USB support for Sony Cyber-shot DSC-P50 digital cam

12. Can't get Sony DSC-P71 digital camera (USB) working with SuSE 7.3