could not insert 'g_ether': No such device

119 views
Skip to first unread message

Igor Jędrzejczak

unread,
Jul 15, 2017, 4:37:14 PM7/15/17
to BeagleBoard

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...


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

Robert Nelson

unread,
Jul 15, 2017, 6:00:04 PM7/15/17
to Beagle Board, Igor Jędrzejczak
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,

--
Robert Nelson
https://rcn-ee.com/

Igor Jędrzejczak

unread,
Jul 15, 2017, 6:27:14 PM7/15/17
to BeagleBoard, rog...@gmail.com
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

Robert Nelson

unread,
Jul 15, 2017, 7:09:33 PM7/15/17
to Beagle Board, Igor Jędrzejczak
ssh deb...@192.168.7.2

If that doesn't work..

sudo ifconfig -a

Regards,

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/653c8fed-8c98-44f5-a298-80be035cfac8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Igor Jędrzejczak

unread,
Jul 15, 2017, 7:17:01 PM7/15/17
to BeagleBoard, rog...@gmail.com
As I manetioned above - I've got Ubuntu image, not debian.

Command ubu...@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
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.

Robert Nelson

unread,
Jul 15, 2017, 7:22:54 PM7/15/17
to Beagle Board, Igor Jędrzejczak
Yeah your right for Ubuntu..

Try

sudo dhclient eth1

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

Regards,

To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/4619f866-c404-4b8f-9b71-f45d19c45e34%40googlegroups.com.

Igor Jędrzejczak

unread,
Jul 15, 2017, 7:39:30 PM7/15/17
to BeagleBoard, rog...@gmail.com
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

Igor Jędrzejczak

unread,
Jul 15, 2017, 8:45:47 PM7/15/17
to BeagleBoard, rog...@gmail.com
@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

On Sunday, 16 July 2017 01:22:54 UTC+2, RobertCNelson wrote:

Robert Nelson

unread,
Jul 15, 2017, 10:21:52 PM7/15/17
to Beagle Board, Igor Jędrzejczak
On Sat, Jul 15, 2017 at 7:45 PM, Igor Jędrzejczak <rog...@gmail.com> wrote:
> @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?

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...

Igor Jędrzejczak

unread,
Jul 16, 2017, 6:40:25 AM7/16/17
to BeagleBoard, rog...@gmail.com
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...
Reply all
Reply to author
Forward
0 new messages