LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-03-2005, 12:19 AM   #1
ewenmaclean
LQ Newbie
 
Registered: Oct 2005
Posts: 1

Rep: Reputation: 0
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

--

: 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



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB thumb drive detected by usb but not by scsi ashlock Linux - Hardware 6 06-02-2005 02:58 PM
Scanner Umax 2200 (USB,SCSI) with AHA2940U scsi card problem in Suse 9.2 Pro nathanv117 SUSE / openSUSE 5 02-22-2005 02:06 PM
Hotplug SCSI scanner or How to write to /proc/scsi/scsi from within a shell script. samac Linux - Hardware 1 08-30-2004 02:28 PM
USB scsi mounting csjens Linux - Hardware 2 06-09-2004 02:45 AM
USB Camera needs SCSI?! DiBosco Linux - Hardware 7 03-10-2003 08:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration