diff options
author | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2014-01-12 12:07:40 +0000 |
---|---|---|
committer | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2014-01-12 12:07:40 +0000 |
commit | e5f4725b2121ad70d9692fa29f0e322d6389c6ad (patch) | |
tree | ec09fd4adb91f493fdd74188a6bdf81260e8e426 /target/linux/ramips/base-files | |
parent | 85eda14128b823077976bc3e840aaf1d9543311b (diff) |
ralink: add HLK-RM04 support
https://github.com/JiapengLi/OpenWrt-HiLink-HLK-RM04
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39237 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/base-files')
7 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index a236fdf921..1d8bef1603 100755 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -51,6 +51,9 @@ get_status_led() { rt-n13u) status_led="rt-n13u:power" ;; + hlk-rm04) + status_led="hlk-rm04:red:power" + ;; all0239-3g|\ hw550-3g) status_led="hw550-3g:green:status" 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 d3e0242355..4b13c18c95 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 @@ -81,6 +81,7 @@ case "$FIRMWARE" in fonera20n | \ rt-n13u | \ freestation5 | \ + hlk-rm04 | \ hw550-3g | \ mofi3500-3gn | \ mpr-a1 | \ 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 fe22875596..0c54cdefb1 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ramips/base-files/etc/uci-defaults/01_leds @@ -93,6 +93,9 @@ case $board in set_usb_led "fonera20n:orange:usb" set_wifi_led "fonera20n:orange:wifi" ;; + hlk-rm04) + set_wifi_led "rt2800pci-phy0::radio" + ;; all0239-3g|\ hw550-3g) set_usb_led "hw550-3g:green:usb" 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 a9914fdb87..7c14ad3a24 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/02_network +++ b/target/linux/ramips/base-files/etc/uci-defaults/02_network @@ -75,6 +75,7 @@ ramips_setup_interfaces() dir-300-b7 | \ dir-320-b1 | \ dir-615-h1 | \ + hlk-rm04 | \ mzk-w300nh2) ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" ucidef_add_switch "switch0" "1" "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 0c4ee13930..96665bdf7f 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 @@ -27,6 +27,7 @@ preinit_set_mac_address() { dir-620-a1 |\ esr-9753 |\ freestation5 |\ + hlk-rm04 | \ mpr-a1 | \ mpr-a2 | \ dir-300-b7 | \ diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index d62002ea7c..24aad1f174 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -136,6 +136,9 @@ ramips_board_detect() { *"MoFi Network MOFI3500-3GN") name="mofi3500-3gn" ;; + *"HILINK HLK-RM04") + name="hlk-rm04" + ;; *"HAME MPR-A1") name="mpr-a1" ;; diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index babeaf2180..0230a1829b 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -48,6 +48,7 @@ platform_check_image() { freestation5 | \ hw550-3g | \ hg255d | \ + hlk-rm04 | \ ip2202 | \ m3 | \ m4 | \ |