Ethernet-over-USB not working with kernel 4.1.13-bone-rt-r17

Hi

I’m trying to write a kernel module for a real-time kernel. Following the instructions on https://eewiki.net/display/linuxonarm/BeagleBone+Black, I compiled and installed the 4.1.13-bone-rt-r17 kernel on my sd card with a BeagleBoard.org Debian Image 2015-03-01.

Previously, with kernel 3.8.13-bone70, my desktop (running linux mint) connected automatically to the beaglebone through ethernet-over-usb, after the kernel update, my desktop does not get assigned an IP address.

ifconfig desktop side:

eth1 Link encap:Ethernet HWaddr 84:eb:18:ae:cb:aa
inet6 addr: fe80::86eb:18ff:feae:cbaa/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:37 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7262 (7.2 KB) TX bytes:268 (268.0 B)

ifconfig beaglebone:

usb0 Link encap:Ethernet HWaddr a2:29:c5:ee:bf:e6
inet addr:192.168.7.2 Bcast:192.168.7.3 Mask:255.255.255.252
inet6 addr: fe80::a029:c5ff:feee:bfe6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:37 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:76 (76.0 B) TX bytes:9408 (9.1 KiB)

I can manually assign an IP address to eth1, this has no effect however.
Pings from the beaglebone to the desktop can be seen with tcpdump on the desktop (and get answered in case I manually assign an IP, the answer doesn’t get through though), but not the other way round.

root@beaglebone:~# ping 192.168.7.1
PING 192.168.7.1 (192.168.7.1) 56(84) bytes of data.
From 192.168.7.2 icmp_seq=1 Destination Host Unreachable
From 192.168.7.2 icmp_seq=2 Destination Host Unreachable
From 192.168.7.2 icmp_seq=3 Destination Host Unreachable
From 192.168.7.2 icmp_seq=4 Destination Host Unreachable
From 192.168.7.2 icmp_seq=5 Destination Host Unreachable
From 192.168.7.2 icmp_seq=6 Destination Host Unreachable
From 192.168.7.2 icmp_seq=7 Destination Host Unreachable
From 192.168.7.2 icmp_seq=8 Destination Host Unreachable
From 192.168.7.2 icmp_seq=9 Destination Host Unreachable
From 192.168.7.2 icmp_seq=10 Destination Host Unreachable
From 192.168.7.2 icmp_seq=11 Destination Host Unreachable
From 192.168.7.2 icmp_seq=12 Destination Host Unreachable
^C
— 192.168.7.1 ping statistics —
14 packets transmitted, 0 received, +12 errors, 100% packet loss, time 13001ms
pipe 3

fdalbert@edge ~ $ sudo tcpdump -i eth1
tcpdump: WARNING: eth1: no IPv4 address assigned
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth1, link-type EN10MB (Ethernet), capture size 65535 bytes
15:01:10.597986 ARP, Request who-has 192.168.7.1 tell 192.168.7.2, length 28
15:01:11.588800 ARP, Request who-has 192.168.7.1 tell 192.168.7.2, length 28
15:01:12.588895 ARP, Request who-has 192.168.7.1 tell 192.168.7.2, length 28
15:01:13.597976 ARP, Request who-has 192.168.7.1 tell 192.168.7.2, length 28
15:01:14.588800 ARP, Request who-has 192.168.7.1 tell 192.168.7.2, length 28
15:01:15.588772 ARP, Request who-has 192.168.7.1 tell 192.168.7.2, length 28
15:01:16.597983 ARP, Request who-has 192.168.7.1 tell 192.168.7.2, length 28
15:01:17.588936 ARP, Request who-has 192.168.7.1 tell 192.168.7.2, length 28
15:01:18.588919 ARP, Request who-has 192.168.7.1 tell 192.168.7.2, length 28
^C
9 packets captured
9 packets received by filter
0 packets dropped by kernel

I have spent hours trying to figure out what’s going wrong here, any help is greatly appreciated!

Fixed in:

https://github.com/RobertCNelson/ti-linux-kernel-dev/commit/1d9085bfb11e9e35ab0f4262799c8c801219a84f

r24.3

feel free to upgrade to:

4.1.13-ti-rt-r35

Regards,