Difference between revisions of "ECE497 Networking over USB"

From eLinux.org
Jump to: navigation, search
m (Loading the Necessary Module)
m
Line 13: Line 13:
  
 
=== Load the Module Dynamically ===
 
=== Load the Module Dynamically ===
''Optional''' if g_ether module not compiled into the kernel, we can load it dynamically as an external module:
+
'''Optional''' if g_ether module not compiled into the kernel, we can load it dynamically as an external module:
  
 
  #cd /lib/modules/2.6.29-omap1/kernel/drivers/usb/gadget
 
  #cd /lib/modules/2.6.29-omap1/kernel/drivers/usb/gadget
 
  #modprobe g_ether host_addr=16:0F:15:5A:E1:21 dev_addr=16:0F:15:5A:E1:20
 
  #modprobe g_ether host_addr=16:0F:15:5A:E1:21 dev_addr=16:0F:15:5A:E1:20

Revision as of 01:19, 14 April 2011

The Angstrom demo image for the beagleboard comes with USB networking support. The only thing you have to do is to enable it by issuing the following commands on your beagleboard via the terminal. Note: you can use your own MAC and IP addresses, but maintain consistency.

Loading the Necessary Module

The 'g_ether' module handles networking over USB support. This module can be loaded in two different ways:

TODO fix the following note to point to the actual configuration option (use default configs)

Note make sure that the configuration option for the g_ether module is selected (either M or Y)

Compile the Module into the Kernel

Load the Module Dynamically

Optional if g_ether module not compiled into the kernel, we can load it dynamically as an external module:

#cd /lib/modules/2.6.29-omap1/kernel/drivers/usb/gadget
#modprobe g_ether host_addr=16:0F:15:5A:E1:21 dev_addr=16:0F:15:5A:E1:20