aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2008-11-26 15:51:55 +0000
committerFlorian Fainelli <florian@openwrt.org>2008-11-26 15:51:55 +0000
commit8d9ff98b67cdd0d551acefa4310ffbcc0374809e (patch)
treed0f4c5c5c862cded07646a402ad5108ce1934b96 /target/linux/brcm63xx
parentf1cc74e8ea39432eca02ed14007873c3ff6d3529 (diff)
downloadupstream-8d9ff98b67cdd0d551acefa4310ffbcc0374809e.tar.gz
upstream-8d9ff98b67cdd0d551acefa4310ffbcc0374809e.tar.bz2
upstream-8d9ff98b67cdd0d551acefa4310ffbcc0374809e.zip
Make 4-port LAN and 1 port wan configurations work
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13362 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm63xx')
-rw-r--r--target/linux/brcm63xx/base-files/etc/config/network19
-rw-r--r--target/linux/brcm63xx/patches-2.6.27/011-add_preliminary_board_support.patch7
2 files changed, 25 insertions, 1 deletions
diff --git a/target/linux/brcm63xx/base-files/etc/config/network b/target/linux/brcm63xx/base-files/etc/config/network
new file mode 100644
index 0000000000..c15fdd81b3
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/config/network
@@ -0,0 +1,19 @@
+# Copyright (C) 2008 OpenWrt.org
+
+config interface loopback
+ option ifname lo
+ option proto static
+ option ipaddr 127.0.0.1
+ option netmask 255.0.0.0
+
+config interface lan
+ option type bridge
+ option ifname eth1
+ option proto static
+ option ipaddr 192.168.1.1
+ option netmask 255.255.255.0
+ option nat 1
+
+config interface wan
+ option ifname eth0
+ option proto dhcp
diff --git a/target/linux/brcm63xx/patches-2.6.27/011-add_preliminary_board_support.patch b/target/linux/brcm63xx/patches-2.6.27/011-add_preliminary_board_support.patch
index 1d8789fd7a..847cd89b74 100644
--- a/target/linux/brcm63xx/patches-2.6.27/011-add_preliminary_board_support.patch
+++ b/target/linux/brcm63xx/patches-2.6.27/011-add_preliminary_board_support.patch
@@ -56,7 +56,7 @@ Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
+obj-$(CONFIG_BOARD_BCM963XX) += board_bcm963xx.o
--- /dev/null
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -0,0 +1,353 @@
+@@ -0,0 +1,358 @@
+/*
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file "COPYING" in the main directory of this archive
@@ -138,12 +138,17 @@ Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
+ .expected_cpu_id = 0x6348,
+
+ .has_enet0 = 1,
++ .has_enet1 = 1,
+ .has_pci = 1,
+
+ .enet0 = {
+ .has_phy = 1,
+ .use_internal_phy = 1,
+ },
++ .enet1 = {
++ .force_speed_100 = 1,
++ .force_duplex_full = 1,
++ },
+};
+#endif
+