BeagleBone USB networking Ubuntu/Win7 driver problem

Hi,

I have a problem with a driver (USB Ethernet gadget) on my Windows7 host PC when trying to connect with BeagleBone running Ubuntu 12.04 LTS (GNU/Linux 3.2.18-psp14 armv7l)
The demo image is obtained from here http://elinux.org/BeagleBoardUbuntu
No USB Ethernet gadget driver problem when running Angstrom distribution on the same hardware (both Beaglebone and PC)
Under Device Manager->Other devices I have Ethernet Gadget, but it says The drivers for this device are not installed. (Code 28)
and no update driver helps.
ubuntu@omap:~$ ifconfig
eth0 Link encap:Ethernet HWaddr d4:94:a1:36:bc:22
UP BROADCAST ALLMULTI 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)
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:16436 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:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
ubuntu@omap:~$ sudo ifup usb0
[sudo] password for ubuntu:
Ignoring unknown interface usb0=usb0.
ubuntu@omap:~$

Can anyone help me to solve it?

Jan

OK, another question then:
Is anyone able to use USB networking with Beaglebone Ubuntu and Win7 host?
If yes, what is the setup?
or
Is there a problem with implementation of Ethernet Gadget on Ubuntu distribution for Beaglebone?
Jan

Jan

Enter reboot into your console.

Works here:

voodoo@bone-a3-256mb:~$ sudo ifconfig -a
<snip>

usb0 Link encap:Ethernet HWaddr 16:f8:b8:6a:9e:ed
          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)

voodoo@bone-a3-256mb:~$ uname -a
Linux bone-a3-256mb 3.2.21-psp16 #1 Wed Jul 4 07:50:58 UTC 2012 armv7l GNU/Linux

I'd say first, upgrade your kernel..

Regards,

Thanks Robert and Conqueror,

I did the kernel upgrade, but still the problem exist:
ubuntu@omap:~$ uname -a
Linux omap 3.2.21-psp17 #1 Tue Jul 17 15:56:23 UTC 2012 armv7l armv7l armv7l GNU
/Linux
ubuntu@omap:~$ sudo ifconfig -a
[sudo] password for ubuntu:
eth0 Link encap:Ethernet HWaddr d4:94:a1:36:bc:22
UP BROADCAST ALLMULTI 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)
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:16436 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:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
usb0 Link encap:Ethernet HWaddr 96:ed:31:ff:c7:c2
UP BROADCAST RUNNING 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)
ubuntu@omap:~$

I modify the /etc/network/interfaces
auto eth0
iface eth0 inet dhcp

after typing
ubuntu@omap:~$ sudo dhclient usb0
the system freezes
ubuntu@omap:~$ sudo dhclient usb0

On the Win7 host side the Ethernet Gadget driver is still complaining about no driver

Jan

Thanks Robert and Conqueror,

I did the kernel upgrade, but still the problem exist:
ubuntu@omap:~$ uname -a
Linux omap 3.2.21-psp17 #1 Tue Jul 17 15:56:23 UTC 2012 armv7l armv7l armv7l GNU
/Linux
ubuntu@omap:~$ sudo ifconfig -a
[sudo] password for ubuntu:
eth0 Link encap:Ethernet HWaddr d4:94:a1:36:bc:22
UP BROADCAST ALLMULTI 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)
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:16436 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:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
usb0 Link encap:Ethernet HWaddr 96:ed:31:ff:c7:c2
UP BROADCAST RUNNING 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)
ubuntu@omap:~$

I modify the /etc/network/interfaces
auto eth0
iface eth0 inet dhcp

after typing
ubuntu@omap:~$ sudo dhclient usb0
the system freezes
ubuntu@omap:~$ sudo dhclient usb0

On the Win7 host side the Ethernet Gadget driver is still complaining about no driver

Have you tried to tell Windows to search for the driver? Did you already install the driver provided by http://beagleboard.org/static/beaglebone/latest/README.htm?

Hi Jason,

As I said in my first post, the driver works with Angstrom, but not with Ubuntu
if I try:
ubuntu@omap:~$ sudo ifup usb0
[sudo] password for ubuntu:
ifup: interface usb0 already configured
ubuntu@omap:~$ sudo ifdown usb0
ubuntu@omap:~$ sudo ifup usb0
… freezes here
Jan

Jan,

No idea.. I don't have any windows 7 machines, so I can't test it..
But there's nothing stopping you from using Angstrom's kernel with
ubuntu's userspace.. Just make sure you grab all the modules too..

Regards,

What I did was to run vmware in xp and download the serial drivers. It seems to work fine for me.Try that out.

This discussion is about the usb-networking "gadget" interface that
the kernel provides and the drivers to talk to it... Not the
usb-serial device that happens to share the same usb bus connection
point to the external host via the otg header..

Regards,

My bad. I didnt read the question properly!

Robert,

Thanks for your suggestion. I actually did the opposite exercise.
I started with and Angstrom distribution and attempted to change the kernel following your instruction from here https://github.com/RobertCNelson
The build and deploy went without errors, however as a result the reported kernel didn’t change (response to uname -a gives the old one)
The result is that binary kernel image (uImage) in FAT16 partition has been changed, the new modules directory in ext4 partition /lib/modules/??? was created
and as well uImage_??? in /boot/ added (no change to symbolic link (uImage) there)
My problem is that I don’t understand what is the function of symbolic link /boot/uImage and where it should point to.
As well how the system knows where to look for modules with multiple modules directories available.
I did searches, but with no luck.
Can your point me to some documentation explaining my doubts and a simple understanding how the linux on beaglebone works?
As well the basic differences in booting proces and bringing up the system between Angstrom and Ubuntu on Beaglebone.

Jan

Ah I see, angstrom recently switched to loading the uimage off the extX partition… so if you used my repo as is, it puts the uimage on the fat partition… easy enough to remedy, just mount both and copy over…