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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-01-2003, 05:53 AM
|
#1
|
Member
Registered: Dec 2002
Distribution: SuSE 8.2
Posts: 58
Rep:
|
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.
|
|
|
05-01-2003, 06:36 AM
|
#2
|
Member
Registered: Mar 2003
Location: Berlin
Distribution: Slackware current
Posts: 310
Rep:
|
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 
|
|
|
05-01-2003, 07:36 AM
|
#3
|
Member
Registered: Dec 2002
Distribution: SuSE 8.2
Posts: 58
Original Poster
Rep:
|
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.
|
|
|
05-01-2003, 10:06 AM
|
#4
|
Member
Registered: Apr 2003
Location: shoebox (with broadband ;)
Distribution: debian woody/sid
Posts: 70
Rep:
|
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!
|
|
|
05-01-2003, 11:48 AM
|
#5
|
Member
Registered: Dec 2002
Distribution: SuSE 8.2
Posts: 58
Original Poster
Rep:
|
Strange, this doesn't work in rh8 (tried also as root).
mount: can't find /mnt/camera in /etc/fstab or /etc/mtab
|
|
|
05-01-2003, 02:24 PM
|
#6
|
Member
Registered: Feb 2002
Location: Atlanta, GA
Distribution: Debian
Posts: 78
Rep:
|
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
|
|
|
05-01-2003, 03:21 PM
|
#7
|
Member
Registered: Dec 2002
Distribution: SuSE 8.2
Posts: 58
Original Poster
Rep:
|
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
|
|
|
05-02-2003, 08:43 AM
|
#8
|
Member
Registered: Feb 2002
Location: Atlanta, GA
Distribution: Debian
Posts: 78
Rep:
|
Do a ..
see if your camera comes up there. If it does try
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
|
|
|
05-02-2003, 09:34 AM
|
#9
|
Member
Registered: Dec 2002
Distribution: SuSE 8.2
Posts: 58
Original Poster
Rep:
|
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.
|
|
|
05-02-2003, 02:07 PM
|
#11
|
Member
Registered: Dec 2002
Distribution: SuSE 8.2
Posts: 58
Original Poster
Rep:
|
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!
|
|
|
All times are GMT -5. The time now is 08:00 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|