LinuxQuestions.org
Review your favorite Linux distribution.
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 03-07-2006, 10:37 PM   #1
etcetera
Member
 
Registered: Aug 2004
Posts: 436

Rep: Reputation: 17
Olympus on Fedora Core 3


I have Olympus D535Z digital camera. I am running Fedora Core 3. How do I use this camera with the operating system? Nothing happens when I plug it in, other than the camera turning on.

Do I need to mount the device?
 
Old 03-08-2006, 10:35 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
If it is a USB PTP (Picture Transfer Protocol, 'PictBridge') enabled camera, then gphoto2 should work with it. If it is a USB file system style of device, then you can mount it on your file system just like a USB flash disk system. A google search for '"USB flash Drive" linux' gets lots of good hits.

--- rod.
 
Old 03-08-2006, 10:54 AM   #3
etcetera
Member
 
Registered: Aug 2004
Posts: 436

Original Poster
Rep: Reputation: 17
What's the device file name to mount, and what is the mount point?
 
Old 03-08-2006, 12:40 PM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
On systems I use, a USB flash drive shows up as /dev/sdb or /dev/sdc, which is the second or third scsi drive on systems with existing SATA drives. You can choose a mountpoint of your own liking. My convention is to use /mnt/usbdisk, but there is nothing magical about that name. Plug in the camera, and look in dmesg &/or /var/log/messages (or wherever your system logs are). You may see a reference to the USB storage device. If not, try rebooting the system with camaera attached, and look again in the logs. Once found, it will probably be mountable as a FAT, FAT32 or VFAT filesystem.

Really, though, there are loads of online references with much more & better detail on this topic.

--- rod.
 
Old 03-08-2006, 09:01 PM   #5
etcetera
Member
 
Registered: Aug 2004
Posts: 436

Original Poster
Rep: Reputation: 17
.................

Last edited by etcetera; 03-08-2006 at 11:02 PM.
 
Old 03-08-2006, 10:59 PM   #6
etcetera
Member
 
Registered: Aug 2004
Posts: 436

Original Poster
Rep: Reputation: 17
Following directions on: http://www.gphoto.org/doc/manual/permissions-usb.html

Quote:
Load your USB driver (e.g. OHCI or UHCI) and mount the USB device filesystem[1], i.e. e.g.

host:~# modprobe usb-uhci
host:~# modprobe usb-ohci
host:~# mount -t usbfs usb /proc/bus/usb
I think I am having a problem with this, as nothing gets loaded in /proc/bus/usb.



mount -t usbfs usb /proc/bus/usb

/usr/lib/libgphoto2/print-usb-usermap > /etc/hotplug/usb/usbcam.usermap
/usr/lib/libgphoto2/print-usb-usermap >> /etc/hotplug/usb.usermap

Created /etc/hotplug/usb/usbcam script.

Plugged in the camera, it turned on. I saw the following in dmesg:

SELinux: initialized (dev usbfs, type usbfs), uses genfs_contexts

and this in /var/log/messages:

Mar 8 23:21:42 machine kernel: SELinux: initialized (dev usbfs, type usbfs), uses genfs_contexts


However, nothing has been created in

/proc/bus/usb

That's a problem. Why is that? My camera, Olympus D-535Z is not listed. The closest thing to it is Olympus D-560Z, whose string appears in /etc/hotplug/usermap.

Do I need to get a supported camera? Other solutions?

Last edited by etcetera; 03-08-2006 at 11:01 PM.
 
Old 03-08-2006, 11:21 PM   #7
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Some things to check. Does your system have USB mass storage enabled? I presume this is either a built-in kernel module, or perhaps a module you can load manually with modprobe.

Run lsmod, and see if the usb_storage and scsi_mod modules are loaded.



