armv8.mk 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. #
  3. # Copyright (C) 2020 Sarah Maedel
  4. define Device/rk3308
  5. SOC := rk3308
  6. KERNEL_LOADADDR := 0x03000000
  7. endef
  8. define Device/rk3328
  9. SOC := rk3328
  10. KERNEL_LOADADDR := 0x03200000
  11. endef
  12. define Device/rk3399
  13. SOC := rk3399
  14. KERNEL_LOADADDR := 0x03200000
  15. endef
  16. define Device/rk3528
  17. SOC := rk3528
  18. KERNEL_LOADADDR := 0x03000000
  19. endef
  20. define Device/rk3566
  21. SOC := rk3566
  22. KERNEL_LOADADDR := 0x03000000
  23. endef
  24. define Device/rk3568
  25. SOC := rk3568
  26. KERNEL_LOADADDR := 0x03000000
  27. endef
  28. define Device/rk3576
  29. SOC := rk3576
  30. KERNEL_LOADADDR := 0x43000000
  31. endef
  32. define Device/rk3582
  33. SOC := rk3582
  34. KERNEL_LOADADDR := 0x03000000
  35. endef
  36. define Device/rk3588
  37. SOC := rk3588
  38. KERNEL_LOADADDR := 0x03000000
  39. endef
  40. define Device/rk3588s
  41. SOC := rk3588s
  42. KERNEL_LOADADDR := 0x03000000
  43. endef
  44. define Device/armsom_sige7
  45. $(Device/rk3588)
  46. DEVICE_VENDOR := ArmSoM
  47. DEVICE_MODEL := Sige7
  48. DEVICE_ALT0_VENDOR := Bananapi
  49. DEVICE_ALT0_MODEL := BPi-M7
  50. DEVICE_DTS := rk3588-armsom-sige7
  51. DEVICE_PACKAGES := kmod-r8169
  52. endef
  53. TARGET_DEVICES += armsom_sige7
  54. define Device/firefly_roc-rk3328-cc
  55. $(Device/rk3328)
  56. DEVICE_VENDOR := Firefly
  57. DEVICE_MODEL := ROC-RK3328-CC
  58. DEVICE_DTS := rk3328-roc-cc
  59. UBOOT_DEVICE_NAME := roc-cc-rk3328
  60. endef
  61. TARGET_DEVICES += firefly_roc-rk3328-cc
  62. define Device/friendlyarm_nanopc-t4
  63. $(Device/rk3399)
  64. DEVICE_VENDOR := FriendlyARM
  65. DEVICE_MODEL := NanoPC T4
  66. DEVICE_PACKAGES := kmod-brcmfmac brcmfmac-nvram-4356-sdio cypress-firmware-4356-sdio
  67. endef
  68. TARGET_DEVICES += friendlyarm_nanopc-t4
  69. define Device/friendlyarm_nanopc-t6
  70. $(Device/rk3588)
  71. DEVICE_VENDOR := FriendlyARM
  72. DEVICE_MODEL := NanoPC T6
  73. DEVICE_PACKAGES := kmod-r8169
  74. endef
  75. TARGET_DEVICES += friendlyarm_nanopc-t6
  76. define Device/friendlyarm_nanopi-r2c
  77. $(Device/rk3328)
  78. DEVICE_VENDOR := FriendlyARM
  79. DEVICE_MODEL := NanoPi R2C
  80. DEVICE_PACKAGES := kmod-usb-net-rtl8152
  81. endef
  82. TARGET_DEVICES += friendlyarm_nanopi-r2c
  83. define Device/friendlyarm_nanopi-r2c-plus
  84. $(Device/rk3328)
  85. DEVICE_VENDOR := FriendlyARM
  86. DEVICE_MODEL := NanoPi R2C Plus
  87. DEVICE_PACKAGES := kmod-usb-net-rtl8152
  88. endef
  89. TARGET_DEVICES += friendlyarm_nanopi-r2c-plus
  90. define Device/friendlyarm_nanopi-r2s
  91. $(Device/rk3328)
  92. DEVICE_VENDOR := FriendlyARM
  93. DEVICE_MODEL := NanoPi R2S
  94. DEVICE_PACKAGES := kmod-usb-net-rtl8152
  95. endef
  96. TARGET_DEVICES += friendlyarm_nanopi-r2s
  97. define Device/friendlyarm_nanopi-r3s
  98. $(Device/rk3566)
  99. DEVICE_VENDOR := FriendlyARM
  100. DEVICE_MODEL := NanoPi R3S
  101. DEVICE_PACKAGES := kmod-r8169
  102. endef
  103. TARGET_DEVICES += friendlyarm_nanopi-r3s
  104. define Device/friendlyarm_nanopi-r4s
  105. $(Device/rk3399)
  106. DEVICE_VENDOR := FriendlyARM
  107. DEVICE_MODEL := NanoPi R4S
  108. DEVICE_VARIANT := 4GB LPDDR4
  109. DEVICE_PACKAGES := kmod-r8169
  110. endef
  111. TARGET_DEVICES += friendlyarm_nanopi-r4s
  112. define Device/friendlyarm_nanopi-r4s-enterprise
  113. $(Device/rk3399)
  114. DEVICE_VENDOR := FriendlyARM
  115. DEVICE_MODEL := NanoPi R4S Enterprise Edition
  116. DEVICE_VARIANT := 4GB LPDDR4
  117. UBOOT_DEVICE_NAME := nanopi-r4s-rk3399
  118. DEVICE_PACKAGES := kmod-r8169
  119. endef
  120. TARGET_DEVICES += friendlyarm_nanopi-r4s-enterprise
  121. define Device/friendlyarm_nanopi-r5c
  122. $(Device/rk3568)
  123. DEVICE_VENDOR := FriendlyARM
  124. DEVICE_MODEL := NanoPi R5C
  125. DEVICE_PACKAGES := kmod-r8169 kmod-rtw88-8822ce rtl8822ce-firmware wpad-basic-mbedtls
  126. endef
  127. TARGET_DEVICES += friendlyarm_nanopi-r5c
  128. define Device/friendlyarm_nanopi-r5s
  129. $(Device/rk3568)
  130. DEVICE_VENDOR := FriendlyARM
  131. DEVICE_MODEL := NanoPi R5S
  132. DEVICE_PACKAGES := kmod-r8169
  133. endef
  134. TARGET_DEVICES += friendlyarm_nanopi-r5s
  135. define Device/friendlyarm_nanopi-r6c
  136. $(Device/rk3588s)
  137. DEVICE_VENDOR := FriendlyARM
  138. DEVICE_MODEL := NanoPi R6C
  139. DEVICE_PACKAGES := kmod-r8169
  140. endef
  141. TARGET_DEVICES += friendlyarm_nanopi-r6c
  142. define Device/friendlyarm_nanopi-r6s
  143. $(Device/rk3588s)
  144. DEVICE_VENDOR := FriendlyARM
  145. DEVICE_MODEL := NanoPi R6S
  146. DEVICE_PACKAGES := kmod-r8169
  147. endef
  148. TARGET_DEVICES += friendlyarm_nanopi-r6s
  149. define Device/friendlyarm_nanopi-r76s
  150. $(Device/rk3576)
  151. DEVICE_VENDOR := FriendlyARM
  152. DEVICE_MODEL := NanoPi R76S
  153. UBOOT_DEVICE_NAME := generic-rk3576
  154. DEVICE_PACKAGES := kmod-r8169 kmod-rtw88-8822cs wpad-basic-mbedtls
  155. endef
  156. TARGET_DEVICES += friendlyarm_nanopi-r76s
  157. define Device/linkease_easepi-r1
  158. $(Device/rk3568)
  159. DEVICE_VENDOR := LinkEase
  160. DEVICE_MODEL := EasePi R1
  161. DEVICE_PACKAGES := blkdiscard block-mount kmod-button-hotplug kmod-nvme kmod-r8169
  162. endef
  163. TARGET_DEVICES += linkease_easepi-r1
  164. define Device/lunzn_fastrhino-r66s
  165. $(Device/rk3568)
  166. DEVICE_VENDOR := Lunzn
  167. DEVICE_MODEL := FastRhino R66S
  168. DEVICE_PACKAGES := kmod-r8169
  169. endef
  170. TARGET_DEVICES += lunzn_fastrhino-r66s
  171. define Device/pine64_rock64
  172. $(Device/rk3328)
  173. DEVICE_VENDOR := Pine64
  174. DEVICE_MODEL := Rock64
  175. endef
  176. TARGET_DEVICES += pine64_rock64
  177. define Device/pine64_rockpro64
  178. $(Device/rk3399)
  179. DEVICE_VENDOR := Pine64
  180. DEVICE_MODEL := RockPro64
  181. SUPPORTED_DEVICES += pine64,rockpro64-v2.1
  182. endef
  183. TARGET_DEVICES += pine64_rockpro64
  184. define Device/radxa_cm3-io
  185. $(Device/rk3566)
  186. DEVICE_VENDOR := Radxa
  187. DEVICE_MODEL := CM3 IO
  188. DEVICE_DTS := rk3566-radxa-cm3-io
  189. UBOOT_DEVICE_NAME := radxa-cm3-io-rk3566
  190. endef
  191. TARGET_DEVICES += radxa_cm3-io
  192. define Device/radxa_e20c
  193. $(Device/rk3528)
  194. DEVICE_VENDOR := Radxa
  195. DEVICE_MODEL := E20C
  196. DEVICE_DTS := rk3528-radxa-e20c
  197. UBOOT_DEVICE_NAME := radxa-e20c-rk3528
  198. DEVICE_PACKAGES := kmod-r8169
  199. endef
  200. TARGET_DEVICES += radxa_e20c
  201. define Device/radxa_e25
  202. $(Device/rk3568)
  203. DEVICE_VENDOR := Radxa
  204. DEVICE_MODEL := E25
  205. DEVICE_DTS := rk3568-radxa-e25
  206. BOOT_SCRIPT := radxa-e25
  207. UBOOT_DEVICE_NAME := radxa-e25-rk3568
  208. DEVICE_PACKAGES := kmod-r8169 kmod-ata-ahci-dwc
  209. endef
  210. TARGET_DEVICES += radxa_e25
  211. define Device/radxa_e52c
  212. $(Device/rk3582)
  213. DEVICE_VENDOR := Radxa
  214. DEVICE_MODEL := E52C
  215. UBOOT_DEVICE_NAME := generic-rk3588
  216. DEVICE_DTS := rk3582-radxa-e52c
  217. DEVICE_PACKAGES := blkdiscard kmod-r8169
  218. DEVICE_COMPAT_VERSION := 1.1
  219. DEVICE_COMPAT_MESSAGE := Network interface names have been changed
  220. endef
  221. TARGET_DEVICES += radxa_e52c
  222. define Device/radxa_rock-2a
  223. $(Device/rk3528)
  224. DEVICE_VENDOR := Radxa
  225. DEVICE_MODEL := ROCK 2A
  226. UBOOT_DEVICE_NAME := rock-2-rk3528
  227. endef
  228. TARGET_DEVICES += radxa_rock-2a
  229. define Device/radxa_rock-2f
  230. $(Device/rk3528)
  231. DEVICE_VENDOR := Radxa
  232. DEVICE_MODEL := ROCK 2F
  233. UBOOT_DEVICE_NAME := rock-2-rk3528
  234. endef
  235. TARGET_DEVICES += radxa_rock-2f
  236. define Device/radxa_rock-3a
  237. $(Device/rk3568)
  238. DEVICE_VENDOR := Radxa
  239. DEVICE_MODEL := ROCK 3A
  240. SUPPORTED_DEVICES := radxa,rock3a
  241. DEVICE_PACKAGES := kmod-usb-net-cdc-ncm kmod-usb-net-rndis
  242. endef
  243. TARGET_DEVICES += radxa_rock-3a
  244. define Device/radxa_rock-3b
  245. $(Device/rk3568)
  246. DEVICE_VENDOR := Radxa
  247. DEVICE_MODEL := ROCK 3B
  248. DEVICE_PACKAGES := kmod-usb-net-cdc-ncm kmod-usb-net-rndis
  249. endef
  250. TARGET_DEVICES += radxa_rock-3b
  251. define Device/radxa_rock-3c
  252. $(Device/rk3566)
  253. DEVICE_VENDOR := Radxa
  254. DEVICE_MODEL := ROCK 3C
  255. DEVICE_PACKAGES := kmod-usb-net-cdc-ncm kmod-usb-net-rndis
  256. endef
  257. TARGET_DEVICES += radxa_rock-3c
  258. define Device/radxa_rock-4c-plus
  259. $(Device/rk3399)
  260. DEVICE_VENDOR := Radxa
  261. DEVICE_MODEL := ROCK 4C+
  262. endef
  263. TARGET_DEVICES += radxa_rock-4c-plus
  264. define Device/radxa_rock-4d
  265. $(Device/rk3576)
  266. DEVICE_VENDOR := Radxa
  267. DEVICE_MODEL := ROCK 4D
  268. endef
  269. TARGET_DEVICES += radxa_rock-4d
  270. define Device/radxa_rock-4se
  271. $(Device/rk3399)
  272. DEVICE_VENDOR := Radxa
  273. DEVICE_MODEL := ROCK 4SE
  274. endef
  275. TARGET_DEVICES += radxa_rock-4se
  276. define Device/radxa_rock-5-itx
  277. $(Device/rk3588)
  278. DEVICE_VENDOR := Radxa
  279. DEVICE_MODEL := ROCK 5 ITX/ITX+
  280. DEVICE_PACKAGES := blkdiscard block-mount kmod-ata-ahci kmod-hwmon-pwmfan kmod-nvme kmod-r8169 kmod-rtw89-8852be wpad-basic-mbedtls
  281. endef
  282. TARGET_DEVICES += radxa_rock-5-itx
  283. define Device/radxa_rock-5a
  284. $(Device/rk3588s)
  285. DEVICE_VENDOR := Radxa
  286. DEVICE_MODEL := ROCK 5A
  287. UBOOT_DEVICE_NAME := rock5a-rk3588s
  288. DEVICE_PACKAGES := blkdiscard block-mount kmod-ata-ahci kmod-hwmon-pwmfan kmod-nvme kmod-r8169 kmod-rtw89-8852be wpad-basic-mbedtls
  289. endef
  290. TARGET_DEVICES += radxa_rock-5a
  291. define Device/radxa_rock-5b
  292. $(Device/rk3588)
  293. DEVICE_VENDOR := Radxa
  294. DEVICE_MODEL := ROCK 5B
  295. UBOOT_DEVICE_NAME := rock5b-rk3588
  296. DEVICE_PACKAGES := blkdiscard block-mount kmod-hwmon-pwmfan kmod-nvme kmod-r8169 kmod-rtw89-8852be wpad-basic-mbedtls
  297. endef
  298. TARGET_DEVICES += radxa_rock-5b
  299. define Device/radxa_rock-5b-plus
  300. $(Device/rk3588)
  301. DEVICE_VENDOR := Radxa
  302. DEVICE_MODEL := ROCK 5B+
  303. UBOOT_DEVICE_NAME := generic-rk3588
  304. DEVICE_DTS := rk3588-rock-5b-plus
  305. DEVICE_PACKAGES := blkdiscard block-mount kmod-hwmon-pwmfan kmod-nvme kmod-r8169 kmod-rtw89-8852be wpad-basic-mbedtls
  306. endef
  307. TARGET_DEVICES += radxa_rock-5b-plus
  308. define Device/radxa_rock-5c
  309. $(Device/rk3588s)
  310. DEVICE_VENDOR := Radxa
  311. DEVICE_MODEL := ROCK 5C/5C Lite
  312. DEVICE_PACKAGES := blkdiscard block-mount kmod-ata-ahci kmod-hwmon-pwmfan kmod-nvme kmod-r8169
  313. endef
  314. TARGET_DEVICES += radxa_rock-5c
  315. define Device/radxa_rock-5t
  316. $(Device/rk3588)
  317. DEVICE_VENDOR := Radxa
  318. DEVICE_MODEL := ROCK 5T
  319. UBOOT_DEVICE_NAME := generic-rk3588
  320. DEVICE_DTS := rk3588-rock-5t
  321. DEVICE_PACKAGES := blkdiscard block-mount iwlwifi-firmware-ax210 kmod-hwmon-pwmfan kmod-iwlwifi kmod-nvme kmod-r8169 wpad-basic-mbedtls
  322. endef
  323. TARGET_DEVICES += radxa_rock-5t
  324. define Device/radxa_rock-pi-4a
  325. $(Device/rk3399)
  326. DEVICE_VENDOR := Radxa
  327. DEVICE_MODEL := ROCK Pi 4A
  328. SUPPORTED_DEVICES := radxa,rockpi4a radxa,rockpi4
  329. UBOOT_DEVICE_NAME := rock-pi-4-rk3399
  330. endef
  331. TARGET_DEVICES += radxa_rock-pi-4a
  332. define Device/radxa_rock-pi-e
  333. $(Device/rk3328)
  334. DEVICE_VENDOR := Radxa
  335. DEVICE_MODEL := ROCK Pi E
  336. endef
  337. TARGET_DEVICES += radxa_rock-pi-e
  338. define Device/radxa_rock-pi-e-v3
  339. $(Device/rk3328)
  340. DEVICE_VENDOR := Radxa
  341. DEVICE_MODEL := ROCK Pi E v3.0
  342. DEVICE_DTS := rk3328-rock-pi-e
  343. DEVICE_PACKAGES := kmod-rtw88-8723du kmod-rtw88-8821cu kmod-usb-net-cdc-ncm kmod-usb-net-rndis wpad-basic-mbedtls
  344. endef
  345. TARGET_DEVICES += radxa_rock-pi-e-v3
  346. define Device/radxa_rock-pi-s
  347. $(Device/rk3308)
  348. DEVICE_VENDOR := Radxa
  349. DEVICE_MODEL := ROCK Pi S
  350. SUPPORTED_DEVICES := radxa,rockpis
  351. BOOT_SCRIPT := rock-pi-s
  352. DEVICE_PACKAGES := kmod-rtw88-8723ds kmod-usb-net-cdc-ncm kmod-usb-net-rndis wpad-basic-mbedtls
  353. endef
  354. TARGET_DEVICES += radxa_rock-pi-s
  355. define Device/radxa_zero-3e
  356. $(Device/rk3566)
  357. DEVICE_VENDOR := Radxa
  358. DEVICE_MODEL := ZERO 3E
  359. DEVICE_DTS := rk3566-radxa-zero-3e
  360. UBOOT_DEVICE_NAME := radxa-zero-3-rk3566
  361. DEVICE_PACKAGES := kmod-usb-net-cdc-ncm kmod-usb-net-rndis
  362. endef
  363. TARGET_DEVICES += radxa_zero-3e
  364. define Device/radxa_zero-3w
  365. $(Device/rk3566)
  366. DEVICE_VENDOR := Radxa
  367. DEVICE_MODEL := ZERO 3W
  368. DEVICE_DTS := rk3566-radxa-zero-3w
  369. UBOOT_DEVICE_NAME := radxa-zero-3-rk3566
  370. DEVICE_PACKAGES := kmod-usb-net-cdc-ncm kmod-usb-net-rndis
  371. endef
  372. TARGET_DEVICES += radxa_zero-3w
  373. define Device/sinovoip_bpi-r2-pro
  374. $(Device/rk3568)
  375. DEVICE_VENDOR := Sinovoip
  376. DEVICE_MODEL := Bananapi-R2 Pro
  377. SUPPORTED_DEVICES := sinovoip,rk3568-bpi-r2pro
  378. DEVICE_PACKAGES := kmod-ata-ahci-dwc
  379. endef
  380. TARGET_DEVICES += sinovoip_bpi-r2-pro
  381. define Device/xunlong_orangepi-r1-plus
  382. $(Device/rk3328)
  383. DEVICE_VENDOR := Xunlong
  384. DEVICE_MODEL := Orange Pi R1 Plus
  385. DEVICE_PACKAGES := kmod-usb-net-rtl8152
  386. endef
  387. TARGET_DEVICES += xunlong_orangepi-r1-plus
  388. define Device/xunlong_orangepi-r1-plus-lts
  389. $(Device/rk3328)
  390. DEVICE_VENDOR := Xunlong
  391. DEVICE_MODEL := Orange Pi R1 Plus LTS
  392. DEVICE_PACKAGES := kmod-usb-net-rtl8152
  393. endef
  394. TARGET_DEVICES += xunlong_orangepi-r1-plus-lts