generic.mk 34 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153
  1. DEVICE_VARS += DAP_SIGNATURE NETGEAR_BOARD_ID NETGEAR_HW_ID NETGEAR_KERNEL_MAGIC ROOTFS_SIZE
  2. DEVICE_VARS += SEAMA_SIGNATURE SEAMA_MTDBLOCK
  3. define Build/alfa-network-rootfs-header
  4. mkimage \
  5. -A mips -O linux -T filesystem -C lzma -a 0 -e 0 \
  6. -n 'RootfsImage' -d $@ $@.new
  7. @mv $@.new $@
  8. endef
  9. define Build/append-md5sum-bin
  10. $(STAGING_DIR_HOST)/bin/mkhash md5 $@ | sed 's/../\\\\x&/g' |\
  11. xargs echo -ne >> $@
  12. endef
  13. define Build/mkwrggimg
  14. $(STAGING_DIR_HOST)/bin/mkwrggimg -b \
  15. -i $@ -o $@.imghdr -d /dev/mtdblock/1 \
  16. -m $(BOARDNAME) -s $(DAP_SIGNATURE) \
  17. -v $(VERSION_DIST) -B $(REVISION)
  18. mv $@.imghdr $@
  19. endef
  20. define Build/mkdapimg2
  21. $(STAGING_DIR_HOST)/bin/mkdapimg2 \
  22. -i $@ -o $@.new \
  23. -s $(DAP_SIGNATURE) \
  24. -v $(VERSION_DIST)-$(firstword $(subst +, ,$(firstword $(subst -, ,$(REVISION))))) \
  25. -r Default \
  26. $(if $(1),-k $(1))
  27. mv $@.new $@
  28. endef
  29. define Build/netgear-squashfs
  30. rm -rf $@.fs $@.squashfs
  31. mkdir -p $@.fs/image
  32. cp $@ $@.fs/image/uImage
  33. $(STAGING_DIR_HOST)/bin/mksquashfs-lzma \
  34. $@.fs $@.squashfs \
  35. -noappend -root-owned -be -b 65536 \
  36. $(if $(SOURCE_DATE_EPOCH),-fixed-time $(SOURCE_DATE_EPOCH))
  37. dd if=/dev/zero bs=1k count=1 >> $@.squashfs
  38. mkimage \
  39. -A mips -O linux -T filesystem -C none \
  40. -M $(NETGEAR_KERNEL_MAGIC) \
  41. -a 0xbf070000 -e 0xbf070000 \
  42. -n 'MIPS $(VERSION_DIST) Linux-$(LINUX_VERSION)' \
  43. -d $@.squashfs $@
  44. rm -rf $@.squashfs $@.fs
  45. endef
  46. define Build/netgear-uImage
  47. $(call Build/uImage,$(1) -M $(NETGEAR_KERNEL_MAGIC))
  48. endef
  49. define Build/relocate-kernel
  50. rm -rf $@.relocate
  51. $(CP) ../../generic/image/relocate $@.relocate
  52. $(MAKE) -j1 -C $@.relocate KERNEL_ADDR=$(KERNEL_LOADADDR) CROSS_COMPILE=$(TARGET_CROSS)
  53. ( \
  54. dd if=$@.relocate/loader.bin bs=32 conv=sync && \
  55. perl -e '@s = stat("$@"); print pack("N", @s[7])' && \
  56. cat "$@" \
  57. ) > "$@.new"
  58. mv "$@.new" "$@"
  59. rm -rf $@.relocate
  60. endef
  61. define Build/teltonika-fw-fake-checksum
  62. # Teltonika U-Boot web based firmware upgrade/recovery routine compares
  63. # 16 bytes from md5sum1[16] field in TP-Link v1 header (offset: 76 bytes
  64. # from begin of the firmware file) with 16 bytes stored just before
  65. # 0xdeadc0de marker. Values are only compared, MD5 sum is not verified.
  66. let \
  67. offs="$$(stat -c%s $@) - 20"; \
  68. dd if=$@ bs=1 count=16 skip=76 |\
  69. dd of=$@ bs=1 count=16 seek=$$offs conv=notrunc
  70. endef
  71. define Build/uImageHiWiFi
  72. # Field ih_name needs to start with "tw150v1"
  73. mkimage -A $(LINUX_KARCH) \
  74. -O linux -T kernel \
  75. -C $(1) -a $(KERNEL_LOADADDR) -e $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \
  76. -n 'tw150v1 $(call toupper,$(LINUX_KARCH)) $(VERSION_DIST) Linux-$(LINUX_VERSION)' -d $@ $@.new
  77. @mv $@.new $@
  78. endef
  79. define Build/wrgg-pad-rootfs
  80. $(STAGING_DIR_HOST)/bin/padjffs2 $(IMAGE_ROOTFS) -c 64 >>$@
  81. endef
  82. define Device/ap121f
  83. DEVICE_TITLE := ALFA Network AP121F
  84. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage -swconfig
  85. BOARDNAME := AP121F
  86. IMAGE_SIZE := 16064k
  87. CONSOLE := ttyATH0,115200
  88. MTDPARTS := spi0.0:192k(u-boot)ro,64k(u-boot-env),64k(art)ro,-(firmware)
  89. SUPPORTED_DEVICES := ap121f
  90. IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
  91. append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
  92. endef
  93. TARGET_DEVICES += ap121f
  94. define Device/ap531b0
  95. DEVICE_TITLE := Rockeetech AP531B0
  96. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  97. BOARDNAME := AP531B0
  98. IMAGE_SIZE := 16000k
  99. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro
  100. endef
  101. TARGET_DEVICES += ap531b0
  102. define Device/ap90q
  103. DEVICE_TITLE := YunCore AP80Q/AP90Q
  104. BOARDNAME := AP90Q
  105. IMAGE_SIZE := 16000k
  106. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),16000k(firmware),64k(art)ro
  107. endef
  108. TARGET_DEVICES += ap90q
  109. define Device/ap91-5g
  110. DEVICE_TITLE := ALFA Network AP91-5G
  111. DEVICE_PACKAGES := rssileds -swconfig
  112. BOARDNAME := AP91-5G
  113. IMAGE_SIZE := 7744k
  114. KERNEL_SIZE := 1600k
  115. ROOTFS_SIZE := 6144k
  116. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),6144k(rootfs),1600k(kernel),64k(config)ro,64k(art)ro,7744k@0x50000(firmware)
  117. IMAGES := sysupgrade.bin factory.bin
  118. IMAGE/factory.bin := append-rootfs | pad-rootfs |\
  119. alfa-network-rootfs-header | append-kernel | check-size $$$$(IMAGE_SIZE)
  120. IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs |\
  121. pad-to $$$$(ROOTFS_SIZE) | append-kernel | check-size $$$$(IMAGE_SIZE)
  122. endef
  123. define Device/arduino-yun
  124. DEVICE_TITLE := Arduino Yun
  125. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  126. BOARDNAME := Yun
  127. IMAGE_SIZE := 15936k
  128. CONSOLE := ttyATH0,250000
  129. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),15936k(firmware),64k(nvram),64k(art)ro
  130. endef
  131. TARGET_DEVICES += arduino-yun
  132. define Device/bsb
  133. DEVICE_TITLE := Smart Electronics Black Swift board
  134. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  135. BOARDNAME := BSB
  136. IMAGE_SIZE := 16000k
  137. CONSOLE := ttyATH0,115200
  138. MTDPARTS := spi0.0:128k(u-boot)ro,64k(u-boot-env)ro,16128k(firmware),64k(art)ro
  139. endef
  140. TARGET_DEVICES += bsb
  141. define Device/carambola2
  142. DEVICE_TITLE := 8devices Carambola2
  143. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  144. BOARDNAME := CARAMBOLA2
  145. IMAGE_SIZE := 16000k
  146. CONSOLE := ttyATH0,115200
  147. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro
  148. endef
  149. TARGET_DEVICES += carambola2
  150. define Device/cf-e316n-v2
  151. DEVICE_TITLE := COMFAST CF-E316N v2
  152. DEVICE_PACKAGES := -swconfig -uboot-envtools
  153. BOARDNAME := CF-E316N-V2
  154. IMAGE_SIZE := 16192k
  155. MTDPARTS := spi0.0:64k(u-boot)ro,64k(art)ro,16192k(firmware),64k(art-backup)ro
  156. endef
  157. TARGET_DEVICES += cf-e316n-v2
  158. define Device/cf-e320n-v2
  159. $(Device/cf-e316n-v2)
  160. DEVICE_TITLE := COMFAST CF-E320N v2
  161. DEVICE_PACKAGES += kmod-usb-core kmod-usb2
  162. BOARDNAME := CF-E320N-V2
  163. endef
  164. TARGET_DEVICES += cf-e320n-v2
  165. define Device/cf-e520n
  166. DEVICE_TITLE := COMFAST CF-E520N
  167. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 -swconfig -uboot-envtools
  168. BOARDNAME := CF-E520N
  169. IMAGE_SIZE := 8000k
  170. MTDPARTS := spi0.0:64k(u-boot)ro,64k(art)ro,8000k(firmware),64k(art-backup)ro
  171. endef
  172. TARGET_DEVICES += cf-e520n
  173. define Device/cf-e530n
  174. $(Device/cf-e520n)
  175. DEVICE_TITLE := COMFAST CF-E530N
  176. BOARDNAME := CF-E530N
  177. endef
  178. TARGET_DEVICES += cf-e530n
  179. define Device/cpe505n
  180. DEVICE_TITLE := P&W CPE505N
  181. BOARDNAME := CPE505N
  182. IMAGE_SIZE := 16000k
  183. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro
  184. endef
  185. TARGET_DEVICES += cpe505n
  186. define Device/cpe830
  187. $(Device/ap90q)
  188. DEVICE_TITLE := YunCore CPE830
  189. DEVICE_PACKAGES := rssileds
  190. BOARDNAME := CPE830
  191. endef
  192. TARGET_DEVICES += cpe830
  193. define Device/cpe870
  194. DEVICE_TITLE := YunCore CPE870
  195. DEVICE_PACKAGES := rssileds
  196. BOARDNAME := CPE870
  197. IMAGE_SIZE := 7936k
  198. MTDPARTS := spi0.0:64k(u-boot)ro,64k(u-boot-env),7936k(firmware),64k(config)ro,64k(art)ro
  199. endef
  200. TARGET_DEVICES += cpe870
  201. define Device/dragino2
  202. BOARDNAME := DRAGINO2
  203. CONSOLE := ttyATH0,115200
  204. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  205. DEVICE_TITLE := Dragino 2 (MS14)
  206. IMAGE_SIZE := 16000k
  207. MTDPARTS := spi0.0:256k(u-boot)ro,16000k(firmware),64k(config)ro,64k(art)ro
  208. endef
  209. TARGET_DEVICES += dragino2
  210. define Device/e558-v2-16M
  211. DEVICE_TITLE := Qxwlan E558 v2 (16MB flash)
  212. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 -swconfig
  213. BOARDNAME := E558-V2
  214. SUPPORTED_DEVICES := e558-v2
  215. IMAGE_SIZE := 15936k
  216. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),64k(pri-data)ro,64k(art),-(firmware)
  217. IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) |\
  218. append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
  219. endef
  220. TARGET_DEVICES += e558-v2-16M
  221. define Device/e558-v2-8M
  222. $(Device/e558-v2-16M)
  223. DEVICE_TITLE := Qxwlan E558 v2 (8MB flash)
  224. IMAGE_SIZE := 7744k
  225. endef
  226. TARGET_DEVICES += e558-v2-8M
  227. define Device/e600g-v2-16M
  228. DEVICE_TITLE := Qxwlan E600G v2 (16MB flash)
  229. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 -swconfig
  230. BOARDNAME := E600G-V2
  231. SUPPORTED_DEVICES := e600g-v2
  232. IMAGE_SIZE := 15936k
  233. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),64k(pri-data)ro,64k(art)ro,-(firmware)
  234. IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) |\
  235. append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
  236. endef
  237. TARGET_DEVICES += e600g-v2-16M
  238. define Device/e600g-v2-8M
  239. $(Device/e600g-v2-16M)
  240. DEVICE_TITLE := Qxwlan E600G v2 (8MB flash)
  241. IMAGE_SIZE := 7744k
  242. endef
  243. TARGET_DEVICES += e600g-v2-8M
  244. define Device/e750a-v4-16M
  245. DEVICE_TITLE := Qxwlan E750A v4 (16MB flash)
  246. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 -swconfig
  247. BOARDNAME := E750A-V4
  248. SUPPORTED_DEVICES := e750a-v4
  249. IMAGE_SIZE := 15936k
  250. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),64k(pri-data)ro,64k(art),-(firmware)
  251. IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) |\
  252. append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
  253. endef
  254. TARGET_DEVICES += e750a-v4-16M
  255. define Device/e750a-v4-8M
  256. $(Device/e750a-v4-16M)
  257. DEVICE_TITLE := Qxwlan E750A v4 (8MB flash)
  258. IMAGE_SIZE := 7744k
  259. endef
  260. TARGET_DEVICES += e750a-v4-8M
  261. define Device/e750g-v8-16M
  262. DEVICE_TITLE := Qxwlan E750G v8 (16MB flash)
  263. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 -swconfig
  264. BOARDNAME := E750G-V8
  265. SUPPORTED_DEVICES := e750g-v8
  266. IMAGE_SIZE := 15936k
  267. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),64k(pri-data)ro,64k(art),-(firmware)
  268. IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) |\
  269. append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
  270. endef
  271. TARGET_DEVICES += e750g-v8-16M
  272. define Device/e750g-v8-8M
  273. $(Device/e750g-v8-16M)
  274. DEVICE_TITLE := Qxwlan E750G v8 (8MB flash)
  275. IMAGE_SIZE := 7744k
  276. endef
  277. TARGET_DEVICES += e750g-v8-8M
  278. define Device/ew-balin
  279. DEVICE_TITLE := Embedded Wireless Balin Platform
  280. DEVICE_PACKAGES := kmod-usb-core kmod-usb-chipidea
  281. BOARDNAME := EW-BALIN
  282. IMAGE_SIZE := 16000k
  283. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),16000k(firmware),64k(art)ro
  284. endef
  285. TARGET_DEVICES += ew-balin
  286. define Device/ew-dorin
  287. $(Device/ew-balin)
  288. DEVICE_TITLE := Embedded Wireless Dorin Platform
  289. BOARDNAME := EW-DORIN
  290. CONSOLE := ttyATH0,115200
  291. endef
  292. TARGET_DEVICES += ew-dorin
  293. define Device/ew-dorin-router
  294. $(Device/ew-dorin)
  295. DEVICE_TITLE := Embedded Wireless Dorin Router Platform
  296. BOARDNAME := EW-DORIN-ROUTER
  297. endef
  298. TARGET_DEVICES += ew-dorin-router
  299. define Device/rme-eg200
  300. DEVICE_TITLE := eTactica EG-200
  301. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ledtrig-oneshot \
  302. kmod-usb-serial kmod-usb-serial-ftdi \
  303. kmod-usb-storage \
  304. kmod-fs-ext4
  305. BOARDNAME := RME-EG200
  306. IMAGE_SIZE := 16000k
  307. CONSOLE := ttyATH0,115200
  308. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro
  309. endef
  310. TARGET_DEVICES += rme-eg200
  311. define Device/weio
  312. DEVICE_TITLE := WeIO
  313. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  314. BOARDNAME := WEIO
  315. IMAGE_SIZE := 16000k
  316. CONSOLE := ttyATH0,115200
  317. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro
  318. endef
  319. TARGET_DEVICES += weio
  320. define Device/gl-ar150
  321. DEVICE_TITLE := GL.iNet GL-AR150
  322. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  323. BOARDNAME := GL-AR150
  324. IMAGE_SIZE := 16000k
  325. CONSOLE := ttyATH0,115200
  326. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro
  327. endef
  328. TARGET_DEVICES += gl-ar150
  329. define Device/gl-ar300
  330. DEVICE_TITLE := GL.iNet GL-AR300
  331. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  332. BOARDNAME := GL-AR300
  333. IMAGE_SIZE := 16000k
  334. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro
  335. endef
  336. TARGET_DEVICES += gl-ar300
  337. define Device/gl-ar300m
  338. DEVICE_TITLE := GL.iNet GL-AR300M
  339. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  340. BOARDNAME := GL-AR300M
  341. IMAGE_SIZE := 16000k
  342. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),16000k(firmware),64k(art)ro
  343. endef
  344. TARGET_DEVICES += gl-ar300m
  345. define Device/gl-ar750
  346. DEVICE_TITLE := GL.iNet GL-AR750
  347. DEVICE_PACKAGES := kmod-usb-core \
  348. kmod-usb2 kmod-usb-storage
  349. BOARDNAME := GL-AR750
  350. SUPPORTED_DEVICES := gl-ar750
  351. IMAGE_SIZE := 16000k
  352. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),64k(art)ro,-(firmware)
  353. IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
  354. append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
  355. endef
  356. TARGET_DEVICES += gl-ar750
  357. define Device/gl-ar750s
  358. DEVICE_TITLE := GL.iNet GL-AR750S
  359. DEVICE_PACKAGES := kmod-usb-core \
  360. kmod-usb2 kmod-usb-storage
  361. BOARDNAME := GL-AR750S
  362. SUPPORTED_DEVICES := gl-ar750s
  363. IMAGE_SIZE := 16000k
  364. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),64k(art)ro,-(firmware)
  365. IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
  366. append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
  367. endef
  368. TARGET_DEVICES += gl-ar750s
  369. define Device/gl-domino
  370. DEVICE_TITLE := GL.iNet Domino Pi
  371. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  372. BOARDNAME := DOMINO
  373. IMAGE_SIZE := 16000k
  374. CONSOLE := ttyATH0,115200
  375. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro
  376. endef
  377. TARGET_DEVICES += gl-domino
  378. define Device/gl-mifi
  379. DEVICE_TITLE := GL.iNet GL-MiFi
  380. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  381. BOARDNAME := GL-MIFI
  382. IMAGE_SIZE := 16000k
  383. CONSOLE := ttyATH0,115200
  384. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro
  385. endef
  386. TARGET_DEVICES += gl-mifi
  387. define Device/gl-usb150
  388. DEVICE_TITLE := GL.iNet GL-USB150
  389. DEVICE_PACKAGES := -swconfig
  390. BOARDNAME := GL-USB150
  391. IMAGE_SIZE := 16000k
  392. CONSOLE := ttyATH0,115200
  393. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro
  394. SUPPORTED_DEVICES := gl-usb150
  395. IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
  396. append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
  397. endef
  398. TARGET_DEVICES += gl-usb150
  399. define Device/lan-turtle
  400. $(Device/tplink-16mlzma)
  401. DEVICE_TITLE := Hak5 LAN Turtle
  402. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage \
  403. -kmod-ath9k -swconfig -uboot-envtools -wpad-basic
  404. BOARDNAME := LAN-TURTLE
  405. DEVICE_PROFILE := LANTURTLE
  406. TPLINK_HWID := 0x5348334c
  407. CONSOLE := ttyATH0,115200
  408. IMAGES := sysupgrade.bin
  409. endef
  410. TARGET_DEVICES += lan-turtle
  411. define Device/lima
  412. DEVICE_TITLE := 8devices Lima
  413. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  414. BOARDNAME := LIMA
  415. IMAGE_SIZE := 15616k
  416. MTDPARTS := spi0.0:256k(u-boot)ro,256k(u-boot-env)ro,256k(art)ro,-(firmware)
  417. endef
  418. TARGET_DEVICES += lima
  419. define Device/mr12
  420. DEVICE_TITLE := Meraki MR12
  421. DEVICE_PACKAGES := kmod-spi-gpio
  422. BOARDNAME := MR12
  423. ROOTFS_SIZE := 13440k
  424. IMAGE_SIZE := 15680k
  425. MTDPARTS := spi0.0:256k(u-boot)ro,256k(u-boot-env)ro,13440k(rootfs),2240k(kernel),64k(mac),128k(art)ro,15680k@0x80000(firmware)
  426. IMAGE/kernel.bin := append-kernel
  427. IMAGE/rootfs.bin := append-rootfs | pad-rootfs
  428. IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | pad-to $$$$(ROOTFS_SIZE) | append-kernel | check-size $$$$(IMAGE_SIZE)
  429. IMAGES := kernel.bin rootfs.bin sysupgrade.bin
  430. endef
  431. TARGET_DEVICES += mr12
  432. define Device/mr16
  433. $(Device/mr12)
  434. DEVICE_TITLE := Meraki MR16
  435. BOARDNAME := MR16
  436. endef
  437. TARGET_DEVICES += mr16
  438. define Device/dr342
  439. DEVICE_TITLE := Wallys DR342
  440. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 -swconfig
  441. BOARDNAME := DR342
  442. IMAGE_SIZE := 16000k
  443. MTDPARTS := spi0.0:192k(u-boot)ro,64k(u-boot-env),64k(partition-table)ro,16000k(firmware),64k(art)ro
  444. endef
  445. TARGET_DEVICES += dr342
  446. define Device/dr344
  447. DEVICE_TITLE := Wallys DR344
  448. BOARDNAME := DR344
  449. KERNEL_SIZE := 1408k
  450. ROOTFS_SIZE := 6336k
  451. IMAGE_SIZE := 7744k
  452. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,6336k(rootfs),1408k(kernel),64k(nvram),64k(art)ro,7744k@0x50000(firmware)
  453. IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | pad-to $$$$(ROOTFS_SIZE) | append-kernel | check-size $$$$(IMAGE_SIZE)
  454. endef
  455. define Device/dr531
  456. DEVICE_TITLE := Wallys DR531
  457. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  458. BOARDNAME := DR531
  459. IMAGE_SIZE := 7808k
  460. MTDPARTS := spi0.0:192k(u-boot)ro,64k(u-boot-env),64k(partition-table)ro,7808k(firmware),64k(art)ro
  461. endef
  462. TARGET_DEVICES += dr531
  463. define Device/wndr3700
  464. DEVICE_TITLE := NETGEAR WNDR3700
  465. DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport kmod-leds-wndr3700-usb
  466. BOARDNAME := WNDR3700
  467. NETGEAR_KERNEL_MAGIC := 0x33373030
  468. NETGEAR_BOARD_ID := WNDR3700
  469. IMAGE_SIZE := 7680k
  470. MTDPARTS := spi0.0:320k(u-boot)ro,128k(u-boot-env)ro,7680k(firmware),64k(art)ro
  471. IMAGES := sysupgrade.bin factory.img factory-NA.img
  472. KERNEL := kernel-bin | patch-cmdline | lzma -d20 | netgear-uImage lzma
  473. IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | netgear-squashfs | append-rootfs | pad-rootfs
  474. IMAGE/sysupgrade.bin := $$(IMAGE/default) | check-size $$$$(IMAGE_SIZE)
  475. IMAGE/factory.img := $$(IMAGE/default) | netgear-dni | check-size $$$$(IMAGE_SIZE)
  476. IMAGE/factory-NA.img := $$(IMAGE/default) | netgear-dni NA | check-size $$$$(IMAGE_SIZE)
  477. endef
  478. TARGET_DEVICES += wndr3700
  479. define Device/wndr3700v2
  480. $(Device/wndr3700)
  481. DEVICE_TITLE := NETGEAR WNDR3700 v2
  482. NETGEAR_BOARD_ID := WNDR3700v2
  483. NETGEAR_KERNEL_MAGIC := 0x33373031
  484. NETGEAR_HW_ID := 29763654+16+64
  485. IMAGE_SIZE := 15872k
  486. MTDPARTS := spi0.0:320k(u-boot)ro,128k(u-boot-env)ro,15872k(firmware),64k(art)ro
  487. IMAGES := sysupgrade.bin factory.img
  488. endef
  489. TARGET_DEVICES += wndr3700v2
  490. define Device/wndr3800
  491. $(Device/wndr3700v2)
  492. DEVICE_TITLE := NETGEAR WNDR3800
  493. NETGEAR_BOARD_ID := WNDR3800
  494. NETGEAR_HW_ID := 29763654+16+128
  495. endef
  496. TARGET_DEVICES += wndr3800
  497. define Device/wndr3800ch
  498. $(Device/wndr3800)
  499. DEVICE_TITLE := NETGEAR WNDR3800 (Ch)
  500. NETGEAR_BOARD_ID := WNDR3800CH
  501. endef
  502. TARGET_DEVICES += wndr3800ch
  503. define Device/wndrmac
  504. $(Device/wndr3700v2)
  505. DEVICE_TITLE := NETGEAR WNDRMAC
  506. NETGEAR_BOARD_ID := WNDRMAC
  507. endef
  508. TARGET_DEVICES += wndrmac
  509. define Device/wndrmacv2
  510. $(Device/wndr3800)
  511. DEVICE_TITLE := NETGEAR WNDRMAC v2
  512. NETGEAR_BOARD_ID := WNDRMACv2
  513. endef
  514. TARGET_DEVICES += wndrmacv2
  515. define Device/cap324
  516. DEVICE_TITLE := PowerCloud Systems CAP324
  517. BOARDNAME := CAP324
  518. DEVICE_PROFILE := CAP324
  519. IMAGE_SIZE := 16000k
  520. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro
  521. endef
  522. TARGET_DEVICES += cap324
  523. define Device/cr3000
  524. DEVICE_TITLE := PowerCloud Systems CR3000
  525. BOARDNAME := CR3000
  526. DEVICE_PROFILE := CR3000
  527. IMAGE_SIZE := 7808k
  528. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,7808k(firmware),64k(art)ro
  529. endef
  530. TARGET_DEVICES += cr3000
  531. define Device/cr5000
  532. DEVICE_TITLE := PowerCloud Systems CR5000
  533. DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport kmod-usb-core
  534. BOARDNAME := CR5000
  535. DEVICE_PROFILE := CR5000
  536. IMAGE_SIZE := 7808k
  537. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,7808k(firmware),64k(art)ro
  538. endef
  539. TARGET_DEVICES += cr5000
  540. define Device/packet-squirrel
  541. $(Device/tplink-16mlzma)
  542. DEVICE_TITLE := Hak5 Packet Squirrel
  543. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 \
  544. -kmod-ath9k -swconfig -uboot-envtools -wpad-basic
  545. BOARDNAME := PACKET-SQUIRREL
  546. DEVICE_PROFILE := PACKETSQUIRREL
  547. TPLINK_HWID := 0x5351524c
  548. CONSOLE := ttyATH0,115200
  549. IMAGES := sysupgrade.bin
  550. endef
  551. TARGET_DEVICES += packet-squirrel
  552. define Device/pqi-air-pen
  553. DEVICE_TITLE := PQI Air Pen
  554. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage
  555. BOARDNAME := PQI-AIR-PEN
  556. IMAGE_SIZE := 7744k
  557. CONSOLE := ttyATH0,115200
  558. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,64k(art)ro,64k(NVRAM)ro,7680k(firmware),64k(CONF)
  559. endef
  560. TARGET_DEVICES += pqi-air-pen
  561. define Device/antminer-s1
  562. $(Device/tplink-8mlzma)
  563. DEVICE_TITLE := Antminer-S1
  564. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-crypto-manager kmod-i2c-gpio-custom kmod-usb-hid
  565. BOARDNAME := ANTMINER-S1
  566. DEVICE_PROFILE := ANTMINERS1
  567. TPLINK_HWID := 0x04440101
  568. CONSOLE := ttyATH0,115200
  569. endef
  570. TARGET_DEVICES += antminer-s1
  571. define Device/antminer-s3
  572. $(Device/tplink-8mlzma)
  573. DEVICE_TITLE := Antminer-S3
  574. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-crypto-manager kmod-i2c-gpio-custom kmod-usb-hid
  575. BOARDNAME := ANTMINER-S3
  576. DEVICE_PROFILE := ANTMINERS3
  577. TPLINK_HWID := 0x04440301
  578. CONSOLE := ttyATH0,115200
  579. endef
  580. TARGET_DEVICES += antminer-s3
  581. define Device/antrouter-r1
  582. $(Device/tplink-8mlzma)
  583. DEVICE_TITLE := Antrouter-R1
  584. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  585. BOARDNAME := ANTROUTER-R1
  586. DEVICE_PROFILE := ANTROUTERR1
  587. TPLINK_HWID := 0x44440101
  588. CONSOLE := ttyATH0,115200
  589. endef
  590. TARGET_DEVICES += antrouter-r1
  591. define Device/el-m150
  592. $(Device/tplink-8mlzma)
  593. DEVICE_TITLE := EasyLink EL-M150
  594. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  595. BOARDNAME := EL-M150
  596. DEVICE_PROFILE := ELM150
  597. TPLINK_HWID := 0x01500101
  598. CONSOLE := ttyATH0,115200
  599. endef
  600. TARGET_DEVICES += el-m150
  601. define Device/el-mini
  602. $(Device/tplink-8mlzma)
  603. DEVICE_TITLE := EasyLink EL-MINI
  604. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  605. BOARDNAME := EL-MINI
  606. DEVICE_PROFILE := ELMINI
  607. TPLINK_HWID := 0x01530001
  608. CONSOLE := ttyATH0,115200
  609. endef
  610. TARGET_DEVICES += el-mini
  611. define Device/gl-inet-6408A-v1
  612. $(Device/tplink-8mlzma)
  613. DEVICE_TITLE := GL.iNet 6408
  614. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  615. BOARDNAME := GL-INET
  616. DEVICE_PROFILE := GLINET
  617. TPLINK_HWID := 0x08000001
  618. CONSOLE := ttyATH0,115200
  619. endef
  620. TARGET_DEVICES += gl-inet-6408A-v1
  621. define Device/gl-inet-6416A-v1
  622. $(Device/tplink-16mlzma)
  623. DEVICE_TITLE := GL.iNet 6416
  624. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  625. BOARDNAME := GL-INET
  626. DEVICE_PROFILE := GLINET
  627. TPLINK_HWID := 0x08000001
  628. CONSOLE := ttyATH0,115200
  629. endef
  630. TARGET_DEVICES += gl-inet-6416A-v1
  631. define Device/jwap230
  632. DEVICE_TITLE := jjPlus JWAP230
  633. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  634. BOARDNAME := JWAP230
  635. IMAGE_SIZE := 16000k
  636. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),16000k(firmware),64k(art)ro
  637. endef
  638. TARGET_DEVICES += jwap230
  639. define Device/r36a
  640. DEVICE_TITLE := ALFA Network R36A
  641. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport -swconfig
  642. BOARDNAME := R36A
  643. SUPPORTED_DEVICES := r36a
  644. IMAGE_SIZE := 15872k
  645. MTDPARTS := spi0.0:384k(u-boot)ro,64k(u-boot-env),64k(art)ro,-(firmware)
  646. IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
  647. append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
  648. endef
  649. TARGET_DEVICES += r36a
  650. define Device/r602n
  651. DEVICE_TITLE := P&W R602N
  652. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  653. BOARDNAME := R602N
  654. IMAGE_SIZE := 16000k
  655. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro
  656. endef
  657. TARGET_DEVICES += r602n
  658. define Device/rut900
  659. DEVICE_TITLE := Teltonika RUT900
  660. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 -uboot-envtools
  661. BOARDNAME := RUT900
  662. SUPPORTED_DEVICES := rut900
  663. IMAGE_SIZE := 15552k
  664. MTDPARTS := spi0.0:128k(u-boot)ro,64k(config)ro,64k(art)ro,15552k(firmware),576k(event-log)ro
  665. TPLINK_HWID := 0x35000001
  666. TPLINK_HWREV := 0x1
  667. TPLINK_HEADER_VERSION := 1
  668. KERNEL := kernel-bin | patch-cmdline | lzma | tplink-v1-header
  669. KERNEL_INITRAMFS := kernel-bin | patch-cmdline | lzma | uImage lzma
  670. IMAGES := sysupgrade.bin factory.bin
  671. IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs |\
  672. pad-rootfs | teltonika-fw-fake-checksum | append-string master |\
  673. append-md5sum-bin | check-size $$$$(IMAGE_SIZE)
  674. IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) |\
  675. append-rootfs | pad-rootfs | append-metadata |\
  676. check-size $$$$(IMAGE_SIZE)
  677. endef
  678. TARGET_DEVICES += rut900
  679. define Device/minibox-v1
  680. $(Device/tplink-16mlzma)
  681. DEVICE_TITLE := GainStrong MiniBox V1.0
  682. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  683. BOARDNAME := MINIBOX-V1
  684. DEVICE_PROFILE := MINIBOXV1
  685. TPLINK_HWID := 0x3C000201
  686. CONSOLE := ttyATH0,115200
  687. IMAGES := sysupgrade.bin
  688. endef
  689. TARGET_DEVICES += minibox-v1
  690. define Device/minibox-v3.2
  691. $(Device/tplink-16mlzma)
  692. DEVICE_TITLE := Gainstrong MiniBox V3.2
  693. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport -swconfig
  694. BOARDNAME := MINIBOX-V3.2
  695. DEVICE_PROFILE := MINIBOXV32
  696. TPLINK_HWID := 0x3C00010C
  697. endef
  698. TARGET_DEVICES += minibox-v3.2
  699. define Device/oolite-v1
  700. $(Device/minibox-v1)
  701. DEVICE_TITLE := GainStrong Oolite V1.0
  702. BOARDNAME := OOLITE-V1
  703. DEVICE_PROFILE := OOLITEV1
  704. TPLINK_HWID := 0x3C000101
  705. endef
  706. TARGET_DEVICES += oolite-v1
  707. define Device/omy-g1
  708. $(Device/tplink-16mlzma)
  709. DEVICE_TITLE := OMYlink OMY-G1
  710. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  711. BOARDNAME := OMY-G1
  712. DEVICE_PROFILE := OMYG1
  713. TPLINK_HWID := 0x06660101
  714. endef
  715. TARGET_DEVICES += omy-g1
  716. define Device/omy-x1
  717. $(Device/tplink-8mlzma)
  718. DEVICE_TITLE := OMYlink OMY-X1
  719. BOARDNAME := OMY-X1
  720. DEVICE_PROFILE := OMYX1
  721. TPLINK_HWID := 0x06660201
  722. endef
  723. TARGET_DEVICES += omy-x1
  724. define Device/onion-omega
  725. $(Device/tplink-16mlzma)
  726. DEVICE_TITLE := Onion Omega
  727. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage kmod-i2c-core kmod-i2c-gpio-custom kmod-spi-bitbang kmod-spi-dev kmod-spi-gpio kmod-spi-gpio-custom kmod-usb-serial
  728. BOARDNAME := ONION-OMEGA
  729. DEVICE_PROFILE := OMEGA
  730. TPLINK_HWID := 0x04700001
  731. CONSOLE := ttyATH0,115200
  732. endef
  733. TARGET_DEVICES += onion-omega
  734. define Device/sc1750
  735. DEVICE_TITLE := Abicom SC1750
  736. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  737. BOARDNAME := SC1750
  738. IMAGE_SIZE := 15744k
  739. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),15744k(firmware),128k(APConfig),128k(kplog),64k(ART)
  740. endef
  741. TARGET_DEVICES += sc1750
  742. define Device/sc300m
  743. DEVICE_TITLE := Abicom SC300M
  744. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  745. BOARDNAME := SC300M
  746. IMAGE_SIZE := 15744k
  747. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),15744k(firmware),128k(APConfig),128k(kplog),64k(ART)
  748. endef
  749. TARGET_DEVICES += sc300m
  750. define Device/sc450
  751. DEVICE_TITLE := Abicom SC450
  752. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  753. BOARDNAME := SC450
  754. IMAGE_SIZE := 15744k
  755. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),15744k(firmware),128k(APConfig),128k(kplog),64k(ART)
  756. endef
  757. TARGET_DEVICES += sc450
  758. define Device/smart-300
  759. $(Device/tplink-8mlzma)
  760. DEVICE_TITLE := NC-LINK SMART-300
  761. BOARDNAME := SMART-300
  762. DEVICE_PROFILE := SMART-300
  763. TPLINK_HWID := 0x93410001
  764. endef
  765. TARGET_DEVICES += smart-300
  766. define Device/som9331
  767. $(Device/tplink-8mlzma)
  768. DEVICE_TITLE := OpenEmbed SOM9331
  769. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage kmod-i2c-core kmod-i2c-gpio-custom kmod-spi-bitbang kmod-spi-dev kmod-spi-gpio kmod-spi-gpio-custom kmod-usb-serial
  770. BOARDNAME := SOM9331
  771. DEVICE_PROFILE := SOM9331
  772. TPLINK_HWID := 0x04800054
  773. CONSOLE := ttyATH0,115200
  774. endef
  775. TARGET_DEVICES += som9331
  776. define Device/t830
  777. DEVICE_TITLE := YunCore T830
  778. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  779. BOARDNAME := T830
  780. IMAGE_SIZE := 16000k
  781. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),16000k(firmware),64k(art)ro
  782. SUPPORTED_DEVICES := t830
  783. IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) |\
  784. append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
  785. endef
  786. TARGET_DEVICES += t830
  787. define Device/tellstick-znet-lite
  788. $(Device/tplink-16mlzma)
  789. DEVICE_TITLE := TellStick ZNet Lite
  790. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-acm kmod-usb-serial kmod-usb-serial-pl2303
  791. BOARDNAME := TELLSTICK-ZNET-LITE
  792. DEVICE_PROFILE := TELLSTICKZNETLITE
  793. TPLINK_HWID := 0x00726001
  794. CONSOLE := ttyATH0,115200
  795. endef
  796. TARGET_DEVICES += tellstick-znet-lite
  797. define Device/ts-d084
  798. $(Device/tplink-8mlzma)
  799. DEVICE_TITLE := PISEN TS-D084
  800. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  801. BOARDNAME := TS-D084
  802. DEVICE_PROFILE := TSD084
  803. TPLINK_HWID := 0x07030101
  804. CONSOLE := ttyATH0,115200
  805. endef
  806. TARGET_DEVICES += ts-d084
  807. define Device/n5q
  808. DEVICE_TITLE := ALFA Network N5Q
  809. DEVICE_PACKAGES := rssileds -swconfig
  810. BOARDNAME := N5Q
  811. SUPPORTED_DEVICES := n5q
  812. IMAGE_SIZE := 15872k
  813. MTDPARTS := spi0.0:384k(u-boot)ro,64k(u-boot-env),64k(art)ro,-(firmware)
  814. IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
  815. append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
  816. endef
  817. TARGET_DEVICES += n5q
  818. define Device/c-55
  819. DEVICE_TITLE := AirTight Networks C-55
  820. DEVICE_PACKAGES := kmod-ath9k
  821. BOARDNAME := C-55
  822. KERNEL_SIZE := 2048k
  823. IMAGE_SIZE := 15872k
  824. MTDPARTS := spi0.0:256k(u-boot)ro,128k(u-boot-env)ro,2048k(kernel),13824k(rootfs),13824k(opt)ro,2624k(failsafe)ro,64k(art)ro,15872k@0x60000(firmware)
  825. IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)
  826. endef
  827. TARGET_DEVICES += c-55
  828. define Device/hiwifi-hc6361
  829. DEVICE_TITLE := HiWiFi HC6361
  830. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage \
  831. kmod-fs-ext4 kmod-nls-iso8859-1 e2fsprogs
  832. BOARDNAME := HiWiFi-HC6361
  833. DEVICE_PROFILE := HIWIFI_HC6361
  834. IMAGE_SIZE := 16128k
  835. KERNEL := kernel-bin | patch-cmdline | lzma | uImageHiWiFi lzma
  836. CONSOLE := ttyATH0,115200
  837. MTDPARTS := spi0.0:64k(u-boot)ro,64k(bdinfo)ro,16128k(firmware),64k(backup)ro,64k(art)ro
  838. endef
  839. TARGET_DEVICES += hiwifi-hc6361
  840. define Device/seama
  841. LOADER_TYPE := bin
  842. BLOCKSIZE := 64k
  843. KERNEL := kernel-bin | patch-cmdline | relocate-kernel | lzma
  844. KERNEL_INITRAMFS := kernel-bin | patch-cmdline | lzma | seama
  845. KERNEL_INITRAMFS_SUFFIX = $$(KERNEL_SUFFIX).seama
  846. SEAMA_MTDBLOCK := 1
  847. IMAGES := sysupgrade.bin factory.bin
  848. # 64 bytes offset:
  849. # - 28 bytes seama_header
  850. # - 36 bytes of META data (4-bytes aligned)
  851. IMAGE/default := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs
  852. IMAGE/sysupgrade.bin := \
  853. $$(IMAGE/default) | seama | pad-rootfs | \
  854. check-size $$$$(IMAGE_SIZE)
  855. IMAGE/factory.bin := \
  856. $$(IMAGE/default) | seama | pad-rootfs | \
  857. seama-seal | check-size $$$$(IMAGE_SIZE)
  858. SEAMA_SIGNATURE :=
  859. endef
  860. define Device/dir-869-a1
  861. $(Device/seama)
  862. DEVICE_TITLE := D-Link DIR-869 rev. A1
  863. DEVICE_PACKAGES :=
  864. BOARDNAME := DIR-869-A1
  865. IMAGE_SIZE := 15872k
  866. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,64k(devdata)ro,64k(devconf)ro,15872k(firmware),64k(radiocfg)ro
  867. SEAMA_SIGNATURE := wrgac54_dlink.2015_dir869
  868. IMAGE/factory.bin := \
  869. $$(IMAGE/default) | pad-rootfs -x 64 | \
  870. seama | seama-seal -m "signature=$$$$(SEAMA_SIGNATURE)" | \
  871. check-size $$$$(IMAGE_SIZE)
  872. endef
  873. TARGET_DEVICES += dir-869-a1
  874. define Device/mynet-n600
  875. $(Device/seama)
  876. DEVICE_TITLE := Western Digital My Net N600
  877. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  878. BOARDNAME := MYNET-N600
  879. IMAGE_SIZE := 15808k
  880. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,64k(devdata)ro,64k(devconf)ro,15872k(firmware),64k(radiocfg)ro
  881. SEAMA_SIGNATURE := wrgnd16_wd_db600
  882. endef
  883. TARGET_DEVICES += mynet-n600
  884. define Device/mynet-n750
  885. $(Device/seama)
  886. DEVICE_TITLE := Western Digital My Net N750
  887. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  888. BOARDNAME := MYNET-N750
  889. IMAGE_SIZE := 15808k
  890. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,64k(devdata)ro,64k(devconf)ro,15872k(firmware),64k(radiocfg)ro
  891. SEAMA_SIGNATURE := wrgnd13_wd_av
  892. endef
  893. TARGET_DEVICES += mynet-n750
  894. define Device/dap-1330-a1
  895. DEVICE_TITLE := D-Link DAP-1330 rev. A1
  896. DEVICE_PACKAGES := rssileds
  897. BOARDNAME := DAP-1330-A1
  898. IMAGES := factory.img sysupgrade.bin
  899. IMAGE_SIZE := 7936k
  900. IMAGE/factory.img := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | mkdapimg2 917504
  901. MTDPARTS := spi0.0:64k(u-boot)ro,64k(art)ro,64k(mp)ro,64k(config)ro,7936k(firmware)
  902. DAP_SIGNATURE := HONEYBEE-FIRMWARE-DAP-1330
  903. endef
  904. TARGET_DEVICES += dap-1330-a1
  905. define Device/wam250
  906. DEVICE_TITLE := Samsung WAM250
  907. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 -swconfig
  908. BOARDNAME := WAM250
  909. IMAGE_SIZE := 15872k
  910. MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),128k(nvram)ro,15872k(firmware),64k(art)ro
  911. SUPPORTED_DEVICES := wam250
  912. IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) |\
  913. append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
  914. endef
  915. TARGET_DEVICES += wam250
  916. define Device/wifi-pineapple-nano
  917. $(Device/tplink-16mlzma)
  918. DEVICE_TITLE := Hak5 WiFi Pineapple NANO
  919. DEVICE_PACKAGES := kmod-ath9k-htc kmod-usb-core kmod-usb2 kmod-usb-storage \
  920. -swconfig -uboot-envtools
  921. BOARDNAME := WIFI-PINEAPPLE-NANO
  922. DEVICE_PROFILE := WIFIPINEAPPLENANO
  923. TPLINK_HWID := 0x4e414e4f
  924. CONSOLE := ttyATH0,115200
  925. IMAGES := sysupgrade.bin
  926. endef
  927. TARGET_DEVICES += wifi-pineapple-nano
  928. define Device/wpj-16m
  929. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  930. MTDPARTS := spi0.0:192k(u-boot)ro,16128k(firmware),64k(art)ro
  931. IMAGE_SIZE := 16128k
  932. endef
  933. define Device/wpj342
  934. $(Device/wpj-16m)
  935. DEVICE_TITLE := Compex WPJ342 (16MB flash)
  936. BOARDNAME := WPJ342
  937. endef
  938. TARGET_DEVICES += wpj342
  939. define Device/wpj344
  940. $(Device/wpj-16m)
  941. DEVICE_TITLE := Compex WPJ344 (16MB flash)
  942. BOARDNAME := WPJ344
  943. SUPPORTED_DEVICES := wpj344
  944. IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
  945. append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
  946. endef
  947. TARGET_DEVICES += wpj344
  948. define Device/wpj531
  949. $(Device/wpj-16m)
  950. DEVICE_TITLE := Compex WPJ531 (16MB flash)
  951. BOARDNAME := WPJ531
  952. endef
  953. TARGET_DEVICES += wpj531
  954. define Device/wpj558
  955. $(Device/wpj-16m)
  956. DEVICE_TITLE := Compex WPJ558 (16MB flash)
  957. BOARDNAME := WPJ558
  958. SUPPORTED_DEVICES := wpj558
  959. IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
  960. append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
  961. endef
  962. TARGET_DEVICES += wpj558
  963. define Device/wpj563
  964. $(Device/wpj-16m)
  965. DEVICE_TITLE := Compex WPJ563 (16MB flash)
  966. BOARDNAME := WPJ563
  967. endef
  968. TARGET_DEVICES += wpj563
  969. define Device/wrtnode2q
  970. DEVICE_TITLE := WRTnode2Q
  971. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage
  972. BOARDNAME := WRTNODE2Q
  973. IMAGE_SIZE := 16064k
  974. MTDPARTS := spi0.0:192k(u-boot)ro,64k(u-boot-env),64k(art)ro,16064k(firmware),16384k@0x0(fullflash)
  975. endef
  976. TARGET_DEVICES += wrtnode2q
  977. define Device/AVM
  978. DEVICE_PACKAGES := fritz-tffs -uboot-envtools
  979. KERNEL := kernel-bin | patch-cmdline | lzma | eva-image
  980. KERNEL_INITRAMFS := $$(KERNEL)
  981. IMAGE/sysupgrade.bin := append-kernel | pad-to 64k | \
  982. append-squashfs-fakeroot-be | pad-to 256 | \
  983. append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
  984. endef
  985. define Device/fritz300e
  986. $(call Device/AVM)
  987. DEVICE_TITLE := AVM FRITZ!WLAN Repeater 300E
  988. DEVICE_PACKAGES += rssileds -swconfig
  989. BOARDNAME := FRITZ300E
  990. SUPPORTED_DEVICES := fritz300e
  991. IMAGE_SIZE := 15232k
  992. endef
  993. TARGET_DEVICES += fritz300e
  994. define Device/fritz4020
  995. $(call Device/AVM)
  996. DEVICE_TITLE := AVM FRITZ!Box 4020
  997. DEVICE_PACKAGES += kmod-usb-core kmod-usb2 kmod-usb-storage
  998. BOARDNAME := FRITZ4020
  999. SUPPORTED_DEVICES := fritz4020
  1000. IMAGE_SIZE := 15232k
  1001. endef
  1002. TARGET_DEVICES += fritz4020
  1003. define Device/fritz450e
  1004. $(call Device/AVM)
  1005. DEVICE_TITLE := AVM FRITZ!WLAN Repeater 450E
  1006. DEVICE_PACKAGES += -swconfig
  1007. BOARDNAME := FRITZ450E
  1008. SUPPORTED_DEVICES := fritz450e
  1009. IMAGE_SIZE := 15232k
  1010. endef
  1011. TARGET_DEVICES += fritz450e