SOLVED: Mounting Creative PC-CAM 880 camera

The place to post if you need help or advice

Moderators: ChrisThornett, LXF moderators

SOLVED: Mounting Creative PC-CAM 880 camera

Postby alloydog » Thu Aug 04, 2005 8:01 am

I have been trying to use a Creative PC-880 camera with BeatrIX.
I installed gtkam, but it does not list that particular model.

There is an issue with hotplug devices and BeatrIX, so just I plugged the camera in and rebooted.
The appropriate section in dmesg was this:
Code: Select all
usbcore: registered new driver usbfs
usbcore: registered new driver hub
USB Universal Host Controller Interface driver v2.2
PCI: Found IRQ 11 for device 0000:00:07.2
PCI: Sharing IRQ 11 with 0000:00:0a.0
uhci_hcd 0000:00:07.2: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller
uhci_hcd 0000:00:07.2: irq 11, io base 00001440
uhci_hcd 0000:00:07.2: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ohci_hcd: 2004 Feb 02 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
ohci_hcd: block sizes: ed 64 td 64
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
ieee1394: Initialized config rom entry `ip1394'
usb 1-1: new full speed USB device using address 2
sbp2: $Rev: 1219 $ Ben Collins <bcollins@debian.org>
ieee1394: sbp2: Driver forced to serialize I/O (serialize_io = 1)
scsi1 : SCSI emulation for USB Mass Storage devices
  Vendor: Creative  Model:  PC-CAM 880       Rev: 1.00
  Type:   Direct-Access                      ANSI SCSI revision: 02
SCSI device sda: 32000 512-byte hdwr sectors (16 MB)
sda: assuming Write Enabled
sda: assuming drive cache: write through
 sda:<6>Real Time Clock Driver v1.12
 sda1
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
USB Mass Storage device found at 2


So, the camera is detected and recognised correctly, and mounted to sda1. But looking in /dev/, I could not find sda1. They seemed to start at sda10.

I just really what to be able to browse to the camera, say with GIMP and take the images from there.

What am I missing?
Last edited by alloydog on Thu Sep 01, 2005 9:05 am, edited 2 times in total.
User avatar
alloydog
LXF regular
 
Posts: 600
Joined: Thu Apr 07, 2005 7:32 pm

RE: Creative PC-880 camera

Postby alloydog » Thu Aug 04, 2005 9:10 am

After reading this:
Digital Camera Support for UN*X, I added the line to fstab:
Code: Select all
/dev/sda1    /mnt/usbhd       usbdevfs            defaults   1   2

I can now mount and browse to /mnt/usbhd/001 and see three files on the camera. These are three photos I took yesterday. On a Windows 2000 PC, I can clearly see these files as .jpgs. But on the Linux PC, there is no extention given, and no image viewer I have (for example, GIMP) is able to open them, even if I add the extention .jpg

Ideas?
User avatar
alloydog
LXF regular
 
Posts: 600
Joined: Thu Apr 07, 2005 7:32 pm

RE: Creative PC-880 camera

Postby ollie » Fri Aug 05, 2005 10:53 am

I think these files are either the RAW images or the metadata files assocciated with your photos. Windows will just display the images using the camera's software to process the data.

More information here:
Raw Digital Photo Decoding in Linux
Linux panoramic photography packages download

PS - Please fix your quote from Albert Einstein, it really is "Imagination is more important than knowledge." See here
User avatar
ollie
Moderator
 
Posts: 2749
Joined: Mon Jul 25, 2005 11:26 am
Location: Bathurst NSW Australia

RE: Creative PC-880 camera

Postby coolclassic » Sun Aug 07, 2005 7:39 am

Why not try the package digikam it seems to be more flexable than gtkam and it will alow you to download from camera
The world is your playground why don't you play.
User avatar
coolclassic
LXF regular
 
Posts: 108
Joined: Fri Apr 08, 2005 2:15 pm

RE: Creative PC-880 camera

Postby alloydog » Tue Aug 09, 2005 9:24 am

I have looked at both gtkam and digikam, but neither list this camera as supported.

When I browse to the camera, it is seen by both Windows 2000 and Linux as a USB mounted harddrive.

Windows 2000:
Removable Disk (F: ) / DCIM / 100ALBUM + list of jpg files

Linux
/mnt/camera/001 + three files 001 002 003, but no images.

In fstab I have it mounted as usbdevfs, but Windows 2000 shows it to be FAT. But if I use fat in fstab, hwen i try to mount he device, I get th emessage:
Code: Select all
mount: special device /dev/sda1 does not exist


Am I mounting the camera correctly?
Last edited by alloydog on Tue Aug 09, 2005 3:52 pm, edited 1 time in total.
User avatar
alloydog
LXF regular
 
Posts: 600
Joined: Thu Apr 07, 2005 7:32 pm

RE: Creative PC-880 camera

Postby alloydog » Tue Aug 09, 2005 11:47 am

With digikam I get java errors...
User avatar
alloydog
LXF regular
 
Posts: 600
Joined: Thu Apr 07, 2005 7:32 pm

RE: Creative PC-880 camera

Postby nelz » Tue Aug 09, 2005 1:17 pm

When we guess what the java errors are, you may get a useful response.

Meanwhile, what does

[gphoto2 --auto-detect[/code]

show? gphoto2 doesn't appear to support this camera, but it may do as a different brand.

Mounting it with usbdevfs is unlikely to work, cameras generally use a FAT filesystem. Try

Code: Select all
mount /dev/sda1 /mnt/wherever
or
mount /dev/sda1 /mnt/wherever -t vfat
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 8577
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

Postby alloydog » Wed Aug 10, 2005 6:47 pm

For both
Code: Select all
mount /dev/sda1 /mnt/camera

and
Code: Select all
mount /dev/sda1 /mnt/camera -t vfat

I get
Code: Select all
mount: special device /dev/sda1 does not exist


Correction, it wasn't digikam I got the Java errors, it was jphoto:
Code: Select all
###:~/programmes/jphoto/jphoto-0.3.6-i386$ ls
README  jphoto  jphoto.jar  jusb.jar  libjusb.so
###:~/programmes/jphoto/jphoto-0.3.6-i386$ jphoto -camera
Warning: -native option not RECOGNIZED by java-sablevm wrapper.
A not recognized option will be just passed to SableVM.
Note that we don't know if we should expect an argument here!
It almost _surely_ will result in an errors when the param is followed
by an argument. Refer to 'man java-sablevm' and 'man sablevm'.
sablevm: "-native" unknown option
Try "sablevm --help" for more information


sablevm --help gives me:
Code: Select all
###:~/programmes/jphoto/jphoto-0.3.6-i386$ sablevm --help
Usage: sablevm [OPTION]... CLASSNAME [ARGUMENT]...
  -c, --classpath="PATH"          set class path
  -p, --property="NAME=VALUE"     set system property
  -v, --verbose                   enable all verbose options
  -q, --quiet                     disable all verbose options
  -s, --verbose-class             enable verbose class loading
  -S, --no-verbose-class          disable verbose class loading
  -g, --verbose-gc                enable verbose garbage collection
  -G, --no-verbose-gc             disable verbose garbage collection
  -j, --verbose-jni               enable verbose JNI
  -J, --no-verbose-jni            disable verbose JNI
  -y, --copyright                 display copyright
  -Y, --no-copyright              do not display copyright
  -L, --license                   display license information and exit
  -V, --version                   display version information and exit

Help options:
  -?, --help                      Show this help message
  --usage                         Display brief usage message


which doesn't help me much...

gphoto:
Code: Select all
voyager@voyager:~$ gphoto2 --auto-detect
Model                          Port
----------------------------------------------------------

not much there either.

I have just downloaded digikam7.3 Started to follow the instructions, only to be told that I need KDE!
------------------------------------------------------------------------------------------------------------

I think the problem still lies with the mounting of the device. I have now read several websites, for this camera, and both say you can retreive images straight from it just by mounting it as a usb storage device. I have usb_storage in modules-2.6.7.

However, they all sem to say the device is mounted as vfat, but for me that throws up the error mount: special device /dev/sda1 does not exist as earlier described.
User avatar
alloydog
LXF regular
 
Posts: 600
Joined: Thu Apr 07, 2005 7:32 pm

Postby nelz » Wed Aug 10, 2005 8:17 pm

Just a thought, is the usb-storage module loaded? Try

Code: Select all
modprobe -v usb-storage


I have this problem on one computer, the module doesn't autoload when I plug in a device, so I have to make sure it is loaded when I boot.
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 8577
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

Postby alloydog » Thu Aug 11, 2005 9:02 am

Nope, still doesn't work...

With the fs as vfat, I still get "special device /dev/sda1 does not exist".
User avatar
alloydog
LXF regular
 
Posts: 600
Joined: Thu Apr 07, 2005 7:32 pm

Postby coolclassic » Thu Aug 11, 2005 10:05 pm

connect your camera and type dmesg in your shell and show us the results. This will tell us if your camera is reconised.
The world is your playground why don't you play.
User avatar
coolclassic
LXF regular
 
Posts: 108
Joined: Fri Apr 08, 2005 2:15 pm

Postby coolclassic » Thu Aug 11, 2005 10:15 pm

If your dmesg redult is good you will need to make an entry in /etc/fstab
#<fs> <mountpoint> <type> <opts> <dump/pass>
/dev/sda1 /home/whoever/directory* vfat defaults,user,noauto 0 0

*directory name you created

then to see your camera
mount /dev/sda1
and hopfully when you open up the directory you created it should be there
and when finnished
umount /dev/sda1
The world is your playground why don't you play.
User avatar
coolclassic
LXF regular
 
Posts: 108
Joined: Fri Apr 08, 2005 2:15 pm

Postby alloydog » Fri Aug 12, 2005 3:33 am

From /var/log/messages: (camera plugged in after PC booted)
Code: Select all
Aug 12 00:17:11 kernel: usb 1-1: new full speed USB device using address 3
Aug 12 00:17:11 kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Aug 12 00:17:11 kernel:   Vendor: Creative  Model:  PC-CAM 880       Rev: 1.00
Aug 12 00:17:11 kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Aug 12 00:17:12 kernel: SCSI device sda: 32000 512-byte hdwr sectors (16 MB)
Aug 12 00:17:12 kernel: sda: assuming Write Enabled
Aug 12 00:17:12 scsi.agent[9916]: bogus sysfs DEVPATH=/devices/pci0000:00/0000:00:07.2/usb1/1-1/1-1:1.0/host1/1:0:0:0
Aug 12 00:17:12 kernel:  sda: sda1
Aug 12 00:17:12 kernel: Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
Aug 12 00:17:13 usb.agent[9908]:      usb-storage: already loaded
Aug 12 00:22:04 kernel: usb 1-1: USB disconnect, address 3
Aug 12 00:22:05 kernel: usb 1-1: new full speed USB device using address 4


From /var/log/messages: (camera plugged in before PC booted)
Code: Select all
Aug 12 00:47:57 kernel: Initializing USB Mass Storage driver...
Aug 12 00:47:57 kernel: usbcore: registered new driver usb-storage
Aug 12 00:47:57 kernel: USB Mass Storage support registered.
Aug 12 00:47:57 kernel: usb 1-1: new full speed USB device using address 2
Aug 12 00:47:57 kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Aug 12 00:47:57 kernel:   Vendor: Creative  Model:  PC-CAM 880       Rev: 1.00
Aug 12 00:47:57 kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Aug 12 00:47:57 kernel: sbp2: $Rev: 1219 $ Ben Collins <bcollins@debian.org>
Aug 12 00:47:57 kernel: SCSI device sda: 32000 512-byte hdwr sectors (16 MB)
Aug 12 00:47:57 kernel: sda: assuming Write Enabled
Aug 12 00:47:57 kernel:  sda: sda1
Aug 12 00:47:57 kernel: Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0


From dmesg: (camera plugged in before PC booted)
Code: Select all
scsi1 : SCSI emulation for USB Mass Storage devices
  Vendor: Creative  Model:  PC-CAM 880       Rev: 1.00
  Type:   Direct-Access                      ANSI SCSI revision: 02
sbp2: $Rev: 1219 $ Ben Collins <bcollins@debian.org>
ieee1394: sbp2: Driver forced to serialize I/O (serialize_io = 1)
SCSI device sda: 32000 512-byte hdwr sectors (16 MB)
sda: assuming Write Enabled
sda: assuming drive cache: write through
 sda: sda1
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
USB Mass Storage device found at 2


With the fstab entry as either:
Code: Select all
/dev/sda1   /camera      auto      defaults            0  0

or
Code: Select all
/dev/sda1   /camera      vfat      defaults            0  0

I get the "device does not exist" message

With
Code: Select all
/dev/sda1   /camera      usbfs      defaults            0  0

the camera apparently mounts.
However, browsing to /camera I see a file called devices, and a subdirectory called 001 containing three unknown files, each about 50 b, called 001 , 002 , and 003 .

The devices file contains details of all the USB devices plugged, the ub, the camera and the mouse, with the camera listed as such:
Code: Select all
T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  5 Spd=12  MxCh= 0
D:  Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=041e ProdID=4024 Rev= 1.00
S:  Manufacturer=Creative Technology Ltd.
S:  Product=Creative PC-CAM 880
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=150mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=00(>ifc ) Sub=00 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms

I thin there, should be under such a file in /proc/bus/usbsomething, but there is nothing.

I notice, though, no driver is listed:
Code: Select all
I:  If#= 0 Alt= 0 #EPs= 2 Cls=00(>ifc ) Sub=00 Prot=00 Driver=(none)
.

In /etc/modules-2.6.7, I have the following usb/ieee1394 relted drivers loaded:
Code: Select all
usbhid
usbcore
uhci_hcd
ohci_hcd
usb_storage
ieee1394
ohci1394
User avatar
alloydog
LXF regular
 
Posts: 600
Joined: Thu Apr 07, 2005 7:32 pm

Postby nelz » Fri Aug 12, 2005 7:41 am

Code: Select all
The devices file contains details of all the USB devices plugged, the ub, the camera and the mouse, with the camera listed as such:


You should see this when mounting with the usbfs option. This is what usbfs does, it exposes the USB system. With auto or vfat, you should see the contents of the filesystem on the camera.

What does "fdisk -l /dev/sda" show?
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 8577
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

Postby alloydog » Fri Aug 12, 2005 8:26 am

nelz wrote:What does "fdisk -l /dev/sda" show?

Nothing!
Yes, I did mount the camera, though I used usbfs in the fstab, as it will not mount with vfat
User avatar
alloydog
LXF regular
 
Posts: 600
Joined: Thu Apr 07, 2005 7:32 pm

Next

Return to Help!

Who is online

Users browsing this forum: No registered users and 4 guests