RNDIS support is broken in linux-4.9-at91 with AT91SAM9G20 (unknown USB device)
https://github.com/linux4sam/linux-at91 ... x-4.9-at91
Here is a description how we setup RNDIS:
https://www.at91.com/linux4sam/bin/view ... dgetConfig
Looks like RNDIS is broken since v4.5+
https://github.com/linux4sam/linux-at91 ... 6aaf9d1af6
Now we are in a hopeless situation:
- MDIO for distributed swtich architecture by device tree is not supported by cadence MACB
- may be it works with a xilinx patch for v4.6 (bad; no LTS version and no RNDIS)
=> fixed PHY link does work with 4.13+ => 4.14 LTS ,good, but here USB gadget RNDIS does not work !
Or in other words: If you want to support all switch ports and RNDIS you couldnt use any kernel with device tree

Internally its ok , but there is not any packet from the device to the host on the bus ( after device descriptor request by host)
lib composite is not as module
Code: Select all
modprobe: FATAL: Module libcomposite not found in directory /lib/modules/4.9.87-linux4sam_5.8+gitaa1fe3
mount: mounting none on /sys/kernel/config failed: Device or resource busy
using random self ethernet address
using random host ethernet address
usb0: HOST MAC 8a:eb:5c:64:b3:8c
usb0: MAC 1e:2d:4f:13:68:e5
Code: Select all
root@accg2:~# /sbin/ifconfig usb0
usb0 Link encap:Ethernet HWaddr 1E:2D:4F:13:68:E5
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@accg2:~# /sbin/ifconfig usb0 192.168.250.1
IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
root@accg2:~# /sbin/ifconfig usb0
usb0 Link encap:Ethernet HWaddr 1E:2D:4F:13:68:E5
inet addr:192.168.250.1 Bcast:192.168.250.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@accg2:~# ping 192.168.250.1
PING 192.168.250.1 (192.168.250.1): 56 data bytes
64 bytes from 192.168.250.1: seq=0 ttl=64 time=0.479 ms
64 bytes from 192.168.250.1: seq=1 ttl=64 time=0.316 ms
64 bytes from 192.168.250.1: seq=2 ttl=64 time=0.316 ms
I want to test RNDIS with the new SDK 5.8 but for G20 eval board (listed at older boards) only SDK 4.2 is available with obsolete EOL
Linux buildroot 3.6.9+ #1 Sun Sep 29 12:41:14 CST 2013 armv5tejl GNU/Linux

linux4sam/bin/view/Linux4SAM/GettingStarted
Is there a 5.3 SDK build on the Microchip "(jenkins@shaarm01)" server or has G20 EOL support reached ?
Best regards,
PP