Hi Ti,
I'm trying to use below command to active usb test_packet test mode:
usb-tools-control -t 0x23 -r 0x03 -v 0x0015 -i 0x0401 -l 0x00 -c 1 -D 0x1d6b:0x0002
do you have any comments on it?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Ti,
I'm trying to use below command to active usb test_packet test mode:
usb-tools-control -t 0x23 -r 0x03 -v 0x0015 -i 0x0401 -l 0x00 -c 1 -D 0x1d6b:0x0002
do you have any comments on it?
Hi Leijie,
usb-tools-control -t 0x23 -r 0x03 -v 0x0015 -i 0x0401 -l 0x00 -c 1 -D 0x1d6b:0x0002
I don't believe this command can trigger AM62x USB controller to generate test packets.
I'm trying to use below command to active usb test_packet test mode:
Which USB port are you testing? Is the USB port in host or device mode?
Hi Leijie,
I have set mode to host through /sys/kernel/debug/usb/31000000.usb/mode, it's USB port1.
I don't think this debugfs entry can change USB port mode.
What is the USB1 port mode after kernel is booted? The instruction to send test packets for host or device mode is different.
Hi Leijie,
If your 31000000.usb port is otg in kernel dts and 31100000.usb is host, please following the procedure below to generate test packets from 31000000.usb port:
- load a USB gadget driver:
# modprobe g_zero
- connect the USB port to a USB host port
- start test packet mode:
# echo test_packet > /sys/kernel/debug/usb/31000000.usb/testmode
Hi Leijie,
currently usb1 has been disabled because we only have one usb port.
can you tell me we must have this usb1 enabled and set to host mode?
I am confused about your USB configuration. the USB port has to be enable to run test mode, but it can be in either device mode or host mode.
Please attach your board device tree file so that I know your USB configuration.
Hi Bin
why are you confused? there are 2 usb port, 31000000.usb and 31100000.usb.
we only have one usb port in our custom board, so we disable usb1 port.
I'm asking do we need both 2 ports enabled even if we only want to test 31000000.usb?
currently 31000000.usb is set to otg mode, and can be set to host or device mode via debugfs.
Hi Leijie,
why are you confused? there are 2 usb port, 31000000.usb and 31100000.usb.
Early you said:
I have set mode to host through /sys/kernel/debug/usb/31000000.usb/mode, it's USB port1.
but now you said usb1 port is disabled.
So I am confused if you meant usb1 port to be 3100000.usb or 31100000.usb.
I'm asking do we need both 2 ports enabled even if we only want to test 31000000.usb?
No. Both USB ports are independent.
currently 31000000.usb is set to otg mode, and can be set to host or device mode via debugfs.
Keep it in otg mode, which is device mode by default. Then follow the following instruction I posted early to let 31000000.usb to generate test packets.
- load a USB gadget driver:
# modprobe g_zero
- connect the 31000000.usb port to a USB host port
- start test packet mode:
# echo test_packet > /sys/kernel/debug/usb/31000000.usb/testmode