• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: IONICS Nimbus 100 Development Kit - USB error -71  (Read 1139 times)
jpenston
Newbie
*

Karma: 0
Posts: 5


View Profile
« on: November 11, 2010, 11:46:17 AM »

Is anyone aware of any issues with the USB signal from the Nimbus 100 Development kit?

I have been using the Nimbus 100 Development Kit. I have a problem I cannot solve with one of my USB test devices. I get the same problem, every time I connect this device and cable to a Nimbus 100. I have two Nimbuses and the results are identical on both.

I have three test devices, two of them always connect properly on both Nimbuses. The problem device never connects to either of the Nimbuses.

I also have Guruplugs and older GlobalScale Sheevaplug and have done back to back testing of this issue on those devices. The problem device (an LG Viewty phone) connects correctly to my 2 x Guruplugs, the Sheevaplug, my Linux Development Host, my Windows PC and an ATMEL based plug computer that I have also built.

I have tried as many different linux distributions as I can on the Nimbuses and under each, the Nimbus plugs fail to connect the LG Viewty. Both Nimbuses have exactly the same issue. The phone connects to the Guruplug ok and another Sheevaplug. I have tried those kernel / RFSs on the Nimbuses and I still have the same problem.

Code:
usb 1-1: new high speed USB device using orion-ehci and address 5
usb 1-1: New USB device found, idVendor=0573, idProduct=a400
usb 1-1: New USB device strings: Mfr=2, Product=1, SerialNumber=3
usb 1-1: Product: KU990i
usb 1-1: Manufacturer: LG
usb 1-1: SerialNumber:
usb 1-1: configuration #1 chosen from 1 choice
usb 1-1: can't set config #1, error -71

The phone thinks it is connected via Mass Storage AND I can see it with lsusb

lsusb
Bus 001 Device 042: ID 0573:a400 Zoran Co. Personal Media Division (Nogatech)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

But fdisk –l is blank

dmesg

Code:
dmesg
Linux version 2.6.31.8 (root@jpenston-linux) (gcc version 4.4.1 (Sourcery G++ Lite 2010q1-188) ) #1 PREEMPT Sun Oct 31 19:44:41 GMT 2010
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Marvell SheevaPlug Reference Board
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 131072
free_area_init_node: node 0, pgdat c0551568, node_mem_map c0627000
  Normal zone: 1024 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 130048 pages, LIFO batch:31
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: console=ttyS0,115200 mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) ubi.mtd=1 root=ubi0:rootfs rootfstype=ubifs
PID hash table entries: 2048 (order: 11, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 256MB 256MB = 512MB total
Memory: 513280KB available (4952K code, 1024K data, 136K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:114
Console: colour dummy device 80x30
Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
Kirkwood: MV88F6281-A0, TCLK=200000000.
Feroceon L2: Enabling L2
Feroceon L2: Cache support initialised.
initial MPP regs: 01111111 11113322 00001111 00100000 00000000 00000000 00000000
  final MPP regs: 01111111 11113322 00001111 00000000 00000000 00000000 00000000
bio: create slab <bio-0> at 0
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
cfg80211: Using static regulatory domain info
cfg80211: Regulatory domain: US
(start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
(2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)
(5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)
cfg80211: Calling CRDA for country: US
NET: Registered protocol family 2
IP route cache hash table entries: 16384 (order: 4, 65536 bytes)
TCP established hash table entries: 65536 (order: 7, 524288 bytes)
Switched to high resolution mode on CPU 0
TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
TCP: Hash tables configured (established 65536 bind 65536)
TCP reno registered
NET: Registered protocol family 1
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
JFS: nTxBlock = 4011, nTxLock = 32094
msgmni has been set to 1002
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
console [ttyS0] enabled
brd: module loaded
loop: module loaded
MV-643xx 10/100/1000 ethernet driver version 1.4
mv643xx_eth smi: probed
net eth0: port 0 with MAC address 00:26:db:00:11:76
libertas_sdio: Libertas SDIO driver
libertas_sdio: Copyright Pierre Ossman
NAND device: Manufacturer ID: 0xec, Chip ID: 0xdc (Samsung NAND 512MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 3713 at 0x00001d020000
2 cmdlinepart partitions found on MTD device orion_nand
Creating 2 MTD partitions on "orion_nand":
0x000000100000-0x000000500000 : "uImage"
0x000000500000-0x000020000000 : "rootfs"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    129024 bytes
UBI: smallest flash I/O unit:    2048
UBI: sub-page size:              512
UBI: VID header offset:          512 (aligned 512)
UBI: data offset:                2048
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "rootfs"
UBI: MTD device size:            507 MiB
UBI: number of good PEBs:        4055
UBI: number of bad PEBs:         1
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             0
UBI: total number of reserved PEBs: 4055
UBI: number of PEBs reserved for bad PEB handling: 40
UBI: max/mean erase counter: 3/0
UBI: image sequence number: 0
UBI: background thread "ubi_bgt0d" started, PID 452
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_hcd: block sizes: qh 128 qtd 96 itd 160 sitd 96
Initializing Orion-SoC USB Host Controller
orion-ehci orion-ehci.0: Marvell Orion EHCI
drivers/usb/core/inode.c: creating file 'devices'
drivers/usb/core/inode.c: creating file '001'
orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
orion-ehci orion-ehci.0: reset command 080b02 park=3 ithresh=8 period=1024 Reset HALT
orion-ehci orion-ehci.0: park 0
orion-ehci orion-ehci.0: ...powerdown ports...
orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
orion-ehci orion-ehci.0: reset command 080b02 park=3 ithresh=8 period=1024 Reset HALT
orion-ehci orion-ehci.0: init command 010009 (park)=0 ithresh=1 period=256 RUN
orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
usb usb1: default language 0x0409
usb usb1: udev 1, busnum 1, minor = 0
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: Marvell Orion EHCI
usb usb1: Manufacturer: Linux 2.6.31.8 ehci_hcd
usb usb1: SerialNumber: orion-ehci.0
usb usb1: uevent
usb usb1: usb_probe_device
usb usb1: configuration #1 chosen from 1 choice
usb usb1: adding 1-0:1.0 (config #1, interface 0)
usb 1-0:1.0: uevent
hub 1-0:1.0: usb_probe_interface
hub 1-0:1.0: usb_probe_interface - got id
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
hub 1-0:1.0: standalone hub
hub 1-0:1.0: individual port power switching
hub 1-0:1.0: individual port over-current protection
hub 1-0:1.0: Single TT
hub 1-0:1.0: TT requires at most 8 FS bit times (666 ns)
hub 1-0:1.0: power on to power good time: 20ms
hub 1-0:1.0: local power source is good
hub 1-0:1.0: enabling power on all ports
drivers/usb/core/inode.c: creating file '001'
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci_hcd: block sizes: ed 64 td 64
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
mice: PS/2 mouse device common for all mice
rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
i2c /dev entries driver
cpuidle: using governor ladder
cpuidle: using governor menu
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
mmc0: mvsdio driver initialized, lacking card detect (fall back to polling)
Registered led device: led1
Registered led device: led2
Registered led device: led3
mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0000
mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
oprofile: using timer interrupt.
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
lib80211: common routines for IEEE802.11 drivers
lib80211_crypt: registered algorithm 'NULL'
Gating clock of unused units
before: 0x00c741dd
 after: 0x00c701d9
rtc-mv rtc-mv: setting system clock to 2010-11-11 17:18:21 UTC (1289495901)
UBIFS: recovery needed
UBIFS: recovery completed
UBIFS: mounted UBI device 0, volume 0, name "rootfs"
UBIFS: file system size:   515579904 bytes (503496 KiB, 491 MiB, 3996 LEBs)
UBIFS: journal size:       25804800 bytes (25200 KiB, 24 MiB, 200 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: lzo
UBIFS: reserved for root:  4952683 bytes (4836 KiB)
VFS: Mounted root (ubifs filesystem) on device 0:12.
Freeing init memory: 136K
usb usb1: uevent
usb 1-0:1.0: uevent
hub 1-0:1.0: hub_suspend
usb usb1: bus auto-suspend
orion-ehci orion-ehci.0: suspend root hub
NET: Registered protocol family 10
ADDRCONF(NETDEV_UP): eth0: link is not ready
eth0: link up, 100 Mb/s, full duplex, flow control disabled
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
eth0: no IPv6 routers present
usb usb1: usb resume
orion-ehci orion-ehci.0: resume root hub
hub 1-0:1.0: hub_resume
orion-ehci orion-ehci.0: GetStatus port 1 status 001803 POWER sig=j CSC CONNECT
hub 1-0:1.0: port 1: status 0101 change 0001
hub 1-0:1.0: state 7 ports 1 chg 0002 evt 0000
hub 1-0:1.0: port 1, status 0101, change 0000, 12 Mb/s
usb 1-1: new full speed USB device using orion-ehci and address 2
orion-ehci orion-ehci.0: detected XactErr len 0/8 retry 1
orion-ehci orion-ehci.0: detected XactErr len 0/8 retry 2
[snip]

orion-ehci orion-ehci.0: detected XactErr len 0/8 retry 30
orion-ehci orion-ehci.0: detected XactErr len 0/8 retry 31
orion-ehci orion-ehci.0: devpath 1 ep0in 3strikes
usb usb1: clear tt buffer port 1, a0 ep0 t00080248
orion-ehci orion-ehci.0: detected XactErr len 0/8 retry 1
orion-ehci orion-ehci.0: detected XactErr len 0/8 retry 2
[snip]

orion-ehci orion-ehci.0: detected XactErr len 0/8 retry 30
orion-ehci orion-ehci.0: detected XactErr len 0/8 retry 31
orion-ehci orion-ehci.0: devpath 1 ep0in 3strikes
usb usb1: clear tt buffer port 1, a0 ep0 t00080248
orion-ehci orion-ehci.0: detected XactErr len 0/8 retry 1
orion-ehci orion-ehci.0: detected XactErr len 0/8 retry 2
[snip]

orion-ehci orion-ehci.0: detected XactErr len 0/8 retry 30
orion-ehci orion-ehci.0: detected XactErr len 0/8 retry 31
orion-ehci orion-ehci.0: devpath 1 ep0in 3strikes
usb usb1: clear tt buffer port 1, a0 ep0 t00080248
orion-ehci orion-ehci.0: GetStatus port 1 status c00100a POWER sig=se0 PEC CSC
hub 1-0:1.0: unable to enumerate USB device on port 1
hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
orion-ehci orion-ehci.0: GetStatus port 1 status 001803 POWER sig=j CSC CONNECT
hub 1-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
usb 1-1: new high speed USB device using orion-ehci and address 3
orion-ehci orion-ehci.0: detected XactErr len 0/64 retry 1
orion-ehci orion-ehci.0: detected XactErr len 0/0 retry 1
orion-ehci orion-ehci.0: detected XactErr len 0/0 retry 2
orion-ehci orion-ehci.0: detected XactErr len 0/0 retry 3
orion-ehci orion-ehci.0: port 1 high speed
orion-ehci orion-ehci.0: GetStatus port 1 status 8001205 POWER sig=se0 PE CONNECT
orion-ehci orion-ehci.0: detected XactErr len 0/0 retry 1
orion-ehci orion-ehci.0: detected XactErr len 0/0 retry 2
[snip]

orion-ehci orion-ehci.0: detected XactErr len 0/0 retry 30
orion-ehci orion-ehci.0: detected XactErr len 0/0 retry 31
orion-ehci orion-ehci.0: devpath 1 ep0in 3strikes
orion-ehci orion-ehci.0: detected XactErr len 0/0 retry 1
orion-ehci orion-ehci.0: detected XactErr len 0/0 retry 2
orion-ehci orion-ehci.0: detected XactErr len 0/9 retry 1
orion-ehci orion-ehci.0: detected XactErr len 0/0 retry 1
orion-ehci orion-ehci.0: detected XactErr len 0/32 retry 1
orion-ehci orion-ehci.0: detected XactErr len 0/32 retry 2
orion-ehci orion-ehci.0: detected XactErr len 0/32 retry 3
orion-ehci orion-ehci.0: detected XactErr len 0/32 retry 4
orion-ehci orion-ehci.0: detected XactErr len 0/0 retry 1
orion-ehci orion-ehci.0: detected XactErr len 0/0 retry 2
orion-ehci orion-ehci.0: detected XactErr len 0/0 retry 3
orion-ehci orion-ehci.0: detected XactErr len 0/0 retry 4
orion-ehci orion-ehci.0: detected XactErr len 0/255 retry 1
orion-ehci orion-ehci.0: detected XactErr len 0/255 retry 2
orion-ehci orion-ehci.0: detected XactErr len 0/255 retry 3
orion-ehci orion-ehci.0: detected XactErr len 0/255 retry 4
orion-ehci orion-ehci.0: detected XactErr len 0/0 retry 1
usb 1-1: default language 0x0409
orion-ehci orion-ehci.0: detected XactErr len 0/255 retry 1
orion-ehci orion-ehci.0: detected XactErr len 0/0 retry 1
orion-ehci orion-ehci.0: detected XactErr len 0/255 retry 1
orion-ehci orion-ehci.0: detected XactErr len 0/255 retry 2
orion-ehci orion-ehci.0: detected XactErr len 0/0 retry 1
orion-ehci orion-ehci.0: detected XactErr len 0/0 retry 2
orion-ehci orion-ehci.0: detected XactErr len 0/0 retry 3
orion-ehci orion-ehci.0: detected XactErr len 0/255 retry 1
orion-ehci orion-ehci.0: detected XactErr len 0/255 retry 2
orion-ehci orion-ehci.0: detected XactErr len 0/0 retry 1
orion-ehci orion-ehci.0: detected XactErr len 0/0 retry 2
orion-ehci orion-ehci.0: detected XactErr len 0/0 retry 3
usb 1-1: udev 3, busnum 1, minor = 2
usb 1-1: New USB device found, idVendor=0573, idProduct=a400
usb 1-1: New USB device strings: Mfr=2, Product=1, SerialNumber=3
usb 1-1: Product: KU990i
usb 1-1: Manufacturer: LG
usb 1-1: SerialNumber: 
usb 1-1: uevent
usb 1-1: usb_probe_device
usb 1-1: configuration #1 chosen from 1 choice
orion-ehci orion-ehci.0: detected XactErr len 0/0 retry 1
orion-ehci orion-ehci.0: detected XactErr len 0/0 retry 2
[snip]

orion-ehci orion-ehci.0: detected XactErr len 0/0 retry 30
orion-ehci orion-ehci.0: detected XactErr len 0/0 retry 31
orion-ehci orion-ehci.0: devpath 1 ep0out 3strikes
usb 1-1: can't set config #1, error -71
drivers/usb/core/inode.c: creating file '003'
hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
debian:~#

The worrying line is

orion-ehci orion-ehci.0: GetStatus port 1 status c00100a POWER sig=se0 PEC CSC

The “PEC” is bad news as I understand it

http://kerneltrap.org/mailarchive/linux-usb/2010/3/31/6259857
http://www.spinics.net/lists/linux-usb/msg29708.html

When I do usb start in uboot, the device is not found, even though the screen device screen says it is in mass storage mode.

[post continued below]
Logged

jpenston
Newbie
*

Karma: 0
Posts: 5


View Profile
« Reply #1 on: November 11, 2010, 11:46:41 AM »

When I boot the device with the device already connected, it has a similar response, but I CAN fdisk and see the device. I can then mount it too:

Code:
debian:~# fdisk -l
usb 1-1: reset high speed USB device using orion-ehci and address 2
usb 1-1: reset high speed USB device using orion-ehci and address 2
usb 1-1: reset high speed USB device using orion-ehci and address 2

Disk /dev/sda: 1975 MB, 1975615488 bytes
64 heads, 63 sectors/track, 957 cylinders
Units = cylinders of 4032 * 512 = 2064384 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         957     1929244+   6  FAT16
usb 1-1: reset high speed USB device using orion-ehci and address 2

I can even see the directory list but in an error strewn series of messages

Code:
debian:/home/rfs/media/sda1# ls
usb 1-1: reset high speed USB device using orion-ehci and address 2
sd 0:0:0:0: [sda] Unhandled error code
sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00
end_request: I/O error, dev sda, sector 700
usb 1-1: reset high speed USB device using orion-ehci and address 2
sd 0:0:0:0: [sda] Unhandled error code
sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00
end_request: I/O error, dev sda, sector 701
usb 1-1: reset high speed USB device using orion-ehci and address 2
sd 0:0:0:0: [sda] Unhandled error code
sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00
end_request: I/O error, dev sda, sector 712
usb 1-1: reset high speed USB device using orion-ehci and address 2

[snip - message repeated for lots of different sectors]

end_request: I/O error, dev sda, sector 664192
sd 0:0:0:0: [sda] Unhandled error code
sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00
end_request: I/O error, dev sda, sector 664193
sd 0:0:0:0: [sda] Unhandled error code
sd 0:0:0:0: [sda] Result: hostbyte=0x01 driverbyte=0x00
end_request: I/O error, dev sda, sector 664194
FAT: Directory bread(block 664040) failed

[snip]

FAT: Directory bread(block 664063) failed
Arsenal     Facebooklist_up.xml   mobile    Podcastlist_down.xml  Videos
Device.reg  FlashContents         Music     RatPlug
device.xml  Games & Applications  Others    Sounds
Documents   Images                Pictures  tms

debian:/home/rfs/media/sda1# usb 1-1: new high speed USB device using orion-ehci and address 3
usb 1-1: device descriptor read/64, error -71
usb 1-1: device descriptor read/64, error -71
usb 1-1: new high speed USB device using orion-ehci and address 4
usb 1-1: device descriptor read/64, error -71
usb 1-1: device descriptor read/64, error -71
usb 1-1: new high speed USB device using orion-ehci and address 5
usb 1-1: device not accepting address 5, error -71
usb 1-1: new high speed USB device using orion-ehci and address 6
usb 1-1: device not accepting address 6, error -71
hub 1-0:1.0: unable to enumerate USB device on port 1

I did have the same error -71 with an SD card reader, but it was resolved for that device by adding the usbmount package. The package makes no difference when connecting the Viewty. My Sony PSP connects every time, with and without usbmount.

I have copied the udev rules, .conf and usbmount settings from the Guruplug to the Nimbuses with the same errors occurring

The Viewty also connects fine to the Sheevaplug which doesn’t have usbmount. I copied udev rules from that to the Nimbus, but no change when plugging the Viewty in.

A search of the web suggests that this Error -71 issue is most often caused by a lack of power. I have tested the hardware. The Nimbues are delivering 5.21V on the USB when unconnected, dropping to 5.01V when I plug in the viewty. I have added supplemental power from an SMPS (in case the current was insufficient) but this makes no difference to the connection.

What is wrong and how can I fix it?
Logged

Pages: [1]
Print
Jump to: