d9da3be78279dd3564f921a15d9315ee85108c80
[openwrt/staging/mkresin.git] / target / linux / ar71xx / image / generic.mk
1 DEVICE_VARS += DAP_SIGNATURE NETGEAR_BOARD_ID NETGEAR_HW_ID NETGEAR_KERNEL_MAGIC ROOTFS_SIZE SEAMA_SIGNATURE
2
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
10 define Build/append-md5sum-bin
11 $(STAGING_DIR_HOST)/bin/mkhash md5 $@ | sed 's/../\\\\x&/g' |\
12 xargs echo -ne >> $@
13 endef
14
15 define Build/append-string
16 echo -n $(1) >> $@
17 endef
18
19 define Build/mkwrggimg
20 $(STAGING_DIR_HOST)/bin/mkwrggimg -b \
21 -i $@ -o $@.imghdr -d /dev/mtdblock/1 \
22 -m $(BOARDNAME) -s $(DAP_SIGNATURE) \
23 -v $(VERSION_DIST) -B $(REVISION)
24 mv $@.imghdr $@
25 endef
26
27 define Build/mkdapimg2
28 $(STAGING_DIR_HOST)/bin/mkdapimg2 \
29 -i $@ -o $@.new \
30 -s $(DAP_SIGNATURE) \
31 -v $(VERSION_DIST)-$(firstword $(subst +, ,$(firstword $(subst -, ,$(REVISION))))) \
32 -r Default \
33 $(if $(1),-k $(1))
34 mv $@.new $@
35 endef
36
37 define Build/netgear-squashfs
38 rm -rf $@.fs $@.squashfs
39 mkdir -p $@.fs/image
40 cp $@ $@.fs/image/uImage
41 $(STAGING_DIR_HOST)/bin/mksquashfs-lzma \
42 $@.fs $@.squashfs \
43 -noappend -root-owned -be -b 65536 \
44 $(if $(SOURCE_DATE_EPOCH),-fixed-time $(SOURCE_DATE_EPOCH))
45
46 dd if=/dev/zero bs=1k count=1 >> $@.squashfs
47 mkimage \
48 -A mips -O linux -T filesystem -C none \
49 -M $(NETGEAR_KERNEL_MAGIC) \
50 -a 0xbf070000 -e 0xbf070000 \
51 -n 'MIPS $(VERSION_DIST) Linux-$(LINUX_VERSION)' \
52 -d $@.squashfs $@
53 rm -rf $@.squashfs $@.fs
54 endef
55
56 define Build/netgear-uImage
57 $(call Build/uImage,$(1) -M $(NETGEAR_KERNEL_MAGIC))
58 endef
59
60 define Build/relocate-kernel
61 rm -rf $@.relocate
62 $(CP) ../../generic/image/relocate $@.relocate
63 $(MAKE) -j1 -C $@.relocate KERNEL_ADDR=$(KERNEL_LOADADDR) CROSS_COMPILE=$(TARGET_CROSS)
64 ( \
65 dd if=$@.relocate/loader.bin bs=32 conv=sync && \
66 perl -e '@s = stat("$@"); print pack("N", @s[7])' && \
67 cat "$@" \
68 ) > "$@.new"
69 mv "$@.new" "$@"
70 rm -rf $@.relocate
71 endef
72
73 define Build/seama
74 $(STAGING_DIR_HOST)/bin/seama -i $@ $(if $(1),$(1),-m "dev=/dev/mtdblock/1" -m "type=firmware")
75 mv $@.seama $@
76 endef
77
78 define Build/seama-seal
79 $(call Build/seama,-s $@.seama $(1))
80 endef
81
82 define Build/teltonika-fw-fake-checksum
83 # Teltonika U-Boot web based firmware upgrade/recovery routine compares
84 # 16 bytes from md5sum1[16] field in TP-Link v1 header (offset: 76 bytes
85 # from begin of the firmware file) with 16 bytes stored just before
86 # 0xdeadc0de marker. Values are only compared, MD5 sum is not verified.
87 let \
88 offs="$$(stat -c%s $@) - 20"; \
89 dd if=$@ bs=1 count=16 skip=76 |\
90 dd of=$@ bs=1 count=16 seek=$$offs conv=notrunc
91 endef
92
93 define Build/uImageHiWiFi
94 # Field ih_name needs to start with "tw150v1"
95 mkimage -A $(LINUX_KARCH) \
96 -O linux -T kernel \
97 -C $(1) -a $(KERNEL_LOADADDR) -e $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \
98 -n 'tw150v1 $(call toupper,$(LINUX_KARCH)) $(VERSION_DIST) Linux-$(LINUX_VERSION)' -d $@ $@.new
99 @mv $@.new $@
100 endef
101
102 define Build/wrgg-pad-rootfs
103 $(STAGING_DIR_HOST)/bin/padjffs2 $(IMAGE_ROOTFS) -c 64 >>$@
104 endef
105
106
107 define Device/ap121f
108 DEVICE_TITLE := ALFA Network AP121F
109 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage -swconfig
110 BOARDNAME := AP121F
111 IMAGE_SIZE := 16064k
112 CONSOLE := ttyATH0,115200
113 MTDPARTS := spi0.0:192k(u-boot)ro,64k(u-boot-env),64k(art)ro,-(firmware)
114 SUPPORTED_DEVICES := ap121f
115 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
116 append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
117 endef
118 TARGET_DEVICES += ap121f
119
120 define Device/ap531b0
121 DEVICE_TITLE := Rockeetech AP531B0
122 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
123 BOARDNAME := AP531B0
124 IMAGE_SIZE := 16000k
125 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro
126 endef
127 TARGET_DEVICES += ap531b0
128
129 define Device/ap90q
130 DEVICE_TITLE := YunCore AP80Q/AP90Q
131 BOARDNAME := AP90Q
132 IMAGE_SIZE := 16000k
133 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),16000k(firmware),64k(art)ro
134 endef
135 TARGET_DEVICES += ap90q
136
137 define Device/ap91-5g
138 DEVICE_TITLE := ALFA Network AP91-5G
139 DEVICE_PACKAGES := rssileds -swconfig
140 BOARDNAME := AP91-5G
141 IMAGE_SIZE := 7744k
142 KERNEL_SIZE := 1600k
143 ROOTFS_SIZE := 6144k
144 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),6144k(rootfs),1600k(kernel),64k(config)ro,64k(art)ro,7744k@0x50000(firmware)
145 IMAGES := sysupgrade.bin factory.bin
146 IMAGE/factory.bin := append-rootfs | pad-rootfs |\
147 alfa-network-rootfs-header | append-kernel | check-size $$$$(IMAGE_SIZE)
148 IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs |\
149 pad-to $$$$(ROOTFS_SIZE) | append-kernel | check-size $$$$(IMAGE_SIZE)
150 endef
151 TARGET_DEVICES += ap91-5g
152
153 define Device/arduino-yun
154 DEVICE_TITLE := Arduino Yun
155 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
156 BOARDNAME := Yun
157 IMAGE_SIZE := 15936k
158 CONSOLE := ttyATH0,250000
159 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),15936k(firmware),64k(nvram),64k(art)ro
160 endef
161 TARGET_DEVICES += arduino-yun
162
163 define Device/bsb
164 DEVICE_TITLE := Smart Electronics Black Swift board
165 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
166 BOARDNAME := BSB
167 IMAGE_SIZE := 16000k
168 CONSOLE := ttyATH0,115200
169 MTDPARTS := spi0.0:128k(u-boot)ro,64k(u-boot-env)ro,16128k(firmware),64k(art)ro
170 endef
171 TARGET_DEVICES += bsb
172
173 define Device/carambola2
174 DEVICE_TITLE := 8devices Carambola2
175 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
176 BOARDNAME := CARAMBOLA2
177 IMAGE_SIZE := 16000k
178 CONSOLE := ttyATH0,115200
179 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro
180 endef
181 TARGET_DEVICES += carambola2
182
183 define Device/cf-e316n-v2
184 DEVICE_TITLE := COMFAST CF-E316N v2
185 DEVICE_PACKAGES := -swconfig -uboot-envtools
186 BOARDNAME := CF-E316N-V2
187 IMAGE_SIZE := 16192k
188 MTDPARTS := spi0.0:64k(u-boot)ro,64k(art)ro,16192k(firmware),64k(art-backup)ro
189 endef
190 TARGET_DEVICES += cf-e316n-v2
191
192 define Device/cf-e320n-v2
193 $(Device/cf-e316n-v2)
194 DEVICE_TITLE := COMFAST CF-E320N v2
195 DEVICE_PACKAGES += kmod-usb-core kmod-usb2
196 BOARDNAME := CF-E320N-V2
197 endef
198 TARGET_DEVICES += cf-e320n-v2
199
200 define Device/cf-e355ac-v1
201 DEVICE_TITLE := COMFAST CF-E355AC v1
202 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ath10k ath10k-firmware-qca988x \
203 -swconfig -uboot-envtools
204 BOARDNAME := CF-E355AC-V1
205 IMAGE_SIZE := 16192k
206 MTDPARTS := spi0.0:64k(u-boot)ro,64k(art)ro,16192k(firmware),64k(art-backup)ro
207 endef
208 TARGET_DEVICES += cf-e355ac-v1
209
210 define Device/cf-e355ac-v2
211 $(Device/cf-e355ac-v1)
212 DEVICE_TITLE := COMFAST CF-E355AC v2
213 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ath10k ath10k-firmware-qca9888 \
214 -swconfig -uboot-envtools
215 BOARDNAME := CF-E355AC-V2
216 endef
217 TARGET_DEVICES += cf-e355ac-v2
218
219 define Device/cf-e375ac
220 DEVICE_TITLE := COMFAST CF-E375AC
221 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ath10k ath10k-firmware-qca9888 \
222 -uboot-envtools
223 BOARDNAME := CF-E375AC
224 IMAGE_SIZE := 16000k
225 MTDPARTS := spi0.0:256k(u-boot)ro,64k(art)ro,16000k(firmware),64k(art-backup)ro
226 endef
227 TARGET_DEVICES += cf-e375ac
228
229 define Device/cf-e380ac-v1
230 DEVICE_TITLE := COMFAST CF-E380AC v1
231 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ath10k ath10k-firmware-qca988x \
232 -swconfig -uboot-envtools
233 BOARDNAME := CF-E380AC-V1
234 IMAGE_SIZE := 16128k
235 MTDPARTS := spi0.0:128k(u-boot)ro,64k(art)ro,16128k(firmware),64k(art-backup)ro
236 endef
237 TARGET_DEVICES += cf-e380ac-v1
238
239 define Device/cf-e380ac-v2
240 $(Device/cf-e380ac-v1)
241 DEVICE_TITLE := COMFAST CF-E380AC v2
242 BOARDNAME := CF-E380AC-V2
243 IMAGE_SIZE := 16000k
244 MTDPARTS := spi0.0:256k(u-boot)ro,64k(art)ro,16000k(firmware),64k(art-backup)ro
245 endef
246 TARGET_DEVICES += cf-e380ac-v2
247
248 define Device/cf-e385ac
249 DEVICE_TITLE := COMFAST CF-E385AC
250 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ath10k ath10k-firmware-qca9984 \
251 -uboot-envtools
252 BOARDNAME := CF-E385AC
253 IMAGE_SIZE := 16000k
254 MTDPARTS := spi0.0:256k(u-boot)ro,64k(art)ro,16000k(firmware),64k(art-backup)ro
255 endef
256 TARGET_DEVICES += cf-e385ac
257
258 define Device/cf-e520n
259 DEVICE_TITLE := COMFAST CF-E520N
260 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 -swconfig -uboot-envtools
261 BOARDNAME := CF-E520N
262 IMAGE_SIZE := 8000k
263 MTDPARTS := spi0.0:64k(u-boot)ro,64k(art)ro,8000k(firmware),64k(art-backup)ro
264 endef
265 TARGET_DEVICES += cf-e520n
266
267 define Device/cf-e530n
268 $(Device/cf-e520n)
269 DEVICE_TITLE := COMFAST CF-E530N
270 BOARDNAME := CF-E530N
271 endef
272 TARGET_DEVICES += cf-e530n
273
274 define Device/cpe505n
275 DEVICE_TITLE := P&W CPE505N
276 BOARDNAME := CPE505N
277 IMAGE_SIZE := 16000k
278 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro
279 endef
280 TARGET_DEVICES += cpe505n
281
282 define Device/cpe830
283 $(Device/ap90q)
284 DEVICE_TITLE := YunCore CPE830
285 DEVICE_PACKAGES := rssileds
286 BOARDNAME := CPE830
287 endef
288 TARGET_DEVICES += cpe830
289
290 define Device/cpe870
291 DEVICE_TITLE := YunCore CPE870
292 DEVICE_PACKAGES := rssileds
293 BOARDNAME := CPE870
294 IMAGE_SIZE := 7936k
295 MTDPARTS := spi0.0:64k(u-boot)ro,64k(u-boot-env),7936k(firmware),64k(config)ro,64k(art)ro
296 endef
297 TARGET_DEVICES += cpe870
298
299 define Device/dragino2
300 BOARDNAME := DRAGINO2
301 CONSOLE := ttyATH0,115200
302 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
303 DEVICE_TITLE := Dragino 2 (MS14)
304 IMAGE_SIZE := 16000k
305 MTDPARTS := spi0.0:256k(u-boot)ro,16000k(firmware),64k(config)ro,64k(art)ro
306 endef
307 TARGET_DEVICES += dragino2
308
309 define Device/e1700ac-v2-16M
310 DEVICE_TITLE := Qxwlan E1700AC v2 (16MB flash)
311 DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x kmod-usb-core \
312 kmod-usb2 kmod-usb-ledtrig-usbport
313 BOARDNAME := E1700AC-V2
314 SUPPORTED_DEVICES := e1700ac-v2
315 IMAGE_SIZE := 15936k
316 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),64k(pri-data)ro,64k(art)ro,-(firmware)
317 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) |\
318 append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
319 endef
320 TARGET_DEVICES += e1700ac-v2-16M
321
322 define Device/e1700ac-v2-8M
323 $(Device/e1700ac-v2-16M)
324 DEVICE_TITLE := Qxwlan E1700AC v2 (8MB flash)
325 IMAGE_SIZE := 7744k
326 endef
327 TARGET_DEVICES += e1700ac-v2-8M
328
329 define Device/e558-v2-16M
330 DEVICE_TITLE := Qxwlan E558 v2 (16MB flash)
331 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 -swconfig
332 BOARDNAME := E558-V2
333 SUPPORTED_DEVICES := e558-v2
334 IMAGE_SIZE := 15936k
335 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),64k(pri-data)ro,64k(art),-(firmware)
336 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) |\
337 append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
338 endef
339 TARGET_DEVICES += e558-v2-16M
340
341 define Device/e558-v2-8M
342 $(Device/e558-v2-16M)
343 DEVICE_TITLE := Qxwlan E558 v2 (8MB flash)
344 IMAGE_SIZE := 7744k
345 endef
346 TARGET_DEVICES += e558-v2-8M
347
348 define Device/e600g-v2-16M
349 DEVICE_TITLE := Qxwlan E600G v2 (16MB flash)
350 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 -swconfig
351 BOARDNAME := E600G-V2
352 SUPPORTED_DEVICES := e600g-v2
353 IMAGE_SIZE := 15936k
354 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),64k(pri-data)ro,64k(art)ro,-(firmware)
355 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) |\
356 append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
357 endef
358 TARGET_DEVICES += e600g-v2-16M
359
360 define Device/e600g-v2-8M
361 $(Device/e600g-v2-16M)
362 DEVICE_TITLE := Qxwlan E600G v2 (8MB flash)
363 IMAGE_SIZE := 7744k
364 endef
365 TARGET_DEVICES += e600g-v2-8M
366
367 define Device/e600gac-v2-16M
368 DEVICE_TITLE := Qxwlan E600GAC v2 (16MB flash)
369 DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca9887 kmod-usb-core \
370 kmod-usb2 -swconfig
371 BOARDNAME := E600GAC-V2
372 SUPPORTED_DEVICES := e600gac-v2
373 IMAGE_SIZE := 15936k
374 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),64k(pri-data)ro,64k(art)ro,-(firmware)
375 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) |\
376 append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
377 endef
378 TARGET_DEVICES += e600gac-v2-16M
379
380 define Device/e600gac-v2-8M
381 $(Device/e600gac-v2-16M)
382 DEVICE_TITLE := Qxwlan E600GAC v2 (8MB flash)
383 IMAGE_SIZE := 7744k
384 endef
385 TARGET_DEVICES += e600gac-v2-8M
386
387 define Device/e750a-v4-16M
388 DEVICE_TITLE := Qxwlan E750A v4 (16MB flash)
389 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 -swconfig
390 BOARDNAME := E750A-V4
391 SUPPORTED_DEVICES := e750a-v4
392 IMAGE_SIZE := 15936k
393 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),64k(pri-data)ro,64k(art),-(firmware)
394 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) |\
395 append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
396 endef
397 TARGET_DEVICES += e750a-v4-16M
398
399 define Device/e750a-v4-8M
400 $(Device/e750a-v4-16M)
401 DEVICE_TITLE := Qxwlan E750A v4 (8MB flash)
402 IMAGE_SIZE := 7744k
403 endef
404 TARGET_DEVICES += e750a-v4-8M
405
406 define Device/ew-balin
407 DEVICE_TITLE := Embedded Wireless Balin Platform
408 DEVICE_PACKAGES := kmod-usb-core kmod-usb-chipidea
409 BOARDNAME := EW-BALIN
410 IMAGE_SIZE := 16000k
411 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),16000k(firmware),64k(art)ro
412 endef
413 TARGET_DEVICES += ew-balin
414
415 define Device/ew-dorin
416 $(Device/ew-balin)
417 DEVICE_TITLE := Embedded Wireless Dorin Platform
418 BOARDNAME := EW-DORIN
419 CONSOLE := ttyATH0,115200
420 endef
421 TARGET_DEVICES += ew-dorin
422
423 define Device/ew-dorin-router
424 $(Device/ew-dorin)
425 DEVICE_TITLE := Embedded Wireless Dorin Router Platform
426 BOARDNAME := EW-DORIN-ROUTER
427 endef
428 TARGET_DEVICES += ew-dorin-router
429
430 define Device/rme-eg200
431 DEVICE_TITLE := eTactica EG-200
432 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ledtrig-oneshot \
433 kmod-usb-serial kmod-usb-serial-ftdi \
434 kmod-usb-storage \
435 kmod-fs-ext4
436 BOARDNAME := RME-EG200
437 IMAGE_SIZE := 16000k
438 CONSOLE := ttyATH0,115200
439 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro
440 endef
441 TARGET_DEVICES += rme-eg200
442
443 define Device/weio
444 DEVICE_TITLE := WeIO
445 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
446 BOARDNAME := WEIO
447 IMAGE_SIZE := 16000k
448 CONSOLE := ttyATH0,115200
449 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro
450 endef
451 TARGET_DEVICES += weio
452
453 define Device/gl-ar150
454 DEVICE_TITLE := GL.iNet GL-AR150
455 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
456 BOARDNAME := GL-AR150
457 IMAGE_SIZE := 16000k
458 CONSOLE := ttyATH0,115200
459 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro
460 endef
461 TARGET_DEVICES += gl-ar150
462
463 define Device/gl-ar300
464 DEVICE_TITLE := GL.iNet GL-AR300
465 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
466 BOARDNAME := GL-AR300
467 IMAGE_SIZE := 16000k
468 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro
469 endef
470 TARGET_DEVICES += gl-ar300
471
472 define Device/gl-ar300m
473 DEVICE_TITLE := GL.iNet GL-AR300M
474 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
475 BOARDNAME := GL-AR300M
476 IMAGE_SIZE := 16000k
477 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),16000k(firmware),64k(art)ro
478 endef
479 TARGET_DEVICES += gl-ar300m
480
481 define Device/gl-ar750
482 DEVICE_TITLE := GL.iNet GL-AR750
483 DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca9887 kmod-usb-core \
484 kmod-usb2 kmod-usb-storage
485 BOARDNAME := GL-AR750
486 SUPPORTED_DEVICES := gl-ar750
487 IMAGE_SIZE := 16000k
488 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),64k(art)ro,-(firmware)
489 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
490 append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
491 endef
492 TARGET_DEVICES += gl-ar750
493
494 define Device/gl-ar750s
495 DEVICE_TITLE := GL.iNet GL-AR750S
496 DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca9887 kmod-usb-core \
497 kmod-usb2 kmod-usb-storage
498 BOARDNAME := GL-AR750S
499 SUPPORTED_DEVICES := gl-ar750s
500 IMAGE_SIZE := 16000k
501 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),64k(art)ro,-(firmware)
502 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
503 append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
504 endef
505 TARGET_DEVICES += gl-ar750s
506
507 define Device/gl-domino
508 DEVICE_TITLE := GL.iNet Domino Pi
509 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
510 BOARDNAME := DOMINO
511 IMAGE_SIZE := 16000k
512 CONSOLE := ttyATH0,115200
513 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro
514 endef
515 TARGET_DEVICES += gl-domino
516
517 define Device/gl-mifi
518 DEVICE_TITLE := GL.iNet GL-MiFi
519 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
520 BOARDNAME := GL-MIFI
521 IMAGE_SIZE := 16000k
522 CONSOLE := ttyATH0,115200
523 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro
524 endef
525 TARGET_DEVICES += gl-mifi
526
527 define Device/gl-usb150
528 DEVICE_TITLE := GL.iNet GL-USB150
529 DEVICE_PACKAGES := -swconfig
530 BOARDNAME := GL-USB150
531 IMAGE_SIZE := 16000k
532 CONSOLE := ttyATH0,115200
533 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro
534 SUPPORTED_DEVICES := gl-usb150
535 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
536 append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
537 endef
538 TARGET_DEVICES += gl-usb150
539
540 define Device/lan-turtle
541 $(Device/tplink-16mlzma)
542 DEVICE_TITLE := Hak5 LAN Turtle
543 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage \
544 -kmod-ath9k -swconfig -uboot-envtools -wpad-mini
545 BOARDNAME := LAN-TURTLE
546 DEVICE_PROFILE := LANTURTLE
547 TPLINK_HWID := 0x5348334c
548 CONSOLE := ttyATH0,115200
549 IMAGES := sysupgrade.bin
550 endef
551 TARGET_DEVICES += lan-turtle
552
553 define Device/lima
554 DEVICE_TITLE := 8devices Lima
555 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
556 BOARDNAME := LIMA
557 IMAGE_SIZE := 15616k
558 MTDPARTS := spi0.0:256k(u-boot)ro,256k(u-boot-env)ro,256k(art)ro,-(firmware)
559 endef
560 TARGET_DEVICES += lima
561
562 define Device/mr12
563 DEVICE_TITLE := Meraki MR12
564 DEVICE_PACKAGES := kmod-spi-gpio
565 BOARDNAME := MR12
566 ROOTFS_SIZE := 13440k
567 IMAGE_SIZE := 15680k
568 MTDPARTS := spi0.0:256k(u-boot)ro,256k(u-boot-env)ro,13440k(rootfs),2240k(kernel),64k(mac),128k(art)ro,15680k@0x80000(firmware)
569 IMAGE/kernel.bin := append-kernel
570 IMAGE/rootfs.bin := append-rootfs | pad-rootfs
571 IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | pad-to $$$$(ROOTFS_SIZE) | append-kernel | check-size $$$$(IMAGE_SIZE)
572 IMAGES := kernel.bin rootfs.bin sysupgrade.bin
573 endef
574 TARGET_DEVICES += mr12
575
576 define Device/mr16
577 $(Device/mr12)
578 DEVICE_TITLE := Meraki MR16
579 BOARDNAME := MR16
580 endef
581 TARGET_DEVICES += mr16
582
583 define Device/dr342
584 DEVICE_TITLE := Wallys DR342
585 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 -swconfig
586 BOARDNAME := DR342
587 IMAGE_SIZE := 16000k
588 MTDPARTS := spi0.0:192k(u-boot)ro,64k(u-boot-env),64k(partition-table)ro,16000k(firmware),64k(art)ro
589 endef
590 TARGET_DEVICES += dr342
591
592 define Device/dr344
593 DEVICE_TITLE := Wallys DR344
594 BOARDNAME := DR344
595 KERNEL_SIZE := 1408k
596 ROOTFS_SIZE := 6336k
597 IMAGE_SIZE := 7744k
598 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,6336k(rootfs),1408k(kernel),64k(nvram),64k(art)ro,7744k@0x50000(firmware)
599 IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | pad-to $$$$(ROOTFS_SIZE) | append-kernel | check-size $$$$(IMAGE_SIZE)
600 endef
601
602 define Device/dr531
603 DEVICE_TITLE := Wallys DR531
604 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
605 BOARDNAME := DR531
606 IMAGE_SIZE := 7808k
607 MTDPARTS := spi0.0:192k(u-boot)ro,64k(u-boot-env),64k(partition-table)ro,7808k(firmware),64k(art)ro
608 endef
609 TARGET_DEVICES += dr531
610
611 define Device/wndr3700
612 DEVICE_TITLE := NETGEAR WNDR3700
613 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport kmod-leds-wndr3700-usb
614 BOARDNAME := WNDR3700
615 NETGEAR_KERNEL_MAGIC := 0x33373030
616 NETGEAR_BOARD_ID := WNDR3700
617 IMAGE_SIZE := 7680k
618 MTDPARTS := spi0.0:320k(u-boot)ro,128k(u-boot-env)ro,7680k(firmware),64k(art)ro
619 IMAGES := sysupgrade.bin factory.img factory-NA.img
620 KERNEL := kernel-bin | patch-cmdline | lzma -d20 | netgear-uImage lzma
621 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | netgear-squashfs | append-rootfs | pad-rootfs
622 IMAGE/sysupgrade.bin := $$(IMAGE/default) | check-size $$$$(IMAGE_SIZE)
623 IMAGE/factory.img := $$(IMAGE/default) | netgear-dni | check-size $$$$(IMAGE_SIZE)
624 IMAGE/factory-NA.img := $$(IMAGE/default) | netgear-dni NA | check-size $$$$(IMAGE_SIZE)
625 endef
626 TARGET_DEVICES += wndr3700
627
628 define Device/wndr3700v2
629 $(Device/wndr3700)
630 DEVICE_TITLE := NETGEAR WNDR3700 v2
631 NETGEAR_BOARD_ID := WNDR3700v2
632 NETGEAR_KERNEL_MAGIC := 0x33373031
633 NETGEAR_HW_ID := 29763654+16+64
634 IMAGE_SIZE := 15872k
635 MTDPARTS := spi0.0:320k(u-boot)ro,128k(u-boot-env)ro,15872k(firmware),64k(art)ro
636 IMAGES := sysupgrade.bin factory.img
637 endef
638 TARGET_DEVICES += wndr3700v2
639
640 define Device/wndr3800
641 $(Device/wndr3700v2)
642 DEVICE_TITLE := NETGEAR WNDR3800
643 NETGEAR_BOARD_ID := WNDR3800
644 NETGEAR_HW_ID := 29763654+16+128
645 endef
646 TARGET_DEVICES += wndr3800
647
648 define Device/wndr3800ch
649 $(Device/wndr3800)
650 DEVICE_TITLE := NETGEAR WNDR3800 (Ch)
651 NETGEAR_BOARD_ID := WNDR3800CH
652 endef
653 TARGET_DEVICES += wndr3800ch
654
655 define Device/wndrmac
656 $(Device/wndr3700v2)
657 DEVICE_TITLE := NETGEAR WNDRMAC
658 NETGEAR_BOARD_ID := WNDRMAC
659 endef
660 TARGET_DEVICES += wndrmac
661
662 define Device/wndrmacv2
663 $(Device/wndr3800)
664 DEVICE_TITLE := NETGEAR WNDRMAC v2
665 NETGEAR_BOARD_ID := WNDRMACv2
666 endef
667 TARGET_DEVICES += wndrmacv2
668
669 define Device/cap324
670 DEVICE_TITLE := PowerCloud Systems CAP324
671 BOARDNAME := CAP324
672 DEVICE_PROFILE := CAP324
673 IMAGE_SIZE := 16000k
674 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro
675 endef
676 TARGET_DEVICES += cap324
677
678 define Device/cr3000
679 DEVICE_TITLE := PowerCloud CR3000 Cloud Router
680 BOARDNAME := CR3000
681 DEVICE_PROFILE := CR3000
682 IMAGE_SIZE := 7104k
683 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,7104k(firmware),640k(certs),64k(nvram),64k(art)ro
684 endef
685 TARGET_DEVICES += cr3000
686
687 define Device/cr3000-nocloud
688 DEVICE_TITLE := PowerCloud CR3000 (No-Cloud)
689 BOARDNAME := CR3000
690 DEVICE_PROFILE := CR3000
691 IMAGE_SIZE := 7808k
692 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,7808k(firmware),64k(art)ro
693 endef
694 TARGET_DEVICES += cr3000-nocloud
695
696 define Device/cr5000
697 DEVICE_TITLE := PowerCloud Systems CR5000
698 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport kmod-usb-core
699 BOARDNAME := CR5000
700 DEVICE_PROFILE := CR5000
701 IMAGE_SIZE := 7808k
702 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,7808k(firmware),64k(art)ro
703 endef
704 TARGET_DEVICES += cr5000
705
706 define Device/packet-squirrel
707 $(Device/tplink-16mlzma)
708 DEVICE_TITLE := Hak5 Packet Squirrel
709 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 \
710 -kmod-ath9k -swconfig -uboot-envtools -wpad-mini
711 BOARDNAME := PACKET-SQUIRREL
712 DEVICE_PROFILE := PACKETSQUIRREL
713 TPLINK_HWID := 0x5351524c
714 CONSOLE := ttyATH0,115200
715 IMAGES := sysupgrade.bin
716 endef
717 TARGET_DEVICES += packet-squirrel
718
719 define Device/pqi-air-pen
720 DEVICE_TITLE := PQI Air Pen
721 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage
722 BOARDNAME := PQI-AIR-PEN
723 IMAGE_SIZE := 7744k
724 CONSOLE := ttyATH0,115200
725 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,64k(art)ro,64k(NVRAM)ro,7680k(firmware),64k(CONF)
726 endef
727 TARGET_DEVICES += pqi-air-pen
728
729 define Device/antminer-s1
730 $(Device/tplink-8mlzma)
731 DEVICE_TITLE := Antminer-S1
732 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-crypto-manager kmod-i2c-gpio-custom kmod-usb-hid
733 BOARDNAME := ANTMINER-S1
734 DEVICE_PROFILE := ANTMINERS1
735 TPLINK_HWID := 0x04440101
736 CONSOLE := ttyATH0,115200
737 endef
738 TARGET_DEVICES += antminer-s1
739
740 define Device/antminer-s3
741 $(Device/tplink-8mlzma)
742 DEVICE_TITLE := Antminer-S3
743 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-crypto-manager kmod-i2c-gpio-custom kmod-usb-hid
744 BOARDNAME := ANTMINER-S3
745 DEVICE_PROFILE := ANTMINERS3
746 TPLINK_HWID := 0x04440301
747 CONSOLE := ttyATH0,115200
748 endef
749 TARGET_DEVICES += antminer-s3
750
751 define Device/antrouter-r1
752 $(Device/tplink-8mlzma)
753 DEVICE_TITLE := Antrouter-R1
754 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
755 BOARDNAME := ANTROUTER-R1
756 DEVICE_PROFILE := ANTROUTERR1
757 TPLINK_HWID := 0x44440101
758 CONSOLE := ttyATH0,115200
759 endef
760 TARGET_DEVICES += antrouter-r1
761
762 define Device/el-m150
763 $(Device/tplink-8mlzma)
764 DEVICE_TITLE := EasyLink EL-M150
765 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
766 BOARDNAME := EL-M150
767 DEVICE_PROFILE := ELM150
768 TPLINK_HWID := 0x01500101
769 CONSOLE := ttyATH0,115200
770 endef
771 TARGET_DEVICES += el-m150
772
773 define Device/el-mini
774 $(Device/tplink-8mlzma)
775 DEVICE_TITLE := EasyLink EL-MINI
776 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
777 BOARDNAME := EL-MINI
778 DEVICE_PROFILE := ELMINI
779 TPLINK_HWID := 0x01530001
780 CONSOLE := ttyATH0,115200
781 endef
782 TARGET_DEVICES += el-mini
783
784 define Device/gl-inet-6408A-v1
785 $(Device/tplink-8mlzma)
786 DEVICE_TITLE := GL.iNet 6408
787 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
788 BOARDNAME := GL-INET
789 DEVICE_PROFILE := GLINET
790 TPLINK_HWID := 0x08000001
791 CONSOLE := ttyATH0,115200
792 endef
793 TARGET_DEVICES += gl-inet-6408A-v1
794
795 define Device/gl-inet-6416A-v1
796 $(Device/tplink-16mlzma)
797 DEVICE_TITLE := GL.iNet 6416
798 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
799 BOARDNAME := GL-INET
800 DEVICE_PROFILE := GLINET
801 TPLINK_HWID := 0x08000001
802 CONSOLE := ttyATH0,115200
803 endef
804 TARGET_DEVICES += gl-inet-6416A-v1
805
806 define Device/jwap230
807 DEVICE_TITLE := jjPlus JWAP230
808 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
809 BOARDNAME := JWAP230
810 IMAGE_SIZE := 16000k
811 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),16000k(firmware),64k(art)ro
812 endef
813 TARGET_DEVICES += jwap230
814
815 define Device/r36a
816 DEVICE_TITLE := ALFA Network R36A
817 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport -swconfig
818 BOARDNAME := R36A
819 SUPPORTED_DEVICES := r36a
820 IMAGE_SIZE := 15872k
821 MTDPARTS := spi0.0:384k(u-boot)ro,64k(u-boot-env),64k(art)ro,-(firmware)
822 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
823 append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
824 endef
825 TARGET_DEVICES += r36a
826
827 define Device/r602n
828 DEVICE_TITLE := P&W R602N
829 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
830 BOARDNAME := R602N
831 IMAGE_SIZE := 16000k
832 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro
833 endef
834 TARGET_DEVICES += r602n
835
836 define Device/rut900
837 DEVICE_TITLE := Teltonika RUT900
838 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 -uboot-envtools
839 BOARDNAME := RUT900
840 SUPPORTED_DEVICES := rut900
841 IMAGE_SIZE := 15552k
842 MTDPARTS := spi0.0:128k(u-boot)ro,64k(config)ro,64k(art)ro,15552k(firmware),576k(event-log)ro
843 TPLINK_HWID := 0x35000001
844 TPLINK_HWREV := 0x1
845 TPLINK_HEADER_VERSION := 1
846 KERNEL := kernel-bin | patch-cmdline | lzma | tplink-v1-header
847 KERNEL_INITRAMFS := kernel-bin | patch-cmdline | lzma | uImage lzma
848 IMAGES := sysupgrade.bin factory.bin
849 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs |\
850 pad-rootfs | teltonika-fw-fake-checksum | append-string master |\
851 append-md5sum-bin | check-size $$$$(IMAGE_SIZE)
852 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) |\
853 append-rootfs | pad-rootfs | append-metadata |\
854 check-size $$$$(IMAGE_SIZE)
855 endef
856 TARGET_DEVICES += rut900
857
858 define Device/mc-mac1200r
859 $(Device/tplink-8mlzma)
860 DEVICE_TITLE := Mercury MAC1200R
861 DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x
862 BOARDNAME := MC-MAC1200R
863 DEVICE_PROFILE := MAC1200R
864 TPLINK_HWID := 0x12000001
865 endef
866 TARGET_DEVICES += mc-mac1200r
867
868 define Device/minibox-v1
869 $(Device/tplink-16mlzma)
870 DEVICE_TITLE := GainStrong MiniBox V1.0
871 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
872 BOARDNAME := MINIBOX-V1
873 DEVICE_PROFILE := MINIBOXV1
874 TPLINK_HWID := 0x3C000201
875 CONSOLE := ttyATH0,115200
876 IMAGES := sysupgrade.bin
877 endef
878 TARGET_DEVICES += minibox-v1
879
880 define Device/oolite-v1
881 $(Device/minibox-v1)
882 DEVICE_TITLE := GainStrong Oolite V1.0
883 BOARDNAME := OOLITE-V1
884 DEVICE_PROFILE := OOLITEV1
885 TPLINK_HWID := 0x3C000101
886 endef
887 TARGET_DEVICES += oolite-v1
888
889 define Device/oolite-v5.2
890 $(Device/tplink-16mlzma)
891 DEVICE_TITLE := GainStrong Oolite V5.2
892 DEVICE_PACKAGES := ath10k-firmware-qca9887 kmod-ath10k kmod-usb-core kmod-usb2
893 BOARDNAME := OOLITE-V5-2
894 DEVICE_PROFILE := OOLITEV52
895 TPLINK_HWID := 0x3C00010B
896 IMAGES := sysupgrade.bin
897 endef
898 TARGET_DEVICES += oolite-v5.2
899
900 define Device/oolite-v5.2-dev
901 $(Device/oolite-v5.2)
902 DEVICE_TITLE := GainStrong Oolite V5.2-Dev (development board)
903 BOARDNAME := OOLITE-V5-2-DEV
904 DEVICE_PROFILE := OOLITEV52DEV
905 endef
906 TARGET_DEVICES += oolite-v5.2-dev
907
908 define Device/omy-g1
909 $(Device/tplink-16mlzma)
910 DEVICE_TITLE := OMYlink OMY-G1
911 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
912 BOARDNAME := OMY-G1
913 DEVICE_PROFILE := OMYG1
914 TPLINK_HWID := 0x06660101
915 endef
916 TARGET_DEVICES += omy-g1
917
918 define Device/omy-x1
919 $(Device/tplink-8mlzma)
920 DEVICE_TITLE := OMYlink OMY-X1
921 BOARDNAME := OMY-X1
922 DEVICE_PROFILE := OMYX1
923 TPLINK_HWID := 0x06660201
924 endef
925 TARGET_DEVICES += omy-x1
926
927 define Device/onion-omega
928 $(Device/tplink-16mlzma)
929 DEVICE_TITLE := Onion Omega
930 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
931 BOARDNAME := ONION-OMEGA
932 DEVICE_PROFILE := OMEGA
933 TPLINK_HWID := 0x04700001
934 CONSOLE := ttyATH0,115200
935 endef
936 TARGET_DEVICES += onion-omega
937
938 define Device/sc1750
939 DEVICE_TITLE := Abicom SC1750
940 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
941 BOARDNAME := SC1750
942 IMAGE_SIZE := 15744k
943 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),15744k(firmware),128k(APConfig),128k(kplog),64k(ART)
944 endef
945 TARGET_DEVICES += sc1750
946
947 define Device/sc300m
948 DEVICE_TITLE := Abicom SC300M
949 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
950 BOARDNAME := SC300M
951 IMAGE_SIZE := 15744k
952 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),15744k(firmware),128k(APConfig),128k(kplog),64k(ART)
953 endef
954 TARGET_DEVICES += sc300m
955
956 define Device/sc450
957 DEVICE_TITLE := Abicom SC450
958 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
959 BOARDNAME := SC450
960 IMAGE_SIZE := 15744k
961 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),15744k(firmware),128k(APConfig),128k(kplog),64k(ART)
962 endef
963 TARGET_DEVICES += sc450
964
965 define Device/smart-300
966 $(Device/tplink-8mlzma)
967 DEVICE_TITLE := NC-LINK SMART-300
968 BOARDNAME := SMART-300
969 DEVICE_PROFILE := SMART-300
970 TPLINK_HWID := 0x93410001
971 endef
972 TARGET_DEVICES += smart-300
973
974 define Device/som9331
975 $(Device/tplink-8mlzma)
976 DEVICE_TITLE := OpenEmbed SOM9331
977 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
978 BOARDNAME := SOM9331
979 DEVICE_PROFILE := SOM9331
980 TPLINK_HWID := 0x04800054
981 CONSOLE := ttyATH0,115200
982 endef
983 TARGET_DEVICES += som9331
984
985 define Device/sr3200
986 DEVICE_TITLE := YunCore SR3200
987 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ath10k ath10k-firmware-qca988x
988 BOARDNAME := SR3200
989 IMAGE_SIZE := 16000k
990 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),16000k(firmware),64k(art)ro
991 endef
992 TARGET_DEVICES += sr3200
993
994 define Device/xd3200
995 $(Device/sr3200)
996 DEVICE_TITLE := YunCore XD3200
997 DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x
998 BOARDNAME := XD3200
999 endef
1000 TARGET_DEVICES += xd3200
1001
1002 define Device/t830
1003 DEVICE_TITLE := YunCore T830
1004 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
1005 BOARDNAME := T830
1006 IMAGE_SIZE := 16000k
1007 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),16000k(firmware),64k(art)ro
1008 SUPPORTED_DEVICES := t830
1009 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) |\
1010 append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
1011 endef
1012 TARGET_DEVICES += t830
1013
1014 define Device/tellstick-znet-lite
1015 $(Device/tplink-16mlzma)
1016 DEVICE_TITLE := TellStick ZNet Lite
1017 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-acm kmod-usb-serial kmod-usb-serial-pl2303
1018 BOARDNAME := TELLSTICK-ZNET-LITE
1019 DEVICE_PROFILE := TELLSTICKZNETLITE
1020 TPLINK_HWID := 0x00726001
1021 CONSOLE := ttyATH0,115200
1022 endef
1023 TARGET_DEVICES += tellstick-znet-lite
1024
1025 define Device/ts-d084
1026 $(Device/tplink-8mlzma)
1027 DEVICE_TITLE := PISEN TS-D084
1028 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
1029 BOARDNAME := TS-D084
1030 DEVICE_PROFILE := TSD084
1031 TPLINK_HWID := 0x07030101
1032 CONSOLE := ttyATH0,115200
1033 endef
1034 TARGET_DEVICES += ts-d084
1035
1036 define Device/n5q
1037 DEVICE_TITLE := ALFA Network N5Q
1038 DEVICE_PACKAGES := rssileds -swconfig
1039 BOARDNAME := N5Q
1040 SUPPORTED_DEVICES := n5q
1041 IMAGE_SIZE := 15872k
1042 MTDPARTS := spi0.0:384k(u-boot)ro,64k(u-boot-env),64k(art)ro,-(firmware)
1043 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1044 append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
1045 endef
1046 TARGET_DEVICES += n5q
1047
1048 define Device/NBG6616
1049 DEVICE_TITLE := ZyXEL NBG6616
1050 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-usb-storage kmod-rtc-pcf8563 kmod-ath10k ath10k-firmware-qca988x
1051 BOARDNAME := NBG6616
1052 KERNEL_SIZE := 2048k
1053 IMAGE_SIZE := 15323k
1054 MTDPARTS := spi0.0:192k(u-boot)ro,64k(env)ro,64k(RFdata)ro,384k(zyxel_rfsd),384k(romd),64k(header),2048k(kernel),13184k(rootfs),15232k@0x120000(firmware)
1055 CMDLINE += mem=128M
1056 IMAGES := sysupgrade.bin
1057 KERNEL := kernel-bin | patch-cmdline | lzma | uImage lzma | jffs2 boot/vmlinux.lzma.uImage
1058 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)
1059 # We cannot currently build a factory image. It is the sysupgrade image
1060 # prefixed with a header (which is actually written into the MTD device).
1061 # The header is 2kiB and is filled with 0xff. The format seems to be:
1062 # 2 bytes: 0x0000
1063 # 2 bytes: checksum of the data partition (big endian)
1064 # 4 bytes: length of the contained image file (big endian)
1065 # 32 bytes: Firmware Version string (NUL terminated, 0xff padded)
1066 # 2 bytes: 0x0000
1067 # 2 bytes: checksum over the header partition (big endian)
1068 # 32 bytes: Model (e.g. "NBG6616", NUL termiated, 0xff padded)
1069 # rest: 0xff padding
1070 #
1071 # The checksums are calculated by adding up all bytes and if a 16bit
1072 # overflow occurs, one is added and the sum is masked to 16 bit:
1073 # csum = csum + databyte; if (csum > 0xffff) { csum += 1; csum &= 0xffff };
1074 # Should the file have an odd number of bytes then the byte len-0x800 is
1075 # used additionally.
1076 # The checksum for the header is calcualted over the first 2048 bytes with
1077 # the firmware checksum as the placeholder during calculation.
1078 #
1079 # The header is padded with 0xff to the erase block size of the device.
1080 endef
1081 TARGET_DEVICES += NBG6616
1082
1083 define Device/c-55
1084 DEVICE_TITLE := AirTight Networks C-55
1085 DEVICE_PACKAGES := kmod-ath9k
1086 BOARDNAME := C-55
1087 KERNEL_SIZE := 2048k
1088 IMAGE_SIZE := 15872k
1089 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)
1090 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)
1091 endef
1092 TARGET_DEVICES += c-55
1093
1094 define Device/hiwifi-hc6361
1095 DEVICE_TITLE := HiWiFi HC6361
1096 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage \
1097 kmod-fs-ext4 kmod-nls-iso8859-1 e2fsprogs
1098 BOARDNAME := HiWiFi-HC6361
1099 DEVICE_PROFILE := HIWIFI_HC6361
1100 IMAGE_SIZE := 16128k
1101 KERNEL := kernel-bin | patch-cmdline | lzma | uImageHiWiFi lzma
1102 CONSOLE := ttyATH0,115200
1103 MTDPARTS := spi0.0:64k(u-boot)ro,64k(bdinfo)ro,16128k(firmware),64k(backup)ro,64k(art)ro
1104 endef
1105 TARGET_DEVICES += hiwifi-hc6361
1106
1107 define Device/seama
1108 LOADER_TYPE := bin
1109 BLOCKSIZE := 64k
1110 KERNEL := kernel-bin | patch-cmdline | relocate-kernel | lzma
1111 KERNEL_INITRAMFS := kernel-bin | patch-cmdline | lzma | seama
1112 KERNEL_INITRAMFS_SUFFIX = $$(KERNEL_SUFFIX).seama
1113 IMAGES := sysupgrade.bin factory.bin
1114
1115 # 64 bytes offset:
1116 # - 28 bytes seama_header
1117 # - 36 bytes of META data (4-bytes aligned)
1118 IMAGE/default := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs
1119 IMAGE/sysupgrade.bin := \
1120 $$(IMAGE/default) | seama | pad-rootfs | \
1121 check-size $$$$(IMAGE_SIZE)
1122 IMAGE/factory.bin := \
1123 $$(IMAGE/default) | seama | pad-rootfs | \
1124 seama-seal -m "signature=$$$$(SEAMA_SIGNATURE)" | \
1125 check-size $$$$(IMAGE_SIZE)
1126 SEAMA_SIGNATURE :=
1127 endef
1128
1129 define Device/dir-869-a1
1130 $(Device/seama)
1131 DEVICE_TITLE := D-Link DIR-869 rev. A1
1132 DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x
1133 BOARDNAME := DIR-869-A1
1134 IMAGE_SIZE := 15872k
1135 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,64k(devdata)ro,64k(devconf)ro,15872k(firmware),64k(radiocfg)ro
1136 SEAMA_SIGNATURE := wrgac54_dlink.2015_dir869
1137 IMAGE/factory.bin := \
1138 $$(IMAGE/default) | pad-rootfs -x 64 | \
1139 seama | seama-seal -m "signature=$$$$(SEAMA_SIGNATURE)" | \
1140 check-size $$$$(IMAGE_SIZE)
1141 endef
1142 TARGET_DEVICES += dir-869-a1
1143
1144 define Device/mynet-n600
1145 $(Device/seama)
1146 DEVICE_TITLE := Western Digital My Net N600
1147 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
1148 BOARDNAME := MYNET-N600
1149 IMAGE_SIZE := 15808k
1150 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,64k(devdata)ro,64k(devconf)ro,15872k(firmware),64k(radiocfg)ro
1151 SEAMA_SIGNATURE := wrgnd16_wd_db600
1152 endef
1153 TARGET_DEVICES += mynet-n600
1154
1155 define Device/mynet-n750
1156 $(Device/seama)
1157 DEVICE_TITLE := Western Digital My Net N750
1158 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
1159 BOARDNAME := MYNET-N750
1160 IMAGE_SIZE := 15808k
1161 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,64k(devdata)ro,64k(devconf)ro,15872k(firmware),64k(radiocfg)ro
1162 SEAMA_SIGNATURE := wrgnd13_wd_av
1163 endef
1164 TARGET_DEVICES += mynet-n750
1165
1166 define Device/qihoo-c301
1167 $(Device/seama)
1168 DEVICE_TITLE := Qihoo C301
1169 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
1170 BOARDNAME := QIHOO-C301
1171 IMAGE_SIZE := 15744k
1172 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),64k(devdata),64k(devconf),15744k(firmware),64k(warm_start),64k(action_image_config),64k(radiocfg)ro;spi0.1:15360k(upgrade2),1024k(privatedata)
1173 SEAMA_SIGNATURE := wrgac26_qihoo360_360rg
1174 endef
1175 TARGET_DEVICES += qihoo-c301
1176
1177 define Device/dap-1330-a1
1178 DEVICE_TITLE := D-Link DAP-1330 rev. A1
1179 DEVICE_PACKAGES := rssileds
1180 BOARDNAME := DAP-1330-A1
1181 IMAGES := factory.img sysupgrade.bin
1182 IMAGE_SIZE := 7936k
1183 IMAGE/factory.img := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | mkdapimg2 917504
1184 MTDPARTS := spi0.0:64k(u-boot)ro,64k(art)ro,64k(mp)ro,64k(config)ro,7936k(firmware)
1185 DAP_SIGNATURE := HONEYBEE-FIRMWARE-DAP-1330
1186 endef
1187 TARGET_DEVICES += dap-1330-a1
1188
1189 define Device/dap-2695-a1
1190 DEVICE_TITLE := D-Link DAP-2695 rev. A1
1191 DEVICE_PACKAGES := ath10k-firmware-qca988x kmod-ath10k
1192 BOARDNAME := DAP-2695-A1
1193 IMAGES := factory.img sysupgrade.bin
1194 IMAGE_SIZE := 15360k
1195 IMAGE/factory.img := append-kernel | pad-offset 65536 160 | append-rootfs | wrgg-pad-rootfs | mkwrggimg | check-size $$$$(IMAGE_SIZE)
1196 IMAGE/sysupgrade.bin := append-kernel | pad-offset 65536 160 | mkwrggimg | append-rootfs | wrgg-pad-rootfs | check-size $$$$(IMAGE_SIZE)
1197 KERNEL := kernel-bin | patch-cmdline | relocate-kernel | lzma
1198 KERNEL_INITRAMFS := $$(KERNEL) | mkwrggimg
1199 MTDPARTS := spi0.0:256k(bootloader)ro,64k(bdcfg)ro,64k(rgdb)ro,64k(langpack)ro,15360k(firmware),448k(captival)ro,64k(certificate)ro,64k(radiocfg)ro
1200 DAP_SIGNATURE := wapac02_dkbs_dap2695
1201 endef
1202 TARGET_DEVICES += dap-2695-a1
1203
1204 define Device/wam250
1205 DEVICE_TITLE := Samsung WAM250
1206 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 -swconfig
1207 BOARDNAME := WAM250
1208 IMAGE_SIZE := 15872k
1209 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),128k(nvram)ro,15872k(firmware),64k(art)ro
1210 SUPPORTED_DEVICES := wam250
1211 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) |\
1212 append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
1213 endef
1214 TARGET_DEVICES += wam250
1215
1216 define Device/wifi-pineapple-nano
1217 $(Device/tplink-16mlzma)
1218 DEVICE_TITLE := Hak5 WiFi Pineapple NANO
1219 DEVICE_PACKAGES := kmod-ath9k-htc kmod-usb-core kmod-usb2 kmod-usb-storage \
1220 -swconfig -uboot-envtools
1221 BOARDNAME := WIFI-PINEAPPLE-NANO
1222 DEVICE_PROFILE := WIFIPINEAPPLENANO
1223 TPLINK_HWID := 0x4e414e4f
1224 CONSOLE := ttyATH0,115200
1225 IMAGES := sysupgrade.bin
1226 endef
1227 TARGET_DEVICES += wifi-pineapple-nano
1228
1229 define Device/wlr8100
1230 DEVICE_TITLE := Sitecom WLR-8100
1231 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-usb3 \
1232 kmod-ath10k ath10k-firmware-qca988x
1233 BOARDNAME := WLR8100
1234 IMAGE_SIZE := 15424k
1235 MTDPARTS := spi0.0:192k(u-boot)ro,64k(u-boot-env)ro,15424k(firmware),256k(manufacture)ro,64k(backup)ro,320k(storage)ro,64k(art)ro
1236 endef
1237 TARGET_DEVICES += wlr8100
1238
1239 define Device/wpj-16m
1240 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
1241 MTDPARTS := spi0.0:192k(u-boot)ro,16128k(firmware),64k(art)ro
1242 IMAGE_SIZE := 16128k
1243 endef
1244
1245 define Device/wpj342
1246 $(Device/wpj-16m)
1247 DEVICE_TITLE := Compex WPJ342 (16MB flash)
1248 BOARDNAME := WPJ342
1249 endef
1250 TARGET_DEVICES += wpj342
1251
1252 define Device/wpj344
1253 $(Device/wpj-16m)
1254 DEVICE_TITLE := Compex WPJ344 (16MB flash)
1255 BOARDNAME := WPJ344
1256 SUPPORTED_DEVICES := wpj344
1257 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1258 append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
1259 endef
1260 TARGET_DEVICES += wpj344
1261
1262 define Device/wpj531
1263 $(Device/wpj-16m)
1264 DEVICE_TITLE := Compex WPJ531 (16MB flash)
1265 BOARDNAME := WPJ531
1266 endef
1267 TARGET_DEVICES += wpj531
1268
1269 define Device/wpj558
1270 $(Device/wpj-16m)
1271 DEVICE_TITLE := Compex WPJ558 (16MB flash)
1272 BOARDNAME := WPJ558
1273 SUPPORTED_DEVICES := wpj558
1274 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1275 append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
1276 endef
1277 TARGET_DEVICES += wpj558
1278
1279 define Device/wpj563
1280 $(Device/wpj-16m)
1281 DEVICE_TITLE := Compex WPJ563 (16MB flash)
1282 BOARDNAME := WPJ563
1283 endef
1284 TARGET_DEVICES += wpj563
1285
1286 define Device/wrtnode2q
1287 DEVICE_TITLE := WRTnode2Q
1288 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage
1289 BOARDNAME := WRTNODE2Q
1290 IMAGE_SIZE := 16064k
1291 MTDPARTS := spi0.0:192k(u-boot)ro,64k(u-boot-env),64k(art)ro,16064k(firmware),16384k@0x0(fullflash)
1292 endef
1293 TARGET_DEVICES += wrtnode2q
1294
1295 define Device/AVM
1296 DEVICE_PACKAGES := fritz-tffs -uboot-envtools
1297 KERNEL := kernel-bin | patch-cmdline | lzma | eva-image
1298 KERNEL_INITRAMFS := $$(KERNEL)
1299 IMAGE/sysupgrade.bin := append-kernel | pad-to 64k | \
1300 append-squashfs-fakeroot-be | pad-to 256 | \
1301 append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
1302 endef
1303
1304 define Device/fritz300e
1305 $(call Device/AVM)
1306 DEVICE_TITLE := AVM FRITZ!WLAN Repeater 300E
1307 DEVICE_PACKAGES += rssileds -swconfig
1308 BOARDNAME := FRITZ300E
1309 SUPPORTED_DEVICES := fritz300e
1310 IMAGE_SIZE := 15232k
1311 endef
1312 TARGET_DEVICES += fritz300e
1313
1314 define Device/fritz4020
1315 $(call Device/AVM)
1316 DEVICE_TITLE := AVM FRITZ!Box 4020
1317 DEVICE_PACKAGES += kmod-usb-core kmod-usb2 kmod-usb-storage
1318 BOARDNAME := FRITZ4020
1319 SUPPORTED_DEVICES := fritz4020
1320 IMAGE_SIZE := 15232k
1321 endef
1322 TARGET_DEVICES += fritz4020
1323
1324 define Device/fritz450e
1325 $(call Device/AVM)
1326 DEVICE_TITLE := AVM FRITZ!WLAN Repeater 450E
1327 DEVICE_PACKAGES += -swconfig
1328 BOARDNAME := FRITZ450E
1329 SUPPORTED_DEVICES := fritz450e
1330 IMAGE_SIZE := 15232k
1331 endef
1332 TARGET_DEVICES += fritz450e