imx8qxp add usb cdc_ncm

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

imx8qxp add usb cdc_ncm

2,072 Views
caoying
Contributor II

imx8qxp ping ubuntu success, but ubuntu  ping imx8qxp failed,what should i do ?

autolink_8q:/ # ping -I usb0 192.168.5.101                                     
PING 192.168.5.101 (192.168.5.101) from 192.168.5.100 usb0: 56(84) bytes of data.
64 bytes from 192.168.5.101: icmp_seq=1 ttl=64 time=1.82 ms
64 bytes from 192.168.5.101: icmp_seq=2 ttl=64 time=2.43 ms

win@autolink-bsp:~$ ping -I enp0s20u12 192.168.5.100
PING 192.168.5.100 (192.168.5.100) from 192.168.5.101 enp0s20u12: 56(84) bytes of data.

(No response)

defconfig:

CONFIG_USB_USBNET=y

CONFIG_USB_NET_CDC_NCM=y

CONFIG_USB_F_NCM=y

CONFIG_USB_G_NCM=y

-------------------------------------------------------------------------------------------------------

imx8qxp:

autolink_8q:/ # ifconfig usb0 192.168.5.100 up

autolink_8q:/ # ifconfig                                                       
lo        .... ...

usb0      Link encap:Ethernet  HWaddr ce:54:f5:41:64:51
          inet addr:192.168.5.100  Bcast:192.168.5.255  Mask:255.255.255.0
          inet6 addr: fe80::cc54:f5ff:fe41:6451/64 Scope: Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:304 errors:0 dropped:0 overruns:0 frame:0
          TX packets:65 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:42915 TX bytes:6836

wlan0     ... ...

---------------------------------------------------------------------------------------------------------

ubuntu :

win@autolink-bsp:~$ lsusb
Bus 003 Device 110: ID 0525:a4a1 Netchip Technology, Inc. Linux-USB Ethernet Gadget

win@autolink-bsp:~$ sudo ifconfig enp0s20u12 192.168.5.101 up

win@autolink-bsp:~$ ifconfig
enp0s20u12 Link encap:Ethernet  HWaddr 2a:09:67:64:99:6d  
          inet addr:192.168.5.101  Bcast:192.168.5.255  Mask:255.255.255.0
          inet6 addr: fe80::2809:67ff:fe64:996d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:70 errors:0 dropped:0 overruns:0 frame:0
          TX packets:305 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3876 (3.8 KB)  TX bytes:47241 (47.2 KB)

0 Kudos
Reply
5 Replies

1,234 Views
Fox-BCJim
Contributor I

Hello @igorpadykov
Would you help sharing ncm relation document to me?
I'm debug this module too.
Thanks.

0 Kudos
Reply

1,861 Views
caoying
Contributor II

Hi igorpadykov,

     Thank you anyway.I fixed it by "ip route add ... ..."

0 Kudos
Reply

1,861 Views
amit251291
Contributor IV

I'm also facing this issue. Could you please let me know how this was fixed ?

0 Kudos
Reply

1,861 Views
igorpadykov
NXP Employee
NXP Employee

Hi win

some documents with ncm usage were sent you via mail.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

1,861 Views
jordonwu
Contributor III

Hello @igorpadykov

Would you help share ncm usage document to me, I'm debug this module also.

Thanks.

0 Kudos
Reply