5 define Build/tplink-header
6 $(STAGING_DIR_HOST)/bin/mktplinkfw2 -a 0x4 -V "ver. 2.0" -B $(1) \
7 -o $@.new -k $@ -r $(IMAGE_ROOTFS) && mv $@.new $@
10 define Build/elecom-header
11 cp $@ $(KDIR)/v_0.0.0.bin
13 mkhash md5 $(KDIR)/v_0.0.0.bin && \
15 ) | mkhash md5 > $(KDIR)/v_0.0.0.md5
16 $(STAGING_DIR_HOST)/bin/tar -cf $@ -C $(KDIR) v_0.0.0.bin v_0.0.0.md5
20 $(STAGING_DIR_HOST)/bin/zyimage $(1) $@
23 define Device/ai-br100
26 DEVICE_TITLE := Aigale Ai-BR100
27 DEVICE_PACKAGES:= kmod-usb2 kmod-usb-ohci
29 TARGET_DEVICES += ai-br100
31 define Device/ArcherC20i
33 SUPPORTED_DEVICES := c20i
34 KERNEL := $(KERNEL_DTB)
35 KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-header ArcherC20i -c
36 IMAGE/factory.bin := append-kernel | tplink-header ArcherC20i -j
37 IMAGE/sysupgrade.bin := append-kernel | tplink-header ArcherC20i -j -s | append-metadata
39 DEVICE_TITLE := TP-Link ArcherC20i
41 TARGET_DEVICES += ArcherC20i
43 define Device/ArcherC50
45 SUPPORTED_DEVICES := c50
46 KERNEL := $(KERNEL_DTB)
47 KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-header ArcherC50 -c
48 IMAGE/factory.bin := append-kernel | tplink-header ArcherC50 -j
49 IMAGE/sysupgrade.bin := append-kernel | tplink-header ArcherC50 -j -s | append-metadata
51 DEVICE_TITLE := TP-Link ArcherC50
53 TARGET_DEVICES += ArcherC50
55 define Device/ArcherMR200
57 SUPPORTED_DEVICES := mr200
58 KERNEL := $(KERNEL_DTB)
59 KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-header ArcherMR200 -c
60 IMAGE/sysupgrade.bin := append-kernel | tplink-header ArcherMR200 -j -s | append-metadata
61 DEVICE_PACKAGES := kmod-usb2 kmod-usb-net kmod-usb-net-rndis kmod-usb-serial kmod-usb-serial-option adb
62 DEVICE_TITLE := TP-Link ArcherMR200
64 TARGET_DEVICES += ArcherMR200
66 define Device/cf-wr800n
68 DEVICE_TITLE := Comfast CF-WR800N
70 TARGET_DEVICES += cf-wr800n
74 DEVICE_TITLE := Planex CS-QR10
75 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-i2c-core kmod-i2c-ralink kmod-sound-core kmod-sound-mtk kmod-sdhci-mt7620
77 TARGET_DEVICES += cs-qr10
81 IMAGE_SIZE := $(ralink_default_fw_size_16M)
82 DEVICE_TITLE := Sanlinking Technologies D240
83 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76-core kmod-mt76x2 kmod-sdhci-mt7620
85 TARGET_DEVICES += d240
87 define Device/db-wrt01
89 DEVICE_TITLE := Planex DB-WRT01
91 TARGET_DEVICES += db-wrt01
93 define Device/dch-m225
98 IMAGE/sysupgrade.bin := \
99 append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs | \
100 seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \
101 pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
102 IMAGE/factory.bin := \
103 append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
104 append-rootfs | pad-rootfs -x 64 | \
105 seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \
106 seama-seal -m "signature=wapn22_dlink.2013gui_dap1320b" | \
107 check-size $$$$(IMAGE_SIZE)
108 DEVICE_TITLE := D-Link DCH-M225
109 DEVICE_PACKAGES := kmod-mt76
111 TARGET_DEVICES += dch-m225
113 define Device/dir-810l
116 DEVICE_TITLE := D-Link DIR-810L
118 TARGET_DEVICES += dir-810l
122 IMAGES += factory.bin
123 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
124 umedia-header 0x013326
125 DEVICE_TITLE := Linksys E1700
127 TARGET_DEVICES += e1700
130 NETGEAR_HW_ID := 29764623+4+0+32+2x2+0
131 NETGEAR_BOARD_ID := EX2700
134 IMAGE_SIZE := $(ralink_default_fw_size_4M)
135 IMAGES += factory.bin
136 KERNEL := $(KERNEL_DTB) | uImage lzma | pad-offset 64k 64 | append-uImage-fakeroot-hdr
137 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
139 DEVICE_PACKAGES := -kmod-mt76
140 DEVICE_TITLE := Netgear EX2700
142 TARGET_DEVICES += ex2700
145 NETGEAR_BOARD_ID := U12H319T00_NETGEAR
149 IMAGES += factory.bin
150 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | netgear-chk
151 DEVICE_PACKAGES := -kmod-mt76 kmod-mt76x2
152 DEVICE_TITLE := Netgear EX3700
154 TARGET_DEVICES += ex3700
156 define Device/gl-mt300a
158 IMAGE_SIZE := $(ralink_default_fw_size_16M)
159 DEVICE_TITLE := GL-Inet GL-MT300A
160 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76
162 TARGET_DEVICES += gl-mt300a
164 define Device/gl-mt300n
166 IMAGE_SIZE := $(ralink_default_fw_size_16M)
167 DEVICE_TITLE := GL-Inet GL-MT300N
168 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76
170 TARGET_DEVICES += gl-mt300n
172 define Device/gl-mt750
174 IMAGE_SIZE := $(ralink_default_fw_size_16M)
175 DEVICE_TITLE := GL-Inet GL-MT750
176 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76
178 TARGET_DEVICES += gl-mt750
182 IMAGE_SIZE := $(ralink_default_fw_size_16M)
183 DEVICE_TITLE := HiWiFi HC5661
184 DEVICE_PACKAGES := kmod-usb2 kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport
186 TARGET_DEVICES += hc5661
190 IMAGE_SIZE := $(ralink_default_fw_size_16M)
191 DEVICE_TITLE := HiWiFi HC5761
192 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport
194 TARGET_DEVICES += hc5761
198 IMAGE_SIZE := $(ralink_default_fw_size_16M)
199 DEVICE_TITLE := HiWiFi HC5861
200 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport
202 TARGET_DEVICES += hc5861
206 IMAGE_SIZE := $(ralink_default_fw_size_16M)
207 DEVICE_TITLE := ZyXEL Keenetic Viva
208 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport kmod-switch-rtl8366-smi kmod-switch-rtl8367b
209 IMAGES += factory.bin
210 IMAGE/factory.bin := $$(sysupgrade_bin) | pad-to 64k | check-size $$$$(IMAGE_SIZE) | \
211 zyimage -d 8997 -v "ZyXEL Keenetic Viva"
213 TARGET_DEVICES += kng_rc
217 DEVICE_TITLE := ZyXEL Keenetic Omni
218 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
219 IMAGES += factory.bin
220 IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | pad-to 64k | check-size $$$$(IMAGE_SIZE) | \
221 zyimage -d 4882 -v "ZyXEL Keenetic Omni"
223 TARGET_DEVICES += kn_rc
227 DEVICE_TITLE := ZyXEL Keenetic Omni II
228 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
229 IMAGES += factory.bin
230 IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | pad-to 64k | check-size $$$$(IMAGE_SIZE) | \
231 zyimage -d 2102034 -v "ZyXEL Keenetic Omni II"
233 TARGET_DEVICES += kn_rf
235 define Device/microwrt
238 DEVICE_TITLE := Microduino MicroWRT
240 TARGET_DEVICES += microwrt
242 define Device/miwifi-mini
244 IMAGE_SIZE := $(ralink_default_fw_size_16M)
245 DEVICE_TITLE := Xiaomi MiWiFi Mini
246 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
248 TARGET_DEVICES += miwifi-mini
252 IMAGE_SIZE := $(ralink_default_fw_size_16M)
253 DEVICE_TITLE := Kingston MLW221
255 TARGET_DEVICES += mlw221
259 IMAGE_SIZE := $(ralink_default_fw_size_16M)
260 DEVICE_TITLE := Kingston MLWG2
262 TARGET_DEVICES += mlwg2
264 define Device/mt7620a
266 DEVICE_TITLE := MediaTek MT7620a EVB
268 TARGET_DEVICES += mt7620a
270 define Device/mt7620a_mt7530
271 DTS := MT7620a_MT7530
272 DEVICE_TITLE := MediaTek MT7620a + MT7530 EVB
274 TARGET_DEVICES += mt7620a_mt7530
276 define Device/mt7620a_mt7610e
277 DTS := MT7620a_MT7610e
278 DEVICE_TITLE := MediaTek MT7620a + MT7610e EVB
280 TARGET_DEVICES += mt7620a_mt7610e
282 define Device/mt7620a_v22sg
284 DEVICE_TITLE := MediaTek MT7620a V22SG
286 TARGET_DEVICES += mt7620a_v22sg
288 define Device/mzk-750dhp
290 DEVICE_TITLE := Planex MZK-750DHP
291 DEVICE_PACKAGES := kmod-mt76
293 TARGET_DEVICES += mzk-750dhp
295 define Device/mzk-ex300np
297 DEVICE_TITLE := Planex MZK-EX300NP
299 TARGET_DEVICES += mzk-ex300np
301 define Device/mzk-ex750np
303 DEVICE_TITLE := Planex MZK-EX750NP
304 DEVICE_PACKAGES := kmod-mt76
306 TARGET_DEVICES += mzk-ex750np
311 DEVICE_TITLE := Sercomm NA930
313 TARGET_DEVICES += na930
315 define Device/oy-0001
317 IMAGE_SIZE := $(ralink_default_fw_size_16M)
318 DEVICE_TITLE := Oh Yeah OY-0001
320 TARGET_DEVICES += oy-0001
322 define Device/psg1208
324 DEVICE_TITLE := Phicomm PSG1208
325 DEVICE_PACKAGES := kmod-mt76
327 TARGET_DEVICES += psg1208
329 define Device/psg1218a
331 DEVICE_TITLE := Phicomm PSG1218 rev.Ax
332 DEVICE_PACKAGES := kmod-mt76x2
333 SUPPORTED_DEVICES += psg1218
335 TARGET_DEVICES += psg1218a
337 define Device/psg1218b
339 DEVICE_TITLE := Phicomm PSG1218 rev.Bx
340 DEVICE_PACKAGES := kmod-mt76x2
341 SUPPORTED_DEVICES += psg1218
343 TARGET_DEVICES += psg1218b
347 DEVICE_TITLE := Asus RP-N53
349 TARGET_DEVICES += rp-n53
351 define Device/rt-n14u
353 DEVICE_TITLE := Asus RT-N14u
355 TARGET_DEVICES += rt-n14u
357 define Device/tiny-ac
359 DEVICE_TITLE := Dovado Tiny AC
360 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
362 TARGET_DEVICES += tiny-ac
364 define Device/whr-1166d
367 DEVICE_TITLE := Buffalo WHR-1166D
369 TARGET_DEVICES += whr-1166d
371 define Device/whr-300hp2
374 DEVICE_TITLE := Buffalo WHR-300HP2
376 TARGET_DEVICES += whr-300hp2
378 define Device/whr-600d
381 DEVICE_TITLE := Buffalo WHR-600D
383 TARGET_DEVICES += whr-600d
385 define Device/wmr-300
387 DEVICE_TITLE := Buffalo WMR-300
389 TARGET_DEVICES += wmr-300
391 define Device/wn3000rpv3
392 NETGEAR_HW_ID := 29764836+8+0+32+2x2+0
393 NETGEAR_BOARD_ID := WN3000RPv3
396 IMAGES += factory.bin
397 KERNEL := $(KERNEL_DTB) | uImage lzma | pad-offset 64k 64 | append-uImage-fakeroot-hdr
398 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
400 DEVICE_TITLE := Netgear WN3000RPv3
402 TARGET_DEVICES += wn3000rpv3
404 define Device/wrh-300cr
406 IMAGE_SIZE := $(ralink_default_fw_size_16M)
407 IMAGES += factory.bin
408 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
410 DEVICE_TITLE := Elecom WRH-300CR
411 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
413 TARGET_DEVICES += wrh-300cr
415 define Device/wrtnode
417 IMAGE_SIZE := $(ralink_default_fw_size_16M)
418 DEVICE_TITLE := WRTNode
420 TARGET_DEVICES += wrtnode
422 define Device/wt3020-4M
425 IMAGE_SIZE := $(ralink_default_fw_size_4M)
426 IMAGES += factory.bin
427 SUPPORTED_DEVICES += wt3020
428 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
429 poray-header -B WT3020 -F 4M
430 DEVICE_TITLE := Nexx WT3020 (4MB)
432 TARGET_DEVICES += wt3020-4M
434 define Device/wt3020-8M
436 IMAGES += factory.bin
437 SUPPORTED_DEVICES += wt3020
438 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
439 poray-header -B WT3020 -F 8M
440 DEVICE_TITLE := Nexx WT3020 (8MB)
442 TARGET_DEVICES += wt3020-8M
446 IMAGE_SIZE := $(ralink_default_fw_size_16M)
447 DEVICE_TITLE := Lenovo Y1
453 IMAGE_SIZE := $(ralink_default_fw_size_16M)
454 DEVICE_TITLE := Lenovo Y1S
456 TARGET_DEVICES += y1s
458 define Device/youku-yk1
460 IMAGE_SIZE := $(ralink_default_fw_size_16M)
461 DEVICE_TITLE := YOUKU YK1
463 TARGET_DEVICES += youku-yk1
465 define Device/zbt-ape522ii
467 DEVICE_TITLE := Zbtlink ZBT-APE522II
468 DEVICE_PACKAGES := kmod-mt76
470 TARGET_DEVICES += zbt-ape522ii
472 define Device/zbt-cpe102
474 DEVICE_TITLE := Zbtlink ZBT-CPE102
475 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
477 TARGET_DEVICES += zbt-cpe102
479 define Device/zbt-wa05
481 DEVICE_TITLE := Zbtlink ZBT-WA05
483 TARGET_DEVICES += zbt-wa05
485 define Device/zbt-we2026
487 DEVICE_TITLE := Zbtlink ZBT-WE2026
489 TARGET_DEVICES += zbt-we2026
491 define Device/zbt-we826-16M
493 IMAGE_SIZE := $(ralink_default_fw_size_16M)
494 SUPPORTED_DEVICES += zbt-we826
495 DEVICE_TITLE := Zbtlink ZBT-WE826 (16M)
496 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76 kmod-sdhci-mt7620
498 TARGET_DEVICES += zbt-we826-16M
500 define Device/zbt-we826-32M
502 IMAGE_SIZE := $(ralink_default_fw_size_32M)
503 DEVICE_TITLE := Zbtlink ZBT-WE826 (32M)
504 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76 kmod-sdhci-mt7620
506 TARGET_DEVICES += zbt-we826-32M
508 define Device/zbt-wr8305rt
510 DEVICE_TITLE := Zbtlink ZBT-WR8305RT
512 TARGET_DEVICES += zbt-wr8305rt
516 DEVICE_TITLE := ZTE Q7
518 TARGET_DEVICES += zte-q7