[OE-core] [poky] [PATCH 2/3] netbase: automatically bring up usb0 on beagleboard

Darren Hart dvhart at linux.intel.com
Fri Apr 15 23:01:30 UTC 2011



On 04/15/2011 03:43 PM, Gary Thomas wrote:
> On 04/15/2011 04:37 PM, Darren Hart wrote:
>>
>>
>> On 04/15/2011 10:00 AM, Paul Eggleton wrote:
>>> From: Paul Eggleton<paul.eggleton at linux.intel.com>
>>>
>>> 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 at linux.intel.com>
>>> ---
>>>   .../netbase/netbase-4.45/beagleboard/interfaces    |   27 ++++++++++++++++++++
>>>   1 files changed, 27 insertions(+), 0 deletions(-)
>>>   create mode 100644 meta/recipes-core/netbase/netbase-4.45/beagleboard/interfaces
>>>
>>> diff --git a/meta/recipes-core/netbase/netbase-4.45/beagleboard/interfaces b/meta/recipes-core/netbase/netbase-4.45/beagleboard/interfaces
>>> new file mode 100644
>>> index 0000000..b6935c1
>>> --- /dev/null
>>> +++ b/meta/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
>>
>> Since we're adding a this specifically for the beagleboard, I don't see
>> the value of adding eth0 or eth1. I'm not sure about wifi and bluetooth,
>> I believe there are modules out there.
> 
> eth1 yes, but doesn't the BeagleBoard xM have eth0?

No. The onboard device is usb0.

--
Darren

> 
>>
>> I suppose it doesn't hurt to have them there as examples.
>>
>>> +
>>> +# Ethernet/RNDIS gadget (g_ether) or LAN9514 on BeagleBoard xM
>>> +auto usb0
>>> +iface usb0 inet dhcp
>>> +
>>> +# Bluetooth networking
>>> +iface bnep0 inet dhcp
>>> +
>>
> 

-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel




More information about the Openembedded-core mailing list