Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-21-2003, 11:43 AM
|
#1
|
Member
Registered: Jan 2003
Location: Reading, UK
Distribution: Mandrake 9.2
Posts: 56
Rep:
|
USB mass storage
Greetings,
I am currently slaving away trying to get my digital camera working in mandrake 9.1. My camera uses usb mass storage and all three modules are present in lsmod:
scsimon 9280 0 (unused)
udf 90464 0 (autoclean)
ide-floppy 15580 0 (autoclean)
sd_mod 13100 0 (autoclean)
parport_pc 25096 1 (autoclean)
lp 8096 0 (autoclean)
parport 34176 1 (autoclean) [parport_pc lp]
snd-seq-midi 5024 0 (autoclean) (unused)
snd-emu10k1-synth 5276 0 (autoclean) (unused)
snd-emux-synth 31644 0 (autoclean) [snd-emu10k1-synth]
snd-seq-midi-emul 6780 0 (autoclean) [snd-emux-synth]
snd-seq-virmidi 4572 0 (autoclean) [snd-emux-synth]
snd-seq-oss 31104 0 (unused)
snd-seq-midi-event 5640 0 [snd-seq-midi snd-seq-virmidi snd-seq-oss]
snd-seq 42608 2 [snd-seq-midi snd-emux-synth snd-seq-midi-emul snd-seq-virmidi snd-seq-oss snd-seq-midi-event]
snd-pcm-oss 43556 0
snd-mixer-oss 14488 0 [snd-pcm-oss]
snd-emu10k1 69268 6 [snd-emu10k1-synth]
snd-rawmidi 17600 0 [snd-seq-midi snd-seq-virmidi snd-emu10k1]
snd-pcm 77536 2 [snd-pcm-oss snd-emu10k1]
snd-timer 18376 0 [snd-seq snd-pcm]
snd-page-alloc 7732 0 [snd-emu10k1 snd-pcm]
snd-util-mem 3008 0 [snd-emux-synth snd-emu10k1]
snd-ac97-codec 40160 0 [snd-emu10k1]
snd-seq-device 5832 0 [snd-seq-midi snd-emu10k1-synth snd-emux-synth snd-seq-oss snd-seq snd-emu10k1 snd-rawmidi]
snd-hwdep 6368 0 [snd-emu10k1]
snd 40868 4 [snd-seq-midi snd-emux-synth snd-seq-virmidi snd-seq-oss snd-seq-midi-event snd-seq snd-pcm-oss snd-mixer-oss snd-emu10k1 snd-rawmidi snd-pcm snd-timer snd-util-mem snd-ac97-codec snd-seq-device snd-hwdep]
nfsd 74256 8 (autoclean)
af_packet 14952 1 (autoclean)
sr_mod 16920 0 (autoclean)
floppy 55132 0
ne2k-pci 6752 1 (autoclean)
8390 7916 0 (autoclean) [ne2k-pci]
nls_iso8859-15 4092 2 (autoclean)
nls_cp850 4316 2 (autoclean)
vfat 11820 2 (autoclean)
fat 37944 0 (autoclean) [vfat]
supermount 15296 2 (autoclean)
ide-cd 33856 0
cdrom 31648 0 [sr_mod ide-cd]
tuner 11744 1 (autoclean)
bttv 78496 0
videodev 7872 2 [bttv]
i2c-algo-bit 9064 1 [bttv]
i2c-core 21192 0 [tuner bttv i2c-algo-bit]
soundcore 6276 0 [snd bttv]
ide-scsi 11280 0
>usb-storage 72952 0
scsi_mod 103284 5 [scsimon sd_mod sr_mod ide-scsi usb-storage]
>usb-uhci 24652 0 (unused)
>usbcore 72992 2 [usb-storage usb-uhci]
rtc 8060 0 (autoclean)
ext3 59916 3
jbd 38972 3 [ext3]
However I have had absolutely no luck in actually mounting my camera. A few times the mount command succeeded but all I got were a load of link files from sda. (?)
When trying "mount -t devfs /dev/sda1 /home/roy-svork/Camera", initalially it said special device sda1 not found, but just now it has been succesfull but is just a mirror of /dev
i have tried with vfat, devfs, usbfs all to no avail.
The only clue is some messages which I think should not occur in /var/log/messages:
Sep 21 17:06:29 localhost kernel: hub.c: new USB device 00:07.2-1, assigned address 2
Sep 21 17:06:29 localhost kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Sep 21 17:06:29 localhost kernel: Vendor: Model: DeluxClassicCAM Rev: 1.00
Sep 21 17:06:29 localhost kernel: Type: Direct-Access ANSI SCSI revision: 02
Sep 21 17:06:29 localhost kernel: Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
Sep 21 17:06:29 localhost kernel: SCSI device sda: 16384 512-byte hdwr sectors (8 MB)
Sep 21 17:06:29 localhost kernel: usb-uhci.c: interrupt, status 2, frame# 803
Sep 21 17:06:29 localhost kernel: sda: test WP failed, assume Write Enabled
Sep 21 17:06:30 localhost kernel: /dev/scsi/host1/bus0/target0/lun0: p1
Sep 21 17:06:31 localhost kernel: SCSI device (ioctl) reports ILLEGAL REQUEST.
Sep 21 17:06:31 localhost kernel: SCSI device sda: 16384 512-byte hdwr sectors (8 MB)
Sep 21 17:06:31 localhost kernel: sda: test WP failed, assume Write Enabled
Sep 21 17:06:31 localhost kernel: /dev/scsi/host1/bus0/target0/lun0: I/O error: dev 08:00, sector 0
Sep 21 17:06:31 localhost kernel: I/O error: dev 08:00, sector 0
Sep 21 17:06:31 localhost kernel: I/O error: dev 08:00, sector 16376
Sep 21 17:06:31 localhost kernel: I/O error: dev 08:00, sector 16376
Sep 21 17:06:31 localhost kernel: I/O error: dev 08:00, sector 0
Sep 21 17:06:31 localhost kernel: I/O error: dev 08:00, sector 0
Sep 21 17:06:31 localhost kernel: ldm_validate_partition_table(): Disk read failed.
Sep 21 17:06:31 localhost kernel: I/O error: dev 08:00, sector 0
Sep 21 17:06:31 localhost kernel: I/O error: dev 08:00, sector 2
Sep 21 17:06:32 localhost kernel: SCSI device (ioctl) reports ILLEGAL REQUEST.
Sep 21 17:06:32 localhost kernel: SCSI device sda: 16384 512-byte hdwr sectors (8 MB)
Sep 21 17:06:32 localhost kernel: sda: test WP failed, assume Write Enabled
Sep 21 17:06:32 localhost kernel: /dev/scsi/host1/bus0/target0/lun0: I/O error: dev 08:00, sector 0
Sep 21 17:06:32 localhost kernel: I/O error: dev 08:00, sector 0
Sep 21 17:06:32 localhost kernel: I/O error: dev 08:00, sector 16376
Sep 21 17:06:32 localhost kernel: I/O error: dev 08:00, sector 16376
Sep 21 17:06:32 localhost kernel: I/O error: dev 08:00, sector 0
Sep 21 17:06:32 localhost kernel: I/O error: dev 08:00, sector 0
Sep 21 17:06:32 localhost kernel: ldm_validate_partition_table(): Disk read failed.
Sep 21 17:06:32 localhost kernel: I/O error: dev 08:00, sector 0
so any ideas? AHMA
|
|
|
09-21-2003, 05:42 PM
|
#2
|
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
|
What camera is this?
With the camera plugged in what does the following commands show.
cat /proc/scsi/scsi
cat /proc/bus/usb/devices
cat /proc/bus/usb/drivers
/etc/modules
I assume the storage media is vfat. you can use this command. Make sure you have created the directory like I am using in the example below.
mount -t vfat /dev/sda1 /mnt/camera
|
|
|
09-23-2003, 06:19 AM
|
#3
|
Member
Registered: May 2003
Location: Canberra, Australia
Distribution: openSUSE 11.3
Posts: 445
Rep:
|
Does your camera use USB 2.0 or USB 1.1? If it uses USB 1.1, then your problem may be because it is using the USB 2.0 module (usb-uhci), whereas USB 1.1 uses the 'usb-ohci' module. 'usb-ohci' is missing from your lsmod ouput. Try:
modprobe usb-ohci
and then try your camera again, using the mount command given above by Brian1.
|
|
|
09-23-2003, 02:33 PM
|
#4
|
Member
Registered: Jan 2003
Location: Reading, UK
Distribution: Mandrake 9.2
Posts: 56
Original Poster
Rep:
|
I get the following:
[root@localhost roy-svork]# modprobe usb-ohci
/lib/modules/2.4.21-0.13mdk/kernel/drivers/usb/usb-ohci.o.gz: init_module: No such device
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg
modprobe: insmod /lib/modules/2.4.21-0.13mdk/kernel/drivers/usb/usb-ohci.o.gz failed
modprobe: insmod usb-ohci failed
which does not seem to improve things...
|
|
|
09-23-2003, 02:37 PM
|
#5
|
Member
Registered: Jan 2003
Location: Reading, UK
Distribution: Mandrake 9.2
Posts: 56
Original Poster
Rep:
|
and in response to earlier post:
[roy-svork@localhost roy-svork]$ cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: MSI Model: CD-RW MS-8348 Rev: 120D
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: Model: DeluxClassicCAM Rev: 1.00
Type: Direct-Access
[roy-svork@localhost roy-svork]$ cat /proc/bus/usb/devices
T: Bus=02 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.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=dc00
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=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.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=d800
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=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0733 ProdID=1313 Rev= 1.00
S: Manufacturer=Mercury Peripherals Inc.
S: Product=Deluxe Classic Cam
S: SerialNumber=01.00.00
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=87(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=08(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=89(I) Atr=03(Int.) MxPS= 1 Ivl=1ms
[roy-svork@localhost roy-svork]$ cat /proc/bus/usb/drivers
usbdevfs
hub
usb-storage
# /etc/modules: kernel modules to load at boot time.
#
# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line. Comments begin with
# a `#', and everything on the line after them are ignored.
scsi_hostadapter
bttv
|
|
|
09-23-2003, 06:21 PM
|
#6
|
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368
Rep:
|
Quote:
Originally posted by geoff_f
Does your camera use USB 2.0 or USB 1.1? If it uses USB 1.1, then your problem may be because it is using the USB 2.0 module (usb-uhci), whereas USB 1.1 uses the 'usb-ohci' module. 'usb-ohci' is missing from your lsmod ouput. Try:
modprobe usb-ohci
and then try your camera again, using the mount command given above by Brian1.
|
I think things may have become a little confused. The box I am currently sitting at uses USB 1.1 and uses the UHCI module. An old PII box of mine (now deceased) used the OHCI module for USB 1.1. I've just read a little bit in the kernel source Docs directory, and it seems that USB 2.0 uses the EHCI module. I think the uhci/ohci thing is simply a matter of two early competing standards. UHCI = Universal Host Controller Interface; OHCI = Open Host Controller Interface. EHCI = Enhanced Host Controller Interface, perhaps?
|
|
|
09-24-2003, 03:21 AM
|
#7
|
Member
Registered: May 2003
Location: Canberra, Australia
Distribution: openSUSE 11.3
Posts: 445
Rep:
|
Thymox, thanks for setting me straight; I've been operating under the misconception that OHCI = USB 1.1 and UHCI = USB 2.0 (U = Ultra - wrong, of course). My system has both object modules, with only OHCI being mentioned by lsmod. I presumed that UHCI was not loaded because I had no USB 2.0 devices. However, after reading your post, I found ehci-hcd.o in a sub-directory 'hcd' of where the usb kernel modules are stored.
Roy-Svork, sorry for the confusion. This is how I got my digital camera to work in Mandrake 9.1; it might help:
http://www.linuxquestions.org/questi...threadid=74030
|
|
|
09-24-2003, 03:53 AM
|
#8
|
Member
Registered: Jun 2003
Location: Northern California (NorCal)
Distribution: Ubuntu 7.04 and DSL/Puppy etc
Posts: 342
Rep:
|
You never did identify this hardware, what is the manufacturer and model of this camera?
Is this a 'vanilla' (out of the box) Mandrake kernel, or did you compile it yourself?
This guy never got a response:
http://www.mail-archive.com/linux-us.../msg06767.html
This guy never got a response:
http://www.kobian.com/forum.php?cate...9&topic_id=321
The device 0733 is not listed at http://www.qbik.ch/usb/devices/searc...p?pattern=0733 but that list is not all inclusive.
Your system looks like it's getting the right modules for a SD card,
via your listing (sd_mod):
-usb-storage 72952 0
>scsi_mod 103284 5 [scsimon sd_mod sr_mod ide-scsi usb-storage]
-usb-uhci 24652 0 (unused)
-usbcore 72992 2 [usb-storage usb-uhci]
Anyone know where Roy-Svork might get a driver for this one???
Or anyone have a success story with it?
|
|
|
09-24-2003, 06:50 AM
|
#9
|
Member
Registered: May 2003
Location: Canberra, Australia
Distribution: openSUSE 11.3
Posts: 445
Rep:
|
A common factor with this problem seems to be usb-uhci. Certainly the first link given by faheyd lists usb-uhci as the usb module. My camera (and a usb printer and scanner) work perfectly well with usb-ohci. Perhaps the next thing to try should be:
rmmod usb-uhci
modprobe usb-ohci
and see how it goes.
|
|
|
09-24-2003, 04:34 PM
|
#10
|
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
|
This is a shot in the dark since I use straight scsi hardware, but maybe the cdrom is using /dev/sda1. Try this, use /dev/sdb1
Leave out the -t vfat. you can use this command. Make sure you have created the directory like I am using in the example below.
mount /dev/sdb1 /mnt/camera
|
|
|
All times are GMT -5. The time now is 03:28 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|