[meta-ti] [master][PATCH v3] netbase: Update interfaces files

Cooper Jr., Franklin fcooper at ti.com
Wed Sep 5 13:06:56 PDT 2012


Ignore this patch. Adding to meta-arago-distro.

-----Original Message-----
From: meta-ti-bounces at yoctoproject.org [mailto:meta-ti-bounces at yoctoproject.org] On Behalf Of Koen Kooi
Sent: Saturday, September 01, 2012 1:51 AM
To: fcooperjr27 at gmail.com
Cc: meta-ti at yoctoproject.org
Subject: Re: [meta-ti] [master][PATCH v3] netbase: Update interfaces files


Op 31 aug. 2012, om 23:54 heeft fcooperjr27 at gmail.com het volgende geschreven:

> From: Franklin S Cooper Jr <fcooper at ti.com>
> 
> * Update interfaces files based on changes made to the interfaces file  
> in arago
> 
> Signed-off-by: Franklin S Cooper Jr <fcooper at ti.com>
> ---
> recipes-core/netbase/netbase-5.0/omap3/interfaces  |   12 +++++++-----
> .../netbase/netbase-5.0/omapl138/interfaces        |   12 +++++++-----
> recipes-core/netbase/netbase-5.0/ti33x/interfaces  |   12 +++++++-----
> 3 files changed, 21 insertions(+), 15 deletions(-)
> 
> diff --git a/recipes-core/netbase/netbase-5.0/omap3/interfaces 
> b/recipes-core/netbase/netbase-5.0/omap3/interfaces
> index 0acf4cf..15bc31c 100644
> --- a/recipes-core/netbase/netbase-5.0/omap3/interfaces
> +++ b/recipes-core/netbase/netbase-5.0/omap3/interfaces
> @@ -11,20 +11,22 @@ iface wlan0 inet dhcp
> 	wpa-driver wext
> 	wpa-conf /etc/wpa_supplicant.conf
> 
> +iface tiwlan0 inet dhcp
> +	wireless_mode managed
> +	wireless_essid any
> +

That doesn't exist on beagleboard, but it does get added to the interfaces file for no reason, NAK

> iface atml0 inet dhcp
> 
> # Wired or wireless interfaces
> auto eth0
> iface eth0 inet dhcp
> +        pre-up /bin/grep -v -e 
> + "ip=[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+" /proc/cmdline > /dev/null

Ehm....


> +
> iface eth1 inet dhcp
> 
> # Ethernet/RNDIS gadget (g_ether)
> # ... or on host side, usbnet and random hwaddr -iface usb0 inet 
> static
> -	address 192.168.7.2
> -	netmask 255.255.255.0
> -	network 192.168.7.0
> -	gateway 192.168.7.1
> +iface usb0 inet dhcp

Breaks beagleboard usage

> 
> # Bluetooth networking
> iface bnep0 inet dhcp
> diff --git a/recipes-core/netbase/netbase-5.0/omapl138/interfaces 
> b/recipes-core/netbase/netbase-5.0/omapl138/interfaces
> index 0acf4cf..15bc31c 100644
> --- a/recipes-core/netbase/netbase-5.0/omapl138/interfaces
> +++ b/recipes-core/netbase/netbase-5.0/omapl138/interfaces
> @@ -11,20 +11,22 @@ iface wlan0 inet dhcp
> 	wpa-driver wext
> 	wpa-conf /etc/wpa_supplicant.conf
> 
> +iface tiwlan0 inet dhcp
> +	wireless_mode managed
> +	wireless_essid any
> +
> iface atml0 inet dhcp
> 
> # Wired or wireless interfaces
> auto eth0
> iface eth0 inet dhcp
> +        pre-up /bin/grep -v -e 
> + "ip=[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+" /proc/cmdline > /dev/null
> +
> iface eth1 inet dhcp
> 
> # Ethernet/RNDIS gadget (g_ether)
> # ... or on host side, usbnet and random hwaddr -iface usb0 inet 
> static
> -	address 192.168.7.2
> -	netmask 255.255.255.0
> -	network 192.168.7.0
> -	gateway 192.168.7.1
> +iface usb0 inet dhcp
> 
> # Bluetooth networking
> iface bnep0 inet dhcp
> diff --git a/recipes-core/netbase/netbase-5.0/ti33x/interfaces 
> b/recipes-core/netbase/netbase-5.0/ti33x/interfaces
> index 0acf4cf..15bc31c 100644
> --- a/recipes-core/netbase/netbase-5.0/ti33x/interfaces
> +++ b/recipes-core/netbase/netbase-5.0/ti33x/interfaces
> @@ -11,20 +11,22 @@ iface wlan0 inet dhcp
> 	wpa-driver wext
> 	wpa-conf /etc/wpa_supplicant.conf
> 
> +iface tiwlan0 inet dhcp
> +	wireless_mode managed
> +	wireless_essid any
> +
> iface atml0 inet dhcp
> 
> # Wired or wireless interfaces
> auto eth0
> iface eth0 inet dhcp
> +        pre-up /bin/grep -v -e 
> + "ip=[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+" /proc/cmdline > /dev/null
> +
> iface eth1 inet dhcp
> 
> # Ethernet/RNDIS gadget (g_ether)
> # ... or on host side, usbnet and random hwaddr -iface usb0 inet 
> static
> -	address 192.168.7.2
> -	netmask 255.255.255.0
> -	network 192.168.7.0
> -	gateway 192.168.7.1
> +iface usb0 inet dhcp

breaks beaglebone


LIke I said before, this is an 'arago' interfaces file, not specific to the SoCs, so please put it in the arago layer instead of breaking everything by putting it in meta-ti _______________________________________________
meta-ti mailing list
meta-ti at yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-ti



More information about the meta-ti mailing list