• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: New sheevaplug USB port not working - solved  (Read 9117 times)
smiler
Newbie
*

Karma: 0
Posts: 9


View Profile
« on: October 13, 2009, 06:35:18 PM »

I got mine today and updated it from 2.6.21 to 2.6.22 and then all the way to 2.6.31.4. It boots up ok with just a couple of NAND erros, but I cannot get any USB drive, flash drives or external SATA to work.

If I stop the boot, at the Marvel prompt if I do:

Marvell>> usb start
(Re)start USB...
USB:   scanning bus for devices... 1 USB Device(s) found
       scanning bus for storage devices... 0 Storage Device(s) found
Marvell>>

With the OS up,  /dev/sda1 does not exist.

USB stick various sizes, FAT16/32 and manufacturers kingston,sandisk etc also external WD sata USB drive 1TB..nothing shows up.

The Serial port connection to the mini USB port works ok.

Ethermet port also works fine.

My Boot messages file is attached to the post

Any ideas, is it broken ?

Cheers smiler..... newbie

* bootmsg 13-10-2009.txt (10.46 KB - downloaded 373 times.)
« Last Edit: October 16, 2009, 02:40:25 AM by smiler » Logged

DamonHD
Full Member
***

Karma: 4
Posts: 169


View Profile WWW
« Reply #1 on: October 14, 2009, 01:31:49 AM »

Have you tried 'lsusb' at the Linux command line?

Have you tried a non-storage USB device of any sort?

Rgds

Damon
Logged

smiler
Newbie
*

Karma: 0
Posts: 9


View Profile
« Reply #2 on: October 14, 2009, 04:06:54 AM »

Have you tried 'lsusb' at the Linux command line?

Have you tried a non-storage USB device of any sort?

Rgds

Damon

thx, With lsusb I got 'command not found', so I installed 'lsbutils' package with apt-get and now I get below, with or withour anything plugged in the USB port:

root@debian:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Logged

NewIT
Jr. Member
**

Karma: 10
Posts: 88



View Profile WWW
« Reply #3 on: October 14, 2009, 05:47:23 AM »

Have you seen this: http://plugcomputer.org/plugforum/index.php?topic=672.0 ?
Logged

smiler
Newbie
*

Karma: 0
Posts: 9


View Profile
« Reply #4 on: October 14, 2009, 06:55:56 AM »

Yes I saw it, did not work form me, I also tried with a passive usb hub, nothing.

I also just tried to plug in a usb mouse just to see what happens, seems to detect at least something, unlike storage where it sees nothing, The output from lsusb is below with usb mouse connected.:
root@debian:~# lsusb
hub 1-0:1.0: unable to enumerate USB device on port 1
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

any more ideas ?

Thx so far...

Smiler

Below is the output of 'printenv' at the boot prompt, looks ok to me usb0mode=host:

Marvell>> printenv
baudrate=115200
loads_echo=0
rootpath=/mnt/ARM_FS/
netmask=255.255.0.0
console=console=ttyS0,115200
CASset=min
MALLOC_len=1
ethprime=egiga0
bootargs_root=root=/dev/mtdblock2 ro
ethmtu=1500
usb0Mode=host
nandEcc=1bit
ethact=egiga0
serverip=10.10.0.2
ipaddr=10.10.0.1
cesvcid=ULULULULULULPPULULULULULDA
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
yuk_ethaddr=00:00:00:EE:51:81
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
ethaddr=00:50:43:01:DF:2D
run_diag=no
bootcmd=nand read.e 0x800000 0x100000 0x400000; bootm 0x800000
arcNumber=2097
bootargs=rootfstype=jffs2 console=ttyS0,115200 mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) rw root=/dev/mtdblock1 rw ip=10.4.50.4:10.4.50.5:10.4.50.5:255.255.255.0:DB88FXX81:eth0:none
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=yes
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
bootdelay=3
disaMvPnp=no
enaAutoRecovery=yes

Environment size: 1339/131068 bytes


« Last Edit: October 14, 2009, 07:31:11 AM by smiler » Logged

DamonHD
Full Member
***

Karma: 4
Posts: 169


View Profile WWW
« Reply #5 on: October 14, 2009, 11:22:46 AM »

Try using a powered hub (NOT bus-powered) just in case there's a bad supply connection but signal is OK.

Rgds

Damon
Logged

smiler
Newbie
*

Karma: 0
Posts: 9


View Profile
« Reply #6 on: October 14, 2009, 11:33:53 AM »

I do not have a powered hub.  But my external USB drive is self powered (USB WD 1TB sata drive) so that does not need any power and it cannot see this drive.

I also tried a USB device to laptop IDE drive, nothing.

Does anybody know any commands I can do at the Marvell>> boot prompt to see if I can detect a usb device. As per my earlier post, 'usb start' command sees nothing on the sheev, before linux is even up.


thx
« Last Edit: October 14, 2009, 11:43:13 AM by smiler » Logged

adapted.cat
Newbie
*

Karma: 0
Posts: 12


View Profile
« Reply #7 on: October 14, 2009, 09:13:27 PM »

Does anybody know any commands I can do at the Marvell>> boot prompt to see if I can detect a usb device. As per my earlier post, 'usb start' command sees nothing on the sheev, before linux is even up.

Having done "usb start" there's "usb info" and "usb reset." You could always grab a more recent version of uboot, but to be honest you're probably better off using the tools in linux. Upgrading the kernel may or may not help in that regard. Using "lsusb -vv" or examining the directory structure in /sys/devices/platform/*-ehci* should give you more to go on. Also "apt-get install sysfstools" gives you a more friendly way of viewing this information with "systool."

Is the WD drive in one of WD's enclosures, or did you (or a supplier) buy a SATA drive and put it in some random enclosure? Some of these have problems even with PCs, and certainly with the plug.

The powered hub suggestion is a good one, though when I did that on my plug it didn't help. A lot of cheap USB 2.0 hubs do not adhere to the USB standard, and while those devices will work with a PC motherboard and a solid host controller, they will fail with a more fragile host controller such as the one on the plug.

One thing that often works in these cases is to plug in a USB 1 hub, if you have one lying around, or an old low-speed USB device. I've seen devices that work at low speed but fail at high speed. I know this won't be very useful for your 1TB WD drive, but it is a useful diagnostic. If even that doesn't work, your plug is faulty and you should try to return it. Globalscale give a 30 day limited warrany - get in touch with them ASAP.

The fact that your mouse got some response is promising. Is it roller or optical? Optical mice draw more power.
Logged

smiler
Newbie
*

Karma: 0
Posts: 9


View Profile
« Reply #8 on: October 15, 2009, 01:17:44 AM »

Hi, I tried more...

I am at the latest kernel 2.6.31.4

My USB HD is a regular WD My Book external USB enclosure bought with sata 1TB inside, behaves impeccably with winXP, DOS and Susu Linux so far...not sheevaplug.

usb reset,stop,start made no difference at boot prompt

It was an Lenovo mini optical usb mouse, thinkpad optical travel mouse,draws 20ma @5V only

apt-get install sysfstools got package not found, my /etc/apt/sources.list is:
deb http://ports.ubuntu.com jaunty main restricted universe multiverse
deb http://download.webmin.com/download/repository sarge contrib

I do not have any USB 1.1 devices anymore, from the output of lsusb I think the mouse may be usb1.1
lsusb -vv when mouse plugged in:
Hub Port Status:
   Port 1: 0000.0301 lowspeed power connect

lsusb -vv when empty or ANY flavour of usb2.0 storage device plugged in.
Hub Port Status:
   Port 1: 0000.0100 power

Still struggling, but it could be port only works low speed I suppose.

Cheers

Output of commands suggested from prev post:

Booted with usb2.0 2GB sandisk installed and :

Marvell>> usb stop
stopping USB..
Marvell>> usb reset
(Re)start USB...
USB:   scanning bus for devices... 1 USB Device(s) found
       scanning bus for storage devices... 0 Storage Device(s) found
Marvell>> usb info
1: Hub,  USB Revision 2.0
 - Marvell EHCI
 - Class: Hub
 - PacketSize: 64  Configurations: 1
 - Vendor: 0x0000  Product 0x0000 Version 1.0
   Configuration: 1
   - Interfaces: 1 Self Powered 0mA
     Interface: 0
     - Alternate Settings 0, Endpoints: 1
     - Class Hub
     - Endpoint 1 In Interrupt MaxPacket 8 Interval 255ms


Still with usb sandisk 2GB
--------------------------------

root@debian:~# lsusb -vv

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         1 Single TT
  bMaxPacketSize0        64
  idVendor           0x1d6b Linux Foundation
  idProduct          0x0002 2.0 root hub
  bcdDevice            2.06
  iManufacturer           3 Linux 2.6.31.4 ehci_hcd
  iProduct                2 Marvell Orion EHCI
  iSerial                 1 orion-ehci.0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              12
Hub Descriptor:
  bLength               9
  bDescriptorType      41
  nNbrPorts             1
  wHubCharacteristic 0x0009
    Per-port power switching
    Per-port overcurrent protection
    TT think time 8 FS bits
  bPwrOn2PwrGood       10 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  DeviceRemovable    0x00
  PortPwrCtrlMask    0xff
 Hub Port Status:
   Port 1: 0000.0100 power
Device Status:     0x0003
  Self Powered
  Remote Wakeup Enabled
root@debian:~#

root@debian:~# ls /sys/devices/platform/*ehci* -l
total 0
lrwxrwxrwx 1 root root    0 Oct 15 08:06 driver -> ../../../bus/platform/drivers/orion-ehci
-r--r--r-- 1 root root 4096 Oct 15 08:06 modalias
-r--r--r-- 1 root root 4096 Oct 15 08:06 pools
drwxr-xr-x 2 root root    0 Oct 15 08:06 power
lrwxrwxrwx 1 root root    0 Oct 15 08:04 subsystem -> ../../../bus/platform
-rw-r--r-- 1 root root 4096 Oct 15 08:04 uevent
drwxr-xr-x 6 root root    0 Oct 15 08:04 usb1
root@debian:~#

with USB mouse installed, maybe usb1.1
---------------------------------------------------
root@debian:~# lsusb -vv
hub 1-0:1.0: unable to enumerate USB device on port 1

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         1 Single TT
  bMaxPacketSize0        64
  idVendor           0x1d6b Linux Foundation
  idProduct          0x0002 2.0 root hub
  bcdDevice            2.06
  iManufacturer           3 Linux 2.6.31.4 ehci_hcd
  iProduct                2 Marvell Orion EHCI
  iSerial                 1 orion-ehci.0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              12
Hub Descriptor:
  bLength               9
  bDescriptorType      41
  nNbrPorts             1
  wHubCharacteristic 0x0009
    Per-port power switching
    Per-port overcurrent protection
    TT think time 8 FS bits
  bPwrOn2PwrGood       10 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  DeviceRemovable    0x00
  PortPwrCtrlMask    0xff
 Hub Port Status:
   Port 1: 0000.0301 lowspeed power connect
Device Status:     0x0003
  Self Powered
  Remote Wakeup Enabled
root@debian:~#





Output trying the ideas you suggested above.




« Last Edit: October 15, 2009, 01:55:30 AM by smiler » Logged

adapted.cat
Newbie
*

Karma: 0
Posts: 12


View Profile
« Reply #9 on: October 15, 2009, 08:55:01 PM »

The "usb info" output for EHCI from uboot is correct. However I would expect to see something there if another device is plugged in. The lsusb output looks pretty standard, too, until the very end - here mine reads "Port 1: 0000.0503 highspeed power enable connect" with a highspeed device inserted, whereas yours reads "Port 1: 0000.0100 power" alone and "Port 1: 0000.0301 lowspeed power connect" with your mouse inserted.

I get the feeling that the lack of "enable" is important here. Even your lowspeed mouse is not being initialized correctly.

In any case, this is not the way that the plug should behave. Looks to me like it may be a bad internal connection on/near the USB port. I don't think it's something that can be fixed on the forum with software, but globalscale may be able to fix the hardware for you, if it's still under warranty.

PS: My bad - I meant "sysfsutils" not "sysfstools." I got confused because the utility is called systool.
Logged

smiler
Newbie
*

Karma: 0
Posts: 9


View Profile
« Reply #10 on: October 15, 2009, 11:46:07 PM »

I am in the UK and contacted NewIT who supplied the sheeva to me, they were very helpful in debuging and like you say think it is hardware pb and so are sending me a new plug..

Thx for the help....
Logged

smiler
Newbie
*

Karma: 0
Posts: 9


View Profile
« Reply #11 on: October 16, 2009, 02:39:51 AM »

Hi, I received the replacement sheeevaplug from NewIT, USB works fine now.

Many thx for all the help, I learned a lot.

Cheers smiler

Logged

Pages: [1]
Print
Jump to: