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_TITLE := Netgear EX2700
66 TARGET_DEVICES += ex2700
68 define Device/wn3000rpv3
69 NETGEAR_HW_ID := 29764836+8+0+32+2x2+0
70 NETGEAR_BOARD_ID := WN3000RPv3
74 KERNEL := $(KERNEL_DTB) | uImage lzma | pad-offset 64k 64 | append-uImage-fakeroot-hdr
75 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
77 DEVICE_TITLE := Netgear WN3000RPv3
79 TARGET_DEVICES += wn3000rpv3
81 define Device/wt3020-4M
84 IMAGE_SIZE := $(ralink_default_fw_size_4M)
86 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
87 poray-header -B WT3020 -F 4M
88 DEVICE_TITLE := Nexx WT3020 (4MB)
90 TARGET_DEVICES += wt3020-4M
92 define Device/wt3020-8M
95 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
96 poray-header -B WT3020 -F 8M
97 DEVICE_TITLE := Nexx WT3020 (8MB)
99 TARGET_DEVICES += wt3020-8M
101 define Device/wrh-300cr
103 IMAGE_SIZE := $(ralink_default_fw_size_16M)
104 IMAGES += factory.bin
105 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
107 DEVICE_TITLE := Elecom WRH-300CR
108 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
110 TARGET_DEVICES += wrh-300cr
114 IMAGES += factory.bin
115 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
116 umedia-header 0x013326
117 DEVICE_TITLE := Linksys E1700
119 TARGET_DEVICES += e1700
121 define Device/ai-br100
124 DEVICE_TITLE := Aigale Ai-BR100
125 DEVICE_PACKAGES:= kmod-usb2 kmod-usb-ohci
127 TARGET_DEVICES += ai-br100
129 define Device/whr-300hp2
132 DEVICE_TITLE := Buffalo WHR-300HP2
134 TARGET_DEVICES += whr-300hp2
136 define Device/whr-600d
139 DEVICE_TITLE := Buffalo WHR-600D
141 TARGET_DEVICES += whr-600d
143 define Device/whr-1166d
146 DEVICE_TITLE := Buffalo WHR-1166D
148 TARGET_DEVICES += whr-1166d
150 define Device/dir-810l
153 DEVICE_TITLE := D-Link DIR-810L
155 TARGET_DEVICES += dir-810l
160 DEVICE_TITLE := Sercomm NA930
162 TARGET_DEVICES += na930
164 define Device/microwrt
167 DEVICE_TITLE := Microduino MicroWRT
169 TARGET_DEVICES += microwrt
171 define Device/mt7620a
173 DEVICE_TITLE := MediaTek MT7620a EVB
175 TARGET_DEVICES += mt7620a
177 define Device/mt7620a_mt7610e
178 DTS := MT7620a_MT7610e
179 DEVICE_TITLE := MediaTek MT7620a + MT7610e EVB
181 TARGET_DEVICES += mt7620a_mt7610e
183 define Device/mt7620a_mt7530
184 DTS := MT7620a_MT7530
185 DEVICE_TITLE := MediaTek MT7620a + MT7530 EVB
187 TARGET_DEVICES += mt7620a_mt7530
189 define Device/mt7620a_v22sg
191 DEVICE_TITLE := MediaTek MT7620a V22SG
193 TARGET_DEVICES += mt7620a_v22sg
197 DEVICE_TITLE := Asus RP-N53
199 TARGET_DEVICES += rp-n53
201 define Device/cf-wr800n
203 DEVICE_TITLE := Comfast CF-WR800N
205 TARGET_DEVICES += cf-wr800n
207 define Device/cs-qr10
209 DEVICE_TITLE := Planex CS-QR10
210 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-i2c-core kmod-i2c-ralink kmod-sound-core kmod-sound-mtk kmod-sdhci-mt7620
212 TARGET_DEVICES += cs-qr10
214 define Device/db-wrt01
216 DEVICE_TITLE := Planex DB-WRT01
218 TARGET_DEVICES += db-wrt01
220 define Device/mzk-750dhp
222 DEVICE_TITLE := Planex MZK-750DHP
223 DEVICE_PACKAGES := kmod-mt76
225 TARGET_DEVICES += mzk-750dhp
227 define Device/mzk-ex300np
229 DEVICE_TITLE := Planex MZK-EX300NP
231 TARGET_DEVICES += mzk-ex300np
233 define Device/mzk-ex750np
235 DEVICE_TITLE := Planex MZK-EX750NP
236 DEVICE_PACKAGES := kmod-mt76
238 TARGET_DEVICES += mzk-ex750np
242 IMAGE_SIZE := $(ralink_default_fw_size_16M)
243 DEVICE_TITLE := HiWiFi HC5661
244 DEVICE_PACKAGES := kmod-usb2 kmod-sdhci kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport
246 TARGET_DEVICES += hc5661
250 IMAGE_SIZE := $(ralink_default_fw_size_16M)
251 DEVICE_TITLE := HiWiFi HC5761
252 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-sdhci kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport
254 TARGET_DEVICES += hc5761
258 IMAGE_SIZE := $(ralink_default_fw_size_16M)
259 DEVICE_TITLE := HiWiFi HC5861
260 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-sdhci kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport
262 TARGET_DEVICES += hc5861
264 define Device/oy-0001
266 IMAGE_SIZE := $(ralink_default_fw_size_16M)
267 DEVICE_TITLE := Oh Yeah OY-0001
269 TARGET_DEVICES += oy-0001
271 define Device/psg1208
273 DEVICE_TITLE := Phicomm PSG1208
274 DEVICE_PACKAGES := kmod-mt76
276 TARGET_DEVICES += psg1208
278 define Device/psg1218
280 DEVICE_TITLE := Phicomm PSG1218
281 DEVICE_PACKAGES := kmod-mt76
283 TARGET_DEVICES += psg1218
287 IMAGE_SIZE := $(ralink_default_fw_size_16M)
288 DEVICE_TITLE := Lenovo Y1
294 IMAGE_SIZE := $(ralink_default_fw_size_16M)
295 DEVICE_TITLE := Lenovo Y1S
297 TARGET_DEVICES += y1s
301 IMAGE_SIZE := $(ralink_default_fw_size_16M)
302 DEVICE_TITLE := Kingston MLW221
304 TARGET_DEVICES += mlw221
308 IMAGE_SIZE := $(ralink_default_fw_size_16M)
309 DEVICE_TITLE := Kingston MLWG2
311 TARGET_DEVICES += mlwg2
313 define Device/wmr-300
315 DEVICE_TITLE := Buffalo WMR-300
317 TARGET_DEVICES += wmr-300
319 define Device/rt-n14u
321 DEVICE_TITLE := Asus RT-N14u
323 TARGET_DEVICES += rt-n14u
325 define Device/wrtnode
327 IMAGE_SIZE := $(ralink_default_fw_size_16M)
328 DEVICE_TITLE := WRTNode
330 TARGET_DEVICES += wrtnode
332 define Device/miwifi-mini
334 IMAGE_SIZE := $(ralink_default_fw_size_16M)
335 DEVICE_TITLE := Xiaomi MiWiFi Mini
336 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
338 TARGET_DEVICES += miwifi-mini
340 define Device/gl-mt300a
342 IMAGE_SIZE := $(ralink_default_fw_size_16M)
343 DEVICE_TITLE := GL-Inet GL-MT300A
344 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76
346 TARGET_DEVICES += gl-mt300a
348 define Device/gl-mt300n
350 IMAGE_SIZE := $(ralink_default_fw_size_16M)
351 DEVICE_TITLE := GL-Inet GL-MT300N
352 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76
354 TARGET_DEVICES += gl-mt300n
356 define Device/gl-mt750
358 IMAGE_SIZE := $(ralink_default_fw_size_16M)
359 DEVICE_TITLE := GL-Inet GL-MT750
360 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76
362 TARGET_DEVICES += gl-mt750
366 DEVICE_TITLE := ZTE Q7
368 TARGET_DEVICES += zte-q7
370 define Device/youku-yk1
372 IMAGE_SIZE := $(ralink_default_fw_size_16M)
373 DEVICE_TITLE := YOUKU YK1
375 TARGET_DEVICES += youku-yk1
377 define Device/zbt-ape522ii
379 DEVICE_TITLE := Zbtlink ZBT-APE522II
380 DEVICE_PACKAGES := kmod-mt76
382 TARGET_DEVICES += zbt-ape522ii
384 define Device/zbt-cpe102
386 DEVICE_TITLE := Zbtlink ZBT-CPE102
387 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
389 TARGET_DEVICES += zbt-cpe102
391 define Device/zbt-wa05
393 DEVICE_TITLE := Zbtlink ZBT-WA05
395 TARGET_DEVICES += zbt-wa05
397 define Device/zbt-we826
399 IMAGE_SIZE := $(ralink_default_fw_size_16M)
400 DEVICE_TITLE := Zbtlink ZBT-WE826
401 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76 kmod-sdhci-mt7620
403 TARGET_DEVICES += zbt-we826
405 define Device/zbt-wr8305rt
407 DEVICE_TITLE := Zbtlink ZBT-WR8305RT
409 TARGET_DEVICES += zbt-wr8305rt
411 define Device/tiny-ac
413 DEVICE_TITLE := Dovado Tiny AC
414 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
416 TARGET_DEVICES += tiny-ac
418 define Device/dch-m225
421 IMAGES += factory.bin
423 IMAGE/sysupgrade.bin := \
424 append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs | \
425 seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \
426 pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
427 IMAGE/factory.bin := \
428 append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
429 append-rootfs | pad-rootfs -x 64 | \
430 seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \
431 seama-seal -m "signature=wapn22_dlink.2013gui_dap1320b" | \
432 check-size $$$$(IMAGE_SIZE)
433 DEVICE_TITLE := D-Link DCH-M225
434 DEVICE_PACKAGES := kmod-mt76
436 TARGET_DEVICES += dch-m225
440 DEVICE_TITLE := ZyXEL Keenetic Omni
441 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
442 IMAGES += factory.bin
443 IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | pad-to 64k | check-size $$$$(IMAGE_SIZE) | \
444 zyimage -d 4882 -v "ZyXEL Keenetic Omni"
446 TARGET_DEVICES += kn_rc
450 DEVICE_TITLE := ZyXEL Keenetic Omni II
451 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
452 IMAGES += factory.bin
453 IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | pad-to 64k | check-size $$$$(IMAGE_SIZE) | \
454 zyimage -d 2102034 -v "ZyXEL Keenetic Omni II"
456 TARGET_DEVICES += kn_rf
460 IMAGE_SIZE := $(ralink_default_fw_size_16M)
461 DEVICE_TITLE := ZyXEL Keenetic Viva
462 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport kmod-switch-rtl8366-smi kmod-switch-rtl8367b
463 IMAGES += factory.bin
464 IMAGE/factory.bin := $$(sysupgrade_bin) | pad-to 64k | check-size $$$$(IMAGE_SIZE) | \
465 zyimage -d 8997 -v "ZyXEL Keenetic Viva"
467 TARGET_DEVICES += kng_rc
471 IMAGE_SIZE := $(ralink_default_fw_size_16M)
472 DEVICE_TITLE := Sanlinking Technologies D240
473 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76 kmod-sdhci-mt7620
475 TARGET_DEVICES += d240