Ubuntu

Nikon D2H camera cannot be mounted (USB)

Reported by Damien on 2008-11-23
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Undecided
Unassigned

Bug Description

Hi all,

My Nikon D2H camera cannot be mounted as a USB mass storage device on Ubuntu 8.04.1, kernel 2.6.24-21-generic (it also happens on Ubuntu 8.10, kernel 2.6.27-7. See comments below). It still works flawlessly with Knoppix 3.4 (kernel 2.6.6!) or when a USB reader (instead of the camera itself) is used to read the CF card. Unfortunately the camera was not used for 6 months so I can't tell exactly when the bug appeared.

This problem is possibly related to other Nikon/USB issues, e.g.
https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/134477
https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/145153
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/245118

If so, the solution would be to add support for it in unusual_devs.h

Extra info:

/var/log/messages/:

Nov 23 22:04:14 spiff kernel: [ 2745.118414] usb 4-3: new high speed USB device using ehci_hcd and address 4
Nov 23 22:04:15 spiff kernel: [ 2745.251538] usb 4-3: configuration #1 chosen from 1 choice
Nov 23 22:04:15 spiff kernel: [ 1266.572952] scsi3 : SCSI emulation for USB Mass Storage devices
Nov 23 22:04:20 spiff kernel: [ 2751.105240] scsi 3:0:0:0: Direct-Access NIKON D2H 2.01 PQ: 0 ANSI: 2
Nov 23 22:04:20 spiff kernel: [ 2751.120323] sd 3:0:0:0: [sdb] 4001761 512-byte hardware sectors (2049 MB)
Nov 23 22:04:20 spiff kernel: [ 2751.121060] sd 3:0:0:0: [sdb] Write Protect is off
Nov 23 22:04:20 spiff kernel: [ 2751.123681] sd 3:0:0:0: [sdb] 4001761 512-byte hardware sectors (2049 MB)
Nov 23 22:04:20 spiff kernel: [ 1269.254072] sd 3:0:0:0: [sdb] Write Protect is off
Nov 23 22:04:20 spiff kernel: [ 1269.254084] sdb: sdb1
Nov 23 22:04:20 spiff kernel: [ 1269.257547] sd 3:0:0:0: [sdb] Attached SCSI removable disk
Nov 23 22:04:20 spiff kernel: [ 1269.257612] sd 3:0:0:0: Attached scsi generic sg2 type 0
Nov 23 22:04:20 spiff kernel: [ 1269.453663] end_request: I/O error, dev sdb, sector 4001760
Nov 23 22:04:20 spiff kernel: [ 1269.453671] printk: 237 messages suppressed.
Nov 23 22:04:20 spiff kernel: [ 1269.455415] end_request: I/O error, dev sdb, sector 4001760
Nov 23 22:04:20 spiff kernel: [ 1269.461669] end_request: I/O error, dev sdb, sector 4001760
Nov 23 22:04:20 spiff kernel: [ 1269.463165] end_request: I/O error, dev sdb, sector 4001760
Nov 23 22:04:20 spiff kernel: [ 1269.464665] end_request: I/O error, dev sdb, sector 4001760
Nov 23 22:04:20 spiff kernel: [ 1269.481784] end_request: I/O error, dev sdb, sector 4001760
Nov 23 22:04:20 spiff kernel: [ 1269.483282] end_request: I/O error, dev sdb, sector 4001760
Nov 23 22:04:20 spiff kernel: [ 1269.484906] end_request: I/O error, dev sdb, sector 96
Nov 23 22:04:20 spiff kernel: [ 1269.486020] end_request: I/O error, dev sdb, sector 97
Nov 23 22:04:20 spiff kernel: [ 1269.487644] end_request: I/O error, dev sdb, sector 96
Nov 23 22:04:20 spiff kernel: [ 1269.488768] end_request: I/O error, dev sdb, sector 97
Nov 23 22:04:20 spiff kernel: [ 1269.674104] end_request: I/O error, dev sdb, sector 0
Nov 23 22:04:20 spiff kernel: [ 1269.676725] end_request: I/O error, dev sdb, sector 0
Nov 23 22:04:20 spiff kernel: [ 1269.677848] end_request: I/O error, dev sdb, sector 1
Nov 23 22:04:20 spiff kernel: [ 1269.678972] end_request: I/O error, dev sdb, sector 0
Nov 23 22:04:20 spiff kernel: [ 1269.680097] end_request: I/O error, dev sdb, sector 1
Nov 23 22:04:20 spiff kernel: [ 1269.688053] end_request: I/O error, dev sdb, sector 63
Nov 23 22:04:20 spiff kernel: [ 1269.691811] end_request: I/O error, dev sdb, sector 63
Nov 23 22:04:20 spiff kernel: [ 1269.695088] end_request: I/O error, dev sdb, sector 64
Nov 23 22:04:20 spiff kernel: [ 1269.745831] end_request: I/O error, dev sdb, sector 63
Nov 23 22:04:20 spiff kernel: [ 1269.747320] end_request: I/O error, dev sdb, sector 63
Nov 23 22:04:20 spiff kernel: [ 1269.748696] end_request: I/O error, dev sdb, sector 64
Nov 23 22:04:20 spiff kernel: [ 1269.750569] end_request: I/O error, dev sdb, sector 0
Nov 23 22:04:20 spiff kernel: [ 1269.751823] end_request: I/O error, dev sdb, sector 1
Nov 23 22:04:20 spiff kernel: [ 1269.753193] end_request: I/O error, dev sdb, sector 0
Nov 23 22:04:20 spiff kernel: [ 1269.754568] end_request: I/O error, dev sdb, sector 1
Nov 23 22:04:20 spiff kernel: [ 1269.755942] end_request: I/O error, dev sdb, sector 0
Nov 23 22:04:20 spiff kernel: [ 1269.757318] end_request: I/O error, dev sdb, sector 1
Nov 23 22:04:23 spiff kernel: [ 2755.036295] end_request: I/O error, dev sdb, sector 0
Nov 23 22:04:23 spiff kernel: [ 2755.037914] end_request: I/O error, dev sdb, sector 0
Nov 23 22:04:23 spiff kernel: [ 2755.039164] end_request: I/O error, dev sdb, sector 1
Nov 23 22:04:23 spiff kernel: [ 2755.040662] end_request: I/O error, dev sdb, sector 0
Nov 23 22:04:23 spiff kernel: [ 2755.042039] end_request: I/O error, dev sdb, sector 1

lsusb -v: (section related to the Nikon camera only)

Bus 004 Device 004: ID 04b0:0403 Nikon Corp. D2H (mass storage mode)
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 2.00
  bDeviceClass 0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 64
  idVendor 0x04b0 Nikon Corp.
  idProduct 0x0403 D2H (mass storage mode)
  bcdDevice 2.01
  iManufacturer 1 NIKON
  iProduct 2 NIKON DSC D2H
  iSerial 0
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 32
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xc0
      Self Powered
    MaxPower 2mA
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNumEndpoints 2
      bInterfaceClass 8 Mass Storage
      bInterfaceSubClass 6 SCSI
      bInterfaceProtocol 80 Bulk (Zip)
      iInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x01 EP 1 OUT
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0200 1x 512 bytes
        bInterval 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x82 EP 2 IN
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0200 1x 512 bytes
        bInterval 0
Device Qualifier (for other device speed):
  bLength 10
  bDescriptorType 6
  bcdUSB 2.00
  bDeviceClass 0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 64
  bNumConfigurations 1
Device Status: 0x0001
  Self Powered

Damien (takahara) on 2008-11-27
description: updated
Damien (takahara) wrote :

Concerned package set to the kernel sources 2.6.24. Not sure if this is the most appropriate though.

Damien (takahara) wrote :

I've just upgraded to Intrepid and the problem persists, although the log file is slightly different: all error messages are now suppressed.

Kernel/OS info: Ubuntu 8.10
$uname -a:
Linux spiff 2.6.27-7-generic #1 SMP Tue Nov 4 19:33:20 UTC 2008 i686 GNU/Linux

/var/log/messages:

