Jump to content
XPEnology Community

USB hotplug errors on HP N54L MicroServer


Bagpuss

Recommended Posts

Hi All,

 

I'm just wondering if anyone can help me.

 

I've just installed the latest XPEnology DS3612xs DSM 4.2 build 3211++ (repack v1.1) on my N54L, and it almost works out of the box.

 

I had to edit synoinfo.conf, in order to get the eSATA port to appear as an internal port, but apart from that, pretty much everything works.

 

However, USB hotplug doesn't seem to work correctly in this configuration, as I can't eject any USB drives without an error.

USB drives are mounted okay, and you can access them, but there is a hotplugd error. This then prevents ejection.

You can login via SSH, and manually unmount them, and this works just fine.

 

Here in an excerpt from the messages file, which shows the insert and removal on an 8GB USB flash drive:

 

Aug 29 12:27:36 kernel: [ 3328.721490] sd 7:0:0:0: Failed to get diagnostic page 0x8000002
Aug 29 12:27:36 kernel: [ 3328.721552] sd 7:0:0:0: Failed to bind enclosure -19
Aug 29 12:27:36 kernel: [ 3328.724861] sd 7:0:0:0: [sdr] No Caching mode page present
Aug 29 12:27:36 kernel: [ 3328.724923] sd 7:0:0:0: [sdr] Assuming drive cache: write through
Aug 29 12:27:36 kernel: [ 3328.729742] sd 7:0:0:0: [sdr] No Caching mode page present
Aug 29 12:27:36 kernel: [ 3328.729805] sd 7:0:0:0: [sdr] Assuming drive cache: write through
Aug 29 12:27:36 kernel: [ 3328.734235] sd 7:0:0:0: [sdr] No Caching mode page present
Aug 29 12:27:36 kernel: [ 3328.734300] sd 7:0:0:0: [sdr] Assuming drive cache: write through
Aug 29 12:27:36 hotplugd: ##### ACTION:add
Aug 29 12:27:36 hotplugd: DEVICE:/proc/bus/usb/001/005
Aug 29 12:27:36 hotplugd: DEVPATH:1-3
Aug 29 12:27:36 hotplugd: SUBSYSTEM:usb
Aug 29 12:27:36 hotplugd: external_disk_port_check.c:142 device path should not be NULL
Aug 29 12:27:36 hotplugd: ##### ACTION:add
Aug 29 12:27:36 hotplugd: DEVICE:/proc/bus/usb/001/005
Aug 29 12:27:36 hotplugd: DEVPATH:1-3:1.0
Aug 29 12:27:36 hotplugd: SUBSYSTEM:usb
Aug 29 12:27:36 hotplugd: INTERFACE:8/6/80
Aug 29 12:27:38 hotplugd: ##### ACTION:add
Aug 29 12:27:38 hotplugd: DEVNAME:sdr
Aug 29 12:27:38 hotplugd: DEVICE:/proc/bus/usb/001/005
Aug 29 12:27:38 hotplugd: DEVGUID:R6R4AAG6DBZOZBZR0
Aug 29 12:27:38 hotplugd: DEVPATH:sdr
Aug 29 12:27:38 hotplugd: SUBSYSTEM:block
Aug 29 12:27:38 hotplugd: PHYSDEVPATH:/devices/pci0000:00/0000:00:12.2/usb1/1-3/1-3:1.0/host7/target7:0:0/7:0:0:0
Aug 29 12:27:38 hotplugd: hotplugd.c:884 Fail to recognize usb DEVNAME=sdr, DEVPATH=sdr
Aug 29 12:27:38 hotplugd: hotplugd.c:1409 failed to setup usb config, (DEVPATH, DEVICE, ACTION, DEVNAME, INTERFACE)=(sdr, /proc/bus/usb/001/005, add, sdr, )
Aug 29 12:27:38 hotplugd: hotplugd.c (1515) ==== USB disk [sdr] plugged in ====
Aug 29 12:27:38 hotplugd: hotplugd.c:1516 goto USB disk, szDeviceName=sdr
Aug 29 12:28:45 externaldevices.cgi: disk_usb_un_mount.c:536 unmount usb disk sdr failed. (0XD00)
Aug 29 12:28:45 externaldevices.cgi: usbbkp_hot_pull_out_ex.c:76 Fail to un-mount [sdr] usb device, errno=[0x0D00]
Aug 29 12:28:45 externaldevices.cgi: externaldevices.cpp (390) Failed to call hot plug out.
Aug 29 12:29:12 externaldevices.cgi: externaldevices.cpp (383) Failed to get usb map.
Aug 29 12:29:41 hotplugd: ##### ACTION:remove
Aug 29 12:29:41 hotplugd: DEVICE:/proc/bus/usb/001/005
Aug 29 12:29:41 hotplugd: DEVPATH:1-3:1.0
Aug 29 12:29:41 hotplugd: SUBSYSTEM:usb
Aug 29 12:29:41 hotplugd: INTERFACE:8/6/80
Aug 29 12:29:41 hotplugd: ##### ACTION:remove
Aug 29 12:29:41 hotplugd: DEVICE:/proc/bus/usb/001/005
Aug 29 12:29:41 hotplugd: DEVPATH:1-3
Aug 29 12:29:41 hotplugd: SUBSYSTEM:usb
Aug 29 12:29:47 hotplugd: usb_get_device_id.c:56 failed get usb id Vendor=0000, ProdID=0000, SN=fffffff9ffffffafffffffe4
Aug 29 12:29:47 hotplugd: hotplugd.c:1102 failed get usb device id from usb config, DEVICE=/proc/bus/usb/000/000
Aug 29 12:29:47 hotplugd: ##### ACTION:remove
Aug 29 12:29:47 hotplugd: DEVNAME:sdr
Aug 29 12:29:47 hotplugd: DEVICE:/proc/bus/usb/000/000
Aug 29 12:29:47 hotplugd: DEVPATH:sdr
Aug 29 12:29:47 hotplugd: SUBSYSTEM:block
Aug 29 12:29:47 hotplugd: PHYSDEVPATH:/devices/pci0000:00/0000:00:12.2/usb1/1-3/1-3:1.0/host7/target7:0:0/7:0:0:0
Aug 29 12:29:47 hotplugd: hotplugd.c (1534) ==== USB disk [sdr] plugged out====
Aug 29 12:29:47 hotplugd: SYNOReadOneSectorFromDev(56): failed to open device [/dev/sdr] (errno = 6)
Aug 29 12:29:47 hotplugd: volume_parts_info_get_by_dev.c:92 Dev:sdr cannot find PostfixNumber.
Aug 29 12:29:47 hotplugd: SYNOReadOneSectorFromDev(56): failed to open device [/dev/sdr] (errno = 6)
Aug 29 12:29:47 hotplugd: usbbkp_is_dev_bkp_disk.c:85 SYNOReadOneSectorFromDev failed. szDevPath=[sdr], errno=[0x0900]
Aug 29 12:29:47 hotplugd: volume_parts_info_get_by_dev.c:318 failed to get disk '/dev/sdr' size
Aug 29 12:29:47 hotplugd: usbbkp_hot_pull_out_ex.c:108 Remove /tmp/usbtab [sdr] failed. (0x2000)
Aug 29 12:29:47 hotplugd: hotplugd.c:1538 Failed to handle USB disk hotplug out.
Aug 29 12:29:48 kernel: [ 3460.371449] sd 8:0:0:0: Failed to get diagnostic page 0x8000002
Aug 29 12:29:48 kernel: [ 3460.371543] sd 8:0:0:0: Failed to bind enclosure -19
Aug 29 12:29:48 kernel: [ 3460.375315] sd 8:0:0:0: [sdr] No Caching mode page present
Aug 29 12:29:48 kernel: [ 3460.376950] sd 8:0:0:0: [sdr] Assuming drive cache: write through
Aug 29 12:29:48 kernel: [ 3460.381816] sd 8:0:0:0: [sdr] No Caching mode page present
Aug 29 12:29:48 kernel: [ 3460.381913] sd 8:0:0:0: [sdr] Assuming drive cache: write through
Aug 29 12:29:48 kernel: [ 3460.386323] sd 8:0:0:0: [sdr] No Caching mode page present
Aug 29 12:29:48 kernel: [ 3460.386418] sd 8:0:0:0: [sdr] Assuming drive cache: write through
Aug 29 12:29:49 hotplugd: ##### ACTION:add
Aug 29 12:29:49 hotplugd: DEVICE:/proc/bus/usb/001/006
Aug 29 12:29:49 hotplugd: DEVPATH:1-3
Aug 29 12:29:49 hotplugd: SUBSYSTEM:usb
Aug 29 12:29:49 hotplugd: ##### ACTION:add
Aug 29 12:29:49 hotplugd: DEVICE:/proc/bus/usb/001/006
Aug 29 12:29:49 hotplugd: DEVPATH:1-3:1.0
Aug 29 12:29:49 hotplugd: SUBSYSTEM:usb
Aug 29 12:29:49 hotplugd: INTERFACE:8/6/80
Aug 29 12:29:49 hotplugd: ##### ACTION:add
Aug 29 12:29:49 hotplugd: DEVNAME:sdr
Aug 29 12:29:49 hotplugd: DEVICE:/proc/bus/usb/001/006
Aug 29 12:29:49 hotplugd: DEVGUID:R6R4AAG6DBZOZBZR0
Aug 29 12:29:49 hotplugd: DEVPATH:sdr
Aug 29 12:29:49 hotplugd: SUBSYSTEM:block
Aug 29 12:29:49 hotplugd: PHYSDEVPATH:/devices/pci0000:00/0000:00:12.2/usb1/1-3/1-3:1.0/host8/target8:0:0/8:0:0:0
Aug 29 12:29:49 hotplugd: hotplugd.c:884 Fail to recognize usb DEVNAME=sdr, DEVPATH=sdr
Aug 29 12:29:49 hotplugd: hotplugd.c:1409 failed to setup usb config, (DEVPATH, DEVICE, ACTION, DEVNAME, INTERFACE)=(sdr, /proc/bus/usb/001/006, add, sdr, )
Aug 29 12:29:49 hotplugd: hotplugd.c (1515) ==== USB disk [sdr] plugged in ====
Aug 29 12:29:49 hotplugd: hotplugd.c:1516 goto USB disk, szDeviceName=sdr
Aug 29 12:48:00 hotplugd: ##### ACTION:remove
Aug 29 12:48:00 hotplugd: DEVICE:/proc/bus/usb/001/006
Aug 29 12:48:00 hotplugd: DEVPATH:1-3:1.0
Aug 29 12:48:00 hotplugd: SUBSYSTEM:usb
Aug 29 12:48:00 hotplugd: INTERFACE:8/6/80
Aug 29 12:48:00 hotplugd: ##### ACTION:remove
Aug 29 12:48:00 hotplugd: DEVICE:/proc/bus/usb/001/006
Aug 29 12:48:00 hotplugd: DEVPATH:1-3
Aug 29 12:48:00 hotplugd: SUBSYSTEM:usb
Aug 29 12:48:06 hotplugd: usb_get_device_id.c:56 failed get usb id Vendor=0000, ProdID=0000, SN=fffffff9ffffffafffffffe4
Aug 29 12:48:06 hotplugd: hotplugd.c:1102 failed get usb device id from usb config, DEVICE=/proc/bus/usb/000/000
Aug 29 12:48:06 hotplugd: ##### ACTION:remove
Aug 29 12:48:06 hotplugd: DEVNAME:sdr
Aug 29 12:48:06 hotplugd: DEVICE:/proc/bus/usb/000/000
Aug 29 12:48:06 hotplugd: DEVPATH:sdr
Aug 29 12:48:06 hotplugd: SUBSYSTEM:block
Aug 29 12:48:06 hotplugd: PHYSDEVPATH:/devices/pci0000:00/0000:00:12.2/usb1/1-3/1-3:1.0/host8/target8:0:0/8:0:0:0
Aug 29 12:48:06 hotplugd: hotplugd.c (1534) ==== USB disk [sdr] plugged out====
Aug 29 12:48:06 hotplugd: SYNOReadOneSectorFromDev(56): failed to open device [/dev/sdr] (errno = 6)
Aug 29 12:48:06 hotplugd: volume_parts_info_get_by_dev.c:92 Dev:sdr cannot find PostfixNumber.
Aug 29 12:48:06 hotplugd: SYNOReadOneSectorFromDev(56): failed to open device [/dev/sdr] (errno = 6)
Aug 29 12:48:06 hotplugd: usbbkp_is_dev_bkp_disk.c:85 SYNOReadOneSectorFromDev failed. szDevPath=[sdr], errno=[0x0900]
Aug 29 12:48:06 hotplugd: volume_parts_info_get_by_dev.c:318 failed to get disk '/dev/sdr' size
Aug 29 12:48:06 hotplugd: usbbkp_hot_pull_out_ex.c:108 Remove /tmp/usbtab [sdr] failed. (0x2000)
Aug 29 12:48:06 hotplugd: hotplugd.c:1538 Failed to handle USB disk hotplug out.
Aug 29 12:48:07 kernel: [ 4559.501350] sd 9:0:0:0: Failed to get diagnostic page 0x8000002
Aug 29 12:48:07 kernel: [ 4559.501445] sd 9:0:0:0: Failed to bind enclosure -19
Aug 29 12:48:07 kernel: [ 4559.505261] sd 9:0:0:0: [sdr] No Caching mode page present
Aug 29 12:48:07 kernel: [ 4559.505355] sd 9:0:0:0: [sdr] Assuming drive cache: write through
Aug 29 12:48:07 kernel: [ 4559.510265] sd 9:0:0:0: [sdr] No Caching mode page present
Aug 29 12:48:07 kernel: [ 4559.510363] sd 9:0:0:0: [sdr] Assuming drive cache: write through
Aug 29 12:48:07 kernel: [ 4559.514641] sd 9:0:0:0: [sdr] No Caching mode page present
Aug 29 12:48:07 kernel: [ 4559.514738] sd 9:0:0:0: [sdr] Assuming drive cache: write through
Aug 29 12:48:08 hotplugd: ##### ACTION:add
Aug 29 12:48:08 hotplugd: DEVICE:/proc/bus/usb/001/007
Aug 29 12:48:08 hotplugd: DEVPATH:1-2
Aug 29 12:48:08 hotplugd: SUBSYSTEM:usb
Aug 29 12:48:08 hotplugd: ##### ACTION:add
Aug 29 12:48:08 hotplugd: DEVICE:/proc/bus/usb/001/007
Aug 29 12:48:08 hotplugd: DEVPATH:1-2:1.0
Aug 29 12:48:08 hotplugd: SUBSYSTEM:usb
Aug 29 12:48:08 hotplugd: INTERFACE:8/6/80
Aug 29 12:48:08 hotplugd: ##### ACTION:add
Aug 29 12:48:08 hotplugd: DEVNAME:sdr
Aug 29 12:48:08 hotplugd: DEVICE:/proc/bus/usb/001/007
Aug 29 12:48:08 hotplugd: DEVGUID:R6R4AAG6DBZOZBZR0
Aug 29 12:48:08 hotplugd: DEVPATH:sdr
Aug 29 12:48:08 hotplugd: SUBSYSTEM:block
Aug 29 12:48:08 hotplugd: PHYSDEVPATH:/devices/pci0000:00/0000:00:12.2/usb1/1-2/1-2:1.0/host9/target9:0:0/9:0:0:0
Aug 29 12:48:08 hotplugd: hotplugd.c:884 Fail to recognize usb DEVNAME=sdr, DEVPATH=sdr
Aug 29 12:48:08 hotplugd: hotplugd.c:1409 failed to setup usb config, (DEVPATH, DEVICE, ACTION, DEVNAME, INTERFACE)=(sdr, /proc/bus/usb/001/007, add, sdr, )
Aug 29 12:48:08 hotplugd: hotplugd.c (1515) ==== USB disk [sdr] plugged in ====
Aug 29 12:48:08 hotplugd: hotplugd.c:1516 goto USB disk, szDeviceName=sdr
Aug 29 12:49:19 externaldevices.cgi: disk_usb_un_mount.c:536 unmount usb disk sdr failed. (0XD00)
Aug 29 12:49:19 externaldevices.cgi: usbbkp_hot_pull_out_ex.c:76 Fail to un-mount [sdr] usb device, errno=[0x0D00]
Aug 29 12:49:19 externaldevices.cgi: externaldevices.cpp (390) Failed to call hot plug out.

 

Fundamentally, it looks like it comes down to two errors.

 

On Insert:

Aug 29 12:48:08 hotplugd: hotplugd.c:884 Fail to recognize usb DEVNAME=sdr, DEVPATH=sdr

Aug 29 12:48:08 hotplugd: hotplugd.c:1409 failed to setup usb config, (DEVPATH, DEVICE, ACTION, DEVNAME, INTERFACE)=(sdr, /proc/bus/usb/001/007, add, sdr, )

 

and removal:

Aug 29 12:49:19 externaldevices.cgi: disk_usb_un_mount.c:536 unmount usb disk sdr failed. (0XD00)

Aug 29 12:49:19 externaldevices.cgi: usbbkp_hot_pull_out_ex.c:76 Fail to un-mount [sdr] usb device, errno=[0x0D00]

Aug 29 12:49:19 externaldevices.cgi: externaldevices.cpp (390) Failed to call hot plug out.

 

I've tried the following in my synoinfo.conf:

 

internalportcfg="0x3f" (0000 0000 0011 1111 - 6 SATA)

esataportcfg="0x00000" (0000 0000 0000 0000 - 0 eSATA)

usbportcfg="0xfc1" (0000 1111 1100 0001)

 

and I've also tried this usbportcfg, which seems more appropriate:

usbportcfg="0x1fc0" (0001 1111 1100 0000) - 7 USB ports, with no clashes with mask for either SATA or eSATA.

 

The issue remains, though.

If anyone has got any thoughts on how to fix this, I'd really appreciate hearing them.

 

Thanks,

 

Andy.

Link to comment
Share on other sites

×
×
  • Create New...