Does anyone know how to

Hi, All,

I've been struggling to send out test_packet from OMAP's OTG port
(USB0HS on schematic), got help from here and there, but so far have
no luck.

There is a procedure to send out test_packet from OMAP's Host port
(USB1HS on schematic) which requires special build, it gives me some
hint but not exactly what I want. With help from others places, I
narrow down to the following

[root@beagleboard /]# ls /proc/driver
musb_HSET musb_hdrc snd-page-alloc

I guess musb_HSET or musb_hdrc is what I can play with, further
digging has the following info

[root@beagleboard /]# cat /proc/driver/musb_HSET
HOST-side high-speed electrical test modes:
J: Test_J
K: Test_K
S: Test_SE0_NAK
P: Test_PACKET
H: Test_FORCE_ENABLE
U: Test_SUSPEND_RESUME
G: Test_SINGLE_STEP_GET_DESC
F: Test_SINGLE_STEP_SET_FEATURE
E: Enumerate bus
D: Suspend bus
R: Resume bus
?: help menu

[root@beagleboard /]# echo ? > /proc/driver/musb_hdrc
<6>musb_proc_write 840: ?: you are seeing it
musb_proc_write 840: ?: you are seeing it
<6>musb_proc_write 841: C/c: soft connect enable/disable
musb_proc_write 841: C/c: soft connect enable/disable
<6>musb_proc_write 842: I/i: hispeed enable/disable
musb_proc_write 842: I/i: hispeed enable/disable
<6>musb_proc_write 843: F: force session start
musb_proc_write 843: F: force session start
<6>musb_proc_write 844: H: host mode
musb_proc_write 844: H: host mode
<6>musb_proc_write 845: T: start sending TEST_PACKET
musb_proc_write 845: T: start sending TEST_PACKET
<6>musb_proc_write 846: D: set/read dbug level
musb_proc_write 846: D: set/read dbug level
<6>musb_proc_write 847: R: dump all registers
musb_proc_write 847: R: dump all registers

and one TI engineer did point me the musb_HSET, then I tried something
like

[root@beagleboard /]# echo P > /proc/driver/musb_HSET
<6>test_packet
test_packet

and/or

[root@beagleboard /]# echo T > /proc/driver/musb_hdrc

rarely I did get the test_packet pattern on scope, but it's like 1 out
of 100 chance, and I don't remember the operation combination in my
desperate experiment.

So can anyone give me some directions how to do this? what are
musb_HSET and musb_hdrc (I don't know embedded Linux)?

Thanks

Forgot to mention I am using the default board validation build
(http://code.google.com/p/beagleboard/wiki/BeagleBoardDiagnostics), do
I need special build to do what I mentioned below?

Thanks