ramips: add user-space support for the Omnima EMB HPM board
authorGabor Juhos <juhosg@openwrt.org>
Sat, 2 Feb 2013 17:21:05 +0000 (17:21 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sat, 2 Feb 2013 17:21:05 +0000 (17:21 +0000)
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 35467

target/linux/ramips/base-files/etc/diag.sh
target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
target/linux/ramips/base-files/etc/uci-defaults/01_leds
target/linux/ramips/base-files/etc/uci-defaults/02_network
target/linux/ramips/base-files/lib/preinit/06_set_iface_mac
target/linux/ramips/base-files/lib/ramips.sh
target/linux/ramips/base-files/lib/upgrade/platform.sh

index 8702a2defbf0d834ba5661b192f866b7eb9ee632..eaa28e190ac8315a2db09c6bb04c08583764d5f6 100755 (executable)
@@ -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)
index 9ff58f1b8b4bb091c454cf43e9655901c255ee48..43121e19b136c18da767990509ff4c0fbddca167 100644 (file)
@@ -75,6 +75,7 @@ case "$FIRMWARE" in
        nbg-419n | \
        nw718 | \
        omni-emb | \
+       omni-emb-hpm | \
        psr-680w | \
        rt-n15 | \
        rt-n56u | \
index f582e5cddfe22e2d1cff3b0f696681e64aebeca2..104f201fb9f64ea956be5e78f6424187fa719141 100755 (executable)
@@ -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"
                ;;
index cc5b8c2be2d3d419d0bd6831c6182ede6c7b92c9..b6fff7a2ccaac48e76c8c0eb5e739d53d9b40a37 100755 (executable)
@@ -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)
index 8f9f83583f63b2d82a1b5f0026ac839e7ddf1075..247b5531b4e7f92d91fe5060855b1c5bd257af17 100644 (file)
@@ -54,6 +54,7 @@ preinit_set_mac_address() {
        hw550-3g |\
        nbg-419n |\
        omni-emb |\
+       omni-emb-hpm |\
        tew-691gr |\
        tew-692gr |\
        w306r-v20 |\
index 3f06da36931b064077de4b5ecdc1128c542c2928..b8b735fd62affa8c084b06b38bf2a8ee5a7ba462 100755 (executable)
@@ -140,6 +140,9 @@ ramips_board_name() {
        *"NW718")
                name="nw718"
                ;;
+       *"Omnima EMB HPM")
+               name="omni-emb-hpm"
+               ;;
        *"Omnima MiniEMBWiFi")
                name="omni-emb"
                ;;
index 0ddf2df444a6a541e8650b93d31fb383fd346403..1b358c12ed0b2e6a3907b8fecfc631c5a534a7bc 100755 (executable)
@@ -40,6 +40,7 @@ platform_check_image() {
        nbg-419n | \
        nw718 | \
        omni-emb | \
+       omni-emb-hpm | \
        psr-680w | \
        rt-g32-b1 | \
        rt-n10-plus | \