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

Koen Kooi koen at dominion.thruhere.net
Fri Aug 31 23:50:39 PDT 2012


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


More information about the meta-ti mailing list