k3.patch 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. --- a/target/linux/bcm53xx/image/Makefile
  2. +++ b/target/linux/bcm53xx/image/Makefile
  3. @@ -143,30 +143,6 @@ define Device/asus
  4. IMAGE/trx := append-ubi | trx-nand | asus-trx
  5. endef
  6. -define Device/asus_rt-ac56u
  7. - $(call Device/asus)
  8. - DEVICE_MODEL := RT-AC56U
  9. - DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
  10. - ASUS_PRODUCTID := RT-AC56U
  11. -endef
  12. -TARGET_DEVICES += asus_rt-ac56u
  13. -
  14. -define Device/asus_rt-ac68u
  15. - $(call Device/asus)
  16. - DEVICE_MODEL := RT-AC68U
  17. - DEVICE_PACKAGES := $(USB3_PACKAGES)
  18. - ASUS_PRODUCTID := RT-AC68U
  19. -endef
  20. -TARGET_DEVICES += asus_rt-ac68u
  21. -
  22. -define Device/asus_rt-ac87u
  23. - $(call Device/asus)
  24. - DEVICE_MODEL := RT-AC87U
  25. - DEVICE_PACKAGES := $(USB3_PACKAGES)
  26. - ASUS_PRODUCTID := RT-AC87U
  27. -endef
  28. -TARGET_DEVICES += asus_rt-ac87u
  29. -
  30. define Device/asus_rt-ac88u
  31. $(call Device/asus)
  32. DEVICE_MODEL := RT-AC88U
  33. @@ -175,288 +151,12 @@ define Device/asus_rt-ac88u
  34. endef
  35. TARGET_DEVICES += asus_rt-ac88u
  36. -define Device/asus_rt-n18u
  37. - $(call Device/asus)
  38. - DEVICE_MODEL := RT-N18U
  39. - DEVICE_PACKAGES := $(USB3_PACKAGES)
  40. - ASUS_PRODUCTID := RT-N18U
  41. -endef
  42. -TARGET_DEVICES += asus_rt-n18u
  43. -
  44. -# Buffalo devices have TFTP recovery mode which can work nicely with initramfs
  45. -# kernels.
  46. -# We should have two initramfs images for Buffalo: plain initramfs kernel and
  47. -# TRX with initramfs kernel. It's not possible right now so let's just build
  48. -# plain initramfs kernel as it may be more useful.
  49. -define Device/buffalo/Default
  50. - DEVICE_VENDOR := Buffalo
  51. - KERNEL_INITRAMFS_SUFFIX = $$(KERNEL_SUFFIX)
  52. - KERNEL_INITRAMFS = $$(KERNEL)
  53. -endef
  54. -
  55. -define Device/buffalo_wxr-1900dhp
  56. - $(call Device/buffalo/Default)
  57. - DEVICE_MODEL := WXR-1900DHP
  58. - DEVICE_PACKAGES := $(USB3_PACKAGES)
  59. -endef
  60. -TARGET_DEVICES += buffalo_wxr-1900dhp
  61. -
  62. -define Device/buffalo_wzr-600dhp2
  63. - $(call Device/buffalo/Default)
  64. - DEVICE_MODEL := WZR-600DHP2
  65. - DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
  66. -endef
  67. -TARGET_DEVICES += buffalo_wzr-600dhp2
  68. -
  69. -define Device/buffalo_wzr-900dhp
  70. - $(call Device/buffalo/Default)
  71. - DEVICE_MODEL := WZR-900DHP
  72. - DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
  73. - BUFFALO_TAG_PLATFORM := bcm
  74. - BUFFALO_TAG_VERSION := 9.99
  75. - BUFFALO_TAG_MINOR := 9.99
  76. - IMAGES += factory-DHP-EU.bin factory-DHP2-JP.bin
  77. - IMAGE/factory-DHP-EU.bin := \
  78. - append-ubi | trx-nand | buffalo-wzr-header WZR-900DHP EU | \
  79. - buffalo-enc WZR-900DHP $$(BUFFALO_TAG_VERSION) | \
  80. - buffalo-tag-dhp WZR-900DHP EU mlang20 | buffalo-enc-tag | \
  81. - buffalo-dhp-image
  82. - IMAGE/factory-DHP2-JP.bin := \
  83. - append-ubi | trx-nand | buffalo-wzr-header WZR-900DHP2 JP | \
  84. - buffalo-enc WZR-900DHP2 $$(BUFFALO_TAG_VERSION) | \
  85. - buffalo-tag-dhp WZR-900DHP2 JP jp | buffalo-enc-tag | \
  86. - buffalo-dhp-image
  87. - BROKEN := y
  88. -endef
  89. -TARGET_DEVICES += buffalo_wzr-900dhp
  90. -
  91. -define Device/buffalo_wzr-1750dhp
  92. - $(call Device/buffalo/Default)
  93. - DEVICE_MODEL := WZR-1750DHP
  94. - DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
  95. -endef
  96. -TARGET_DEVICES += buffalo_wzr-1750dhp
  97. -
  98. -define Device/dlink
  99. - DEVICE_VENDOR := D-Link
  100. - IMAGES := bin
  101. - IMAGE/bin := append-ubi | seama-nand
  102. -endef
  103. -
  104. -define Device/dlink_dir-885l
  105. - DEVICE_MODEL := DIR-885L
  106. - DEVICE_PACKAGES := $(BRCMFMAC_4366B1) $(USB3_PACKAGES)
  107. - $(Device/dlink)
  108. - SIGNATURE := wrgac42_dlink.2015_dir885l
  109. -endef
  110. -TARGET_DEVICES += dlink_dir-885l
  111. -
  112. -define Device/linksys_ea6300-v1
  113. - DEVICE_VENDOR := Linksys
  114. - DEVICE_MODEL := EA6300
  115. - DEVICE_VARIANT := v1
  116. - DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
  117. -endef
  118. -TARGET_DEVICES += linksys_ea6300-v1
  119. -
  120. -define Device/linksys_ea6500-v2
  121. - DEVICE_VENDOR := Linksys
  122. - DEVICE_MODEL := EA6500
  123. - DEVICE_VARIANT := v2
  124. - DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
  125. -endef
  126. -TARGET_DEVICES += linksys_ea6500-v2
  127. -
  128. -define Device/linksys_ea9200
  129. - DEVICE_VENDOR := Linksys
  130. - DEVICE_MODEL := EA9200
  131. - DEVICE_VARIANT := v1
  132. - DEVICE_PACKAGES := $(BRCMFMAC_43602A1) $(USB3_PACKAGES)
  133. -endef
  134. -TARGET_DEVICES += linksys_ea9200
  135. -
  136. -define Device/linksys_ea9500
  137. - DEVICE_VENDOR := Linksys
  138. - DEVICE_MODEL := EA9500
  139. - DEVICE_PACKAGES := $(BRCMFMAC_4366C0) $(USB3_PACKAGES)
  140. - DEVICE_DTS := bcm47094-linksys-panamera
  141. -endef
  142. -TARGET_DEVICES += linksys_ea9500
  143. -
  144. -define Device/luxul
  145. - DEVICE_VENDOR := Luxul
  146. - IMAGES := lxl
  147. - IMAGE/lxl := append-ubi | trx-nand | luxul-lxl
  148. -endef
  149. -
  150. -define Device/luxul_abr-4500
  151. - $(Device/luxul)
  152. - DEVICE_MODEL := ABR-4500
  153. - DEVICE_PACKAGES := $(USB3_PACKAGES)
  154. - LUXUL_BOARD := ABR-4500
  155. -endef
  156. -TARGET_DEVICES += luxul_abr-4500
  157. -
  158. -define Device/luxul_xap-1610
  159. - $(Device/luxul)
  160. - DEVICE_MODEL := XAP-1610
  161. - DEVICE_PACKAGES := $(BRCMFMAC_4366C0)
  162. - IMAGE/lxl := append-rootfs | trx-serial | luxul-lxl
  163. - LUXUL_BOARD := XAP-1610
  164. -endef
  165. -TARGET_DEVICES += luxul_xap-1610
  166. -
  167. -define Device/luxul_xbr-4500
  168. - $(Device/luxul)
  169. - DEVICE_MODEL := XBR-4500
  170. - DEVICE_PACKAGES := $(USB3_PACKAGES)
  171. - LUXUL_BOARD := XBR-4500
  172. -endef
  173. -TARGET_DEVICES += luxul_xbr-4500
  174. -
  175. -define Device/luxul_xwr-3150
  176. - $(Device/luxul)
  177. - DEVICE_MODEL := XWR-3150
  178. - DEVICE_PACKAGES := $(BRCMFMAC_4366C0) $(USB3_PACKAGES)
  179. - DEVICE_DTS := bcm47094-luxul-xwr-3150-v1
  180. - LUXUL_BOARD := XWR-3150
  181. -endef
  182. -TARGET_DEVICES += luxul_xwr-3150
  183. -
  184. -define Device/meraki_mr32
  185. - DEVICE_VENDOR := Meraki
  186. - DEVICE_MODEL := MR32
  187. - DEVICE_PACKAGES := $(B43) kmod-i2c-bcm-iproc kmod-eeprom-at24 \
  188. - kmod-leds-pwm kmod-hwmon-ina2xx kmod-bluetooth
  189. - DEVICE_DTS := bcm53016-meraki-mr32
  190. -# Meraki FW r23 tries to resize the part.safe partition before it will
  191. -# flash the image. This is a bit of a problem, since resizing will fail
  192. -# if the partition is smaller than the old one.
  193. - KERNEL_LOADADDR := 0x00008000
  194. - KERNEL_INITRAMFS_SUFFIX := .bin
  195. - DEVICE_DTS_DELIMITER := @
  196. - DEVICE_DTS_CONFIG := config@1
  197. - KERNEL_INITRAMFS := kernel-bin | fit none $$(DTS_DIR)/$$(DEVICE_DTS).dtb | \
  198. - pad-to 10362880
  199. - KERNEL := kernel-bin | fit none $$(DTS_DIR)/$$(DEVICE_DTS).dtb
  200. - IMAGES += sysupgrade.bin
  201. -# Currently the only device that uses the new image check
  202. - IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
  203. -
  204. -# The loader is specifically looking for fdt@2:
  205. -# [ 3.190000] find_itb_subimage: error finding fdt@2: FDT_ERR_NOTFOUND
  206. -# The image won't boot, if it isn't found. :(
  207. - DEVICE_FDT_NUM := 2
  208. -endef
  209. -TARGET_DEVICES += meraki_mr32
  210. -
  211. -define Device/netgear
  212. - DEVICE_VENDOR := NETGEAR
  213. - IMAGES := chk
  214. - IMAGE/chk := append-ubi | trx-nand | netgear-chk
  215. - NETGEAR_REGION := 1
  216. -endef
  217. -
  218. -define Device/netgear_r6250
  219. - DEVICE_MODEL := R6250
  220. - DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
  221. - $(Device/netgear)
  222. - NETGEAR_BOARD_ID := U12H245T00_NETGEAR
  223. -endef
  224. -TARGET_DEVICES += netgear_r6250
  225. -
  226. -define Device/netgear_r6300-v2
  227. - DEVICE_MODEL := R6300
  228. - DEVICE_VARIANT := v2
  229. - DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
  230. - $(Device/netgear)
  231. - NETGEAR_BOARD_ID := U12H240T00_NETGEAR
  232. -endef
  233. -TARGET_DEVICES += netgear_r6300-v2
  234. -
  235. -define Device/netgear_r7000
  236. - DEVICE_MODEL := R7000
  237. - DEVICE_PACKAGES := $(USB3_PACKAGES)
  238. - $(Device/netgear)
  239. - NETGEAR_BOARD_ID := U12H270T00_NETGEAR
  240. -endef
  241. -TARGET_DEVICES += netgear_r7000
  242. -
  243. -define Device/netgear_r7900
  244. - DEVICE_MODEL := R7900
  245. - DEVICE_PACKAGES := $(BRCMFMAC_43602A1) $(USB3_PACKAGES)
  246. - $(Device/netgear)
  247. - NETGEAR_BOARD_ID := U12H315T30_NETGEAR
  248. -endef
  249. -TARGET_DEVICES += netgear_r7900
  250. -
  251. -define Device/netgear_r8000
  252. - DEVICE_MODEL := R8000
  253. - DEVICE_PACKAGES := $(BRCMFMAC_43602A1) $(USB3_PACKAGES)
  254. - $(Device/netgear)
  255. - NETGEAR_BOARD_ID := U12H315T00_NETGEAR
  256. -endef
  257. -TARGET_DEVICES += netgear_r8000
  258. -
  259. -define Device/netgear_r8500
  260. - DEVICE_MODEL := R8500
  261. - DEVICE_PACKAGES := $(BRCMFMAC_4366B1) $(USB3_PACKAGES)
  262. - $(Device/netgear)
  263. - NETGEAR_BOARD_ID := U12H334T00_NETGEAR
  264. - DEFAULT := n
  265. -endef
  266. -TARGET_DEVICES += netgear_r8500
  267. -
  268. -define Device/smartrg_sr400ac
  269. - DEVICE_VENDOR := SmartRG
  270. - DEVICE_MODEL := SR400ac
  271. - DEVICE_PACKAGES := $(BRCMFMAC_43602A1) $(USB3_PACKAGES)
  272. - IMAGES := trx
  273. - IMAGE/trx := append-rootfs | trx-serial
  274. - KERNEL_INITRAMFS_SUFFIX := .bin
  275. - KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma-d16
  276. -endef
  277. -TARGET_DEVICES += smartrg_sr400ac
  278. -
  279. define Device/phicomm_k3
  280. DEVICE_VENDOR := PHICOMM
  281. DEVICE_MODEL := K3
  282. - DEVICE_PACKAGES := $(BRCMFMAC_4366C0) $(USB3_PACKAGES)
  283. + DEVICE_PACKAGES := $(IEEE8021X) kmod-brcmfmac k3wifi $(USB3_PACKAGES) luci-app-k3screenctrl
  284. IMAGES := trx
  285. endef
  286. TARGET_DEVICES += phicomm_k3
  287. -define Device/tenda_ac9
  288. - DEVICE_VENDOR := Tenda
  289. - DEVICE_MODEL := AC9
  290. - DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
  291. - IMAGES := trx
  292. - IMAGE/trx := append-rootfs | trx-serial
  293. -endef
  294. -TARGET_DEVICES += tenda_ac9
  295. -
  296. -define Device/tplink_archer-c5-v2
  297. - DEVICE_VENDOR := TP-Link
  298. - DEVICE_MODEL := Archer C5
  299. - DEVICE_VARIANT := v2
  300. - DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
  301. - IMAGES := bin
  302. - IMAGE/bin := append-rootfs | bcm53xx-tplink-safeloader
  303. - TPLINK_BOARD := ARCHER-C5-V2
  304. - BROKEN := y
  305. -endef
  306. -#TARGET_DEVICES += tplink_archer-c5-v2
  307. -
  308. -define Device/tplink_archer-c9-v1
  309. - DEVICE_VENDOR := TP-Link
  310. - DEVICE_MODEL := Archer C9
  311. - DEVICE_VARIANT := v1
  312. - DEVICE_PACKAGES := $(USB3_PACKAGES)
  313. - IMAGES := bin
  314. - IMAGE/bin := append-rootfs | bcm53xx-tplink-safeloader
  315. - TPLINK_BOARD := ARCHERC9
  316. - BROKEN := y
  317. -endef
  318. -#TARGET_DEVICES += tplink_archer-c9-v1
  319. -
  320. $(eval $(call BuildImage))