LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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

Reply
 
Search this Thread
Old 01-26-2004, 09:39 AM   #1
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46
Mounting USB camera with 2.6.1 kernel


OK, I'm at my wits end... after three days of Googling, searching these boards and close to pulling out all my hair, I hereby admit defeat. Here's the lowdown...

Task
Getting my Panasonic Lumix DMC-LC20 digital still camera to be mounted as a vfat partition. This is done on a 2.6.1 kernel with hotplug enabled.

What I've done
Created the relevant entry in /etc/fstab.
Ensured that there's kernel support for relevant modules.
Attempt to mount the device.

End results
Code:
mount: No medium found

And yes, there is actually an MMC card inside the camera, so it's not forgetfulness on my part.

Other worthy mentions
Yes, I've tried to flush the device buffers (blockdev --flushbufs /dev/sda1).
Yes, I've tried to boot with the camera on.
Yes, I've tried adding usb-storage to /etc/hotplug/blacklist.
...but it's all in vain

Now, I hereby seek help from those more knowledgable and those who have done something similar on a 2.6.1 kernel. I have no such problems with this camera on the 2.4.x kernels, so it's definitely either one of two things:
1) I'm missing something with my kernel config.
2) There's something wrong with the way 2.6.1 handles my camera.

The strange thing however, is that the camera is detected... But why doesn't it see the partition

Output of lsmod...
Code:
Module                  Size  Used by
usb_storage            37568  0 
ppp_async               9600  1 
ppp_generic            22352  5 ppp_async
slhc                    6464  1 ppp_generic
ipt_state               1408  2 
ip_conntrack           26800  1 ipt_state
ipt_REJECT              5312  1 
ipt_LOG                 4800  1 
ipt_limit               1920  1 
iptable_filter          2176  1 
ip_tables              15872  5 ipt_state,ipt_REJECT,ipt_LOG,ipt_limit,iptable_filter
nvidia               1701164  10 
sg                     30168  0 
sd_mod                 12704  0 
ide_scsi               12292  0 
apm                    15532  2
Relevant /var/log/messages entries...
Code:
Jan 26 22:10:42 slackbox kernel: hub 3-0:1.0: new USB device on port 2, assigned address 14
Jan 26 22:10:43 slackbox modprobe: FATAL: Module usb_storage already in kernel. 
Jan 26 22:10:43 slackbox kernel: scsi12 : SCSI emulation for USB Mass Storage devices
Jan 26 22:10:43 slackbox kernel:   Vendor: MATSHITA  Model: DMC-LC20          Rev:     
Jan 26 22:10:43 slackbox kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Jan 26 22:10:43 slackbox scsi.agent[20405]: bogus sysfs DEVPATH=/devices/pci0000:00/0000:00:11.4/usb3/3-2/3-2:1.0/host12/12:0:0:0
Jan 26 22:10:43 slackbox kernel: SCSI device sda: 62721 512-byte hdwr sectors (32 MB)
Jan 26 22:10:43 slackbox kernel: sda: assuming Write Enabled
Jan 26 22:10:43 slackbox kernel:  sda:<7>usb-storage: queuecommand called
Jan 26 22:10:43 slackbox kernel: Attached scsi removable disk sda at scsi12, channel 0, id 0, lun 0
Jan 26 22:10:43 slackbox kernel: Attached scsi generic sg0 at scsi12, channel 0, id 0, lun 0,  type 0
Relevant dmesg entries:
Code:
usb 3-2: USB disconnect, address 15
usb-storage: storage_disconnect() called
usb-storage: usb_stor_stop_transport called
usb-storage: -- dissociate_dev
usb-storage: -- sending exit command to thread
usb-storage: *** thread awakened.
usb-storage: -- exit command received
usb-storage: -- usb_stor_release_resources finished
hub 3-0:1.0: new USB device on port 2, assigned address 16
usb-storage: USB Mass Storage device detected
usb-storage: act_altsetting is 0, id_index is 86
usb-storage: -- associate_dev
usb-storage: Transport: Bulk
usb-storage: Protocol: Transparent SCSI
usb-storage: Endpoints: In: 0xd3d48e54 Out: 0xd3d48e40 Int: 0xd3d48e7c (Period 255)
usb-storage: usb_stor_control_msg: rq=fe rqtype=a1 value=0000 index=00 len=1
usb-storage: GetMaxLUN command result is 1, data is 0
usb-storage: *** thread sleeping.
scsi14 : SCSI emulation for USB Mass Storage devices
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Command INQUIRY (6 bytes)
usb-storage:  12 00 00 00 24 00
usb-storage: Bulk Command S 0x43425355 T 0x11f L 36 F 128 Trg 0 LUN 0 CL 6
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_bulk_transfer_buf: xfer 36 bytes
usb-storage: Status code 0; transferred 36/36
usb-storage: -- transfer complete
usb-storage: Bulk data transfer result 0x0
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x11f R 0 Stat 0x0
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
  Vendor: MATSHITA  Model: DMC-LC20          Rev:     
  Type:   Direct-Access                      ANSI SCSI revision: 02
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Command TEST_UNIT_READY (6 bytes)
usb-storage:  00 00 00 00 00 00
usb-storage: Bulk Command S 0x43425355 T 0x120 L 0 F 0 Trg 0 LUN 0 CL 6
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x120 R 0 Stat 0x1
usb-storage: -- transport indicates command failure
usb-storage: Issuing auto-REQUEST_SENSE
usb-storage: Bulk Command S 0x43425355 T 0x80000120 L 18 F 128 Trg 0 LUN 0 CL 6
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_bulk_transfer_buf: xfer 18 bytes
usb-storage: Status code 0; transferred 18/18
usb-storage: -- transfer complete
usb-storage: Bulk data transfer result 0x0
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x80000120 R 0 Stat 0x0
usb-storage: -- Result from auto-sense is 0
usb-storage: -- code: 0x70, key: 0x6, ASC: 0x28, ASCQ: 0x0
usb-storage: (Unknown Key): (unknown ASC/ASCQ)
usb-storage: scsi cmd done, result=0x2
usb-storage: *** thread sleeping.
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Command TEST_UNIT_READY (6 bytes)
usb-storage:  00 00 00 00 00 00
usb-storage: Bulk Command S 0x43425355 T 0x121 L 0 F 0 Trg 0 LUN 0 CL 6
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x121 R 0 Stat 0x0
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Command READ_CAPACITY (10 bytes)
usb-storage:  25 00 00 00 00 00 00 00 00 00
usb-storage: Bulk Command S 0x43425355 T 0x122 L 8 F 128 Trg 0 LUN 0 CL 10
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_bulk_transfer_buf: xfer 8 bytes
usb-storage: Status code 0; transferred 8/8
usb-storage: -- transfer complete
usb-storage: Bulk data transfer result 0x0
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x122 R 0 Stat 0x0
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
SCSI device sda: 62721 512-byte hdwr sectors (32 MB)
sda: assuming Write Enabled
sda: assuming drive cache: write through
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Command TEST_UNIT_READY (6 bytes)
usb-storage:  00 00 00 00 00 00
usb-storage: Bulk Command S 0x43425355 T 0x123 L 0 F 0 Trg 0 LUN 0 CL 6
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x123 R 0 Stat 0x0
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Command ALLOW_MEDIUM_REMOVAL (6 bytes)
usb-storage:  1e 00 00 00 01 00
usb-storage: Bulk Command S 0x43425355 T 0x124 L 0 F 0 Trg 0 LUN 0 CL 6
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x124 R 0 Stat 0x0
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
 sda:<7>usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Command READ_10 (10 bytes)
