Linux - HardwareThis 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.
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
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.
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 :}
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.
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).
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.
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.
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 ?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.