diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2011-04-20 11:45:25 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-05 16:09:17 +0100 |
commit | e72210c791fa2565b7922bdc6542fc064203930b (patch) | |
tree | 6c6b66f86b53fa0be66ee0348d769aedbf37f2fd /meta-yocto | |
parent | 001a555c2f755d4f8a69b113656d9307ca7ee597 (diff) | |
download | poky-e72210c791fa2565b7922bdc6542fc064203930b.tar.gz |
netbase: automatically bring up usb0 on BeagleBoard xM
Avoids manual configuration of the BeagleBoard xM's ethernet port
(which shows up as usb0).
Fixes [YOCTO #930]
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'meta-yocto')
-rw-r--r-- | meta-yocto/recipes-core/netbase/netbase-4.45/beagleboard/interfaces | 27 | ||||
-rw-r--r-- | meta-yocto/recipes-core/netbase/netbase_4.45.bbappend | 3 |
2 files changed, 30 insertions, 0 deletions
diff --git a/meta-yocto/recipes-core/netbase/netbase-4.45/beagleboard/interfaces b/meta-yocto/recipes-core/netbase/netbase-4.45/beagleboard/interfaces new file mode 100644 index 0000000000..b6935c11af --- /dev/null +++ b/meta-yocto/recipes-core/netbase/netbase-4.45/beagleboard/interfaces | |||
@@ -0,0 +1,27 @@ | |||
1 | # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) | ||
2 | |||
3 | # The loopback interface | ||
4 | auto lo | ||
5 | iface lo inet loopback | ||
6 | |||
7 | # Wireless interfaces | ||
8 | iface wlan0 inet dhcp | ||
9 | wireless_mode managed | ||
10 | wireless_essid any | ||
11 | wpa-driver wext | ||
12 | wpa-conf /etc/wpa_supplicant.conf | ||
13 | |||
14 | iface atml0 inet dhcp | ||
15 | |||
16 | # Wired or wireless interfaces | ||
17 | auto eth0 | ||
18 | iface eth0 inet dhcp | ||
19 | iface eth1 inet dhcp | ||
20 | |||
21 | # Ethernet/RNDIS gadget (g_ether) or LAN9514 on BeagleBoard xM | ||
22 | auto usb0 | ||
23 | iface usb0 inet dhcp | ||
24 | |||
25 | # Bluetooth networking | ||
26 | iface bnep0 inet dhcp | ||
27 | |||
diff --git a/meta-yocto/recipes-core/netbase/netbase_4.45.bbappend b/meta-yocto/recipes-core/netbase/netbase_4.45.bbappend new file mode 100644 index 0000000000..4b8d0e656b --- /dev/null +++ b/meta-yocto/recipes-core/netbase/netbase_4.45.bbappend | |||
@@ -0,0 +1,3 @@ | |||
1 | THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" | ||
2 | FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}"], d)}:" | ||
3 | |||