Help with testusb

"Felipe Balbi" <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
Hello all,

I'm trying to run testusb on a tusb6010 device to test it's host mode
functionalities. I compiled the latest linux-omap gittree and enabled
the OTG mode.

I'm setting it to host mode by echoing "host" to
/sys/devices/platform/musb_hdrc/mode.

Here's my scenario:
1. 1 TUSB6010 set to host mode;
2. 2 Mini-b <-> A cable
3. 1 female <-> female USB-A cable;
4. 1 OMAP H2 running as gadget zero; (the testing device)
5. 1 selfpowered USB 2.0 HUB;
6. 1 Mass storage device to copy the testusb binary to device's /tmp;


My procedure:
1. Turn on TUSB6010;
2. Set it to host mode;
3. plug the mini-b <-> A cable to the USB HUB
4. plug the mass storage device to the hub
5. copy testusb binary to device's /tmp
6. mount usbfs on /proc/bus/usb
7. run ./testusb -a


Results:
I ran two tests, either gave me different error messages...


TEST #1
RESULTS:
/proc/bus/usb/001/004 test 0 --> 25 (error 25)

/proc/bus/usb/001/004 test 1 --> 25 (error 25)

/proc/bus/usb/001/004 test 2 --> 25 (error 25)

/proc/bus/usb/001/004 test 3 --> 25 (error 25)

/proc/bus/usb/001/004 test 4 --> 25 (error 25)

/proc/bus/usb/001/004 test 5 --> 25 (error 25)

/proc/bus/usb/001/004 test 6 --> 25 (error 25)

/proc/bus/usb/001/004 test 7 --> 25 (error 25)

/proc/bus/usb/001/004 test 8 --> 25 (error 25)

/proc/bus/usb/001/004 test 9 --> 25 (error 25)

/proc/bus/usb/001/004 test 10 --> 25 (error 25)

/proc/bus/usb/001/004 test 11 --> 25 (error 25)

/proc/bus/usb/001/004 test 12 --> 25 (error 25)

/proc/bus/usb/001/004 test 13 --> 25 (error 25)

/proc/bus/usb/001/004 test 14 --> 25 (error 25)

/proc/bus/usb/001/004 test 15 --> 25 (error 25)

/proc/bus/usb/001/004 test 16 --> 25 (error 25)

/proc/bus/usb/001/004 test 17 --> 25 (error 25)

/proc/bus/usb/001/004 test 18 --> 25 (error 25)

/proc/bus/usb/001/004 test 19 --> 25 (error 25)

/proc/bus/usb/001/004 test 20 --> 25 (error 25)

/proc/bus/usb/001/004 test 21 --> 25 (error 25)

/proc/bus/usb/001/004 test 22 --> 25 (error 25)

/proc/bus/usb/001/004 test 23 --> 25 (error 25)

/proc/bus/usb/001/004 test 24 --> 25 (error 25)

/proc/bus/usb/001/004 test 25 --> 25 (error 25)

/proc/bus/usb/001/004 test 26 --> 25 (error 25)

/proc/bus/usb/001/004 test 27 --> 25 (error 25)

/proc/bus/usb/001/004 test 28 --> 25 (error 25)

/proc/bus/usb/001/004 test 29 --> 25 (error 25)




TEST #2
RESULTS:
unknown speed   /proc/bus/usb/001/005

/proc/bus/usb/001/005 test 0 --> 113 (error 113)

/proc/bus/usb/001/005 test 1 --> 113 (error 113)

/proc/bus/usb/001/005 test 2 --> 113 (error 113)

/proc/bus/usb/001/005 test 3 --> 113 (error 113)

/proc/bus/usb/001/005 test 4 --> 113 (error 113)

/proc/bus/usb/001/005 test 5 --> 113 (error 113)

/proc/bus/usb/001/005 test 6 --> 113 (error 113)

/proc/bus/usb/001/005 test 7 --> 113 (error 113)

/proc/bus/usb/001/005 test 8 --> 113 (error 113)

/proc/bus/usb/001/005 test 9 --> 113 (error 113)

/proc/bus/usb/001/005 test 10 --> 113 (error 113)

/proc/bus/usb/001/005 test 11 --> 113 (error 113)

/proc/bus/usb/001/005 test 12 --> 113 (error 113)

/proc/bus/usb/001/005 test 13 --> 113 (error 113)

/proc/bus/usb/001/005 test 14 --> 113 (error 113)

/proc/bus/usb/001/005 test 15 --> 113 (error 113)

/proc/bus/usb/001/005 test 16 --> 113 (error 113)

/proc/bus/usb/001/005 test 17 --> 113 (error 113)

/proc/bus/usb/001/005 test 18 --> 113 (error 113)

/proc/bus/usb/001/005 test 19 --> 113 (error 113)

/proc/bus/usb/001/005 test 20 --> 113 (error 113)

/proc/bus/usb/001/005 test 21 --> 113 (error 113)

/proc/bus/usb/001/005 test 22 --> 113 (error 113)

/proc/bus/usb/001/005 test 23 --> 113 (error 113)

/proc/bus/usb/001/005 test 24 --> 113 (error 113)

/proc/bus/usb/001/005 test 25 --> 113 (error 113)

/proc/bus/usb/001/005 test 26 --> 113 (error 113)

/proc/bus/usb/001/005 test 27 --> 113 (error 113)

/proc/bus/usb/001/005 test 28 --> 113 (error 113)

/proc/bus/usb/001/005 test 29 --> 113 (error 113)





When I ran the same tests with my PC I've got better error messages:
take a look:

/testusb -D /proc/bus/usb/005/022
unknown speed   /proc/bus/usb/.usbfs/005/022
unknown speed   /proc/bus/usb/005/022
/proc/bus/usb/005/022 test 0,    0.000006 secs
/proc/bus/usb/005/022 test 1,    0.912152 secs
/proc/bus/usb/005/022 test 2,    0.717221 secs
/proc/bus/usb/005/022 test 3,    0.888688 secs
/proc/bus/usb/005/022 test 4,    0.535915 secs
/proc/bus/usb/005/022 test 5,   26.124402 secs
/proc/bus/usb/005/022 test 6,   15.757709 secs
/proc/bus/usb/005/022 test 7,   26.113765 secs
/proc/bus/usb/005/022 test 8,   16.130992 secs
/proc/bus/usb/005/022 test 9,    2.161058 secs
/proc/bus/usb/005/022 test 10,    4.366335 secs
/proc/bus/usb/005/022 test 11,   16.029610 secs
/proc/bus/usb/005/022 test 12,   16.001989 secs
/proc/bus/usb/005/022 test 13 --> 32 (Broken pipe)
/proc/bus/usb/005/022 test 14 --> 22 (Invalid argument)



What could I do to make this tests work ??
Thank you all...


-- 
Best Regards,

Felipe Balbi
[email protected]

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.