aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitus Jensen <vjensen@gmx.de>2010-04-16 07:08:23 +0000
committerEric Bénard <eric@eukrea.com>2010-11-06 22:52:49 +0100
commitb26a6884ee6b39113b2df31ce282a67fbe581b49 (patch)
tree9f20dd7662c6b2745ee493b1c064183cfe38b40a
parentb6532031c62e4d3c1ff25820283fe325f9b263ab (diff)
downloadopenembedded-b26a6884ee6b39113b2df31ce282a67fbe581b49.zip
openembedded-b26a6884ee6b39113b2df31ce282a67fbe581b49.tar.gz
openembedded-b26a6884ee6b39113b2df31ce282a67fbe581b49.tar.bz2
netbase: add bluepro specific /etc/network/interfaces
* eth0, usb for host connectivity * can0, can1 to control CAN devices Signed-off-by: Vitus Jensen <vjensen@gmx.de> Signed-off-by: Eric Bénard <eric@eukrea.com>
-rw-r--r--recipes/netbase/netbase/bluepro/interfaces33
1 files changed, 33 insertions, 0 deletions
diff --git a/recipes/netbase/netbase/bluepro/interfaces b/recipes/netbase/netbase/bluepro/interfaces
new file mode 100644
index 0000000..9b27ef0
--- /dev/null
+++ b/recipes/netbase/netbase/bluepro/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
+