[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

SCSI emulation of USB camera



Hi all,

I am trying to get my Canon S1 IS to work under Debian. I am running a
mixed testing/unstable system (mostly testing, except for libc6,
X.org, udev and linux-image and their dependencies).

It appears to me that there is some problem with SCSI emulation of my
camera. I insert the camera and /var/log/messages reports

Apr 14 21:26:25 loser kernel: usb 3-1: new full speed USB device using
uhci_hcd and address 3
Apr 14 21:26:26 loser kernel: usb 3-1: configuration #1 chosen from 1
choice

but no SCSI information after like I get with other USB devices. lsusb
shows nothing informative, but usbview correctly shows my camera
suggested. I found a bug report filed against the kernel that
suggested having ehci_hcd loaded might cause problems, so I recompiled
my kernel with the USB stuff as modules and tried different
combinations of modules loaded to see if it made a difference. The
uhci_hcd module has to be loaded to get any recognition of the camera
being plugged in, and whether ehci_hcd is loaded makes no difference.
Loading scsi_debug shows no extra information.

I tried writing a udev rule for the camera 

BUS="usb", SYSFS{vendor}="Canon Inc.", SYSFS{product}="Canon Digital
Camera", NAME="camera%n"

but this has no effect. I have neither /dev/sd* nor /dev/camera* with
or without this rule.

gphoto2 cannot autodetect the camera either.

Comparing with my USB flash drive shows that the versions are
different (1.10 and 2) and the Driver is different (none and
usb-storage). This info is from /proc/bus/usb/devices, and the first
of each pair is the camera. I guess the lack of reported driver for
the camera is the problem, but I'm not sure this is possible to set is
it?

Is there a step I am missing in getting SCSI emulation of this device?
Is there anywhere else I can look for hints about what may be
happening?


Thanks,

James

$ cat /proc/bus/usb/devices (camera)

T:  Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  5 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=04a9 ProdID=309c Rev= 0.01
S:  Manufacturer=Canon Inc.
S:  Product=Canon Digital Camera
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=06(still) Sub=01 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=96ms

$ cat /proc/bus/usb/devices (usb key)

T:  Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  6 Spd=12  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0951 ProdID=1601 Rev= 1.00
S:  Manufacturer=Kingston
S:  Product=DataTraveler II+
S:  SerialNumber=5B511D05874E
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=200mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=83(I) Atr=03(Int.) MxPS=  64 Ivl=1ms


$ lsmod

Module                  Size  Used by
uhci_hcd               29072  0 
usb_storage            24452  0 
rt2500                186084  1 
ipv6                  241792  25 
thermal                10440  0 
fan                     3140  0 
button                  4752  0 
processor              13488  1 thermal
ac                      3268  0 
autofs4                16772  1 
ip_conntrack_ftp        5980  0 
ip_conntrack_irc        5080  0 
it87                   18724  0 
hwmon_vid               2240  1 it87
lm90                   11428  0 
i2c_dev                 7264  0 
hwmon                   2132  2 it87,lm90
i2c_isa                 3264  1 it87
nvidia               4538452  12 
snd_emu10k1           117476  4 
snd_rawmidi            20832  1 snd_emu10k1
snd_ac97_codec         92704  1 snd_emu10k1
snd_ac97_bus            1792  1 snd_ac97_codec
snd_pcm                78984  3 snd_emu10k1,snd_ac97_codec
snd_seq_device          6860  2 snd_emu10k1,snd_rawmidi
snd_timer              20484  2 snd_emu10k1,snd_pcm
snd_page_alloc          8328  2 snd_emu10k1,snd_pcm
snd_util_mem            3392  1 snd_emu10k1
8139too                21632  0 
i2c_viapro              7316  0 
snd_hwdep               7236  1 snd_emu10k1
snd                    45312  14 snd_emu10k1,snd_rawmidi,snd_ac97_codec,snd_pcm,snd_seq_device,snd_timer,snd_hwdep


-- 
  James Westby
  jw+debian@jameswestby.net
  http://jameswestby.net/



Reply to: