0098-ar71xx-add-user-space-support-for-the-OpenMesh-MR1750v2.patch 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. From: Sven Eckelmann <sven.eckelmann@open-mesh.com>
  2. Date: Fri, 20 May 2016 18:03:55 +0200
  3. Subject: ar71xx: add user-space support for the OpenMesh MR1750v2
  4. Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
  5. Forwarded: https://patchwork.ozlabs.org/patch/637059/
  6. diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
  7. index aa02212..f182d60 100644
  8. --- a/target/linux/ar71xx/base-files/etc/diag.sh
  9. +++ b/target/linux/ar71xx/base-files/etc/diag.sh
  10. @@ -143,7 +143,8 @@ get_status_led() {
  11. mr600v2)
  12. status_led="mr600:blue:power"
  13. ;;
  14. - mr1750)
  15. + mr1750 | \
  16. + mr1750v2)
  17. status_led="mr1750:blue:power"
  18. ;;
  19. mr900 | \
  20. diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
  21. index 5767f48..032acc9 100644
  22. --- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
  23. +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
  24. @@ -243,7 +243,8 @@ mr600)
  25. ucidef_set_led_wlan "wlan58" "WLAN58" "mr600:green:wlan58" "phy0tpt"
  26. ;;
  27. -mr1750)
  28. +mr1750 | \
  29. +mr1750v2)
  30. ucidef_set_led_netdev "lan" "LAN" "mr1750:blue:wan" "eth0"
  31. ucidef_set_led_wlan "wlan58" "WLAN58" "mr1750:blue:wlan58" "phy0tpt"
  32. ucidef_set_led_wlan "wlan24" "WLAN24" "mr1750:blue:wlan24" "phy1tpt"
  33. diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
  34. index 89a2184..b8ae576 100755
  35. --- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
  36. +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
  37. @@ -335,6 +335,7 @@ eap7660d |\
  38. el-mini |\
  39. loco-m-xw |\
  40. mr1750 |\
  41. +mr1750v2 |\
  42. mr600 |\
  43. mr600v2 |\
  44. mr900 |\
  45. diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
  46. index dc51b03..5119b36 100755
  47. --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
  48. +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
  49. @@ -568,6 +568,9 @@ ar71xx_board_detect() {
  50. *MR1750)
  51. name="mr1750"
  52. ;;
  53. + *MR1750v2)
  54. + name="mr1750v2"
  55. + ;;
  56. *MR600)
  57. name="mr600"
  58. ;;