0047-ar71xx-add-user-space-support-for-the-OpenMesh-MR1750-board.patch 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. From: Sven Eckelmann <sven.eckelmann@open-mesh.com>
  2. Date: Mon, 14 Sep 2015 20:11:01 +0000
  3. Subject: ar71xx: add user-space support for the OpenMesh MR1750 board
  4. Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
  5. Backport of r46927
  6. Forwarded: https://patchwork.ozlabs.org/patch/624174/
  7. diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
  8. index 775aac6..44d2ddf 100644
  9. --- a/target/linux/ar71xx/base-files/etc/diag.sh
  10. +++ b/target/linux/ar71xx/base-files/etc/diag.sh
  11. @@ -143,6 +143,9 @@ get_status_led() {
  12. mr600v2)
  13. status_led="mr600:blue:power"
  14. ;;
  15. + mr1750)
  16. + status_led="mr1750:blue:power"
  17. + ;;
  18. mr900 | \
  19. mr900v2)
  20. status_led="mr900:blue:power"
  21. diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
  22. index a4b355a..c451124 100644
  23. --- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
  24. +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
  25. @@ -239,6 +239,12 @@ mr600)
  26. ucidef_set_led_wlan "wlan58" "WLAN58" "mr600:green:wlan58" "phy0tpt"
  27. ;;
  28. +mr1750)
  29. + ucidef_set_led_netdev "lan" "LAN" "mr1750:blue:wan" "eth0"
  30. + ucidef_set_led_wlan "wlan58" "WLAN58" "mr1750:blue:wlan58" "phy0tpt"
  31. + ucidef_set_led_wlan "wlan24" "WLAN24" "mr1750:blue:wlan24" "phy1tpt"
  32. + ;;
  33. +
  34. mr900 | \
  35. mr900v2)
  36. ucidef_set_led_netdev "lan" "LAN" "mr900:blue:wan" "eth0"
  37. diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
  38. index 0a23756..4066506 100755
  39. --- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
  40. +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
  41. @@ -334,6 +334,7 @@ eap300v2 |\
  42. eap7660d |\
  43. el-mini |\
  44. loco-m-xw |\
  45. +mr1750 |\
  46. mr600 |\
  47. mr600v2 |\
  48. mr900 |\
  49. diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
  50. index 7fc951a..587d029 100755
  51. --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
  52. +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
  53. @@ -562,6 +562,9 @@ ar71xx_board_detect() {
  54. *MR600v2)
  55. name="mr600v2"
  56. ;;
  57. + *MR1750)
  58. + name="mr1750"
  59. + ;;
  60. *MR600)
  61. name="mr600"
  62. ;;