From d5c281f5b432137b8ae039d3eeab589bbc145691 Mon Sep 17 00:00:00 2001 From: Luka Perkov Date: Wed, 28 May 2014 21:43:39 +0000 Subject: kirkwood: add support for Linksys EA4500 Support is added only for kernel 3.14 - do not show it until the switch is made. Following uboot env changes are needed to make it work on stock uboot: --- setenv owrt_bootargs_root ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs rw setenv owrt_mtdparts mtdparts=orion_nand:0x80000@0x0(uboot),0x20000@0x80000(uboot_env),0x200000@0x200000(kernel),-@0x400000(root) setenv owrt_boot nand read.e \${loadaddr} 0x200000 0x200000 \; setenv bootargs \$(console) \$(owrt_mtdparts) \${owrt_bootargs_root} \; bootm \${loadaddr} setenv bootcmd run owrt_boot saveenv --- Signed-off-by: Luka Perkov git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40871 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/kirkwood/base-files/etc/uci-defaults/01_leds | 6 +++++- target/linux/kirkwood/base-files/etc/uci-defaults/02_network | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'target/linux/kirkwood/base-files/etc/uci-defaults') diff --git a/target/linux/kirkwood/base-files/etc/uci-defaults/01_leds b/target/linux/kirkwood/base-files/etc/uci-defaults/01_leds index 1600464da4..1e7e064085 100644 --- a/target/linux/kirkwood/base-files/etc/uci-defaults/01_leds +++ b/target/linux/kirkwood/base-files/etc/uci-defaults/01_leds @@ -1,6 +1,6 @@ #!/bin/sh # -# Copyright (C) 2012-2013 OpenWrt.org +# Copyright (C) 2012-2014 OpenWrt.org # . /lib/functions/uci-defaults.sh @@ -14,6 +14,10 @@ case "`cat /proc/device-tree/model`" in ucidef_set_led_default "health" "status:green:health" "1" ucidef_set_led_default "fault" "status:orange:fault" "1" ;; +"Linksys EA4500") + ucidef_set_led_default "health" "ea4500:white:health" "1" + ucidef_set_led_default "pulse" "ea4500:white:pulse" "1" + ;; *) ;; esac diff --git a/target/linux/kirkwood/base-files/etc/uci-defaults/02_network b/target/linux/kirkwood/base-files/etc/uci-defaults/02_network index c6ceff78c9..0c55cbfd28 100644 --- a/target/linux/kirkwood/base-files/etc/uci-defaults/02_network +++ b/target/linux/kirkwood/base-files/etc/uci-defaults/02_network @@ -1,6 +1,6 @@ #!/bin/sh # -# Copyright (C) 2012-2013 OpenWrt.org +# Copyright (C) 2012-2014 OpenWrt.org # [ -e /etc/config/network ] && exit 0 @@ -37,6 +37,9 @@ case "`cat /proc/device-tree/model`" in "Cloud Engines Pogoplug E02") set_lan_dhcp "eth0" ;; +"Linksys EA4500") + ucidef_set_interfaces_lan_wan "eth0" "eth1" + ;; *) ucidef_set_interface_lan "eth0" ;; -- cgit v1.2.3