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 kmod-mt76-core
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
82 define Device/wt3020-4M
85 IMAGE_SIZE := $(ralink_default_fw_size_4M)
87 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
88 poray-header -B WT3020 -F 4M
89 DEVICE_TITLE := Nexx WT3020 (4MB)
91 TARGET_DEVICES += wt3020-4M
93 define Device/wt3020-8M
96 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
97 poray-header -B WT3020 -F 8M
98 DEVICE_TITLE := Nexx WT3020 (8MB)
100 TARGET_DEVICES += wt3020-8M
102 define Device/wrh-300cr
104 IMAGE_SIZE := $(ralink_default_fw_size_16M)
105 IMAGES += factory.bin
106 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
108 DEVICE_TITLE := Elecom WRH-300CR
109 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
111 TARGET_DEVICES += wrh-300cr
115 IMAGES += factory.bin
116 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
117 umedia-header 0x013326
118 DEVICE_TITLE := Linksys E1700
120 TARGET_DEVICES += e1700
122 define Device/ai-br100
125 DEVICE_TITLE := Aigale Ai-BR100
126 DEVICE_PACKAGES:= kmod-usb2 kmod-usb-ohci
128 TARGET_DEVICES += ai-br100
130 define Device/whr-300hp2
133 DEVICE_TITLE := Buffalo WHR-300HP2
135 TARGET_DEVICES += whr-300hp2
137 define Device/whr-600d
140 DEVICE_TITLE := Buffalo WHR-600D
142 TARGET_DEVICES += whr-600d
144 define Device/whr-1166d
147 DEVICE_TITLE := Buffalo WHR-1166D
149 TARGET_DEVICES += whr-1166d
151 define Device/dir-810l
154 DEVICE_TITLE := D-Link DIR-810L
156 TARGET_DEVICES += dir-810l
161 DEVICE_TITLE := Sercomm NA930
163 TARGET_DEVICES += na930
165 define Device/microwrt
168 DEVICE_TITLE := Microduino MicroWRT
170 TARGET_DEVICES += microwrt
172 define Device/mt7620a
174 DEVICE_TITLE := MediaTek MT7620a EVB
176 TARGET_DEVICES += mt7620a
178 define Device/mt7620a_mt7610e
179 DTS := MT7620a_MT7610e
180 DEVICE_TITLE := MediaTek MT7620a + MT7610e EVB
182 TARGET_DEVICES += mt7620a_mt7610e
184 define Device/mt7620a_mt7530
185 DTS := MT7620a_MT7530
186 DEVICE_TITLE := MediaTek MT7620a + MT7530 EVB
188 TARGET_DEVICES += mt7620a_mt7530
190 define Device/mt7620a_v22sg
192 DEVICE_TITLE := MediaTek MT7620a V22SG
194 TARGET_DEVICES += mt7620a_v22sg
198 DEVICE_TITLE := Asus RP-N53
200 TARGET_DEVICES += rp-n53
202 define Device/cf-wr800n
204 DEVICE_TITLE := Comfast CF-WR800N
206 TARGET_DEVICES += cf-wr800n
208 define Device/cs-qr10
210 DEVICE_TITLE := Planex CS-QR10
211 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-i2c-core kmod-i2c-ralink kmod-sound-core kmod-sound-mtk kmod-sdhci-mt7620
213 TARGET_DEVICES += cs-qr10
215 define Device/db-wrt01
217 DEVICE_TITLE := Planex DB-WRT01
219 TARGET_DEVICES += db-wrt01
221 define Device/mzk-750dhp
223 DEVICE_TITLE := Planex MZK-750DHP
224 DEVICE_PACKAGES := kmod-mt76
226 TARGET_DEVICES += mzk-750dhp
228 define Device/mzk-ex300np
230 DEVICE_TITLE := Planex MZK-EX300NP
232 TARGET_DEVICES += mzk-ex300np
234 define Device/mzk-ex750np
236 DEVICE_TITLE := Planex MZK-EX750NP
237 DEVICE_PACKAGES := kmod-mt76
239 TARGET_DEVICES += mzk-ex750np
243 IMAGE_SIZE := $(ralink_default_fw_size_16M)
244 DEVICE_TITLE := HiWiFi HC5661
245 DEVICE_PACKAGES := kmod-usb2 kmod-sdhci kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport
247 TARGET_DEVICES += hc5661
251 IMAGE_SIZE := $(ralink_default_fw_size_16M)
252 DEVICE_TITLE := HiWiFi HC5761
253 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-sdhci kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport
255 TARGET_DEVICES += hc5761
259 IMAGE_SIZE := $(ralink_default_fw_size_16M)
260 DEVICE_TITLE := HiWiFi HC5861
261 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-sdhci kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport
263 TARGET_DEVICES += hc5861
265 define Device/oy-0001
267 IMAGE_SIZE := $(ralink_default_fw_size_16M)
268 DEVICE_TITLE := Oh Yeah OY-0001
270 TARGET_DEVICES += oy-0001
272 define Device/psg1208
274 DEVICE_TITLE := Phicomm PSG1208
275 DEVICE_PACKAGES := kmod-mt76
277 TARGET_DEVICES += psg1208
279 define Device/psg1218
281 DEVICE_TITLE := Phicomm PSG1218
282 DEVICE_PACKAGES := kmod-mt76
284 TARGET_DEVICES += psg1218
288 IMAGE_SIZE := $(ralink_default_fw_size_16M)
289 DEVICE_TITLE := Lenovo Y1
295 IMAGE_SIZE := $(ralink_default_fw_size_16M)
296 DEVICE_TITLE := Lenovo Y1S
298 TARGET_DEVICES += y1s
302 IMAGE_SIZE := $(ralink_default_fw_size_16M)
303 DEVICE_TITLE := Kingston MLW221
305 TARGET_DEVICES += mlw221
309 IMAGE_SIZE := $(ralink_default_fw_size_16M)
310 DEVICE_TITLE := Kingston MLWG2
312 TARGET_DEVICES += mlwg2
314 define Device/wmr-300
316 DEVICE_TITLE := Buffalo WMR-300
318 TARGET_DEVICES += wmr-300
320 define Device/rt-n14u
322 DEVICE_TITLE := Asus RT-N14u
324 TARGET_DEVICES += rt-n14u
326 define Device/wrtnode
328 IMAGE_SIZE := $(ralink_default_fw_size_16M)
329 DEVICE_TITLE := WRTNode
331 TARGET_DEVICES += wrtnode
333 define Device/miwifi-mini
335 IMAGE_SIZE := $(ralink_default_fw_size_16M)
336 DEVICE_TITLE := Xiaomi MiWiFi Mini
337 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
339 TARGET_DEVICES += miwifi-mini
341 define Device/gl-mt300a
343 IMAGE_SIZE := $(ralink_default_fw_size_16M)
344 DEVICE_TITLE := GL-Inet GL-MT300A
345 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76
347 TARGET_DEVICES += gl-mt300a
349 define Device/gl-mt300n
351 IMAGE_SIZE := $(ralink_default_fw_size_16M)
352 DEVICE_TITLE := GL-Inet GL-MT300N
353 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76
355 TARGET_DEVICES += gl-mt300n
357 define Device/gl-mt750
359 IMAGE_SIZE := $(ralink_default_fw_size_16M)
360 DEVICE_TITLE := GL-Inet GL-MT750
361 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76
363 TARGET_DEVICES += gl-mt750
367 DEVICE_TITLE := ZTE Q7
369 TARGET_DEVICES += zte-q7
371 define Device/youku-yk1
373 IMAGE_SIZE := $(ralink_default_fw_size_16M)
374 DEVICE_TITLE := YOUKU YK1
376 TARGET_DEVICES += youku-yk1
378 define Device/zbt-ape522ii
380 DEVICE_TITLE := Zbtlink ZBT-APE522II
381 DEVICE_PACKAGES := kmod-mt76
383 TARGET_DEVICES += zbt-ape522ii
385 define Device/zbt-cpe102
387 DEVICE_TITLE := Zbtlink ZBT-CPE102
388 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
390 TARGET_DEVICES += zbt-cpe102
392 define Device/zbt-wa05
394 DEVICE_TITLE := Zbtlink ZBT-WA05
396 TARGET_DEVICES += zbt-wa05
398 define Device/zbt-we826
400 IMAGE_SIZE := $(ralink_default_fw_size_16M)
401 DEVICE_TITLE := Zbtlink ZBT-WE826
402 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76 kmod-sdhci-mt7620
404 TARGET_DEVICES += zbt-we826
406 define Device/zbt-wr8305rt
408 DEVICE_TITLE := Zbtlink ZBT-WR8305RT
410 TARGET_DEVICES += zbt-wr8305rt
412 define Device/tiny-ac
414 DEVICE_TITLE := Dovado Tiny AC
415 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
417 TARGET_DEVICES += tiny-ac
419 define Device/dch-m225
422 IMAGES += factory.bin
424 IMAGE/sysupgrade.bin := \
425 append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs | \
426 seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \
427 pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
428 IMAGE/factory.bin := \
429 append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
430 append-rootfs | pad-rootfs -x 64 | \
431 seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \
432 seama-seal -m "signature=wapn22_dlink.2013gui_dap1320b" | \
433 check-size $$$$(IMAGE_SIZE)
434 DEVICE_TITLE := D-Link DCH-M225
435 DEVICE_PACKAGES := kmod-mt76
437 TARGET_DEVICES += dch-m225
441 DEVICE_TITLE := ZyXEL Keenetic Omni
442 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
443 IMAGES += factory.bin
444 IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | pad-to 64k | check-size $$$$(IMAGE_SIZE) | \
445 zyimage -d 4882 -v "ZyXEL Keenetic Omni"
447 TARGET_DEVICES += kn_rc
451 DEVICE_TITLE := ZyXEL Keenetic Omni II
452 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
453 IMAGES += factory.bin
454 IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | pad-to 64k | check-size $$$$(IMAGE_SIZE) | \
455 zyimage -d 2102034 -v "ZyXEL Keenetic Omni II"
457 TARGET_DEVICES += kn_rf
461 IMAGE_SIZE := $(ralink_default_fw_size_16M)
462 DEVICE_TITLE := ZyXEL Keenetic Viva
463 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport kmod-switch-rtl8366-smi kmod-switch-rtl8367b
464 IMAGES += factory.bin
465 IMAGE/factory.bin := $$(sysupgrade_bin) | pad-to 64k | check-size $$$$(IMAGE_SIZE) | \
466 zyimage -d 8997 -v "ZyXEL Keenetic Viva"
468 TARGET_DEVICES += kng_rc
472 IMAGE_SIZE := $(ralink_default_fw_size_16M)
473 DEVICE_TITLE := Sanlinking Technologies D240
474 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76 kmod-sdhci-mt7620
476 TARGET_DEVICES += d240