OESF Portables Forum
Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Sharp ROMs => Topic started by: rafm 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?
-
Try to set the manualy the file-system: mount -t vfat /dev/sda1 /mnt/usbstorage
-
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.
-
Check this. (https://www.oesf.org/forums/index.php?showtopic=14559&hl=)
-
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:
<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.
Check this. (https://www.oesf.org/forums/index.php?showtopic=14559&hl=)
[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.
-
gphoto2 works perfectly with my camera (Sony DSC S75). I only had to switch the camera to the PTP USB mode.