aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-core
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2011-04-20 11:45:25 +0100
committerKoen Kooi <koen@dominion.thruhere.net>2011-05-15 15:59:17 +0200
commit2ee953b6273fcf06e1fd1a327e35f2c161448791 (patch)
treec9aedaf98977ebb7a113b4f68fb795583e6ea953 /recipes-core
parentfb0766aa6f7977a7c6e8a2acf8d97fb65574f997 (diff)
downloadmeta-ti-2ee953b6273fcf06e1fd1a327e35f2c161448791.tar.gz
meta-ti-2ee953b6273fcf06e1fd1a327e35f2c161448791.tar.bz2
meta-ti-2ee953b6273fcf06e1fd1a327e35f2c161448791.zip
netbase: automatically bring up usb0 on BeagleBoard xM
Avoids manual configuration of the BeagleBoard xM's ethernet port (which shows up as usb0). Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'recipes-core')
-rw-r--r--recipes-core/netbase/netbase-4.45/beagleboard/interfaces27
-rw-r--r--recipes-core/netbase/netbase_4.45.bbappend3
2 files changed, 30 insertions, 0 deletions
diff --git a/recipes-core/netbase/netbase-4.45/beagleboard/interfaces b/recipes-core/netbase/netbase-4.45/beagleboard/interfaces
new file mode 100644
index 000000000..b6935c11a
--- /dev/null
+++ b/recipes-core/netbase/netbase-4.45/beagleboard/interfaces
@@ -0,0 +1,27 @@
+# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
+
+# The loopback interface
+auto lo
+iface lo inet loopback
+
+# Wireless interfaces
+iface wlan0 inet dhcp
+ wireless_mode managed
+ wireless_essid any
+ wpa-driver wext
+ wpa-conf /etc/wpa_supplicant.conf
+
+iface atml0 inet dhcp
+
+# Wired or wireless interfaces
+auto eth0
+iface eth0 inet dhcp
+iface eth1 inet dhcp
+
+# Ethernet/RNDIS gadget (g_ether) or LAN9514 on BeagleBoard xM
+auto usb0
+iface usb0 inet dhcp
+
+# Bluetooth networking
+iface bnep0 inet dhcp
+
diff --git a/recipes-core/netbase/netbase_4.45.bbappend b/recipes-core/netbase/netbase_4.45.bbappend
new file mode 100644
index 000000000..4b8d0e656
--- /dev/null
+++ b/recipes-core/netbase/netbase_4.45.bbappend
@@ -0,0 +1,3 @@
+THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
+FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}"], d)}:"
+