usb-storage:  28 00 00 00 00 00 00 00 08 00
usb-storage: Bulk Command S 0x43425355 T 0x125 L 4096 F 128 Trg 0 LUN 0 CL 10
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_bulk_transfer_sglist: xfer 4096 bytes, 1 entries
usb-storage: Status code 0; transferred 4096/4096
usb-storage: -- transfer complete
usb-storage: Bulk data transfer result 0x0
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x125 R 0 Stat 0x0
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
 sda1
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Command ALLOW_MEDIUM_REMOVAL (6 bytes)
usb-storage:  1e 00 00 00 00 00
usb-storage: Bulk Command S 0x43425355 T 0x126 L 0 F 0 Trg 0 LUN 0 CL 6
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x126 R 0 Stat 0x0
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
Attached scsi removable disk sda at scsi14, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi14, channel 0, id 0, lun 0,  type 0
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Bad target number (1:0)
usb-storage: scsi cmd done, result=0x40000
usb-storage: *** thread sleeping.
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Bad target number (2:0)
usb-storage: scsi cmd done, result=0x40000
usb-storage: *** thread sleeping.
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Bad target number (3:0)
usb-storage: scsi cmd done, result=0x40000
usb-storage: *** thread sleeping.
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Bad target number (4:0)
usb-storage: scsi cmd done, result=0x40000
usb-storage: *** thread sleeping.
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Bad target number (5:0)
usb-storage: scsi cmd done, result=0x40000
usb-storage: *** thread sleeping.
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Bad target number (6:0)
usb-storage: scsi cmd done, result=0x40000
usb-storage: *** thread sleeping.
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Bad target number (7:0)
usb-storage: scsi cmd done, result=0x40000
usb-storage: *** thread sleeping.
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 16
 
Old 01-28-2004, 10:38 AM   #2
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Original Poster
Rep: Reputation: 46
*bump*
 
Old 01-29-2004, 09:36 AM   #3
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Original Poster
Rep: Reputation: 46
Come on... somebody must have solved this... or even faced something similar.
 
Old 01-29-2004, 10:33 AM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
Azmeen,

I always read your posts for valuable information. You're always helping others, so let me at least take a stab in the dark. What have you got to lose? My information may not apply, though, as I use 2.4.23 and not 2.6.1.
Code:
mingdao@paul:Thu Jan 29 20:38:31~$ cat /etc/fstab
/dev/hda7        swap             swap        defaults         0   0
/dev/hda8        /                reiserfs    defaults         1   1
/dev/hda6        /boot            reiserfs    defaults         1   2
/dev/hda9        /home            reiserfs    defaults         1   2
/dev/hda10       /var             reiserfs    defaults         1   2
/dev/hda11       /tmp             reiserfs    defaults         1   2
/dev/hdb5        /usr             reiserfs    defaults         1   2
/dev/hda5        /WinE            vfat        users,umask=1000,rw,auto 0 0
/dev/hdb1        /WinD            vfat        users,umask=1000,rw,auto 0 0
/dev/hdb6        /AppSwap         vfat        users,umask=1000,rw,auto 0 0
/dev/sda1        /mnt/camera      vfat        users,umask=1000,rw,auto 0 0
/dev/cdrom       /mnt/cdrom       iso9660     user,unhide,noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
When I want to mount my camera I issue
$ mount /mnt/camera (staying away from root login)
and then view and copy the photos/mpegs using Konqueror. I use this mount point for a Sony DSC-F707 camera, an OnData USB flash disk, and a Toshiba USB hard drive. The device doesn't matter. I plug any of them into a front USB port (or rear by the p/s if I want USB 2.0) and just issue the same command.

I built the support into the kernel rather than using modules, so I won't give you lsmod output. Nothing there but video and sound.

More info than you need, but since you're better at reading this than me, here goes...
and I don't mind looking like a fool for not knowing. Anything you learn from reading my entries might be the only help I could give you.

/var/log/messages entries...
Code:
Jan 28 01:33:32 paul kernel: usb.c: registered new driver usbdevfs
Jan 28 01:33:32 paul kernel: usb.c: registered new driver hub
Jan 28 01:33:32 paul kernel: PCI: Found IRQ 11 for device 00:1d.7
Jan 28 01:33:32 paul kernel: PCI: Sharing IRQ 11 with 02:0b.0
Jan 28 01:33:32 paul kernel: ehci_hcd 00:1d.7: Intel Corp. 82801DB USB2
Jan 28 01:33:32 paul kernel: ehci_hcd 00:1d.7: irq 11, pci mem f89bb000
Jan 28 01:33:32 paul kernel: usb.c: new USB bus registered, assigned bus number 1
Jan 28 01:33:32 paul kernel: ehci_hcd 00:1d.7: enabled 64bit PCI DMA
Jan 28 01:33:32 paul kernel: ehci_hcd 00:1d.7: USB 2.0 enabled, EHCI 1.00, driver 2003-Jun-19/2.4
Jan 28 01:33:32 paul kernel: hub.c: USB hub found
Jan 28 01:33:32 paul kernel: hub.c: 6 ports detected
Jan 28 01:33:32 paul kernel: host/uhci.c: USB Universal Host Controller Interface driver v1.1
Jan 28 01:33:32 paul kernel: PCI: Found IRQ 10 for device 00:1d.0
Jan 28 01:33:32 paul kernel: PCI: Sharing IRQ 10 with 01:00.0
Jan 28 01:33:32 paul kernel: host/uhci.c: USB UHCI at I/O 0xd800, IRQ 10
Jan 28 01:33:32 paul kernel: usb.c: new USB bus registered, assigned bus number 2
Jan 28 01:33:32 paul kernel: hub.c: USB hub found
Jan 28 01:33:32 paul kernel: hub.c: 2 ports detected
Jan 28 01:33:32 paul kernel: PCI: Found IRQ 9 for device 00:1d.1
Jan 28 01:33:32 paul kernel: host/uhci.c: USB UHCI at I/O 0xd400, IRQ 9
Jan 28 01:33:32 paul kernel: usb.c: new USB bus registered, assigned bus number 3
Jan 28 01:33:32 paul kernel: hub.c: USB hub found
Jan 28 01:33:32 paul kernel: hub.c: 2 ports detected
Jan 28 01:33:32 paul kernel: PCI: Found IRQ 5 for device 00:1d.2
Jan 28 01:33:32 paul kernel: PCI: Sharing IRQ 5 with 00:1f.1
Jan 28 01:33:32 paul kernel: host/uhci.c: USB UHCI at I/O 0xd000, IRQ 5
Jan 28 01:33:32 paul kernel: usb.c: new USB bus registered, assigned bus number 4
Jan 28 01:33:32 paul kernel: hub.c: USB hub found
Jan 28 01:33:32 paul kernel: hub.c: 2 ports detected
Jan 28 01:33:32 paul kernel: usb.c: registered new driver hiddev
Jan 28 01:33:32 paul kernel: usb.c: registered new driver hid
Jan 28 01:33:32 paul kernel: hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz>
Jan 28 01:33:32 paul kernel: hid-core.c: USB HID support drivers
Jan 28 01:33:32 paul kernel: usb.c: registered new driver wacom
Jan 28 01:33:32 paul kernel: wacom.c: v1.21.3 Vojtech Pavlik <vojtech@suse.cz>
Jan 28 01:33:32 paul kernel: wacom.c: USB Wacom Graphire and Wacom Intuos tablet driver
Jan 28 01:33:32 paul kernel: usb.c: registered new driver usbscanner
Jan 28 01:33:32 paul kernel: scanner.c: 0.4.15:USB Scanner Driver
Jan 28 01:33:32 paul kernel: usb.c: registered new driver usblp
Jan 28 01:33:32 paul kernel: printer.c: v0.11: USB Printer Device Class driver
Jan 28 01:33:32 paul kernel: Initializing USB Mass Storage driver...
Jan 28 01:33:32 paul kernel: usb.c: registered new driver usb-storage
Jan 28 01:33:32 paul kernel: USB Mass Storage support registered.
Jan 28 01:33:32 paul kernel: mice: PS/2 mouse device common for all mice
Jan 28 01:33:32 paul kernel: Initializing Cryptographic API
Jan 28 01:33:32 paul kernel: NET4: Linux TCP/IP 1.0 for NET4.0
Jan 28 01:33:32 paul kernel: IP Protocols: ICMP, UDP, TCP
Jan 28 01:33:32 paul kernel: IP: routing cache hash table of 8192 buckets, 64Kbytes
Jan 28 01:33:32 paul kernel: TCP: Hash tables configured (established 262144 bind 65536)
Jan 28 01:33:32 paul kernel: ipt_recent v0.3.1: Stephen Frost <sfrost@snowman.net>.  http://snowman.net/projects/ipt_recent/
Jan 28 01:33:32 paul kernel: NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Jan 28 01:33:32 paul kernel: Freeing unused kernel memory: 128k freed
Jan 28 01:33:32 paul kernel: Adding Swap: 1951856k swap-space (priority -1)
Jan 28 01:33:32 paul kernel: hub.c: new USB device 00:1d.1-1, assigned address 2
Jan 28 01:33:32 paul kernel: input: USB HID v1.10 Mouse [Microsoft Microsoft Wireless Intellimouse Explorer® 1.0A] on usb3:2.0
Jan 28 01:33:32 paul kernel: hub.c: new USB device 00:1d.2-2, assigned address 2
Jan 28 01:33:32 paul kernel: printer.c: usblp0: USB Bidirectional printer dev 2 if 0 alt 0 proto 2 vid 0x03F0 pid 0x1504
Jan 28 01:33:32 paul kernel: hub.c: new USB device 00:1d.0-1, assigned address 2
dmesg entries:
Code:
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: Found IRQ 11 for device 00:1d.7
PCI: Sharing IRQ 11 with 02:0b.0
PCI: Setting latency timer of device 00:1d.7 to 64
ehci_hcd 00:1d.7: Intel Corp. 82801DB USB2
ehci_hcd 00:1d.7: irq 11, pci mem f89bb000
usb.c: new USB bus registered, assigned bus number 1
ehci_hcd 00:1d.7: enabled 64bit PCI DMA
PCI: cache line size of 128 is not supported by device 00:1d.7
ehci_hcd 00:1d.7: USB 2.0 enabled, EHCI 1.00, driver 2003-Jun-19/2.4
hub.c: USB hub found
hub.c: 6 ports detected
host/uhci.c: USB Universal Host Controller Interface driver v1.1
PCI: Found IRQ 10 for device 00:1d.0
PCI: Sharing IRQ 10 with 01:00.0
PCI: Setting latency timer of device 00:1d.0 to 64
host/uhci.c: USB UHCI at I/O 0xd800, IRQ 10
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Found IRQ 9 for device 00:1d.1
PCI: Setting latency timer of device 00:1d.1 to 64
host/uhci.c: USB UHCI at I/O 0xd400, IRQ 9
usb.c: new USB bus registered, assigned bus number 3
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Found IRQ 5 for device 00:1d.2
PCI: Sharing IRQ 5 with 00:1f.1
PCI: Setting latency timer of device 00:1d.2 to 64
host/uhci.c: USB UHCI at I/O 0xd000, IRQ 5
usb.c: new USB bus registered, assigned bus number 4
hub.c: USB hub found
hub.c: 2 ports detected
usb.c: registered new driver hiddev
usb.c: registered new driver hid
hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz>
hid-core.c: USB HID support drivers
usb.c: registered new driver wacom
wacom.c: v1.21.3 Vojtech Pavlik <vojtech@suse.cz>
wacom.c: USB Wacom Graphire and Wacom Intuos tablet driver
usb.c: registered new driver usbscanner
scanner.c: 0.4.15:USB Scanner Driver
usb.c: registered new driver usblp
printer.c: v0.11: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
Initializing Cryptographic API
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 8192 buckets, 64Kbytes
TCP: Hash tables configured (established 262144 bind 65536)
ip_conntrack version 2.1 (8191 buckets, 65528 max) - 292 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
ipt_recent v0.3.1: Stephen Frost <sfrost@snowman.net>.  http://snowman.net/projects/ipt_recent/
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
FAT: bogus logical sector size 0
FAT: bogus logical sector size 0
UDF-fs DEBUG lowlevel.c:65:udf_get_last_session: CDROMMULTISESSION not supported: rc=-22
UDF-fs DEBUG super.c:1421:udf_read_super: Multi-session=0
UDF-fs DEBUG super.c:410:udf_vrs: Starting at sector 16 (2048 byte sectors)
UDF-fs DEBUG super.c:1157:udf_check_valid: Failed to read byte 32768. Assuming open disc. Skipping validity check
UDF-fs DEBUG misc.c:285:udf_read_tagged: location mismatch block 256, tag 138481464 != 256
UDF-fs DEBUG super.c:1211:udf_load_partition: No Anchor block found
UDF-fs: No partition found (1)
reiserfs: found format "3.6" with standard journal
reiserfs: checking transaction log (device ide0(3,8)) ...
for (ide0(3,8))
ide0(3,8):Using r5 hash to sort names
VFS: Mounted root (reiserfs filesystem) readonly.
Freeing unused kernel memory: 128k freed
Adding Swap: 1951856k swap-space (priority -1)
reiserfs: found format "3.6" with standard journal
reiserfs: checking transaction log (device ide0(3,6)) ...
for (ide0(3,6))
ide0(3,6):Using r5 hash to sort names
reiserfs: found format "3.6" with standard journal
hub.c: new USB device 00:1d.1-1, assigned address 2
input: USB HID v1.10 Mouse [Microsoft Microsoft Wireless Intellimouse Explorer® 1.0A] on usb3:2.0
reiserfs: checking transaction log (device ide0(3,9)) ...
for (ide0(3,9))
ide0(3,9):Using r5 hash to sort names
reiserfs: found format "3.6" with standard journal
hub.c: new USB device 00:1d.2-2, assigned address 2
printer.c: usblp0: USB Bidirectional printer dev 2 if 0 alt 0 proto 2 vid 0x03F0 pid 0x1504
reiserfs: checking transaction log (device ide0(3,10)) ...
for (ide0(3,10))
ide0(3,10):Using r5 hash to sort names
reiserfs: found format "3.6" with standard journal
reiserfs: checking transaction log (device ide0(3,11)) ...
for (ide0(3,11))
ide0(3,11):Using r5 hash to sort names
hub.c: new USB device 00:1d.0-1, assigned address 2
usb.c: USB device 2 (vend/prod 0x5da/0x30d9) is not claimed by any active driver.
reiserfs: found format "3.6" with standard journal
reiserfs: checking transaction log (device ide0(3,69)) ...
for (ide0(3,69))
ide0(3,69):Using r5 hash to sort names
PCI: Found IRQ 11 for device 02:0b.0
PCI: Sharing IRQ 11 with 00:1d.7
tg3: eth0: Link is up at 100 Mbps, full duplex.
tg3: eth0: Flow control is on for TX and on for RX.
0: nvidia: loading NVIDIA Linux x86 nvidia.o Kernel Module  1.0-4496  Wed Jul 16 19:03:09 PDT 2003
ISO 9660 Extensions: Microsoft Joliet Level 3
ISO 9660 Extensions: RRIP_1991A
ISO 9660 Extensions: RRIP_1991A
host/uhci.c: d000: host controller halted. very bad
usb.c: USB disconnect on device 00:1d.2-2 address 2
printer.c: usblp0: removed
hub.c: new USB device 00:1d.2-2, assigned address 3
printer.c: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x03F0 pid 0x1504
usb.c: USB disconnect on device 00:1d.2-2 address 3
printer.c: usblp0: removed
hub.c: new USB device 00:1d.2-2, assigned address 4
printer.c: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x1504
usb.c: USB disconnect on device 00:1d.2-2 address 4
printer.c: usblp0: removed
hub.c: new USB device 00:1d.2-2, assigned address 5
printer.c: usblp0: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x03F0 pid 0x1504
usb.c: USB disconnect on device 00:1d.2-2 address 5
printer.c: usblp0: removed
hub.c: new USB device 00:1d.2-2, assigned address 6
printer.c: usblp0: USB Bidirectional printer dev 6 if 0 alt 0 proto 2 vid 0x03F0 pid 0x1504
hub.c: new USB device 00:1d.2-1, assigned address 7
scsi1 : SCSI emulation for USB Mass Storage devices
  Vendor: Sony      Model: Sony DSC          Rev: 4.01
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
SCSI device sda: 253696 512-byte hdwr sectors (130 MB)
sda: Write Protect is off
 /dev/scsi/host1/bus0/target0/lun0: p1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 7
