Linux - HardwareThis 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.
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.
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.
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.
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.
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?
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.
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:
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.
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.
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...
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.