Author Topic: Cannot Connect A Digital Camera  (Read 2831 times)

rafm

  • Full Member
  • ***
  • Posts: 145
    • View Profile
Cannot Connect A Digital Camera
« on: November 10, 2005, 06:06:15 pm »
I cannot get the usb-host to work with my camera.

The camera is normally recognized as a usb storage device. I can mount the camera on my laptop using /dev/sda1 (2.6.12) or /dev/sda (2.4.something).  But on Zaurus:

mount /dev/sda /mnt/ms -> gives "Invalid argument"

and

mount /dev/sda1 /mnt/ms -> gives "No such device or address"

/proc/scsi/usb-storage-0/0 shows the camera recognized as an SCSCI device.  USB Card reader works with the same usb-host cable without any problems - it is automatically recognized and mounted.

Any suggestions what can be wrong?
SL-C1000 w/ Cacko ROM 1.23

sidmoraes

  • Full Member
  • ***
  • Posts: 116
    • View Profile
    • http://
Cannot Connect A Digital Camera
« Reply #1 on: November 10, 2005, 08:39:07 pm »
Try to set the manualy the file-system: mount -t vfat /dev/sda1 /mnt/usbstorage
SL-C1000 ( Cacko-Rom 1.23 ) + SL-C3100 ( Cacko-Rom 1.23 )
2Gb SD, usb host cable made by myself, CF modem Xircom,
CF wifi Zonet, Hawking CF 10/100 ethernet,
 USB net, USB CD-Writer Sony CRX10U, CF to PCMCIA adapter,
PCMCIA 2G disk Toshiba, USB charger self-made,
USB BLuetooth,
RH2 ( Wired control for Z ) made by myself,
Serial cable, also made ...

rafm

  • Full Member
  • ***
  • Posts: 145
    • View Profile
