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

scsi and usb problem



Hello,

I hope I'm posting this in the right place. I have looked a lot for the solution to this, but have not found anything - I'm sorry if I'm posting something very obvious or already answered. I've just installed kernel version 2.6.13 and am having problems with the scsi support for mass storage devices. I have compiled all this into the kernel:

CONFIG_SCSI=y
CONFIG_BLK_DEV_SD=y
CONFIG_USB=y
CONFIG_USB_STORAGE=y

well - I've basically tried compiling just about everything in.

I'm trying to attach a digital camera via usb (not usb2 - hence uhci here). The output for /proc/bus/usb/devices shows up the camera, and hotplug loads libgphoto2, but in the messages log there is nothing saying SCSI emulation for mass storage devices. I notice also that in my udev.rules file there is nothing to create the sda* devices although I was hoping to see it mapped to sda1 or something. Output of /var/log/syslog and /proc/bus/usb/devices below as well as the only usb part of my udev.rules file.

proc/sys/kernel/hotplug is pointing at udevsend and this is doing something right as hotplug is managing to load the libgphoto2 library and various directories get created in the sys/bus/usb/devices directory. I'd really like to know what I'm doing wrong and why udev isn't creating a device, and more importantly why the SCSI emulation never appears in the /var/log/syslog. Should I just ignore this and write a new udev rule.

Many thanks for any help you can give me
Ewen

(P.S. I've just noticed an error message on boot-up saying ide-detect isn't installed, and xcdroast isn't detecting any drives, which I think could be related.)


--


: cat /proc/bus/usb/devices

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= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.13 uhci_hcd
S: Product=Intel Corporation 82801CA/CAM USB (Hub #1)
S: SerialNumber=0000:00:1d.0
C:* #Ifs= 1 Cfg#= 1 Atr=c0 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= 2 Ivl=255ms

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

: tail /var/log/syslog

Oct 3 02:11:40 localhost kernel: uhci_hcd 0000:00:1d.0: wakeup_rh (auto-start)
Oct 3 02:11:40 localhost kernel: hub 1-0:1.0: state 5 ports 2 chg 0000 evt 0002
Oct 3 02:11:40 localhost kernel: uhci_hcd 0000:00:1d.0: port 1 portsc 0093,00
Oct 3 02:11:40 localhost kernel: hub 1-0:1.0: port 1, status 0101, change 0001,
12 Mb/s
Oct 3 02:11:40 localhost kernel: hub 1-0:1.0: debounce: port 1: total 100ms sta
ble 100ms status 0x101
Oct 3 02:11:40 localhost kernel: usb 1-1: new full speed USB device using uhci_
hcd and address 3
Oct 3 02:11:40 localhost kernel: usb 1-1: ep0 maxpacket = 32
Oct 3 02:11:40 localhost kernel: usb 1-1: default language 0x0409
Oct 3 02:11:40 localhost kernel: usb 1-1: new device strings: Mfr=1, Product=2,
SerialNumber=0
Oct 3 02:11:40 localhost kernel: usb 1-1: Product: Canon Digital Camera
Oct 3 02:11:40 localhost kernel: usb 1-1: Manufacturer: Canon Inc.
Oct 3 02:11:40 localhost kernel: DEV: registering device: ID = '1-1'
Oct 3 02:11:40 localhost kernel: usb 1-1: hotplug
Oct 3 02:11:40 localhost kernel: PM: Adding info for usb:1-1
Oct 3 02:11:40 localhost kernel: bus usb: add device 1-1
Oct 3 02:11:40 localhost kernel: bound device '1-1' to driver 'usb'
Oct 3 02:11:40 localhost kernel: usb 1-1: adding 1-1:1.0 (config #1, interface
0)
Oct 3 02:11:40 localhost kernel: DEV: registering device: ID = '1-1:1.0'
Oct 3 02:11:40 localhost kernel: usb 1-1:1.0: hotplug
Oct 3 02:11:40 localhost kernel: PM: Adding info for usb:1-1:1.0
Oct 3 02:11:40 localhost kernel: bus usb: add device 1-1:1.0
Oct 3 02:11:40 localhost kernel: hub 1-0:1.0: state 5 ports 2 chg 0000 evt 0002
Oct 3 02:11:42 localhost usb.agent[5032]: libgphoto2: loaded successfully


USB part of udev.rules...
========================
# USB devices
BUS="usb", KERNEL="hiddev*", NAME="usb/%k"
BUS="usb", KERNEL="auer[0-9]*", NAME="usb/%k"
BUS="usb", KERNEL="legousbtower*", NAME="usb/%k"
BUS="usb", KERNEL="dabusb*", NAME="usb/%k"
BUS="usb", KERNEL="cpad[0-9]*", NAME="usb/%k"
BUS="usb", KERNEL="lp[0-9]*", NAME="usb/%k"
BUS="usb", KERNEL="ttyUSB*", SYSFS{product}="Palm Handheld*", SYMLINK="pilot"



Reply to: