How can i detect usb at host while using imx as peripheral

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can i detect usb at host while using imx as peripheral

812 Views
vyasvenkat1996
Contributor I

As i am using imx6 board as peripheral and mounting of gadgetFS also done. But i am unable to see usb port at host side . by command lsusb.

After mounting gadgetFS logs i'm getting is -

root@imx6ull14x14evk:~# mkdir /dev/gadget
root@imx6ull14x14evk:~# mount -t gadgetfs gadgetfs /dev/gadget

root@imx6ull14x14evk:~# cd /dev/gadget/
root@imx6ull14x14evk:/dev/gadget# ls
2184000.usb

So what changes and what things i have to update to get usb port at host . and i'm using imx6ull board as peripheral.

0 Kudos
3 Replies

731 Views
vyasvenkat1996
Contributor I

Hello Wigros,

Thank you for reply , but i go through is code and I build peripheral side code successfully but unable to get usb port number at PC (host) side . So, can i made any changes to kernel customization???

How can I detect usb port at Host side as I'm using IMX6ULL evaluation board.

0 Kudos

731 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Did you load gadgetfs.ko by "insmod gadgetfs.ko" ?

or compilied it into linux kernel?

You can also refer to the link, very similar to your question.

https://community.nxp.com/thread/487090 

Weidong

0 Kudos

731 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello venkat,

  Here is the detailed information:

Create your own USB gadget with GadgetFS 

Hope the information is helpful for you!

Have a great day!

B.R,

Weidong

0 Kudos