LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-01-2003, 05:53 AM   #1
zokik
Member
 
Registered: Dec 2002
Distribution: SuSE 8.2
Posts: 58

Rep: Reputation: 15
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.
 
Old 05-01-2003, 06:36 AM   #2
Misel
Member
 
Registered: Mar 2003
Location: Berlin
Distribution: Slackware current
Posts: 310

Rep: Reputation: 31
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
 
Old 05-01-2003, 07:36 AM   #3
zokik
Member
 
Registered: Dec 2002
Distribution: SuSE 8.2
Posts: 58

Original Poster
Rep: Reputation: 15
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.
 
Old 05-01-2003, 10:06 AM   #4
klod
Member
 
Registered: Apr 2003
Location: shoebox (with broadband ;)
Distribution: debian woody/sid
Posts: 70

Rep: Reputation: 15
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!
 
Old 05-01-2003, 11:48 AM   #5
zokik
Member
 
Registered: Dec 2002
Distribution: SuSE 8.2
Posts: 58

Original Poster
Rep: Reputation: 15
Strange, this doesn't work in rh8 (tried also as root).

mount: can't find /mnt/camera in /etc/fstab or /etc/mtab
 
Old 05-01-2003, 02:24 PM   #6
augamecock
Member
 
Registered: Feb 2002
Location: Atlanta, GA
Distribution: Debian
Posts: 78

Rep: Reputation: 15
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
 
Old 05-01-2003, 03:21 PM   #7
zokik
Member
 
Registered: Dec 2002
Distribution: SuSE 8.2
Posts: 58

Original Poster
Rep: Reputation: 15
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
 
Old 05-02-2003, 08:43 AM   #8
augamecock
Member
 
Registered: Feb 2002
Location: Atlanta, GA
Distribution: Debian
Posts: 78

Rep: Reputation: 15
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
 
Old 05-02-2003, 09:34 AM   #9
zokik
Member
 
Registered: Dec 2002
Distribution: SuSE 8.2
Posts: 58

Original Poster
Rep: Reputation: 15
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.
 
Old 05-02-2003, 10:44 AM   #10
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
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.

 
Old 05-02-2003, 02:07 PM   #11
zokik
Member
 
Registered: Dec 2002
Distribution: SuSE 8.2
Posts: 58

Original Poster
Rep: Reputation: 15
YES, that worked!! Finally

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!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
IBM PC Camera (USB) mib Linux - Newbie 4 05-04-2006 02:31 PM
usb camera 2.6.9 Ipolit Debian 4 03-24-2005 10:02 PM
Newbie needs some help with USB Camera kboone Debian 4 12-05-2004 08:25 AM
How to use USB Camera Under Linux weiweif Linux - Software 2 10-15-2004 04:04 PM
help with usb camera ? synapse Slackware 2 03-19-2004 03:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration