To anyone having intermittent problems on Linux and connecting mbed and/or Ublox C027
This page is to help anyone who notices issues in the drive becoming unresponsive or not being identified as a USB mass storage device.
If you find that when inserting the device into the USB port it does not get identified as a mass storage device and other devices refuse to work after using the mbed it might be your machine!
Open a terminal on your linux box and use demessage to find any errors being pushed out by the kernel.
dmesg usb error
[ 4437.454187] usb 3-2: USB disconnect, device number 6
[ 4437.454299] sd 9:0:0:0: Device offlined - not ready after error recovery
[ 4437.458709] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800c0f5e340
[ 4437.458712] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800c0f5e300
[ 4437.458715] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800c0f5efc0
[ 4437.458717] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800c0f5ef80
[ 4437.458720] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff880036579ac0
[ 4437.458722] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800c0f5ee80
[ 4437.458725] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800c0f5eec0
[ 4437.459093] xhci_hcd 0000:00:14.0: ERROR no room on ep ring
[ 4437.459096] xhci_hcd 0000:00:14.0: ERR: No room for command on command ring
[ 4437.459102] xhci_hcd 0000:00:14.0: ERROR no room on ep ring
[ 4437.459103] xhci_hcd 0000:00:14.0: ERR: No room for command on command ring
[ 4437.459106] hub 3-0:1.0: couldn't allocate port 2 usb_device
[ 4487.109908] xhci_hcd 0000:00:14.0: ERROR no room on ep ring
[ 4487.109919] xhci_hcd 0000:00:14.0: ERR: No room for command on command ring
[ 4487.109926] hub 3-0:1.0: couldn't allocate port 2 usb_device
[ 4523.498801] xhci_hcd 0000:00:14.0: ERROR no room on ep ring
[ 4523.498805] xhci_hcd 0000:00:14.0: ERR: No room for command on command ring
[ 4523.498807] hub 3-0:1.0: couldn't allocate port 2 usb_device
[ 4541.567497] xhci_hcd 0000:00:14.0: ERROR no room on ep ring
[ 4541.567501] xhci_hcd 0000:00:14.0: ERR: No room for command on command ring
[ 4541.567504] hub 3-0:1.0: couldn't allocate port 2 usb_device
[ 7328.568877] xhci_hcd 0000:00:14.0: ERROR no room on ep ring
[ 7328.568881] xhci_hcd 0000:00:14.0: ERR: No room for command on command ring
[ 7328.568884] hub 3-0:1.0: couldn't allocate port 2 usb_device
[ 7784.115352] xhci_hcd 0000:00:14.0: ERROR no room on ep ring
[ 7784.115357] xhci_hcd 0000:00:14.0: ERR: No room for command on command ring
[ 7784.115360] hub 3-0:1.0: couldn't allocate port 2 usb_device
[ 8227.026105] xhci_hcd 0000:00:14.0: ERROR no room on ep ring
[ 8227.026116] xhci_hcd 0000:00:14.0: ERR: No room for command on command ring
[ 8227.026124] hub 3-0:1.0: couldn't allocate port 2 usb_device
Notice the HCI error "No room for command on command ring". This seems to be an issue with the Linux Kernel on some machines when using a USB 3.0 port. To find out what version of Linux you are using use:
Linux Version
~ $ cat /etc/*-release
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=13
DISTRIB_CODENAME=maya
DISTRIB_DESCRIPTION="Linux Mint 13 Maya"
NAME="Ubuntu"
VERSION="12.04.4 LTS, Precise Pangolin"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu precise (12.04.4 LTS)"
VERSION_ID="12.04"
Bug has been reported here: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1155002
And here: http://askubuntu.com/questions/187644/error-no-room-on-ep-ring-with-usb-3-0-device
I hope this helps someone and saves hours of work!
To anyone having intermittent problems on Linux and connecting mbed and/or Ublox C027
This page is to help anyone who notices issues in the drive becoming unresponsive or not being identified as a USB mass storage device.
If you find that when inserting the device into the USB port it does not get identified as a mass storage device and other devices refuse to work after using the mbed it might be your machine!
Open a terminal on your linux box and use demessage to find any errors being pushed out by the kernel.
dmesg usb error
Notice the HCI error "No room for command on command ring". This seems to be an issue with the Linux Kernel on some machines when using a USB 3.0 port. To find out what version of Linux you are using use:
Linux Version
Bug has been reported here: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1155002 And here: http://askubuntu.com/questions/187644/error-no-room-on-ep-ring-with-usb-3-0-device
I hope this helps someone and saves hours of work!