Nov 29 15:11:54 spiff kernel: [ 6876.420063] usb 1-3: new high speed USB device using ehci_hcd and address 3
Nov 29 15:11:54 spiff kernel: [ 6876.560104] usb 1-3: configuration #1 chosen from 1 choice
Nov 29 15:11:55 spiff kernel: [ 6876.778291] usbcore: registered new interface driver libusual
Nov 29 15:11:55 spiff kernel: [ 6876.803106] Initializing USB Mass Storage driver...
Nov 29 15:11:55 spiff kernel: [ 6876.805845] scsi2 : SCSI emulation for USB Mass Storage devices
Nov 29 15:11:55 spiff kernel: [ 6876.807319] usbcore: registered new interface driver usb-storage
Nov 29 15:11:55 spiff kernel: [ 6876.807329] USB Mass Storage support registered.
Nov 29 15:12:00 spiff kernel: [ 6881.809836] scsi 2:0:0:0: Direct-Access NIKON D2H 2.01 PQ: 0 ANSI: 2
Nov 29 15:12:00 spiff kernel: [ 6881.817712] sd 2:0:0:0: [sdb] 4001761 512-byte hardware sectors (2049 MB)
Nov 29 15:12:00 spiff kernel: [ 6881.818907] sd 2:0:0:0: [sdb] Write Protect is off
Nov 29 15:12:00 spiff kernel: [ 6881.822162] sd 2:0:0:0: [sdb] 4001761 512-byte hardware sectors (2049 MB)
Nov 29 15:12:00 spiff kernel: [ 6881.823288] sd 2:0:0:0: [sdb] Write Protect is off
Nov 29 15:12:00 spiff kernel: [ 6881.824559] sdb: sdb1
Nov 29 15:12:00 spiff kernel: [ 6881.829346] sd 2:0:0:0: [sdb] Attached SCSI removable disk
Nov 29 15:12:00 spiff kernel: [ 6881.830339] sd 2:0:0:0: Attached scsi generic sg2 type 0

then, as the device is mounted:

$ sudo mount -t vfat /dev/sdb1 /media/cdrom
mount: /dev/sdb1: can't read superblock

and the following is added to /var/log/messages:
Nov 29 15:14:38 spiff kernel: [ 7040.043508] __ratelimit: 293 callbacks suppressed

Note that the CF card in the camera can be read with a card reader so it's not a filesystem issue.

Damien (takahara) on 2008-11-29
description: updated
Damien (takahara) on 2008-11-30
description: updated
description: updated
Damien (takahara) wrote :

A fix for this bug has been sent to the appropriate USB lists.

Changed in linux:
assignee: nobody → takahara
status: New → In Progress
Damien (takahara) wrote :

I should probably post the patch here too:

--- unusual_devs.h-old 2008-12-01 23:25:55.000000000 +0900
+++ unusual_devs.h 2008-12-01 23:28:08.000000000 +0900
@@ -355,6 +355,13 @@
                US_SC_DEVICE, US_PR_DEVICE, NULL,
                US_FL_FIX_CAPACITY),

+/* Reported by Damien Douxchamps <email address hidden> */
+UNUSUAL_DEV( 0x04b0, 0x0403, 0x0100, 0x0202,
+ "NIKON",
+ "NIKON D2H",
+ US_SC_DEVICE, US_PR_DEVICE, NULL,
+ US_FL_FIX_CAPACITY),
+
 /* Reported by Milinevsky Dmitry <email address hidden> */
 UNUSUAL_DEV( 0x04b0, 0x0409, 0x0100, 0x0100,
                "NIKON",

Damien (takahara) wrote :

Still not working with the latest kernel; I give up.

Changed in linux (Ubuntu):
assignee: Damien (takahara) → nobody
status: In Progress → Confirmed
hongyan (hongyan) wrote :

Buy Rechargeable Li-ion 11.1V 2000mAh battery for Nikon D2H,Save 20%!
http://www.nikon-coolpix-replacement-battery.com/d2h.htm

This bug was filed against a series that is no longer supported and so is being marked as Won't Fix. If this issue still exists in a supported series, please file a new bug.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.