[oe] [PATCH 3/5] netbase: add tb5200l specific /etc/network/interfaces

Marco Cavallini koansoftware at gmail.com
Sun Apr 18 09:12:04 UTC 2010


Vitus Jensen ha scritto, Il 16/04/2010 18:53:
> * eth0, usb for host connectivity
> * can0, can1 to control CAN devices
> 
> Signed-off-by: Vitus Jensen <vjensen at gmx.de>
> ---
>  recipes/netbase/netbase/tb5200l/interfaces |   33 ++++++++++++++++++++++++++++
>  1 files changed, 33 insertions(+), 0 deletions(-)
>  create mode 100644 recipes/netbase/netbase/tb5200l/interfaces
> 
> diff --git a/recipes/netbase/netbase/tb5200l/interfaces b/recipes/netbase/netbase/tb5200l/interfaces
> new file mode 100644
> index 0000000..9b27ef0
> --- /dev/null
> +++ b/recipes/netbase/netbase/tb5200l/interfaces
> @@ -0,0 +1,33 @@
> +# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
> +
> +# The loopback interface
> +auto lo
> +iface lo inet loopback
> +
> +
> +# Wired ethernet interface of "tiny box"
> +auto eth0
> +iface eth0 inet dhcp
> +
> +
> +# Ethernet/RNDIS gadget (g_ether)
> +# ... or on host side, usbnet and random hwaddr
> +iface usb0 inet static
> +	address 192.168.0.202
> +	netmask 255.255.255.0
> +	network 192.168.0.0
> +	gateway 192.168.0.200
> +
> +# CAN interfaces
> +auto can0
> +iface can0 inet manual
> +	pre-up ip link set $IFACE type can bitrate 125000 listen-only off
> +	up /sbin/ifconfig $IFACE up
> +	down /sbin/ifconfig $IFACE down
> +
> +auto can1
> +iface can1 inet manual
> +	pre-up ip link set $IFACE type can bitrate 125000 listen-only off
> +	up /sbin/ifconfig $IFACE up
> +	down /sbin/ifconfig $IFACE down
> +


Acked-by: Marco Cavallini <m.cavallini at koansoftware.com>


Cordiali Saluti / Kindest Regards / mit freundlichen Grüssen
--
Marco Cavallini | KOAN sas | Bergamo - Italia
 embedded and real-time software engineering
   Atmel third party certified consultant
Phone:+39-035-255.235 - Fax:+39-178-22.39.748
      http://www.KoanSoftware.com
        http://www.KaeilOS.com




More information about the Openembedded-devel mailing list