LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   USB camera (https://www.linuxquestions.org/questions/linux-hardware-18/usb-camera-57612/)

zokik 05-01-2003 05:53 AM

USB camera
 
I think my Olympus C-220Z is detected properly, I just don't know how to tranfser files. When I plug the camera, I get the correct info about my camera with cat /proc/bus/usb/devices , also with:

[zokik@localhost zokik]$ cat /proc/scsi/usb-storage-0/1
Host scsi1: usb-storage
Vendor: OLYMPUS
Product: C2Z,D520Z,C220Z
Serial Number: 109204797
Protocol: Transparent SCSI
Transport: Bulk
GUID: 07b401020000000109204797
Attached: Yes

[zokik@localhost zokik]$ gphoto2 --list-ports
Devices found: 1
Path Description
--------------------------------------------------------------
usb: Universal Serial Bus

[zokik@localhost zokik]$ gphoto2 --auto-detect
Model Port
----------------------------------------------------------


gtkam and gphoto2 don't detect it. C-220Z is not on the list of supported cameras by gphoto2, but it should work with linux somehow, I just don't know how exaxtly. IIRC the driver is usb mass storage.

Misel 05-01-2003 06:36 AM

try

mount -t vfat /dev/sda /mnt/camera

most cameras just act as a USB mass storage device and communicate via a kind of SCSI protocol. That's why you will need SCSI support enabled in your kernel.

The messages you wrote look like everything's okay and ready to start :)

zokik 05-01-2003 07:36 AM

I get this:
mount: /dev/sda is not a valid block device

I tried a couple of other devices (sda1, sdb, sdc, ...) and got similar messages.

About scsi support... I think I have that already enabled, because when I couldn't burn cds I just added "hdd=ide-scsi" to /boot/grub/grub.conf and since then burning works.

klod 05-01-2003 10:06 AM

i fiddled around with my nikon coolpix775 and did manually edit fstab. Diddnt get it to work so i just checked google, read a post somewhere (not linuxquestions) about another camera also using the usb mass storage device, you were just suppose to connect it, linux would then edit fstab for you (creating /mnt/camera/ among other things):

just try mounting /mnt/camera without options, linux might already have set them for you (worked for me, rh 7.3)

mount /mnt/camera/

then just copy the files, be careful though, first time i tried it (when I changed fstab myself) I managed to get the card corrupt so i had to reformat it, worked afterwards though!

zokik 05-01-2003 11:48 AM

Strange, this doesn't work in rh8 (tried also as root).

mount: can't find /mnt/camera in /etc/fstab or /etc/mtab

augamecock 05-01-2003 02:24 PM

You can install sg_utils and that will tell you what device your camera is hooked up to. Once sg_utils is installed, run sg_scan and sg_map and post the results here.

I don't have my camera hooked up or I'd post what it looks like

zokik 05-01-2003 03:21 PM

I get exactly the same results no matter whether the camera is connected or not:

[root@localhost temp]# sg_scan
/dev/sg0: scsi0 channel=0 id=0 lun=0 [em] type=5
[root@localhost temp]# sg_map
/dev/sg0 /dev/scd0

augamecock 05-02-2003 08:43 AM

Do a ..

Code:

cdrecord -scanbus
see if your camera comes up there. If it does try

Code:

ls -l /dev/sd*
the output of mine looks like this...

lr-xr-xr-x 1 root root 33 Sep 25 12:37 /dev/sda -> scsi/host0/bus0/target0/ lun0/disc
lr-xr-xr-x 1 root root 33 Sep 25 13:00 /dev/sdb -> scsi/host1/bus0/target0/ lun0/disc
lr-xr-xr-x 1 root root 34 Sep 25 13:00 /dev/sdb1 -> scsi/host1/bus0/target0/ lun0/part1

where sdb1 was my camera.

Is this a custom kernel or redhat's default?? I know the modules I need for my Sony USB camera to work are..

ide-scsi
usbcore
usb-uhci
usb-storage

Hope this helps a little

zokik 05-02-2003 09:34 AM

With cdrecord -scanbus only my cd burner is listed, not also the camera.

I tried
ls -l /dev/sd*
anyway and got *huge* output (I redirected to a file, it's 269 kB):

Code:

brw-rw----    1 root    disk      8,  0 avg 31  2002 /dev/sda
brw-rw----    1 root    disk      8,  1 avg 31  2002 /dev/sda1
brw-rw----    1 root    disk      8,  10 avg 31  2002 /dev/sda10
brw-rw----    1 root    disk      8,  11 avg 31  2002 /dev/sda11
brw-rw----    1 root    disk      8,  12 avg 31  2002 /dev/sda12
(etc, etc)

This is a part of lsmod output:

Module Size Used by Tainted: P
usb-storage 62000 0
ide-scsi 10512 0
usb-ohci 21320 0 (unused)
usbcore 77024 1 [usb-storage hid usb-ohci]


I have the default rh kernel.

Genesee 05-02-2003 10:44 AM

zokik - linux-usb.org has the C-220 Zoom listed:

http://www.qbik.ch/usb/devices/showdev.php?id=1196


also, the author says this kernel patch works for C-220 zoom (at least as of 2.4.20 ?):

http://home.earthlink.net/~ebrombaugh/d150.html


hope that helps you.

:cool:

zokik 05-02-2003 02:07 PM

YES, that worked!! Finally:D

I didn't bother recompiling the modules, because this camera is the only usb device I have. So I just changed both occurances of "USBS" to "USBU" in /lib/modules/2.4.18-14/kernel/drivers/usb/storage/usb-storage.o

Too bad magicdev works only with gnome, not also kde which I prefer.

Thanks to everybody for helping me!


All times are GMT -5. The time now is 12:05 PM.