Cannot Connect A Digital Camera
« Reply #2 on: November 11, 2005, 04:55:30 am »
Quote
Try to set the manualy the file-system: mount -t vfat /dev/sda1 /mnt/usbstorage
[div align=\"right\"][a href=\"index.php?act=findpost&pid=103228\"][{POST_SNAPBACK}][/a][/div]

I have tried that too. It gave the same error messages as without -tvfat.
Perhaphs the camera needs more power from the usb-cable to communicate?

Is there a way to switch on kernel logs? Normally, I should be able to see some details on the attached device in /var/log/messages.
SL-C1000 w/ Cacko ROM 1.23

xatax

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
Cannot Connect A Digital Camera
« Reply #3 on: November 11, 2005, 11:26:03 am »
Check this.
SL-C750 running Cacko 1.22

rafm

  • Full Member
  • ***
  • Posts: 145
    • View Profile
Cannot Connect A Digital Camera
« Reply #4 on: November 12, 2005, 08:13:20 am »
Ok, I found the logs in /proc/kmsg, which helped a lot in finding the cause, but unfortunatelly not the solution.

I noticed that some USB storage devices are not recognized because zaurus cannot read the partition table. Repartitioning with fdisk on Linux and then mkfs.vfat has solved all those problems. I did this for an usb stick and a memory stick I used in the camera. Now I can remove the memory stick from the camera, plug it into a card reader, plug the card reader to Zaurus and read images. But this is not exactly what I originally wanted to achieve.

My camera (Sony DSC S75) can act as a storage device and is properly recognized as such under Linux 2.6.12. But when I plug it to the zaurus, I get:

Quote
<6>hub.c: new USB device -2, assigned address 5                                                                         
<7>WARNING: USB Mass Storage data integrity not assured                                                                 
<7>USB Mass Storage device found at 5                                                                                   
<4>SCSI device (ioctl) reports ILLEGAL REQUEST.                                                                         
<4>SCSI device sda: 126848 512-byte hdwr sectors (65 MB)                                                               
<4>sda: Write Protect is off                                                                                           
<6> sda: I/O error: dev 08:00, sector 0                                                                                 
<4> I/O error: dev 08:00, sector 0                                                                                     
<2>ldm_validate_partition_table(): Disk read failed.                                                                   
<4> I/O error: dev 08:00, sector 0                                                                                     
<4> unable to read partition table                                                                                     
<4>SCSI device (ioctl) reports ILLEGAL REQUEST.                                                                         
<4>SCSI device sda: 126848 512-byte hdwr sectors (65 MB)                                                               
<4>sda: Write Protect is off                                                                                           
<6> sda: I/O error: dev 08:00, sector 0                                                                                 
<4> I/O error: dev 08:00, sector 0                                                                                     
<2>ldm_validate_partition_table(): Disk read failed.                                                                   
<4> I/O error: dev 08:00, sector 0                                                                                     
<4> unable to read partition table                                                                                     
<4>SCSI device (ioctl) reports ILLEGAL REQUEST.                                                                         
<4>SCSI device sda: 126848 512-byte hdwr sectors (65 MB)                                                               
<4>sda: Write Protect is off                                                                                           
<6> sda: I/O error: dev 08:00, sector 0                                                                                 
<4> I/O error: dev 08:00, sector 0                                                                                     
<2>ldm_validate_partition_table(): Disk read failed.                                                                   
<4> I/O error: dev 08:00, sector 0                                                                                     
<4> unable to read partition table                                                                                     
<4>SCSI device (ioctl) reports ILLEGAL REQUEST.                                                                         
<4>SCSI device sda: 126848 512-byte hdwr sectors (65 MB)                                                               
<4>sda: Write Protect is off                                                                                           
<6> sda: I/O error: dev 08:00, sector 0                                                                                 
<4> I/O error: dev 08:00, sector 0                                                                                     
<2>ldm_validate_partition_table(): Disk read failed.                                                                   
<4> I/O error: dev 08:00, sector 0                                                                                     
<4> unable to read partition table                                                                                     
<4>SCSI device (ioctl) reports ILLEGAL REQUEST.                                                                         
<4>SCSI device sda: 126848 512-byte hdwr sectors (65 MB)                                                               
<4>sda: Write Protect is off                                                                                           
<6> sda: I/O error: dev 08:00, sector 0                                                                                 
<4> I/O error: dev 08:00, sector 0                                                                                     
<2>ldm_validate_partition_table(): Disk read failed.                                                                   
<4> I/O error: dev 08:00, sector 0                                                                                     
<4> unable to read partition table                                                                                     
<4>SCSI device (ioctl) reports ILLEGAL REQUEST.                                                                         
<4>SCSI device sda: 126848 512-byte hdwr sectors (65 MB)                                                               
<4>sda: Write Protect is off                                                                                           
<6> sda: I/O error: dev 08:00, sector 0                                                                                 
<4> I/O error: dev 08:00, sector 0                                                                                     
<2>ldm_validate_partition_table(): Disk read failed.                                                                   
<4> I/O error: dev 08:00, sector 0                                                                                     
<4> unable to read partition table                                                                                     
<4>SCSI device (ioctl) reports ILLEGAL REQUEST.                                                                         
<4>SCSI device sda: 126848 512-byte hdwr sectors (65 MB)                                                               
<4>sda: Write Protect is off                                                                                           
<6> sda: I/O error: dev 08:00, sector 0                                                                                 
<4> I/O error: dev 08:00, sector 0                                                                                     
<2>ldm_validate_partition_table(): Disk read failed.                                                                   
<4> I/O error: dev 08:00, sector 0                                                                                     
<4> unable to read partition table                                                                                     
<6>usb.c: USB disconnect on device -2 address 5                                                                       

Probably the newer drivers in the 2.6.12 kernel can handle my camera better. Does anyone has a suggestion what can be done next? Recompilng and replacing the kernel seems to be too much effort.

Quote
Check this.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=103316\"][{POST_SNAPBACK}][/a][/div]

Thanks for the hint. I will try gphoto and then report what I have managed to achieve.
SL-C1000 w/ Cacko ROM 1.23

rafm

  • Full Member
  • ***
  • Posts: 145
    • View Profile
Cannot Connect A Digital Camera
« Reply #5 on: November 12, 2005, 08:45:51 am »
gphoto2 works perfectly with my camera (Sony DSC S75). I only had to switch the camera to the PTP USB mode.
SL-C1000 w/ Cacko ROM 1.23