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/ArcherC20i
25 SUPPORTED_DEVICES := c20i
26 KERNEL := $(KERNEL_DTB)
27 KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-header ArcherC20i -c
28 IMAGE/sysupgrade.bin := append-kernel | tplink-header ArcherC20i -j | append-metadata
29 DEVICE_TITLE := TP-Link ArcherC20i
31 TARGET_DEVICES += ArcherC20i
33 define Device/ArcherC50
35 SUPPORTED_DEVICES := c50
36 KERNEL := $(KERNEL_DTB)
37 KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-header ArcherC50 -c
38 IMAGE/sysupgrade.bin := append-kernel | tplink-header ArcherC50 -j | append-metadata
39 DEVICE_TITLE := TP-Link ArcherC50
41 TARGET_DEVICES += ArcherC50
43 define Device/ArcherMR200
45 SUPPORTED_DEVICES := mr200
46 KERNEL := $(KERNEL_DTB)
47 KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-header ArcherMR200 -c
48 IMAGE/sysupgrade.bin := append-kernel | tplink-header ArcherMR200 -j | append-metadata
49 DEVICE_PACKAGES := kmod-usb2 kmod-usb-net kmod-usb-net-rndis kmod-usb-serial kmod-usb-serial-option adb
50 DEVICE_TITLE := TP-Link ArcherMR200
52 TARGET_DEVICES += ArcherMR200
55 NETGEAR_HW_ID := 29764623+4+0+32+2x2+0
56 NETGEAR_BOARD_ID := EX2700
59 IMAGE_SIZE := $(ralink_default_fw_size_4M)
61 KERNEL := $(KERNEL_DTB) | uImage lzma | pad-offset 64k 64 | append-uImage-fakeroot-hdr
62 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
64 DEVICE_PACKAGES := -kmod-mt76
65 DEVICE_TITLE := Netgear EX2700
67 TARGET_DEVICES += ex2700
69 define Device/wn3000rpv3
70 NETGEAR_HW_ID := 29764836+8+0+32+2x2+0
71 NETGEAR_BOARD_ID := WN3000RPv3
75 KERNEL := $(KERNEL_DTB) | uImage lzma | pad-offset 64k 64 | append-uImage-fakeroot-hdr
76 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
78 DEVICE_TITLE := Netgear WN3000RPv3
80 TARGET_DEVICES += wn3000rpv3
83 NETGEAR_BOARD_ID := U12H319T00_NETGEAR
88 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | netgear-chk
89 DEVICE_PACKAGES := -kmod-mt76 kmod-mt76x2
90 DEVICE_TITLE := Netgear EX3700
92 TARGET_DEVICES += ex3700
94 define Device/wt3020-4M
97 IMAGE_SIZE := $(ralink_default_fw_size_4M)
99 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
100 poray-header -B WT3020 -F 4M
101 DEVICE_TITLE := Nexx WT3020 (4MB)
103 TARGET_DEVICES += wt3020-4M
105 define Device/wt3020-8M
107 IMAGES += factory.bin
108 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
109 poray-header -B WT3020 -F 8M
110 DEVICE_TITLE := Nexx WT3020 (8MB)
112 TARGET_DEVICES += wt3020-8M
114 define Device/wrh-300cr
116 IMAGE_SIZE := $(ralink_default_fw_size_16M)
117 IMAGES += factory.bin
118 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
120 DEVICE_TITLE := Elecom WRH-300CR
121 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
123 TARGET_DEVICES += wrh-300cr
127 IMAGES += factory.bin
128 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
129 umedia-header 0x013326
130 DEVICE_TITLE := Linksys E1700
132 TARGET_DEVICES += e1700
134 define Device/ai-br100
137 DEVICE_TITLE := Aigale Ai-BR100
138 DEVICE_PACKAGES:= kmod-usb2 kmod-usb-ohci
140 TARGET_DEVICES += ai-br100
142 define Device/whr-300hp2
145 DEVICE_TITLE := Buffalo WHR-300HP2
147 TARGET_DEVICES += whr-300hp2
149 define Device/whr-600d
152 DEVICE_TITLE := Buffalo WHR-600D
154 TARGET_DEVICES += whr-600d
156 define Device/whr-1166d
159 DEVICE_TITLE := Buffalo WHR-1166D
161 TARGET_DEVICES += whr-1166d
163 define Device/dir-810l
166 DEVICE_TITLE := D-Link DIR-810L
168 TARGET_DEVICES += dir-810l
173 DEVICE_TITLE := Sercomm NA930
175 TARGET_DEVICES += na930
177 define Device/microwrt
180 DEVICE_TITLE := Microduino MicroWRT
182 TARGET_DEVICES += microwrt
184 define Device/mt7620a
186 DEVICE_TITLE := MediaTek MT7620a EVB
188 TARGET_DEVICES += mt7620a
190 define Device/mt7620a_mt7610e
191 DTS := MT7620a_MT7610e
192 DEVICE_TITLE := MediaTek MT7620a + MT7610e EVB
194 TARGET_DEVICES += mt7620a_mt7610e
196 define Device/mt7620a_mt7530
197 DTS := MT7620a_MT7530
198 DEVICE_TITLE := MediaTek MT7620a + MT7530 EVB
200 TARGET_DEVICES += mt7620a_mt7530
202 define Device/mt7620a_v22sg
204 DEVICE_TITLE := MediaTek MT7620a V22SG
206 TARGET_DEVICES += mt7620a_v22sg
210 DEVICE_TITLE := Asus RP-N53
212 TARGET_DEVICES += rp-n53
214 define Device/cf-wr800n
216 DEVICE_TITLE := Comfast CF-WR800N
218 TARGET_DEVICES += cf-wr800n
220 define Device/cs-qr10
222 DEVICE_TITLE := Planex CS-QR10
223 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-i2c-core kmod-i2c-ralink kmod-sound-core kmod-sound-mtk kmod-sdhci-mt7620
225 TARGET_DEVICES += cs-qr10
227 define Device/db-wrt01
229 DEVICE_TITLE := Planex DB-WRT01
231 TARGET_DEVICES += db-wrt01
233 define Device/mzk-750dhp
235 DEVICE_TITLE := Planex MZK-750DHP
236 DEVICE_PACKAGES := kmod-mt76
238 TARGET_DEVICES += mzk-750dhp
240 define Device/mzk-ex300np
242 DEVICE_TITLE := Planex MZK-EX300NP
244 TARGET_DEVICES += mzk-ex300np
246 define Device/mzk-ex750np
248 DEVICE_TITLE := Planex MZK-EX750NP
249 DEVICE_PACKAGES := kmod-mt76
251 TARGET_DEVICES += mzk-ex750np
255 IMAGE_SIZE := $(ralink_default_fw_size_16M)
256 DEVICE_TITLE := HiWiFi HC5661
257 DEVICE_PACKAGES := kmod-usb2 kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport
259 TARGET_DEVICES += hc5661
263 IMAGE_SIZE := $(ralink_default_fw_size_16M)
264 DEVICE_TITLE := HiWiFi HC5761
265 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport
267 TARGET_DEVICES += hc5761
271 IMAGE_SIZE := $(ralink_default_fw_size_16M)
272 DEVICE_TITLE := HiWiFi HC5861
273 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport
275 TARGET_DEVICES += hc5861
277 define Device/oy-0001
279 IMAGE_SIZE := $(ralink_default_fw_size_16M)
280 DEVICE_TITLE := Oh Yeah OY-0001
282 TARGET_DEVICES += oy-0001
284 define Device/psg1208
286 DEVICE_TITLE := Phicomm PSG1208
287 DEVICE_PACKAGES := kmod-mt76
289 TARGET_DEVICES += psg1208
291 define Device/psg1218
293 DEVICE_TITLE := Phicomm PSG1218
294 DEVICE_PACKAGES := kmod-mt76
296 TARGET_DEVICES += psg1218
300 IMAGE_SIZE := $(ralink_default_fw_size_16M)
301 DEVICE_TITLE := Lenovo Y1
307 IMAGE_SIZE := $(ralink_default_fw_size_16M)
308 DEVICE_TITLE := Lenovo Y1S
310 TARGET_DEVICES += y1s
314 IMAGE_SIZE := $(ralink_default_fw_size_16M)
315 DEVICE_TITLE := Kingston MLW221
317 TARGET_DEVICES += mlw221
321 IMAGE_SIZE := $(ralink_default_fw_size_16M)
322 DEVICE_TITLE := Kingston MLWG2
324 TARGET_DEVICES += mlwg2
326 define Device/wmr-300
328 DEVICE_TITLE := Buffalo WMR-300
330 TARGET_DEVICES += wmr-300
332 define Device/rt-n14u
334 DEVICE_TITLE := Asus RT-N14u
336 TARGET_DEVICES += rt-n14u
338 define Device/wrtnode
340 IMAGE_SIZE := $(ralink_default_fw_size_16M)
341 DEVICE_TITLE := WRTNode
343 TARGET_DEVICES += wrtnode
345 define Device/miwifi-mini
347 IMAGE_SIZE := $(ralink_default_fw_size_16M)
348 DEVICE_TITLE := Xiaomi MiWiFi Mini
349 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
351 TARGET_DEVICES += miwifi-mini
353 define Device/gl-mt300a
355 IMAGE_SIZE := $(ralink_default_fw_size_16M)
356 DEVICE_TITLE := GL-Inet GL-MT300A
357 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76
359 TARGET_DEVICES += gl-mt300a
361 define Device/gl-mt300n
363 IMAGE_SIZE := $(ralink_default_fw_size_16M)
364 DEVICE_TITLE := GL-Inet GL-MT300N
365 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76
367 TARGET_DEVICES += gl-mt300n
369 define Device/gl-mt750
371 IMAGE_SIZE := $(ralink_default_fw_size_16M)
372 DEVICE_TITLE := GL-Inet GL-MT750
373 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76
375 TARGET_DEVICES += gl-mt750
379 DEVICE_TITLE := ZTE Q7
381 TARGET_DEVICES += zte-q7
383 define Device/youku-yk1
385 IMAGE_SIZE := $(ralink_default_fw_size_16M)
386 DEVICE_TITLE := YOUKU YK1
388 TARGET_DEVICES += youku-yk1
390 define Device/zbt-ape522ii
392 DEVICE_TITLE := Zbtlink ZBT-APE522II
393 DEVICE_PACKAGES := kmod-mt76
395 TARGET_DEVICES += zbt-ape522ii
397 define Device/zbt-cpe102
399 DEVICE_TITLE := Zbtlink ZBT-CPE102
400 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
402 TARGET_DEVICES += zbt-cpe102
404 define Device/zbt-wa05
406 DEVICE_TITLE := Zbtlink ZBT-WA05
408 TARGET_DEVICES += zbt-wa05
410 define Device/zbt-we826
412 IMAGE_SIZE := $(ralink_default_fw_size_16M)
413 DEVICE_TITLE := Zbtlink ZBT-WE826
414 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76 kmod-sdhci-mt7620
416 TARGET_DEVICES += zbt-we826
418 define Device/zbt-wr8305rt
420 DEVICE_TITLE := Zbtlink ZBT-WR8305RT
422 TARGET_DEVICES += zbt-wr8305rt
424 define Device/tiny-ac
426 DEVICE_TITLE := Dovado Tiny AC
427 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
429 TARGET_DEVICES += tiny-ac
431 define Device/dch-m225
434 IMAGES += factory.bin
436 IMAGE/sysupgrade.bin := \
437 append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs | \
438 seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \
439 pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
440 IMAGE/factory.bin := \
441 append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
442 append-rootfs | pad-rootfs -x 64 | \
443 seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \
444 seama-seal -m "signature=wapn22_dlink.2013gui_dap1320b" | \
445 check-size $$$$(IMAGE_SIZE)
446 DEVICE_TITLE := D-Link DCH-M225
447 DEVICE_PACKAGES := kmod-mt76
449 TARGET_DEVICES += dch-m225
453 DEVICE_TITLE := ZyXEL Keenetic Omni
454 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
455 IMAGES += factory.bin
456 IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | pad-to 64k | check-size $$$$(IMAGE_SIZE) | \
457 zyimage -d 4882 -v "ZyXEL Keenetic Omni"
459 TARGET_DEVICES += kn_rc
463 DEVICE_TITLE := ZyXEL Keenetic Omni II
464 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
465 IMAGES += factory.bin
466 IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | pad-to 64k | check-size $$$$(IMAGE_SIZE) | \
467 zyimage -d 2102034 -v "ZyXEL Keenetic Omni II"
469 TARGET_DEVICES += kn_rf
473 IMAGE_SIZE := $(ralink_default_fw_size_16M)
474 DEVICE_TITLE := ZyXEL Keenetic Viva
475 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport kmod-switch-rtl8366-smi kmod-switch-rtl8367b
476 IMAGES += factory.bin
477 IMAGE/factory.bin := $$(sysupgrade_bin) | pad-to 64k | check-size $$$$(IMAGE_SIZE) | \
478 zyimage -d 8997 -v "ZyXEL Keenetic Viva"
480 TARGET_DEVICES += kng_rc
484 IMAGE_SIZE := $(ralink_default_fw_size_16M)
485 DEVICE_TITLE := Sanlinking Technologies D240
486 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76-core kmod-mt76x2 kmod-sdhci-mt7620
488 TARGET_DEVICES += d240