Sorry but I didn't know how to output dmesg as you did, and I've probably been no help. I subscribed to your thread and had to try something to help you. I'll go to bed now. Hope something in here is more help than entropy :}
 
Old 01-29-2004, 07:35 PM   #5
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Original Poster
Rep: Reputation: 46
Hi Chinaman,

Thank you for your input. However, like I said in the post, I don't have any problems with the camera on 2.4.x kernels. I think it's definitely something on the kernel side of things. I've noticed someone facing similar problems on the lkml.

Unfortunately, the thread evolved into a more technical (asm, c codes) discussion, and due to my illiteracy in those programming languages, I guess all I can do is wait patiently

However, I highly appreciate your effort and I know that it'll definitely help people with problems on 2.4.x kernels.

Again, thank you and God bless.
 
Old 02-03-2004, 06:23 PM   #6
snop
Member
 
Registered: Aug 2003
Location: Bcn
Distribution: Slackware
Posts: 93

Rep: Reputation: 15
Hi,

I faced the same problem. My camera is a Nikon Coolpix 2000 and it worked perfectly under 2.4.x but not under 2.6.x (I've tried from 2.6.0-test6 from 2.6.1).

It seems that theres some kind of problem on new mass storage drivers. Look at this mail list and you'll see that some people experience these problems: http://www.mail-archive.com/linux-us.../msg18614.html

You may find some "emergency patches". I have'nt tried any of them by myself.

However, I've been able to read the photos using PTP protocol (instead of Mass Storage) using gPhoto2. It's been a little hard to configure and it doesn't work 100% for me, but it does the trick until new usb drivers come.

Well, hope it helps.

Bye
 
Old 02-03-2004, 10:12 PM   #7
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Original Poster
Rep: Reputation: 46
Hi snop,

I read that particular thread as well, but never had the balls to patch my kernel. But today, I finally gathered enough courage and gave it a try... And guess what, it works!

I'm a hapy man. Thanks for the pointer.

And, in the spirit of giving back to the community, I'll just post a mini-HOWTO here on the process.

How to patch your 2.6.1 kernel to get your Lumix (and probably other brands/models as well) Camera Working
Note: In future releases of the 2.6 kernel series, this problem might have been fixed, so this particular mini-HOWTO only applies to 2.6.1 and 2.6.0 kernels only.

Step 1: Create the patchfile
Fire up your favourite editor and create a patchfile containing these lines:
Code:
--- sd.c        Mon Nov 10 10:26:50 2003
+++ sd.c        Sun Jan  4 15:30:59 2004
@@ -606,9 +606,13 @@
         * by sd_spinup_disk() from sd_revalidate_disk(), which happens whenever
         * sd_revalidate() is called.
         */
+#if 0
        retval = -ENODEV;
        if (scsi_block_when_processing_errors(sdp))
                retval = scsi_ioctl(sdp, SCSI_IOCTL_TEST_UNIT_READY, NULL);
+#else
+       retval = 0;
+#endif

        /*
         * Unable to test, unit probably not ready.   This usually
Save the file at [your kernel source dir]/drivers/scsi/

Step 2: Backup your original sd.c file
Go to the location where you saved the patchfile, and backup the unmodified sd.c file first. You might need to revert to the original file when you want to patch your kernel for upgrading in the future.

Code:
cp sd.c sd.original
Step 3: Patch the file
Just run this command at a prompt, replacing patchfile with whatever filename you used in Step 1:
patch -l -p0 <patchfile

That's it! Now all you got to do is to recompile your kernel to mount your camera without problems. Hope this will help anyone facing the same problem

Notes: Credit goes to Alan Stern from the linux-usb-devel team for the patch.
 
Old 02-04-2004, 03:32 AM   #8
snop
Member
 
Registered: Aug 2003
Location: Bcn
Distribution: Slackware
Posts: 93

Rep: Reputation: 15
Hi again,

I'm glad to hear this great news. Maybe I'll try this tonight. Nice mini-Howto by the way.

Bye

SnOp
 
Old 02-04-2004, 04:33 PM   #9
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
Azmeen -

thanks for posting your solution and the great HOWTO

 
Old 02-04-2004, 08:31 PM   #10
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Original Poster
Rep: Reputation: 46
Thanks snop and Genesee
 
Old 02-05-2004, 04:01 AM   #11
snop
Member
 
Registered: Aug 2003
Location: Bcn
Distribution: Slackware
Posts: 93

Rep: Reputation: 15
Hi,

Well, finally I dared to try... and I must say that everything works fine now (except that supermount doesn't detect when the device is unplugged. I'll try the latest version and we'll see...).

Bye

SnOp

P.D.: Does anyone knows if this problem has been fixed in 2.6.0 ?
 
Old 02-05-2004, 09:39 AM   #12
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Original Poster
Rep: Reputation: 46
The problem is still in 2.6.0 and 2.6.1.
 
Old 02-05-2004, 12:23 PM   #13
snop
Member
 
Registered: Aug 2003
Location: Bcn
Distribution: Slackware
Posts: 93

Rep: Reputation: 15
I'm sorry. What I want to know if the problem persists in 2.6.2 (I'm already using 2.6.1).

Edit:

What prevented me to try 2.6.2 was the fact that no supermount patch was already available...until now. So I tried 2.6.2 and I've found that my camera doesn't work as well as it doen't work with 2.6.0/1.

These are the bad news. The good news are that the patch mentioned above can be applied and works for me.

Let's see if 2.6.3 works better...

Bye

SnOp

Last edited by snop; 02-05-2004 at 05:04 PM.
 
Old 04-27-2004, 09:51 PM   #14
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Original Poster
Rep: Reputation: 46
Blergh... it seems that we will still be stuck with this problem.

Up to 2.6.5, this problem still persists. I'm seriously considering emailing the usb-devels about this problem, should 2.6.6 still it.
 
Old 07-25-2004, 04:57 AM   #15
wildge
LQ Newbie
 
Registered: Sep 2002
Location: Europe
Posts: 2

Rep: Reputation: 0
Does not work with 2.6.7

Hi,
I am also unlucky, I own Coolpix 2000. I tried your patch of sd.c on Gentoo with 2.6.7-r11 kernel but unsuccessfully.

Relevant dmesg:

Code:
ohci_hcd: 2004 Feb 02 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
ohci_hcd: block sizes: ed 64 td 64
ohci_hcd 0000:00:02.0: nVidia Corporation nForce USB Controller
ohci_hcd 0000:00:02.0: reset, control = 0x600
PCI: Setting latency timer of device 0000:00:02.0 to 64
ohci_hcd 0000:00:02.0: irq 5, pci mem df1e7000
ohci_hcd 0000:00:02.0: new USB bus registered, assigned bus number 1
ohci_hcd 0000:00:02.0: supports USB remote wakeup
usb usb1: new device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: default language 0x0409
usb usb1: Product: nVidia Corporation nForce USB Controller
usb usb1: Manufacturer: Linux 2.6.7-gentoo-r11 ohci_hcd
usb usb1: SerialNumber: 0000:00:02.0
usb usb1: hotplug
usb usb1: adding 1-0:1.0 (config #1, interface 0)
usb 1-0:1.0: hotplug
hub 1-0:1.0: usb_probe_interface
hub 1-0:1.0: usb_probe_interface - got id
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 3 ports detected
hub 1-0:1.0: standalone hub
hub 1-0:1.0: no power switching (usb 1.0)
hub 1-0:1.0: global over-current protection
hub 1-0:1.0: power on to power good time: 2ms
hub 1-0:1.0: local power source is good
hub 1-0:1.0: no over-current condition exists
ohci_hcd 0000:00:02.0: created debug files
ohci_hcd 0000:00:02.0: OHCI controller state
ohci_hcd 0000:00:02.0: OHCI 1.0, with legacy support registers
ohci_hcd 0000:00:02.0: control 0x683 RWE RWC HCFS=operational CBSR=3
ohci_hcd 0000:00:02.0: cmdstatus 0x00000 SOC=0
ohci_hcd 0000:00:02.0: intrstatus 0x00000004 SF
ohci_hcd 0000:00:02.0: intrenable 0x8000000a MIE RD WDH
ohci_hcd 0000:00:02.0: hcca frame #002d
ohci_hcd 0000:00:02.0: roothub.a 01000203 POTPGT=1 NPS NDP=3
ohci_hcd 0000:00:02.0: roothub.b 00000000 PPCM=0000 DR=0000
ohci_hcd 0000:00:02.0: roothub.status 00000000
ohci_hcd 0000:00:02.0: roothub.portstatus [0] 0x00000100 PPS
ohci_hcd 0000:00:02.0: roothub.portstatus [1] 0x00000100 PPS
ohci_hcd 0000:00:02.0: roothub.portstatus [2] 0x00000100 PPS
ohci_hcd 0000:00:03.0: nVidia Corporation nForce USB Controller (#2)
ohci_hcd 0000:00:03.0: reset, control = 0x600
PCI: Setting latency timer of device 0000:00:03.0 to 64
ohci_hcd 0000:00:03.0: irq 11, pci mem df1e9000
ohci_hcd 0000:00:03.0: new USB bus registered, assigned bus number 2
ohci_hcd 0000:00:03.0: supports USB remote wakeup
usb usb2: new device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: default language 0x0409
usb usb2: Product: nVidia Corporation nForce USB Controller (#2)
usb usb2: Manufacturer: Linux 2.6.7-gentoo-r11 ohci_hcd
usb usb2: SerialNumber: 0000:00:03.0
usb usb2: hotplug
usb usb2: adding 2-0:1.0 (config #1, interface 0)
usb 2-0:1.0: hotplug
hub 2-0:1.0: usb_probe_interface
hub 2-0:1.0: usb_probe_interface - got id
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 3 ports detected
hub 2-0:1.0: standalone hub
hub 2-0:1.0: no power switching (usb 1.0)
hub 2-0:1.0: global over-current protection
hub 2-0:1.0: power on to power good time: 2ms
hub 2-0:1.0: local power source is good
hub 2-0:1.0: no over-current condition exists
ohci_hcd 0000:00:02.0: suspend root hub
ohci_hcd 0000:00:03.0: created debug files
ohci_hcd 0000:00:03.0: OHCI controller state
ohci_hcd 0000:00:03.0: OHCI 1.0, with legacy support registers
ohci_hcd 0000:00:03.0: control 0x683 RWE RWC HCFS=operational CBSR=3
ohci_hcd 0000:00:03.0: cmdstatus 0x00000 SOC=0
ohci_hcd 0000:00:03.0: intrstatus 0x00000004 SF
ohci_hcd 0000:00:03.0: intrenable 0x8000000a MIE RD WDH
ohci_hcd 0000:00:03.0: hcca frame #008c
ohci_hcd 0000:00:03.0: roothub.a 01000203 POTPGT=1 NPS NDP=3
ohci_hcd 0000:00:03.0: roothub.b 00000000 PPCM=0000 DR=0000
ohci_hcd 0000:00:03.0: roothub.status 00000000
ohci_hcd 0000:00:03.0: roothub.portstatus [0] 0x00000100 PPS
ohci_hcd 0000:00:03.0: roothub.portstatus [1] 0x00000100 PPS
ohci_hcd 0000:00:03.0: roothub.portstatus [2] 0x00000100 PPS
ohci_hcd 0000:00:03.0: suspend root hub
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
ohci_hcd 0000:00:03.0: GetStatus roothub.portstatus [3] = 0x00010101 CSC PPS CCS
hub 2-0:1.0: port 3, status 0101, change 0001, 12 Mb/s
hub 2-0:1.0: debounce: port 3: delay 100ms stable 4 status 0x101
ohci_hcd 0000:00:03.0: GetStatus roothub.portstatus [3] = 0x00100103 PRSC PPS PES CCS
usb 2-3: new full speed USB device using address 2
usb 2-3: control timeout on ep0out
Everything under "USB Mass Storage support registered." was outputted when camera had been connected.

lsmod:
Code:
usb_storage            88304  0
ohci_hcd               31748  0
vmnet                  32784  8
vmmon                 158284  0
usbcore               111776  5 usb_storage,ohci_hcd
tvaudio                20300  0
bttv                  143948  1
video_buf              16708  1 bttv
btcx_risc               3848  1 bttv
tuner                  16716  0
nvidia               4818612  8
sg                     34144  0
sd_mod                 19136  0
scsi_mod              106884  3 usb_storage,sg,sd_mod

When I try
Code:
modprobe -r ohci_hcd
, the process stays hanging and it is not possible to kill it.

Could anybody help me at least by suggestion?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Mounting a USB digital camera? dsschanze Linux - Hardware 11 09-03-2007 01:26 PM
Mounting usb camera memory card colabus Linux - Newbie 4 05-24-2004 03:39 AM
Mounting a digital camera as a USB device??? Serenity Linux - Hardware 13 03-17-2004 02:20 AM
Mounting USB Camera Arkas Linux - Hardware 1 08-20-2003 09:27 AM
Mount freezing when mounting USB camera symphony_in_c Linux - Hardware 6 09-01-2002 05:45 PM


All times are GMT -5. The time now is 11:42 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration