extern 2.5" HD with beaglebone

Hi,

I tried to attach an extern 2.5" HD to my beaglebone. This drives is
seen ON MY PC according lsusb as :

Bus 004 Device 012: ID 0930:0b1a Toshiba Corp.
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 2.10
  bDeviceClass 0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 64
  idVendor 0x0930 Toshiba Corp.
  idProduct 0x0b1a
  bcdDevice 0.01
  iManufacturer 1 TOSHIBA
  iProduct 2 STOR.E ALU 2S
  iSerial 3 201202092870
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 32
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0x80
      (Bus Powered)
    MaxPower 400mA
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNumEndpoints 2
      bInterfaceClass 8 Mass Storage
      bInterfaceSubClass 6 SCSI
      bInterfaceProtocol 80 Bulk-Only
      iInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x81 EP 1 IN
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0200 1x 512 bytes
        bInterval 20
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x02 EP 2 OUT
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0200 1x 512 bytes
        bInterval 20
Binary Object Store Descriptor:
  bLength 5
  bDescriptorType 15
  wTotalLength 22
  bNumDeviceCaps 2
  USB 2.0 Extension Device Capability:
    bLength 7
    bDescriptorType 16
    bDevCapabilityType 2
    bmAttributes 0x00000002
      Link Power Management (LPM) Supported
  SuperSpeed USB Device Capability:
    bLength 10
    bDescriptorType 16
    bDevCapabilityType 3
    bmAttributes 0x00
    wSpeedsSupported 0x000e
      Device can operate at Full Speed (12Mbps)
      Device can operate at High Speed (480Mbps)
      Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport 1
      Lowest fully-functional device speed is Full Speed (12Mbps)
    bU1DevExitLat 0 micro seconds
    bU2DevExitLat 0 micro seconds
Device Status: 0x0000
  (Bus Powered)

My Beaglbone is powered with a mains adaptor not via USB.

But nothing happens...the HD is not spinning up.

I am using Robert Nelsons kernel and GENTOO.

Do I miss something or is this simply something the Beagleboard
cant do?

By the way: The HD comes with a simple cable -- not those Y-cables...

What do I wrong here?

Best regards,
mcc

Hi,

I tried to attach an extern 2.5" HD to my beaglebone. This drives is
seen ON MY PC according lsusb as :

Bus 004 Device 012: ID 0930:0b1a Toshiba Corp.
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 2.10
  bDeviceClass 0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 64
  idVendor 0x0930 Toshiba Corp.
  idProduct 0x0b1a
  bcdDevice 0.01
  iManufacturer 1 TOSHIBA
  iProduct 2 STOR.E ALU 2S
  iSerial 3 201202092870
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 32
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0x80
      (Bus Powered)
    MaxPower 400mA
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNumEndpoints 2
      bInterfaceClass 8 Mass Storage
      bInterfaceSubClass 6 SCSI
      bInterfaceProtocol 80 Bulk-Only
      iInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x81 EP 1 IN
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0200 1x 512 bytes
        bInterval 20
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x02 EP 2 OUT
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0200 1x 512 bytes
        bInterval 20
Binary Object Store Descriptor:
  bLength 5
  bDescriptorType 15
  wTotalLength 22
  bNumDeviceCaps 2
  USB 2.0 Extension Device Capability:
    bLength 7
    bDescriptorType 16
    bDevCapabilityType 2
    bmAttributes 0x00000002
      Link Power Management (LPM) Supported
  SuperSpeed USB Device Capability:
    bLength 10
    bDescriptorType 16
    bDevCapabilityType 3
    bmAttributes 0x00
    wSpeedsSupported 0x000e
      Device can operate at Full Speed (12Mbps)
      Device can operate at High Speed (480Mbps)
      Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport 1
      Lowest fully-functional device speed is Full Speed (12Mbps)
    bU1DevExitLat 0 micro seconds
    bU2DevExitLat 0 micro seconds
Device Status: 0x0000
  (Bus Powered)

My Beaglbone is powered with a mains adaptor not via USB.

But nothing happens...the HD is not spinning up.

I am using Robert Nelsons kernel and GENTOO.

Do I miss something or is this simply something the Beagleboard
cant do?

Any noise in dmesg?

sudo dmesg -C

plugin-drive

dmesg

By the way: The HD comes with a simple cable -- not those Y-cables...

Do you have a Y-cable around?

Regards,

The USB supply on the Beaglebone is not capable of powering a 2.5" HD unless it only consumes 500mA.

Gerald

See below...thats why it comes without an Y-cable but with a simple
one.

mcc

Gerald Coley <gerald@beagleboard.org> [12-11-07 20:44]:

Can I assume it it the same 5V as what powers the board and that the grounds are common?

Gerald

Robert Nelson <robertcnelson@gmail.com> [12-11-07 20:44]:

> Hi,
>
> I tried to attach an extern 2.5" HD to my beaglebone. This drives is
> seen ON MY PC according lsusb as :
>
> Bus 004 Device 012: ID 0930:0b1a Toshiba Corp.
> Device Descriptor:
> bLength 18
> bDescriptorType 1
> bcdUSB 2.10
> bDeviceClass 0 (Defined at Interface level)
> bDeviceSubClass 0
> bDeviceProtocol 0
> bMaxPacketSize0 64
> idVendor 0x0930 Toshiba Corp.
> idProduct 0x0b1a
> bcdDevice 0.01
> iManufacturer 1 TOSHIBA
> iProduct 2 STOR.E ALU 2S
> iSerial 3 201202092870
> bNumConfigurations 1
> Configuration Descriptor:
> bLength 9
> bDescriptorType 2
> wTotalLength 32
> bNumInterfaces 1
> bConfigurationValue 1
> iConfiguration 0
> bmAttributes 0x80
> (Bus Powered)
> MaxPower 400mA
> Interface Descriptor:
> bLength 9
> bDescriptorType 4
> bInterfaceNumber 0
> bAlternateSetting 0
> bNumEndpoints 2
> bInterfaceClass 8 Mass Storage
> bInterfaceSubClass 6 SCSI
> bInterfaceProtocol 80 Bulk-Only
> iInterface 0
> Endpoint Descriptor:
> bLength 7
> bDescriptorType 5
> bEndpointAddress 0x81 EP 1 IN
> bmAttributes 2
> Transfer Type Bulk
> Synch Type None
> Usage Type Data
> wMaxPacketSize 0x0200 1x 512 bytes
> bInterval 20
> Endpoint Descriptor:
> bLength 7
> bDescriptorType 5
> bEndpointAddress 0x02 EP 2 OUT
> bmAttributes 2
> Transfer Type Bulk
> Synch Type None
> Usage Type Data
> wMaxPacketSize 0x0200 1x 512 bytes
> bInterval 20
> Binary Object Store Descriptor:
> bLength 5
> bDescriptorType 15
> wTotalLength 22
> bNumDeviceCaps 2
> USB 2.0 Extension Device Capability:
> bLength 7
> bDescriptorType 16
> bDevCapabilityType 2
> bmAttributes 0x00000002
> Link Power Management (LPM) Supported
> SuperSpeed USB Device Capability:
> bLength 10
> bDescriptorType 16
> bDevCapabilityType 3
> bmAttributes 0x00
> wSpeedsSupported 0x000e
> Device can operate at Full Speed (12Mbps)
> Device can operate at High Speed (480Mbps)
> Device can operate at SuperSpeed (5Gbps)
> bFunctionalitySupport 1
> Lowest fully-functional device speed is Full Speed (12Mbps)
> bU1DevExitLat 0 micro seconds
> bU2DevExitLat 0 micro seconds
> Device Status: 0x0000
> (Bus Powered)
>
> My Beaglbone is powered with a mains adaptor not via USB.
>
> But nothing happens...the HD is not spinning up.
>
> I am using Robert Nelsons kernel and GENTOO.
>
> Do I miss something or is this simply something the Beagleboard
> cant do?

Any noise in dmesg?

sudo dmesg -C

plugin-drive

dmesg

> By the way: The HD comes with a simple cable -- not those Y-cables...

Do you have a Y-cable around?

Regards,

--
Robert Nelson
http://www.rcn-ee.com/

--

Hi Robert,

thanks for your reply.

dmesg says nothing...

And: No, I havent an Y-cable...this is my first and only
external "pocket" HD-drive...

Best regards,
mcc

Hi Gerald,

the only electrical connection is between the HD-drive and the
beaglebone with a simple USB-cable (no Y-cable).

Since there is only one ground, it is common to both as far as the
beaglebone is soldered correctly.

mcc

Gerald Coley <gerald@beagleboard.org> [12-11-07 20:52]:

I am concerned that it actually takes more than 400mA when the motors spin up. I am not sure if there is an over current condition that the kernel will detect it. You should see some sort of message if the HD is powered on. If you have an LED on the HD that shows power, then it is getting power.

Gerald

Robert Nelson <robertcnelson@gmail.com> [12-11-07 20:44]:

> Hi,
>
> I tried to attach an extern 2.5" HD to my beaglebone. This drives is
> seen ON MY PC according lsusb as :
>
> Bus 004 Device 012: ID 0930:0b1a Toshiba Corp.
> Device Descriptor:
> bLength 18
> bDescriptorType 1
> bcdUSB 2.10
> bDeviceClass 0 (Defined at Interface level)
> bDeviceSubClass 0
> bDeviceProtocol 0
> bMaxPacketSize0 64
> idVendor 0x0930 Toshiba Corp.
> idProduct 0x0b1a
> bcdDevice 0.01
> iManufacturer 1 TOSHIBA
> iProduct 2 STOR.E ALU 2S
> iSerial 3 201202092870
> bNumConfigurations 1
> Configuration Descriptor:
> bLength 9
> bDescriptorType 2
> wTotalLength 32
> bNumInterfaces 1
> bConfigurationValue 1
> iConfiguration 0
> bmAttributes 0x80
> (Bus Powered)
> MaxPower 400mA
> Interface Descriptor:
> bLength 9
> bDescriptorType 4
> bInterfaceNumber 0
> bAlternateSetting 0
> bNumEndpoints 2
> bInterfaceClass 8 Mass Storage
> bInterfaceSubClass 6 SCSI
> bInterfaceProtocol 80 Bulk-Only
> iInterface 0
> Endpoint Descriptor:
> bLength 7
> bDescriptorType 5
> bEndpointAddress 0x81 EP 1 IN
> bmAttributes 2
> Transfer Type Bulk
> Synch Type None
> Usage Type Data
> wMaxPacketSize 0x0200 1x 512 bytes
> bInterval 20
> Endpoint Descriptor:
> bLength 7
> bDescriptorType 5
> bEndpointAddress 0x02 EP 2 OUT
> bmAttributes 2
> Transfer Type Bulk
> Synch Type None
> Usage Type Data
> wMaxPacketSize 0x0200 1x 512 bytes
> bInterval 20
> Binary Object Store Descriptor:
> bLength 5
> bDescriptorType 15
> wTotalLength 22
> bNumDeviceCaps 2
> USB 2.0 Extension Device Capability:
> bLength 7
> bDescriptorType 16
> bDevCapabilityType 2
> bmAttributes 0x00000002
> Link Power Management (LPM) Supported
> SuperSpeed USB Device Capability:
> bLength 10
> bDescriptorType 16
> bDevCapabilityType 3
> bmAttributes 0x00
> wSpeedsSupported 0x000e
> Device can operate at Full Speed (12Mbps)
> Device can operate at High Speed (480Mbps)
> Device can operate at SuperSpeed (5Gbps)
> bFunctionalitySupport 1
> Lowest fully-functional device speed is Full Speed (12Mbps)
> bU1DevExitLat 0 micro seconds
> bU2DevExitLat 0 micro seconds
> Device Status: 0x0000
> (Bus Powered)
>
> My Beaglbone is powered with a mains adaptor not via USB.
>
> But nothing happens...the HD is not spinning up.
>
> I am using Robert Nelsons kernel and GENTOO.
>
> Do I miss something or is this simply something the Beagleboard
> cant do?

Any noise in dmesg?

sudo dmesg -C

plugin-drive

dmesg

> By the way: The HD comes with a simple cable -- not those Y-cables...

Do you have a Y-cable around?

Regards,

--
Robert Nelson
http://www.rcn-ee.com/

--

Hi Robert,

thanks for your reply.

dmesg says nothing...

That's odd.. Would have at-least expected a usb detected message..

Did you modify the "defconfig"?

This 2.5 usb/ata is externally powered and used as the rootfs on this
beaglebone...

voodoo@bone-256mb-d0:~$ uname -a
Linux bone-256mb-d0 3.2.33-psp26 #1 Thu Nov 1 18:50:13 UTC 2012 armv7l GNU/Linux

voodoo@bone-256mb-d0:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 1bcf:0c31 Sunplus Innovation Technology Inc.
SPIF30x Serial-ATA bridge
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

[ 1.446964] usb 1-1: new high-speed USB device number 2 using musb-hdrc
[ 1.616725] usb 1-1: New USB device found, idVendor=1bcf, idProduct=0c31
[ 1.623825] usb 1-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[ 1.631372] usb 1-1: Product: USB to Serial-ATA bridge
[ 1.636786] usb 1-1: Manufacturer: Sunplus Innovation Technology.
[ 1.643227] usb 1-1: SerialNumber: FF9120315A0000000000005FB02FFF
[ 2.013434] usbcore: registered new interface driver cdc_ether
[ 2.019685] usbcore: registered new interface driver rndis_host
[ 2.029493] usbcore: registered new interface driver cdc_ncm
[ 2.041399] scsi0 : usb-storage 1-1:1.0

And: No, I havent an Y-cable...this is my first and only
external "pocket" HD-drive...

Regards,

I’m working with SSD and conventional hard drives and all the problems I have had were related to the way I powered the hard drives.
If the beaglebone/beagleboard/etc can’t propertly power the hard drives (or other devices) they will fail.
In the case of the beagleboard we have had to power it with a 2.6A power source since we connected a wifi card, a hard disk, a camera, and a usb to serial converter.
Some time before we were using a 2.0A power source and we experienced usb subsystem hangs, hard disk errors, wifi errors, etc.
While the beagleboard is not usually consuming more than 1.5A sometimes devices have consumption peaks.

If you are experiencing this kind of problems it is recommendable you to connect the hard disk to the beaglebone through a 2.0A powered hub and test.
This way you will see whether you have a hardware or a software problem.

Hi Robert,

It seems I also have an issue similar to this one with the latest (3.2.33-psp26) kernel.
Earlier I was using your 19th of Oct. released image wich comes with 3.2.32-psp25 kernel and the USB host port works fine with it.
Then I wanted to add/change some I2C and SPI related settings and I compiled the currently available latest source (3.2.33-psp26), but with this kernel the USB host port is totally dead. It seems it do not detects if any kind of device is attached to the port (I tried a hub and a pendrive, so there cannot be a power issue). The drvvbus signal is not raised by the controller, so the power switch do not provides the 5V for the port.
I diffed the two kernel configuration files, but there was no USB related difference.
If you think I can attach these files for reference later, when I get home.

Thanks for your kind help in advance.

Best regards,
Laszlo

  1. november 7., szerda 21:04:02 UTC+1 időpontban RobertCNelson a következőt írta:

Yeah, i'd like to see what you changed.. As the bone's in my
regression farm are still active, running off usb based harddrives..
Although they all have external power.. I have not tried any bus
powered devices so i'll give that a go in a few minutes..

Regards,

and here are my results: (used
ubuntu-12.10-r1-minimal-armhf-2012-10-19.tar.xz from
http://elinux.org/BeagleBoardUbuntu#Demo_Image as a base)

ubuntu@arm:~$ uname -a
Linux arm 3.2.32-psp25 #1 Thu Oct 18 10:33:01 UTC 2012 armv7l armv7l
armv7l GNU/Linux
ubuntu@arm:~$ sudo dmesg -C
ubuntu@arm:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
(plugin flash drive)
ubuntu@arm:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 1e3d:2095 Chipsbank Microelectronics Co., Ltd
ubuntu@arm:~$ dmesg
[ 106.589147] usb 1-1: new high-speed USB device number 3 using musb-hdrc
[ 106.729960] usb 1-1: New USB device found, idVendor=1e3d, idProduct=2095
[ 106.730012] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 106.730051] usb 1-1: Product: Flash Disk
[ 106.730080] usb 1-1: Manufacturer: Generic
[ 106.730107] usb 1-1: SerialNumber: CCBB1011261044540232885906
[ 106.738102] scsi0 : usb-storage 1-1:1.0
[ 107.740917] scsi 0:0:0:0: Direct-Access Generic Flash Disk
  5.00 PQ: 0 ANSI: 2
[ 107.750735] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 107.760260] sd 0:0:0:0: [sda] 1970176 512-byte logical blocks:
(1.00 GB/962 MiB)
[ 107.760955] sd 0:0:0:0: [sda] Write Protect is off
[ 107.761003] sd 0:0:0:0: [sda] Mode Sense: 0b 00 00 08
[ 107.761527] sd 0:0:0:0: [sda] No Caching mode page present
[ 107.767334] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 107.805164] sd 0:0:0:0: [sda] No Caching mode page present
[ 107.811102] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 107.832750] sda: sda1
[ 107.839863] sd 0:0:0:0: [sda] No Caching mode page present
[ 107.845669] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 107.852208] sd 0:0:0:0: [sda] Attached SCSI removable disk

ubuntu@arm:~$ wget
http://rcn-ee.net/deb/quantal-armhf/v3.2.33-psp26/install-me.sh
--2012-11-08 08:43:57--
http://rcn-ee.net/deb/quantal-armhf/v3.2.33-psp26/install-me.sh
Resolving rcn-ee.net (rcn-ee.net)... 69.163.130.148
Connecting to rcn-ee.net (rcn-ee.net)|69.163.130.148|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4130 (4.0K) [application/x-sh]
Saving to: `install-me.sh'

100%[==========================================================================================================================================================>]
4,130 --.-K/s in 0s

2012-11-08 08:43:57 (12.8 MB/s) - `install-me.sh' saved [4130/4130]

ubuntu@arm:~$ /bin/bash install-me.sh

(reboot)

ubuntu@arm:~$ uname -a
Linux arm 3.2.33-psp26 #1 Fri Nov 2 04:31:02 UTC 2012 armv7l armv7l
armv7l GNU/Linux
ubuntu@arm:~$ sudo dmesg -C
ubuntu@arm:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
(plugin flash drive)
ubuntu@arm:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 1e3d:2095 Chipsbank Microelectronics Co., Ltd
ubuntu@arm:~$ dmesg
[ 49.573211] usb 1-1: new high-speed USB device number 2 using musb-hdrc
[ 49.713867] usb 1-1: New USB device found, idVendor=1e3d, idProduct=2095
[ 49.713897] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 49.713958] usb 1-1: Product: Flash Disk
[ 49.713989] usb 1-1: Manufacturer: Generic
[ 49.714019] usb 1-1: SerialNumber: CCBB1011261044540232885906
[ 49.721771] scsi0 : usb-storage 1-1:1.0
[ 50.714569] scsi 0:0:0:0: Direct-Access Generic Flash Disk
  5.00 PQ: 0 ANSI: 2
[ 50.724029] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 50.732482] sd 0:0:0:0: [sda] 1970176 512-byte logical blocks:
(1.00 GB/962 MiB)
[ 50.734497] sd 0:0:0:0: [sda] Write Protect is off
[ 50.734558] sd 0:0:0:0: [sda] Mode Sense: 0b 00 00 08
[ 50.735076] sd 0:0:0:0: [sda] No Caching mode page present
[ 50.740905] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 50.778503] sd 0:0:0:0: [sda] No Caching mode page present
[ 50.784454] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 50.806671] sda: sda1
[ 50.813751] sd 0:0:0:0: [sda] No Caching mode page present
[ 50.819580] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 50.826080] sd 0:0:0:0: [sda] Attached SCSI removable disk

Regards,

Hi Robert,

Please find attached the config files.
The 3.2.32-psp25 comes from /proc/config.gz on your latest demo image.
The 3.2.33-psp26 is my trial.

Thanks and regards,
Laszlo

  1. november 8., csütörtök 15:28:53 UTC+1 időpontban RobertCNelson a következőt írta:

config.zip (46 KB)

Your 3.2.33-psp26 builds/runs/ and works with my usb flash drive just
fine.. So it's not the config..

gcc cross compiler used: arm-linux-gnueabi-gcc (Linaro GCC
4.6-2012.08) 4.6.4 20120731 (prerelease)

Regards,

Hi,

thank you all for all the responses! :slight_smile:

Finally I got something in dmesg: The harddisk was pulling to much
current from the USB port...desplite teh fact, that the specs (see
below) said "400 mA max." and the USB port is able to deliver 500mA.

Best regards,
mcc

mrne <damosvil@gmail.com> [12-11-08 16:21]: