diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-02-02 17:21:05 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2013-02-02 17:21:05 +0000 |
commit | 22e7a34e5015ce14f6646e6a0b8c8aefa4b42230 (patch) | |
tree | 986bf2383507aeace34bfee6db3203aed705d8ce | |
parent | 85dcbdd9c112f8b34489ee8df56860e666dc907f (diff) | |
download | master-187ad058-22e7a34e5015ce14f6646e6a0b8c8aefa4b42230.tar.gz master-187ad058-22e7a34e5015ce14f6646e6a0b8c8aefa4b42230.tar.bz2 master-187ad058-22e7a34e5015ce14f6646e6a0b8c8aefa4b42230.zip |
ramips: add user-space support for the Omnima EMB HPM board
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35467 3c298f89-4303-0410-b956-a3cf2f4a3e73
7 files changed, 18 insertions, 1 deletions
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index 8702a2defb..eaa28e190a 100755 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -79,7 +79,8 @@ get_status_led() { nw718) status_led="nw718:amber:cpu" ;; - omni-emb) + omni-emb|\ + omni-emb-hpm) status_led="emb:green:status" ;; psr-680w) diff --git a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom index 9ff58f1b8b..43121e19b1 100644 --- a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom +++ b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom @@ -75,6 +75,7 @@ case "$FIRMWARE" in nbg-419n | \ nw718 | \ omni-emb | \ + omni-emb-hpm | \ psr-680w | \ rt-n15 | \ rt-n56u | \ diff --git a/target/linux/ramips/base-files/etc/uci-defaults/01_leds b/target/linux/ramips/base-files/etc/uci-defaults/01_leds index f582e5cddf..104f201fb9 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ramips/base-files/etc/uci-defaults/01_leds @@ -84,6 +84,11 @@ case $board in nw718) set_usb_led "nw718:amber:usb" ;; + omni-emb-hpm) + ucidef_set_led_default "power" "POWER" "emb:orange:power" "1" + ucidef_set_led_netdev "eth" "ETH" "emb:green:eth" "eth0" + set_wifi_led "emb:green:wifi" + ;; sl-r7205) set_wifi_led "rt2800pci-phy0::radio" ;; diff --git a/target/linux/ramips/base-files/etc/uci-defaults/02_network b/target/linux/ramips/base-files/etc/uci-defaults/02_network index cc5b8c2be2..b6fff7a2cc 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/02_network +++ b/target/linux/ramips/base-files/etc/uci-defaults/02_network @@ -122,6 +122,7 @@ ramips_setup_interfaces() ucidef_set_interfaces_lan_wan "eth0.2" "eth0.1" ;; + omni-emb-hpm|\ wli-tx4-ag300n) ucidef_set_interface_lan "eth0" ;; @@ -208,6 +209,10 @@ ramips_setup_macs() wan_mac=$(ramips_get_mac_binary factory 40) ;; + omni-emb-hpm) + lan_mac=$(ramips_get_mac_binary factory 40) + ;; + f5d8235-v2) lan_mac=$(ramips_get_mac_binary "u-boot" 262148) wan_mac=$(/usr/sbin/maccalc add "$lan_mac" 1) diff --git a/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac b/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac index 8f9f83583f..247b5531b4 100644 --- a/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac +++ b/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac @@ -54,6 +54,7 @@ preinit_set_mac_address() { hw550-3g |\ nbg-419n |\ omni-emb |\ + omni-emb-hpm |\ tew-691gr |\ tew-692gr |\ w306r-v20 |\ diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index 3f06da3693..b8b735fd62 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -140,6 +140,9 @@ ramips_board_name() { *"NW718") name="nw718" ;; + *"Omnima EMB HPM") + name="omni-emb-hpm" + ;; *"Omnima MiniEMBWiFi") name="omni-emb" ;; diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index 0ddf2df444..1b358c12ed 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -40,6 +40,7 @@ platform_check_image() { nbg-419n | \ nw718 | \ omni-emb | \ + omni-emb-hpm | \ psr-680w | \ rt-g32-b1 | \ rt-n10-plus | \ |