Missing Usb0 interface booting from SD Ubuntu 14.04

655 views
Skip to first unread message

ian.bi...@gmail.com

unread,
Feb 5, 2015, 4:07:58 AM2/5/15
to beagl...@googlegroups.com
Hi there,

Hope someone can help. I've just downloaded the SD image of Ubuntu 14.04 LTS for Beaglebone Black from here:

http://elinux.org/BeagleBoardUbuntu#BeagleBone.2FBeagleBone_Black

When I boot however, usb0 doesn't seem to initialise as the board isn't detected by the PC and it is not shown when ifconfig -a is run.

Based on other posts I've found for disabling the device, I've checked for references in /opt/scripts/boot/am335_evm.sh and can't find anything obvious but being new to Linux am not entirely sure what I'm looking for.

Usb0 and ip details are showing in network interfaces config.

Thanks in advance for your help.

mac.tha...@gmail.com

unread,
Feb 5, 2015, 9:48:35 AM2/5/15
to beagl...@googlegroups.com
Have you enabled the g_ether module?

Ian Bishop

unread,
Feb 5, 2015, 9:54:30 PM2/5/15
to beagl...@googlegroups.com
I've not enabled it myself as I thought the usb0 interface would work straight from the image. I've done some searching online today about how to enable it in Ubuntu but perhaps not searching the right terms, can you offer a few pointers?

Thanks

阮天青

unread,
Feb 6, 2015, 3:05:57 AM2/6/15
to beagl...@googlegroups.com
You'll want to enable or install the g_ether kernel module, and then create the interface for usb0.

It's for sure enabled on the provided Debian images, but it probably isn't on the other distros.

Ian Bishop

unread,
Feb 6, 2015, 6:00:38 PM2/6/15
to beagl...@googlegroups.com
Thanks, beginning to get there. I ran lsmod which confirmed that g_ether isn't loaded.

I then located the module in the library under:

/lib/modules/3.14.26-ti-r43/kernel/USB/gadget

When I run insmod to load the module however, I get an error "No such device"

I'm going on the basis of a number of posts online which don't necessarily relate to Ubuntu, am I doing the right thing?

Ian Bishop

unread,
Feb 6, 2015, 6:32:23 PM2/6/15
to beagl...@googlegroups.com
Sorry, my lack of Linux knowledge let me down, I was running insmod FILEPATH/g_ether.ko instead of going to the directory and running insmod.

I've done that now but get a new error about an unknown symbol in the module.

todokeru...@gmail.com

unread,
Feb 6, 2015, 10:10:54 PM2/6/15
to beagl...@googlegroups.com
Can you try modprobe 'g_ether' and adding g_ether to /etc/modules?

Ian Bishop

unread,
Feb 14, 2015, 11:55:48 PM2/14/15
to beagl...@googlegroups.com
Thanks for the above. When I go to the library folder and run modprobe g_ether I received a cannot insert error: operation not permitted. I then forgot I wasn't logged in as root so appended sudo but received the error "No such device" even although it's listed.

Tried to copy g_ether.ko to /etc/modules but it appears there is not a modules folder under /etc. Is it likely to be somewhere else under this distro?
Reply all
Reply to author
Forward
0 new messages