Difference between revisions of "BeagleBone Usb Networking"

From eLinux.org
Jump to: navigation, search
(new USB networking toubleshooting page for the beaglebone)
 
m
 
(3 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
In some linux systems a few kernel modules might be needed to support the BeagleBone usb network.
 
In some linux systems a few kernel modules might be needed to support the BeagleBone usb network.
  
In case your usb network is unreachable and you cannot find the following line (or similar) in your dmesg log:
+
If your usb network is unreachable and you cannot find the following line (or similar) in your dmesg log:
  
 
   "rndis_host 1-4.3:1.0: eth2: register 'rndis_host' at usb-0000:00:1a.7-4.3, RNDIS device, c8:a0:30:ad:27:19"
 
   "rndis_host 1-4.3:1.0: eth2: register 'rndis_host' at usb-0000:00:1a.7-4.3, RNDIS device, c8:a0:30:ad:27:19"
Line 11: Line 11:
 
Follow the next steps:
 
Follow the next steps:
  
1) find your kernel sources. (usually at /usr/src/linux)
+
1) Find your kernel sources and edit them. (usually at /usr/src/linux)
2) add the following options as Modules:
+
make menuconfig
 +
 
 +
2) Add the following options as Modules:
  
 
   Device Drivers  --->  
 
   Device Drivers  --->  
Line 25: Line 27:
 
   [*] USB support  --->   
 
   [*] USB support  --->   
 
       <M>  USB Gadget Support  --->
 
       <M>  USB Gadget Support  --->
 +
      <M>    Ethernet Gadget (with CDC Ethernet support)
 
       <M>    CDC Composite Device (Ethernet and ACM)
 
       <M>    CDC Composite Device (Ethernet and ACM)
 
       <M>    Multifunction Composite Gadget (EXPERIMENTAL
 
       <M>    Multifunction Composite Gadget (EXPERIMENTAL
Line 33: Line 36:
  
 
4) If everything went as expected a new network interface will be created the next time you connect your beaglebone.
 
4) If everything went as expected a new network interface will be created the next time you connect your beaglebone.
  ifconfig -a
+
  ip addr
  
 
5) assign an IP address to the freshly created network interface and enjoy!
 
5) assign an IP address to the freshly created network interface and enjoy!

Latest revision as of 11:55, 29 May 2013

Troubleshooting:

USB networking not available (192.168.7.2 not accessible):

In some linux systems a few kernel modules might be needed to support the BeagleBone usb network.

If your usb network is unreachable and you cannot find the following line (or similar) in your dmesg log:

  "rndis_host 1-4.3:1.0: eth2: register 'rndis_host' at usb-0000:00:1a.7-4.3, RNDIS device, c8:a0:30:ad:27:19"

Follow the next steps:

1) Find your kernel sources and edit them. (usually at /usr/src/linux)

make menuconfig

2) Add the following options as Modules:

  Device Drivers  ---> 
  [*] Network device support  --->
      USB Network Adapters  --->
      <M> Multi-purpose USB Networking Framework  
      <M>   CDC Ethernet support (smart devices such as cable modems) 
      <M>   Host for RNDIS and ActiveSync devices (EXPERIMENTAL)
      <M>   Simple USB Network Links (CDC Ethernet subset)
                       
 Device Drivers  --->   
 [*] USB support  --->  
     <M>   USB Gadget Support  --->
     <M>     Ethernet Gadget (with CDC Ethernet support)
     <M>     CDC Composite Device (Ethernet and ACM)
     <M>     Multifunction Composite Gadget (EXPERIMENTAL
            [*]       RNDIS + CDC Serial + Storage configuration

3) Recompile the kernel and install the modules

make && make modules_install

4) If everything went as expected a new network interface will be created the next time you connect your beaglebone.

ip addr

5) assign an IP address to the freshly created network interface and enjoy!