Click to See Complete Forum and Search --> : USB Digital Camera??


stingray72
04-15-2002, 07:27 PM
I have just acquired a Sony DSC-P5 Digital camera and am in need of assistance getting my pictures off of it.

1st off some specs...

I have an AMD Thunderbird 900
I'm running RedHat 7.2 w/ kernel 2.4.9

I did a modprobe usb-storage and then tried

mount /dev/sda1 /mnt/camera

it always says "unknown" device. Where can I look and see if the camera is detected and how can I access the pics??

Oh yeah, I know this camera works. A buddy of mine uses his w/ RH7.2 also. I am unable to get his assistance at the moment though

thanks in advance

stingray72
04-16-2002, 05:48 AM
I don't know if this would help any but I looked in /etc/bus/usb/devices and this is what it shows

T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 11/900 us ( 1%), #Int= 1, #Iso= 0
D: Ver= 1.00 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 0.00
S: Product=USB UHCI Root Hub
S: SerialNumber=d000
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=255ms
T: Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=12 MxCh= 4
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=058f ProdID=9254 Rev= 1.00
S: Manufacturer=ALCOR
S: Product=Generic USB Hub
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 1 Ivl=255ms
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0D: Ver= 1.00 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 0.00
S: Product=USB UHCI Root Hub
S: SerialNumber=d400
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=255ms
T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 3 Spd=12 MxCh= 0
D: Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=054c ProdID=0010 Rev= 3.28
S: Manufacturer=Sony
S: Product=Sony DSC
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 2mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=ff Prot=01 Driver=(none)
E: Ad=01(O) Atr=02(Bulk) MxPS= 64 Ivl= 0ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl= 0ms
E: Ad=83(I) Atr=03(Int.) MxPS= 8 Ivl=255ms


It's obviously "picking up" the camera, but I can't mount it for some reason. I'm lost. PLease help

bugfix
04-16-2002, 05:54 AM
Try:
cat /proc/scsi/scsi

stingray72
04-16-2002, 05:57 AM
This is all I'm getting

Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: HP Model: CD-Writer+ 9500 Rev: 1.0e
Type: CD-ROM ANSI SCSI revision: 02

:confused:

bugfix
04-16-2002, 07:06 AM
Guess it hasn't picked up your camera then. Silly question: you do have the camera switched on, don't you?

How I'd do it:

modprobe usb-uhci
modprobe usb-storage
mount /dev/sda1 /mnt/camera


You may have forgotten to modprobe usb-uhci, which is needed for any USB device. If 'usb-uhci' doesn't work try modprobing 'usb-ohci' or 'uhci'. One of them will work and is dependent on you motherboard.

stingray72
04-16-2002, 07:22 AM
This is what lsmod gives me

Module Size Used by Not tainted
nls_iso8859-1 2816 1 (autoclean)
sr_mod 15480 1 (autoclean)
vfat 10332 0 (autoclean)
fat 32984 0 (autoclean) [vfat]
sd_mod 11932 0 (autoclean) (unused)
usb-storage 55276 0 (unused)
autofs 11556 0 (autoclean) (unused)
8139too 13120 1
ide-scsi 8288 1
scsi_mod 98616 3 [sr_mod sd_mod usb-storage ide-scsi]
ide-cd 27072 0
cdrom 28576 0 [sr_mod ide-cd]
usb-uhci 21668 0 (unused)
usbcore 51808 1 [usb-storage usb-uhci]


and yes I have the camera turned on :D

bugfix
04-16-2002, 07:34 AM
*cough* *clears throat*
"Ladies and Gentlemen, I bring important news. Like other Sony cameras that support both PTP and USB Mass Storage, the camera must be switched from the setup menu from normal to PTP mode. That changes the USB device ID. I thank you for your time."

I hope that works because I haven't got any other sugestions. :confused:

[ 16 April 2002: Message edited by: bugfix ]

Malakin
04-16-2002, 07:39 AM
I have a dsc-p1, there is nothing in the menu for switching it between ptp and usb mass storage.

I've never had a problem mounting it in Linux using usb mass storage.

stingray72
04-16-2002, 07:42 AM
I found that statement also. I switched it to PTP.

There must be something I haven't compiled in my kernel or something?? I tried with the standard 2.4.7 kernel that comes w/ RedHat 7.2 and I used an upgraded kernel of Red Hat errata 2.4.9. I have not compiled one from source yet (been trying to avoid that).

I know this works, and I'm going to figured how damnit!!! Probably w/ a lot of you guys help :D

BTW, how would I tell what device it's supposed to be??

I've been trying /dev/sda1. It could be something else though couldn't it? sdb, sdc? hell, I don't know.

bugfix
04-16-2002, 07:45 AM
Originally posted by stingray72:
<STRONG>BTW, how would I tell what device it's supposed to be??
</STRONG>

Erm, dunno but if it doesn't show up in cat /proc/scsi/scsi its not worth trying to mount it.

Your ismod log inidcates to me that you have all the appropiate modules and you should needn't to fock with the kernel. Anyone else?

[ 16 April 2002: Message edited by: bugfix ]

[ 16 April 2002: Message edited by: bugfix ]

carlywarly
04-16-2002, 08:27 AM
2 more things to try -

1 - as root run cdrecord -scanbus in a console. You should see someting like

Cdrecord 1.11a15 (i586-mandrake-linux-gnu) Copyright (C) 1995-2001 Jörg Schilling
Linux sg driver version: 3.1.22
Using libscg version 'schily-0.5'
scsibus0:
0,0,0 0) 'LITEON ' 'DVD-ROM LTD163 ' 'GH4N' Removable CD-ROM
0,1,0 1) 'LITE-ON ' 'LTR-24102B ' '5S54' Removable CD-ROM
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
scsibus1:
1,0,0 100) 'SanDisk ' 'ImageMate II ' '1.30' Removable Disk
1,1,0 101) *
1,2,0 102) *
1,3,0 103) *
1,4,0 104) *
1,5,0 105) *

1,6,0 106) *
1,7,0 107) *

Where my sandisk appears, you may see your sony. See if it is.

2 - Run usbview in a console as root. It will also tell you if your Sony is there.

Once you know if it is found, then we can sort out what symbol has been assigned to it, like sda etc.

stingray72
04-16-2002, 04:38 PM
Well, here's my cdrecord -scanbus and obviously my camera is not there

cdrecord -scanbus
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jörg Schilling
Linux sg driver version: 3.1.20
Using libscg version 'schily-0.5'
scsibus0:
0,0,0 0) 'HP ' 'CD-Writer+ 9500 ' '1.0e' Removable CD-ROM
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *

It does show up when I do usbview though? Any other takers??

carlywarly
04-16-2002, 04:58 PM
Try unplugging it and replugging it and then run cdrecord -scanbus again - it should show up then.

stingray72
04-16-2002, 05:03 PM
nope.... :confused:

carlywarly
04-16-2002, 05:09 PM
Er, well, what did usbview say about it? In usbview there is an option to configure the highlighted device, have you tried that?

( I'm just guessing now, I really expected it to show up under cdrecord...... )

stingray72
04-16-2002, 05:13 PM
I guess it won't configure b/c I don't have a usbdevfs file that it's looking for?

stingray72
04-16-2002, 07:57 PM
I now have a working USB camera. A buddy who got his working was finally able to help. It took a kernel recompile. I think the usb-uhci module was wrong. There was a generic on and another one and I needed the non-generic. If anyone would like an exact answer, I will certainly find out and post here. thanks for all the help