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/sysupgrade.bin := append-kernel | tplink-header ArcherC20i -j | append-metadata
37 DEVICE_TITLE := TP-Link ArcherC20i
39 TARGET_DEVICES += ArcherC20i
41 define Device/ArcherC50
43 SUPPORTED_DEVICES := c50
44 KERNEL := $(KERNEL_DTB)
45 KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-header ArcherC50 -c
46 IMAGE/sysupgrade.bin := append-kernel | tplink-header ArcherC50 -j | append-metadata
47 DEVICE_TITLE := TP-Link ArcherC50
49 TARGET_DEVICES += ArcherC50
51 define Device/ArcherMR200
53 SUPPORTED_DEVICES := mr200
54 KERNEL := $(KERNEL_DTB)
55 KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-header ArcherMR200 -c
56 IMAGE/sysupgrade.bin := append-kernel | tplink-header ArcherMR200 -j | append-metadata
57 DEVICE_PACKAGES := kmod-usb2 kmod-usb-net kmod-usb-net-rndis kmod-usb-serial kmod-usb-serial-option adb
58 DEVICE_TITLE := TP-Link ArcherMR200
60 TARGET_DEVICES += ArcherMR200
62 define Device/cf-wr800n
64 DEVICE_TITLE := Comfast CF-WR800N
66 TARGET_DEVICES += cf-wr800n
70 DEVICE_TITLE := Planex CS-QR10
71 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-i2c-core kmod-i2c-ralink kmod-sound-core kmod-sound-mtk kmod-sdhci-mt7620
73 TARGET_DEVICES += cs-qr10
77 IMAGE_SIZE := $(ralink_default_fw_size_16M)
78 DEVICE_TITLE := Sanlinking Technologies D240
79 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76-core kmod-mt76x2 kmod-sdhci-mt7620
81 TARGET_DEVICES += d240
83 define Device/db-wrt01
85 DEVICE_TITLE := Planex DB-WRT01
87 TARGET_DEVICES += db-wrt01
89 define Device/dch-m225
94 IMAGE/sysupgrade.bin := \
95 append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs | \
96 seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \
97 pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
98 IMAGE/factory.bin := \
99 append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
100 append-rootfs | pad-rootfs -x 64 | \
101 seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \
102 seama-seal -m "signature=wapn22_dlink.2013gui_dap1320b" | \
103 check-size $$$$(IMAGE_SIZE)
104 DEVICE_TITLE := D-Link DCH-M225
105 DEVICE_PACKAGES := kmod-mt76
107 TARGET_DEVICES += dch-m225
109 define Device/dir-810l
112 DEVICE_TITLE := D-Link DIR-810L
114 TARGET_DEVICES += dir-810l
118 IMAGES += factory.bin
119 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
120 umedia-header 0x013326
121 DEVICE_TITLE := Linksys E1700
123 TARGET_DEVICES += e1700
126 NETGEAR_HW_ID := 29764623+4+0+32+2x2+0
127 NETGEAR_BOARD_ID := EX2700
130 IMAGE_SIZE := $(ralink_default_fw_size_4M)
131 IMAGES += factory.bin
132 KERNEL := $(KERNEL_DTB) | uImage lzma | pad-offset 64k 64 | append-uImage-fakeroot-hdr
133 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
135 DEVICE_PACKAGES := -kmod-mt76
136 DEVICE_TITLE := Netgear EX2700
138 TARGET_DEVICES += ex2700
141 NETGEAR_BOARD_ID := U12H319T00_NETGEAR
145 IMAGES += factory.bin
146 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | netgear-chk
147 DEVICE_PACKAGES := -kmod-mt76 kmod-mt76x2
148 DEVICE_TITLE := Netgear EX3700
150 TARGET_DEVICES += ex3700
152 define Device/gl-mt300a
154 IMAGE_SIZE := $(ralink_default_fw_size_16M)
155 DEVICE_TITLE := GL-Inet GL-MT300A
156 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76
158 TARGET_DEVICES += gl-mt300a
160 define Device/gl-mt300n
162 IMAGE_SIZE := $(ralink_default_fw_size_16M)
163 DEVICE_TITLE := GL-Inet GL-MT300N
164 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76
166 TARGET_DEVICES += gl-mt300n
168 define Device/gl-mt750
170 IMAGE_SIZE := $(ralink_default_fw_size_16M)
171 DEVICE_TITLE := GL-Inet GL-MT750
172 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76
174 TARGET_DEVICES += gl-mt750
178 IMAGE_SIZE := $(ralink_default_fw_size_16M)
179 DEVICE_TITLE := HiWiFi HC5661
180 DEVICE_PACKAGES := kmod-usb2 kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport
182 TARGET_DEVICES += hc5661
186 IMAGE_SIZE := $(ralink_default_fw_size_16M)
187 DEVICE_TITLE := HiWiFi HC5761
188 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport
190 TARGET_DEVICES += hc5761
194 IMAGE_SIZE := $(ralink_default_fw_size_16M)
195 DEVICE_TITLE := HiWiFi HC5861
196 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport
198 TARGET_DEVICES += hc5861
202 IMAGE_SIZE := $(ralink_default_fw_size_16M)
203 DEVICE_TITLE := ZyXEL Keenetic Viva
204 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport kmod-switch-rtl8366-smi kmod-switch-rtl8367b
205 IMAGES += factory.bin
206 IMAGE/factory.bin := $$(sysupgrade_bin) | pad-to 64k | check-size $$$$(IMAGE_SIZE) | \
207 zyimage -d 8997 -v "ZyXEL Keenetic Viva"
209 TARGET_DEVICES += kng_rc
213 DEVICE_TITLE := ZyXEL Keenetic Omni
214 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
215 IMAGES += factory.bin
216 IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | pad-to 64k | check-size $$$$(IMAGE_SIZE) | \
217 zyimage -d 4882 -v "ZyXEL Keenetic Omni"
219 TARGET_DEVICES += kn_rc
223 DEVICE_TITLE := ZyXEL Keenetic Omni II
224 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
225 IMAGES += factory.bin
226 IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | pad-to 64k | check-size $$$$(IMAGE_SIZE) | \
227 zyimage -d 2102034 -v "ZyXEL Keenetic Omni II"
229 TARGET_DEVICES += kn_rf
231 define Device/microwrt
234 DEVICE_TITLE := Microduino MicroWRT
236 TARGET_DEVICES += microwrt
238 define Device/miwifi-mini
240 IMAGE_SIZE := $(ralink_default_fw_size_16M)
241 DEVICE_TITLE := Xiaomi MiWiFi Mini
242 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
244 TARGET_DEVICES += miwifi-mini
248 IMAGE_SIZE := $(ralink_default_fw_size_16M)
249 DEVICE_TITLE := Kingston MLW221
251 TARGET_DEVICES += mlw221
255 IMAGE_SIZE := $(ralink_default_fw_size_16M)
256 DEVICE_TITLE := Kingston MLWG2
258 TARGET_DEVICES += mlwg2
260 define Device/mt7620a
262 DEVICE_TITLE := MediaTek MT7620a EVB
264 TARGET_DEVICES += mt7620a
266 define Device/mt7620a_mt7530
267 DTS := MT7620a_MT7530
268 DEVICE_TITLE := MediaTek MT7620a + MT7530 EVB
270 TARGET_DEVICES += mt7620a_mt7530
272 define Device/mt7620a_mt7610e
273 DTS := MT7620a_MT7610e
274 DEVICE_TITLE := MediaTek MT7620a + MT7610e EVB
276 TARGET_DEVICES += mt7620a_mt7610e
278 define Device/mt7620a_v22sg
280 DEVICE_TITLE := MediaTek MT7620a V22SG
282 TARGET_DEVICES += mt7620a_v22sg
284 define Device/mzk-750dhp
286 DEVICE_TITLE := Planex MZK-750DHP
287 DEVICE_PACKAGES := kmod-mt76
289 TARGET_DEVICES += mzk-750dhp
291 define Device/mzk-ex300np
293 DEVICE_TITLE := Planex MZK-EX300NP
295 TARGET_DEVICES += mzk-ex300np
297 define Device/mzk-ex750np
299 DEVICE_TITLE := Planex MZK-EX750NP
300 DEVICE_PACKAGES := kmod-mt76
302 TARGET_DEVICES += mzk-ex750np
307 DEVICE_TITLE := Sercomm NA930
309 TARGET_DEVICES += na930
311 define Device/oy-0001
313 IMAGE_SIZE := $(ralink_default_fw_size_16M)
314 DEVICE_TITLE := Oh Yeah OY-0001
316 TARGET_DEVICES += oy-0001
318 define Device/psg1208
320 DEVICE_TITLE := Phicomm PSG1208
321 DEVICE_PACKAGES := kmod-mt76
323 TARGET_DEVICES += psg1208
325 define Device/psg1218
327 DEVICE_TITLE := Phicomm PSG1218
328 DEVICE_PACKAGES := kmod-mt76x2
330 TARGET_DEVICES += psg1218
332 define Device/psg1218k2c
334 DEVICE_TITLE := Phicomm PSG1218K2C
335 DEVICE_PACKAGES := kmod-mt76x2
337 TARGET_DEVICES += psg1218k2c
341 DEVICE_TITLE := Asus RP-N53
343 TARGET_DEVICES += rp-n53
345 define Device/rt-n14u
347 DEVICE_TITLE := Asus RT-N14u
349 TARGET_DEVICES += rt-n14u
351 define Device/tiny-ac
353 DEVICE_TITLE := Dovado Tiny AC
354 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
356 TARGET_DEVICES += tiny-ac
358 define Device/whr-1166d
361 DEVICE_TITLE := Buffalo WHR-1166D
363 TARGET_DEVICES += whr-1166d
365 define Device/whr-300hp2
368 DEVICE_TITLE := Buffalo WHR-300HP2
370 TARGET_DEVICES += whr-300hp2
372 define Device/whr-600d
375 DEVICE_TITLE := Buffalo WHR-600D
377 TARGET_DEVICES += whr-600d
379 define Device/wmr-300
381 DEVICE_TITLE := Buffalo WMR-300
383 TARGET_DEVICES += wmr-300
385 define Device/wn3000rpv3
386 NETGEAR_HW_ID := 29764836+8+0+32+2x2+0
387 NETGEAR_BOARD_ID := WN3000RPv3
390 IMAGES += factory.bin
391 KERNEL := $(KERNEL_DTB) | uImage lzma | pad-offset 64k 64 | append-uImage-fakeroot-hdr
392 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
394 DEVICE_TITLE := Netgear WN3000RPv3
396 TARGET_DEVICES += wn3000rpv3
398 define Device/wrh-300cr
400 IMAGE_SIZE := $(ralink_default_fw_size_16M)
401 IMAGES += factory.bin
402 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
404 DEVICE_TITLE := Elecom WRH-300CR
405 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
407 TARGET_DEVICES += wrh-300cr
409 define Device/wrtnode
411 IMAGE_SIZE := $(ralink_default_fw_size_16M)
412 DEVICE_TITLE := WRTNode
414 TARGET_DEVICES += wrtnode
416 define Device/wt3020-4M
419 IMAGE_SIZE := $(ralink_default_fw_size_4M)
420 IMAGES += factory.bin
421 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
422 poray-header -B WT3020 -F 4M
423 DEVICE_TITLE := Nexx WT3020 (4MB)
425 TARGET_DEVICES += wt3020-4M
427 define Device/wt3020-8M
429 IMAGES += factory.bin
430 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
431 poray-header -B WT3020 -F 8M
432 DEVICE_TITLE := Nexx WT3020 (8MB)
434 TARGET_DEVICES += wt3020-8M
438 IMAGE_SIZE := $(ralink_default_fw_size_16M)
439 DEVICE_TITLE := Lenovo Y1
445 IMAGE_SIZE := $(ralink_default_fw_size_16M)
446 DEVICE_TITLE := Lenovo Y1S
448 TARGET_DEVICES += y1s
450 define Device/youku-yk1
452 IMAGE_SIZE := $(ralink_default_fw_size_16M)
453 DEVICE_TITLE := YOUKU YK1
455 TARGET_DEVICES += youku-yk1
457 define Device/zbt-ape522ii
459 DEVICE_TITLE := Zbtlink ZBT-APE522II
460 DEVICE_PACKAGES := kmod-mt76
462 TARGET_DEVICES += zbt-ape522ii
464 define Device/zbt-cpe102
466 DEVICE_TITLE := Zbtlink ZBT-CPE102
467 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
469 TARGET_DEVICES += zbt-cpe102
471 define Device/zbt-wa05
473 DEVICE_TITLE := Zbtlink ZBT-WA05
475 TARGET_DEVICES += zbt-wa05
477 define Device/zbt-we2026
479 DEVICE_TITLE := Zbtlink ZBT-WE2026
481 TARGET_DEVICES += zbt-we2026
483 define Device/zbt-we826
485 IMAGE_SIZE := $(ralink_default_fw_size_16M)
486 DEVICE_TITLE := Zbtlink ZBT-WE826
487 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76 kmod-sdhci-mt7620
489 TARGET_DEVICES += zbt-we826
491 define Device/zbt-wr8305rt
493 DEVICE_TITLE := Zbtlink ZBT-WR8305RT
495 TARGET_DEVICES += zbt-wr8305rt
499 DEVICE_TITLE := ZTE Q7
501 TARGET_DEVICES += zte-q7