could not insert 'g_ether': No such device

Hi,

I’m trying to make Ubuntu 16.04.2 with TI v4.4.x: Real-Time kernel work. I’m stuck with a problem to configure ethernet over USB. I’m doing everything as explained here: https://eewiki.net/display/linuxonarm/BeagleBone+Black#BeagleBoneBlack-usbgadget but when I run the beaglebone-black-g-ether-load.sh script, I get modprobe: ERROR: could not insert ‘g_ether’: No such device…

Here is my dmesg: https://pastebin.com/KWBgdTTm
Here is my lsmod: https://pastebin.com/vr7J6QHA

I’ve been facing similar problem before, when I’ve been setting up 4.4 non-rt kernel, and up then solution to my problem was this script added to rc.local: https://pastebin.com/s7K8Kjrf

This time it doesn’t help though…

I’ll appreciate any help.

Regards
Igor

usb based ethernet is already runnin:

[ 17.951533] usb0: HOST MAC 68:c9:0b:b7:e9:c1
[ 17.956656] usb0: MAC 68:c9:0b:b7:e9:c2
[ 17.969298] usb1: HOST MAC 1c:ba:8c:a2:ed:72
[ 17.974212] usb1: MAC 1c:ba:8c:a2:ed:73
[ 18.257950] configfs-gadget gadget: high-speed config #1: c

usb_f_rndis 25919 2
u_ether 14331 2 usb_f_ecm,usb_f_rndis
snd_timer 23856 1 snd_pcm
libcomposite 54157 14 usb_f_acm,usb_f_ecm,usb_f_rndis

Regards,

Why isn’t this connection working then? Network manager in my host Ubuntu shows it’s still connecting. On the list of connections I already have my BBB, I can ping it, but when i try to ssh to it, I get no route to host error…

Here is an image of my networks list: http://imgur.com/a/GUQck

Regards

ssh debian@192.168.7.2

If that doesn’t work…

sudo ifconfig -a

Regards,

As I manetioned above - I’ve got Ubuntu image, not debian.

Command ubuntu@192.168.7.2 returns “No route to host

ifconfig -a

eth0 Link encap:Ethernet HWaddr d4:be:d9:62:dc:b3
inet6 addr: fe80::d6be:d9ff:fe62:dcb3/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:153 errors:0 dropped:0 overruns:0 frame:0
TX packets:540 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:69476 (69.4 KB) TX bytes:101702 (101.7 KB)
Interrupt:18

eth1 Link encap:Ethernet HWaddr 68:c9:0b:b7:e9:c1
inet6 addr: fe80::6ac9:bff:feb7:e9c1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:33 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:58 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3744 (3.7 KB) TX bytes:268 (268.0 B)

eth3 Link encap:Ethernet HWaddr 1c:ba:8c:a2:ed:72
inet6 addr: fe80::1eba:8cff:fea2:ed72/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:32 errors:0 dropped:0 overruns:0 frame:0
TX packets:44 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3695 (3.6 KB) TX bytes:7203 (7.2 KB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:564 errors:0 dropped:0 overruns:0 frame:0
TX packets:564 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:75634 (75.6 KB) TX bytes:75634 (75.6 KB)

wlan0 Link encap:Ethernet HWaddr 08:3e:8e:29:3d:e2
inet addr:192.168.1.16 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::a3e:8eff:fe29:3de2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:174561 errors:0 dropped:0 overruns:0 frame:0
TX packets:61701 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:221739854 (221.7 MB) TX bytes:9156592 (9.1 MB)

Regards

Yeah your right for Ubuntu…

Try

sudo dhclient eth1

To see if you can get a proper ip from the beagle.

Regards,

Thanks for this solution - after running dhclient eth1 that interface got a proper IP address and I was able to connect through ssh with BBB.

I don’t consider this a final solution though, as this involves too much uncertainity and manual work in order to simply connect with the device (especially as this can happen automatically). Unfortunately I don’t feel myself to be that strong in networking topics to be able to find a final solution myself. So thanks for that one, but could you tell me what else can I do?

Regards

@Robert - I did everything as you described here: https://eewiki.net/display/linuxonarm/BeagleBone+Black#BeagleBoneBlack-usbgadget

Why do I have two USB interfaces showing up (USB0 and USB1)? If I cannot load g_ether because u_ether is already loaded, do I need to run beaglebone-black-g-ether-load.sh during every boot?

Regards

The two interfaces are normal for all images linked from my elinux.org pages:

http://elinux.org/BeagleBoardUbuntu

On the eewiki.net page i haven't migrated things to the dual usb option yet.. *

This usb option, allows both Microsoft (7, 8.x, 10) to automatly
install a built-in usb-networking driver without our signed driver..
the "other" inteface also works with a built-in MacOSX driver..

It's just linux that see's both interfaces...

Regards,

Thanks for the info.

Now, even when I run dhclient eth1 I cannot get IP assigned… Like I said, it’s lottery…

So it doesn’t work and I don’t know why… Great…