Here is a sample from dmesg when I plug in a USB Flash Disk, which would be quite similar (sorry, don't have acces to a USB Storage camera right now).

Code:
usb 1-6: new high speed USB device using ehci_hcd and address 6
scsi6 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 6
usb-storage: waiting for device to settle before scanning
  Vendor: Generic   Model: Flash Disk        Rev: 8.01
  Type:   Direct-Access                      ANSI SCSI revision: 02
SCSI device sdb: 255998 512-byte hdwr sectors (131 MB)
sdb: Write Protect is off
sdb: Mode Sense: 03 00 00 00
sdb: assuming drive cache: write through
SCSI device sdb: 255998 512-byte hdwr sectors (131 MB)
sdb: Write Protect is off
sdb: Mode Sense: 03 00 00 00
sdb: assuming drive cache: write through
 sdb: sdb1 sdb2
Attached scsi removable disk sdb at scsi6, channel 0, id 0, lun 0
usb-storage: device scan complete
SELinux: initialized (dev sdb1, type vfat), uses genfs_contexts
SELinux: initialized (dev sdb2, type ext2), uses xattr


Above, we can see the Flash Disk recognized by the USB Mass Storage subsystem, which causes it to emulate a SCSI disk. Mine has two partitions, /dev/sdb1, a VFAT partition, and /dev/sdb2, an ext2 partition.




Also, you may get some useful info with 'lsusb':
Code:
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 002: ID 046d:c01a Logitech, Inc.
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 006: ID 058f:6386 Alcor Micro Corp.
Bus 001 Device 001: ID 0000:0000
lsusb shows a Logitech mouse and the flash disk.


Do you have any USB device that is presently working correctly in this system?

A quick Google search would seem to indicate that Olympus cameras use the USB mass storage system style of interface (http://www.figuiere.net/hub/talks/gu...with-gnome.pdf see page 14), so I don't think gphoto2 is your answer.

Hope this helps.

--- rod.

Last edited by theNbomr; 03-09-2006 at 12:07 AM.
 
Old 03-09-2006, 12:06 AM   #8
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Looks like we were both typing at the same time, and our posts seem to be in backwards order...

Anyway, I think all of what you are doing is geared toward the gphoto2 use of PTP protocol. I don't think gphoto2 is going to work for you. I am fairly sure that any success will be via the route of USB Storage with SCSI emulation.

Do you see anything in /proc/scsi/usb-storage?

Code:
[root@localhost /home/bomr]# dir /proc/scsi/usb-storage/
total 0
0 dr-xr-xr-x  2 root root 0 Mar  8 22:02 .
0 dr-xr-xr-x  3 root root 0 Mar  8 22:02 ..
0 -rw-r--r--  1 root root 0 Mar  8 22:02 7
[root@localhost /home/bomr]# more /proc/scsi/usb-storage/7
   Host scsi7: usb-storage
       Vendor: Generic
      Product: Mass Storage Device
Serial Number: 00000000
     Protocol: Transparent SCSI
    Transport: Bulk
       Quirks:
This seems to be fairly well explained in http://www.wlug.org.nz/DigitalCameraSetup

Good luck.

--- rod.
 
Old 03-11-2006, 12:59 PM   #9
etcetera
Member
 
Registered: Aug 2004
Posts: 436

Original Poster
Rep: Reputation: 17
lsusb command produces nothing:

root:~/> lsusb
root:~/>
root:~/> dmesg|grep -i usb
usbcore: registered new driver usbfs
usbcore: registered new driver hub
usbcore: registered new driver hiddev
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
SELinux: initialized (dev usbfs, type usbfs), uses genfs_contexts
USB Universal Host Controller Interface driver v2.2

root:~/> lsmod|egrep -i "usb_storage|scsi_mod"
scsi_mod 112136 4 sr_mod,st,aic7xxx,sd_mod
root:~/>



Nothing in proc/scsi/usb-storage. What next should I try?

root:/proc/scsi/> ll
total 0
dr-xr-xr-x 2 root root 0 Mar 11 13:59 aic7xxx
-r--r--r-- 1 root root 0 Mar 11 13:59 device_info
-r--r--r-- 1 root root 0 Mar 11 13:59 scsi
root:/proc/scsi/>

Last edited by etcetera; 03-11-2006 at 01:11 PM.
 
Old 03-11-2006, 01:27 PM   #10
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Try installing the usb_storage module:

modprobe usb_storage

Are you sure the USB interface works on the system in question? Under FC3, especially? On the specific physical port you are using the camera on? Does the absense of any device detected by 'lsusb' make sense? Maybe you can borrow a USB device that is known to work; a mouse, memory stick, MP3 player, external drive, etc, and confirm that the hardware is all functional.

BTW, the system I am citing my examples from is also FC3, so that may be helpful.

--- rod.
 
Old 03-11-2006, 01:49 PM   #11
etcetera
Member
 
Registered: Aug 2004
Posts: 436

Original Poster
Rep: Reputation: 17
I am not sure if that loaded the right module or not, here is the output:

total 0
root:~/> modprobe usb_storage
root:~/>
root:~/>
root:~/> lsmod | grep -i usb
usb_storage 62857 0
scsi_mod 112136 5 usb_storage,sr_mod,st,aic7xxx,sd_mod

root:~/> dmesg | tail
parport0: PC-style at 0x378 [PCSPP,TRISTATE]
lp0: using parport0 (polling).
lp0: console ready
application firefox-bin uses obsolete OSS audio interface
NETDEV WATCHDOG: eth0: transmit timed out
e100: eth0: e100_watchdog: link up, 100Mbps, full-duplex
ohci_hcd: 2004 Feb 02 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.

tail /var/log/messages
Mar 11 14:46:58 kernel: Initializing USB Mass Storage driver...
Mar 11 14:46:58 kernel: usbcore: registered new driver usb-storage
Mar 11 14:46:58 kernel: USB Mass Storage support registered.

However, I see nothing like

Code:
 scsi6 : SCSI emulation for USB Mass Storage devices

Are you sure the USB interface works on the system in question?


Nope, I am not sure. I had this system since '99 and I have never used USB on it, this is the first try.


Does the absense of any device detected by 'lsusb' make sense?

Well, yes because I have never had any USB devices connected to it.


Maybe you can borrow a USB device that is known to work; a mouse, memory stick, MP3 player, external drive, etc, and confirm that the hardware is all functional.


I am certain that this digital camera (Olympus D535Z) is functional, I use it all the time under Windows XP.

Last edited by etcetera; 03-11-2006 at 02:10 PM.
 
Old 03-12-2006, 11:33 AM   #12
etcetera
Member
 
Registered: Aug 2004
Posts: 436

Original Poster
Rep: Reputation: 17
top
...............
 
Old 03-12-2006, 12:08 PM   #13
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
To me, it looks like the usb_storage module got loaded correctly, since it shows up in the list of modules reported by lsmod.

The SCSI Emulation stuff, for me, showed up at the point where I plugged in the flash disk.

I'm starting to run out of ideas. It is looking like there may be a hardware issue with your system. It would really be helpful to eliminate that as a source of problems. Is there any chance you can get a device which is fairly standard, a mouse for example, and get that working on the USB port? In the early days of USB, I know there were some issues about universal compatibility. I had problems making certain devices work on certain USB hardware; printers, scanners, etc. One solution back then, was to plug in a PCI-based USB interface. It would invariably be newer, and more compatible than the on-board USB subsystem. Maybe...

--- rod.
 
Old 03-12-2006, 01:53 PM   #14
etcetera
Member
 
Registered: Aug 2004
Posts: 436

Original Poster
Rep: Reputation: 17
You know, you are probably right. It is a pretty old machine by today's standards. (late '98, early '99). I am not sure if that's when they came out with USB Maybe that's the reason.

FWIW, here are the specs:

ASUS P2B-DS Dual Pentium II motherboard (dual 400mhz)
System I/O
- Infrared (IrDA) port
- Two (2) RS-232C 16550 serial ports
- One (1) ECP/EPP Bi-directional parallel port
- Two (2) USB ports <-------------------------- (Note)
- One (1) PS/2 Mini DIN keyboard port
- One (1) PS/2 Mini DIN mouse port
- One (1) Ultra Wide SCSI-2 port (68pin)


You know what, I appreciate your help. I will likely upgrade in the next few weeks anyway. I suppose for now I will have to run to the library to send pics, a minor annoyance. The good thing is, I learned a lot about digital cameras in the last few days. This will be useful in the future.
 
Old 03-12-2006, 05:05 PM   #15
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
You know, one of the motherboards I had a lot of problems with was an Asus P2 of about that vintage. Sounds like that may be the jinx. Sorry we couldn't get your camera going.

--- rod.
 
  


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
Severe problems with Fedora Core 1 and Fedora Core 2 installatiom TheOneKEA Fedora - Installation 2 07-14-2004 02:12 PM
Upgrading via Internet Fedora Core 1 to Fedora Core 2 cdean Linux - Newbie 2 05-30-2004 11:14 PM
Fedora Core 2 - Just days away! Final comments on Fedora Core 1 lrt2003 Fedora 3 05-12-2004 02:09 AM
Will Fedora Core 1 RPMs still be compatable with Fedora Core 2? yarjar Linux - Software 1 05-02-2004 01:02 AM
Fedora & Olympus C-4000 mohapi Fedora 4 01-05-2004 09:07 AM

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

All times are GMT -5. The time now is 01:12 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