0040-ar71xx-Rename-unifiac-to-unifiac-lite.patch 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Fri, 13 May 2016 21:24:44 +0200
  3. Subject: ar71xx: Rename unifiac to unifiac-lite
  4. To avoid confusion with different unifiac devices, rename existing target
  5. "unifiac" to "unifiac-lite", before "unifiac-pro" is introduced.
  6. Signed-off-by: P.Wassi <p.wassi at gmx.at>
  7. Backport of LEDE c855e70491fbd5d432915c4cbeb3b80f3a117e30
  8. diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
  9. index 3adc449b23e9c590d57cdd914b6c8d990a50e0b0..924c1163e26eb84b71e4734b95221104674bfe3e 100644
  10. --- a/target/linux/ar71xx/base-files/etc/diag.sh
  11. +++ b/target/linux/ar71xx/base-files/etc/diag.sh
  12. @@ -310,7 +310,7 @@ get_status_led() {
  13. status_led="ubnt:green:dome"
  14. ;;
  15. uap-pro | \
  16. - unifiac)
  17. + unifiac-lite)
  18. status_led="ubnt:white:dome"
  19. ;;
  20. unifi-outdoor-plus)
  21. diff --git a/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
  22. index ab7d93c693f8422bbb518c6accd4ffed169398cd..7777734ae3899840c1c47e7b24373b4bceee0adc 100644
  23. --- a/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
  24. +++ b/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
  25. @@ -81,7 +81,7 @@ case "$FIRMWARE" in
  26. ath10kcal_extract "ART" 20480 2116
  27. ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth0/address) +16)
  28. ;;
  29. - unifiac)
  30. + unifiac-lite)
  31. ath10kcal_extract "EEPROM" 20480 2116
  32. ;;
  33. esac
  34. diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
  35. index a79376a8cff56b144268130a24a930ff2bee95cd..20070426fd033e4ff2e904f9247deed9eb48c3c3 100755
  36. --- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
  37. +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
  38. @@ -369,7 +369,7 @@ tl-wa901nd-v3 |\
  39. tl-wa901nd-v4 |\
  40. tl-wr703n |\
  41. tube2h |\
  42. -unifiac |\
  43. +unifiac-lite |\
  44. wndap360 |\
  45. mynet-rext |\
  46. wp543)
  47. diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
  48. index 0fd139c88e223feada2ad67645cf4d76146ad4dd..a8d889662c95aa87a262cb43efe2f70a0f211b76 100755
  49. --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
  50. +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
  51. @@ -902,8 +902,8 @@ ar71xx_board_detect() {
  52. *UniFi)
  53. name="unifi"
  54. ;;
  55. - *"UniFi-AC")
  56. - name="unifiac"
  57. + *"UniFi-AC-LITE")
  58. + name="unifiac-lite"
  59. ;;
  60. *"UniFi AP Pro")
  61. name="uap-pro"
  62. diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
  63. index fff1c3c912cee678ea88e225958b28ceb4c4b742..90f961f3f0aaf3c76a0a8022258fbf5404165ca8 100755
  64. --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
  65. +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
  66. @@ -252,7 +252,7 @@ platform_check_image() {
  67. wlae-ag300n | \
  68. nbg460n_550n_550nh | \
  69. unifi | \
  70. - unifiac | \
  71. + unifiac-lite | \
  72. unifi-outdoor | \
  73. carambola2 | \
  74. weio )
  75. diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-ubnt-unifiac.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-ubnt-unifiac.c
  76. index 072cf12a31a0921a8e9b90689864f5d981cd2c32..31cbe30d3ff9b323cb336c62d6fe0d7a0c67ba42 100644
  77. --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-ubnt-unifiac.c
  78. +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-ubnt-unifiac.c
  79. @@ -73,7 +73,7 @@ static struct gpio_keys_button ubnt_unifiac_gpio_keys[] __initdata = {
  80. }
  81. };
  82. -static void __init ubnt_unifiac_setup(void)
  83. +static void __init ubnt_unifiac_lite_setup(void)
  84. {
  85. u8 *eeprom = (u8 *) KSEG1ADDR(0x1fff0000);
  86. @@ -81,7 +81,7 @@ static void __init ubnt_unifiac_setup(void)
  87. ath79_init_mac(ath79_eth0_data.mac_addr,
  88. - eeprom + UNIFIAC_MAC0_OFFSET, 0);
  89. + eeprom + UNIFIAC_MAC0_OFFSET, 0);
  90. ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_SGMII;
  91. ath79_eth0_data.mii_bus_dev = &ath79_mdio0_device.dev;
  92. @@ -99,12 +99,12 @@ static void __init ubnt_unifiac_setup(void)
  93. ath79_register_leds_gpio(-1, ARRAY_SIZE(ubnt_unifiac_leds_gpio),
  94. - ubnt_unifiac_leds_gpio);
  95. + ubnt_unifiac_leds_gpio);
  96. ath79_register_gpio_keys_polled(-1, UNIFIAC_KEYS_POLL_INTERVAL,
  97. - ARRAY_SIZE(ubnt_unifiac_gpio_keys),
  98. - ubnt_unifiac_gpio_keys);
  99. + ARRAY_SIZE(ubnt_unifiac_gpio_keys),
  100. + ubnt_unifiac_gpio_keys);
  101. }
  102. -MIPS_MACHINE(ATH79_MACH_UBNT_UNIFIAC, "UBNT-UF-AC", "Ubiquiti UniFi-AC",
  103. - ubnt_unifiac_setup);
  104. +MIPS_MACHINE(ATH79_MACH_UBNT_UNIFIAC_LITE, "UBNT-UF-AC-LITE", "Ubiquiti UniFi-AC-LITE",
  105. + ubnt_unifiac_lite_setup);
  106. diff --git a/target/linux/ar71xx/generic/profiles/ubnt.mk b/target/linux/ar71xx/generic/profiles/ubnt.mk
  107. index 94eff18318264de85ea459e94280c88726404888..eac02406bbbffebbcb20962929fb8254edba520e 100644
  108. --- a/target/linux/ar71xx/generic/profiles/ubnt.mk
  109. +++ b/target/linux/ar71xx/generic/profiles/ubnt.mk
  110. @@ -38,16 +38,16 @@ endef
  111. $(eval $(call Profile,UBNTUNIFI))
  112. -define Profile/UBNTUNIFIAC
  113. - NAME:=Ubiquiti UniFi AP AC
  114. +define Profile/UBNTUNIFIACLITE
  115. + NAME:=Ubiquiti UniFi AP AC LITE/LR
  116. PACKAGES:=kmod-ath10k ath10k-firmware-qca988x
  117. endef
  118. -define Profile/UBNTUNIFIAC/Description
  119. - Package set optimized for the Ubiquiti UniFi AP AC.
  120. +define Profile/UBNTUNIFIACLITE/Description
  121. + Package set optimized for the Ubiquiti UniFi AP AC LITE/LR.
  122. endef
  123. -$(eval $(call Profile,UBNTUNIFIAC))
  124. +$(eval $(call Profile,UBNTUNIFIACLITE))
  125. define Profile/UBNTUNIFIOUTDOOR
  126. NAME:=Ubiquiti UniFiAP Outdoor
  127. diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile
  128. index aaaf89ac1a369431cf9bc15c13e774ba6826bbf3..42ffc69ca3f9b1cffa542fc2d06ead2ef224d6b2 100644
  129. --- a/target/linux/ar71xx/image/Makefile
  130. +++ b/target/linux/ar71xx/image/Makefile
  131. @@ -741,14 +741,19 @@ endef
  132. TARGET_DEVICES += oolite
  133. define Device/ubnt-unifiac
  134. - DEVICE_PROFILE := UBNT UBNTUNIFIAC
  135. + DEVICE_PROFILE := UBNT
  136. IMAGE_SIZE := 7744k
  137. MTDPARTS = spi0.0:384k(u-boot)ro,64k(u-boot-env)ro,7744k(firmware),7744k(ubnt-airos)ro,128k(bs)ro,256k(cfg)ro,64k(EEPROM)ro
  138. IMAGES := sysupgrade.bin
  139. IMAGE/sysupgrade.bin = append-kernel $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)
  140. - BOARDNAME := UBNT-UF-AC
  141. endef
  142. -TARGET_DEVICES += ubnt-unifiac
  143. +
  144. +define Device/ubnt-unifiac-lite
  145. + $(Device/ubnt-unifiac)
  146. + DEVICE_PROFILE := UBNT UBNTUNIFIACLITE
  147. + BOARDNAME := UBNT-UF-AC-LITE
  148. +endef
  149. +TARGET_DEVICES += ubnt-unifiac-lite
  150. rootfs_type=$(patsubst jffs2-%,jffs2,$(patsubst squashfs-%,squashfs,$(1)))
  151. diff --git a/target/linux/ar71xx/patches-3.18/610-MIPS-ath79-openwrt-machines.patch b/target/linux/ar71xx/patches-3.18/610-MIPS-ath79-openwrt-machines.patch
  152. index 27dc73ffa239979a799bbede72440907e9d0e187..9a28f58f67d5f98fcd4aa83dc09698705e2dfa3e 100644
  153. --- a/target/linux/ar71xx/patches-3.18/610-MIPS-ath79-openwrt-machines.patch
  154. +++ b/target/linux/ar71xx/patches-3.18/610-MIPS-ath79-openwrt-machines.patch
  155. @@ -165,7 +165,7 @@
  156. + ATH79_MACH_UBNT_RS, /* Ubiquiti RouterStation */
  157. ATH79_MACH_UBNT_UAP_PRO, /* Ubiquiti UniFi AP Pro */
  158. ATH79_MACH_UBNT_UNIFI, /* Ubiquiti Unifi */
  159. -+ ATH79_MACH_UBNT_UNIFIAC, /* Ubiquiti Unifi AC */
  160. ++ ATH79_MACH_UBNT_UNIFIAC_LITE, /* Ubiquiti Unifi AC LITE/LR */
  161. ATH79_MACH_UBNT_UNIFI_OUTDOOR, /* Ubiquiti UnifiAP Outdoor */
  162. + ATH79_MACH_UBNT_UNIFI_OUTDOOR_PLUS, /* Ubiquiti UnifiAP Outdoor+ */
  163. ATH79_MACH_UBNT_XM, /* Ubiquiti Networks XM board rev 1.0 */
  164. @@ -1369,7 +1369,7 @@
  165. Ubiquiti Networks XM (rev 1.0) board.
  166. +config ATH79_MACH_UBNT_UNIFIAC
  167. -+ bool "Ubiquiti UniFi AC (LITE) support"
  168. ++ bool "Ubiquiti UniFi AC (LITE/LR) support"
  169. + select SOC_QCA956X
  170. + select ATH79_DEV_AP9X_PCI if PCI
  171. + select ATH79_DEV_ETH