Project

General

Profile

RE: Example USB (usb 3.0 port) is not work » peripheral_rndis.log

Jonathan Cormier, 05/11/2023 02:46 PM

 
1
root@mitysom-am57x:~# modprobe g_ether
2
[  146.267531] using random self ethernet address
3
[  146.272162] using random host ethernet address
4
[  146.279605] usb0: HOST MAC c2:ae:8e:4b:74:2d
5
[  146.284303] usb0: MAC 72:9e:e3:2a:87:07
6
[  146.288178] using random self ethernet address
7
[  146.292708] using random host ethernet address
8
[  146.297215] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
9
[  146.303988] g_ether gadget: g_ether ready
10
root@mitysom-am57x:~# [  146.315459] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
11
[  147.135587] g_ether gadget: high-speed config #1: CDC Ethernet (ECM)
12
[  147.177638] IPv6: ADDRCONF(NETDEV_CHANGE): usb0: link becomes ready
13
[  147.213778] NOHZ: local_softirq_pending 08
14
[  147.225895] NOHZ: local_softirq_pending 08
15
[  147.233910] NOHZ: local_softirq_pending 08
16

    
17
root@mitysom-am57x:~# 
18
root@mitysom-am57x:~# lsusb
19
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
20
Bus 001 Device 002: ID 0451:8142 Texas Instruments, Inc. TUSB8041 4-Port Hub
21
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
22
root@mitysom-am57x:~# ip a
23
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
24
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
25
    inet 127.0.0.1/8 scope host lo
26
       valid_lft forever preferred_lft forever
27
    inet6 ::1/128 scope host 
28
       valid_lft forever preferred_lft forever
29
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
30
    link/ether 6c:c3:74:67:8c:82 brd ff:ff:ff:ff:ff:ff
31
3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
32
    link/ether 6c:c3:74:67:8c:83 brd ff:ff:ff:ff:ff:ff
33
4: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000
34
    link/sit 0.0.0.0 brd 0.0.0.0
35
5: eth2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
36
    link/ether f6:30:d2:0e:ad:59 brd ff:ff:ff:ff:ff:ff
37
6: eth3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
38
    link/ether fe:28:ea:4b:80:14 brd ff:ff:ff:ff:ff:ff
39
7: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
40
    link/ether 72:9e:e3:2a:87:07 brd ff:ff:ff:ff:ff:ff
41
    inet 10.1.47.2/24 brd 10.1.47.255 scope global usb0
42
       valid_lft forever preferred_lft forever
43
    inet6 fe80::709e:e3ff:fe2a:8707/64 scope link 
44
       valid_lft forever preferred_lft forever
45

    
46
root@mitysom-am57x:~# ping 10.1.47.1
47
PING 10.1.47.1 (10.1.47.1): 56 data bytes
48
64 bytes from 10.1.47.1: seq=0 ttl=64 time=2.691 ms
49
64 bytes from 10.1.47.1: seq=1 ttl=64 time=2.462 ms
50
^C
51
--- 10.1.47.1 ping statistics ---
52
2 packets transmitted, 2 packets received, 0% packet loss
53
round-trip min/avg/max = 2.462/2.576/2.691 ms
54

    
(2-2/3) Go to top
Add picture from clipboard (Maximum size: 1 GB)