2 # Copyright (C) 2008-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 JFFS2_BLOCKSIZE
= 64k
128k
256k
10 include $(TOPDIR
)/rules.mk
11 include $(INCLUDE_DIR
)/image.mk
13 IMAGE_PROFILE
:=$(if
$(PROFILE
),$(PROFILE
),Default
)
15 KERNEL_LOADADDR
= 0x80060000
17 DEVICE_VARS
+= NETGEAR_KERNEL_MAGIC NETGEAR_BOARD_ID NETGEAR_HW_ID CMDLINE CONSOLE IMAGE_SIZE BOARDNAME LOADER_FLASH_OFFS LOADER_TYPE
19 define Build
/netgear-squashfs
20 rm -rf
$@.fs
$@.squashfs
22 cp
$@
$@.fs
/image
/uImage
23 $(STAGING_DIR_HOST
)/bin
/mksquashfs-lzma \
25 -noappend
-root-owned
-be
-b
65536 \
26 $(if
$(SOURCE_DATE_EPOCH
),-fixed-time
$(SOURCE_DATE_EPOCH
))
28 dd if
=/dev
/zero bs
=1k count
=1 >> $@.squashfs
30 -A mips
-O linux
-T filesystem
-C none \
31 -M
$(NETGEAR_KERNEL_MAGIC
) \
32 -a
0xbf070000 -e
0xbf070000 \
33 -n
'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
35 rm -rf
$@.squashfs
$@.fs
38 define Build
/netgear-uImage
39 $(call Build
/uImage
,$(1) -M
$(NETGEAR_KERNEL_MAGIC
))
42 # combine kernel and rootfs into one image
43 # mktplinkfw <type> <optional extra arguments to mktplinkfw binary>
44 # <type> is "sysupgrade" or "factory"
46 # -a align the rootfs start on an <align> bytes boundary
47 # -j add jffs2 end-of-filesystem markers
48 # -s strip padding from end of the image
49 # -X reserve <size> bytes in the firmware image (hexval prefixed with 0x)
50 define Build
/mktplinkfw
51 -$(STAGING_DIR_HOST
)/bin
/mktplinkfw \
52 -H
$(TPLINK_HWID
) -W
$(TPLINK_HWREV
) -F
$(TPLINK_FLASHLAYOUT
) -N OpenWrt
-V
$(REVISION
) \
53 -m
$(TPLINK_HEADER_VERSION
) \
58 -a
$(call rootfs_align
,$(FILESYSTEM
)) \
59 $(wordlist
2,$(words $(1)),$(1)) \
60 $(if
$(findstring sysupgrade
,$(word 1,$(1))),-s
) && mv
$@.new
$@ ||
rm -f
$@
63 # mktplinkfw-initramfs <optional extra arguments to mktplinkfw binary>
66 define Build
/mktplinkfw-initramfs
67 $(STAGING_DIR_HOST
)/bin
/mktplinkfw \
68 -H
$(TPLINK_HWID
) -W
$(TPLINK_HWREV
) -F
$(TPLINK_FLASHLAYOUT
) -N OpenWrt
-V
$(REVISION
) $(1) \
69 -m
$(TPLINK_HEADER_VERSION
) \
77 define Build
/tplink-safeloader
78 -$(STAGING_DIR_HOST
)/bin
/tplink-safeloader \
79 -B
$(TPLINK_BOARD_NAME
) \
85 $(wordlist
2,$(words $(1)),$(1)) \
86 $(if
$(findstring sysupgrade
,$(word 1,$(1))),-S
) && mv
$@.new
$@ ||
rm -f
$@
89 define Build
/loader-common
91 $(MAKE
) -C lzma-loader \
92 PKG_BUILD_DIR
="$@.src" \
93 TARGET_DIR
="$(dir $@)" LOADER_NAME
="$(notdir $@)" \
94 BOARD
="$(BOARDNAME)" \
95 LZMA_TEXT_START
=0x80a00000 LOADADDR
=0x80060000 \
96 $(1) compile loader.
$(LOADER_TYPE
)
97 mv
"$@.$(LOADER_TYPE)" "$@"
101 define Build
/loader-okli-compile
102 $(call Build
/loader-common
,FLASH_OFFS
=$(LOADER_FLASH_OFFS
) FLASH_MAX
=0 KERNEL_CMDLINE
="$(CMDLINE)")
105 define Build
/loader-kernel
106 $(call Build
/loader-common
,LOADER_DATA
="$@")
109 define Build
/loader-kernel-cmdline
110 $(call Build
/loader-common
,LOADER_DATA
="$@" KERNEL_CMDLINE
="$(CMDLINE)")
113 define Build
/loader-okli
114 dd if
=$(KDIR
)/loader-
$(1).gz bs
=7680 conv
=sync of
="$@.new"
119 define Build
/copy-file
123 DEVICE_VARS
+= TPLINK_HWID TPLINK_HWREV TPLINK_FLASHLAYOUT TPLINK_HEADER_VERSION TPLINK_BOARD_NAME
125 # UBNT_BOARD e.g. one of (XS2, XS5, RS, XM)
126 # UBNT_TYPE e.g. one of (BZ, XM, XW)
127 # UBNT_CHIP e.g. one of (ar7240, ar933x, ar934x)
129 # mkubntimage is using the kernel image direct
130 # routerboard creates partitions out of the ubnt header
131 define Build
/mkubntimage
132 $(STAGING_DIR_HOST
)/bin
/mkfwimage \
133 -B
$(UBNT_BOARD
) -v
$(UBNT_TYPE
).
$(UBNT_CHIP
).v6.0
.0-OpenWrt-
$(REVISION
) \
139 # all UBNT XM device expect the kernel image to have 1024k while flash, when
140 # booting the image, the size doesn't matter.
141 define Build
/mkubntimage-split
142 dd if
=$@ of
=$@.old1 bs
=1024k count
=1
143 dd if
=$@ of
=$@.old2 bs
=1024k skip
=1
144 $(STAGING_DIR_HOST
)/bin
/mkfwimage \
145 -B
$(UBNT_BOARD
) -v
$(UBNT_TYPE
).
$(UBNT_CHIP
).v6.0
.0-OpenWrt-
$(REVISION
) \
152 define Build
/mkubntimage2
153 $(STAGING_DIR_HOST
)/bin
/mkfwimage2
-f
0x9f000000 \
154 -v
$(UBNT_TYPE
).
$(UBNT_CHIP
).v6.0
.0-OpenWrt-
$(REVISION
) \
155 -p jffs2
:0x50000:0xf60000:0:0:$@ \
160 DEVICE_VARS
+= UBNT_BOARD UBNT_CHIP UBNT_TYPE
162 define Device
/Default
164 DEVICE_PROFILE
= $$(BOARDNAME
)
165 PROFILES
= Default Minimal
$$(DEVICE_PROFILE
)
167 IMAGES
:= sysupgrade.bin
169 FILESYSTEMS
= $(filter-out jffs2-
%,$(TARGET_FILESYSTEMS
)) jffs2-
$$(BLOCKSIZE
)
170 CONSOLE
= ttyS0
,115200
171 CMDLINE
= $$(if
$$(BOARDNAME
),board
=$$(BOARDNAME
)) $$(if
$$(MTDPARTS
),mtdparts
=$$(MTDPARTS
)) $$(if
$$(CONSOLE
),console
=$$(CONSOLE
))
172 KERNEL
:= kernel-bin | patch-cmdline | lzma | uImage lzma
174 IMAGES
:= sysupgrade.bin
175 IMAGE
/sysupgrade.bin
= append-kernel
$$$$(BLOCKSIZE
) | append-rootfs | pad-rootfs | check-size
$$$$(IMAGE_SIZE
)
181 CONSOLE
= ttyATH0
,115200
182 MTDPARTS
= spi0.0
:128k
(u-boot
)ro
,64k
(u-boot-env
)ro
,16128k
(firmware
),64k
(art
)ro
184 TARGET_DEVICES
+= bsb
186 define Device
/carambola2
187 BOARDNAME
= CARAMBOLA2
189 CONSOLE
= ttyATH0
,115200
190 MTDPARTS
= spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,16000k
(firmware
),64k
(art
)ro
192 TARGET_DEVICES
+= carambola2
194 define Device
/cf-e316n-v2
195 BOARDNAME
= CF-E316N-V2
197 CONSOLE
= ttyS0
,115200
198 MTDPARTS
= spi0.0
:64k
(u-boot
)ro
,64k
(art
)ro
,16192k
(firmware
),64k
(nvram
)ro
200 TARGET_DEVICES
+= cf-e316n-v2
205 CONSOLE
= ttyATH0
,115200
206 MTDPARTS
= spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,16000k
(firmware
),64k
(art
)ro
208 TARGET_DEVICES
+= weio
210 define Device
/gl-ar150
213 CONSOLE
= ttyATH0
,115200
214 MTDPARTS
= spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,16000k
(firmware
),64k
(art
)ro
216 TARGET_DEVICES
+= gl-ar150
218 define Device
/gl-ar300
221 CONSOLE
= ttyS0
,115200
222 MTDPARTS
= spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,16000k
(firmware
),64k
(art
)ro
224 TARGET_DEVICES
+= gl-ar300
226 define Device
/gl-domino
229 CONSOLE
= ttyATH0
,115200
230 MTDPARTS
= spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,16000k
(firmware
),64k
(art
)ro
232 TARGET_DEVICES
+= gl-domino
234 define Device
/wndr3700
236 NETGEAR_KERNEL_MAGIC
= 0x33373030
237 NETGEAR_BOARD_ID
= WNDR3700
239 MTDPARTS
= spi0.0
:320k
(u-boot
)ro
,128k
(u-boot-env
)ro
,7680k
(firmware
),64k
(art
)ro
240 IMAGES
:= sysupgrade.bin factory.img factory-NA.img
241 KERNEL
:= kernel-bin | patch-cmdline | lzma
-d20 | netgear-uImage lzma
242 IMAGE
/default
= append-kernel
$$$$(BLOCKSIZE
) | netgear-squashfs | append-rootfs | pad-rootfs
243 IMAGE
/sysupgrade.bin
= $$(IMAGE
/default
) | check-size
$$$$(IMAGE_SIZE
)
244 IMAGE
/factory.img
= $$(IMAGE
/default
) | netgear-dni | check-size
$$$$(IMAGE_SIZE
)
245 IMAGE
/factory-NA.img
= $$(IMAGE
/default
) | netgear-dni NA | check-size
$$$$(IMAGE_SIZE
)
248 define Device
/wndr3700v2
250 NETGEAR_BOARD_ID
= WNDR3700v2
251 NETGEAR_KERNEL_MAGIC
= 0x33373031
252 NETGEAR_HW_ID
= 29763654+16+64
254 MTDPARTS
= spi0.0
:320k
(u-boot
)ro
,128k
(u-boot-env
)ro
,15872k
(firmware
),64k
(art
)ro
255 IMAGES
:= sysupgrade.bin factory.img
258 define Device
/wndr3800
260 NETGEAR_BOARD_ID
= WNDR3800
261 NETGEAR_HW_ID
= 29763654+16+128
264 define Device
/wndr3800ch
266 NETGEAR_BOARD_ID
= WNDR3800CH
269 define Device
/wndrmac
271 NETGEAR_BOARD_ID
= WNDRMAC
274 define Device
/wndrmacv2
276 NETGEAR_BOARD_ID
= WNDRMACv2
279 TARGET_DEVICES
+= wndr3700 wndr3700v2 wndr3800 wndr3800ch wndrmac wndrmacv2
283 TPLINK_HEADER_VERSION
:= 1
285 KERNEL
:= kernel-bin | patch-cmdline | lzma
286 KERNEL_INITRAMFS
:= kernel-bin | patch-cmdline | lzma | mktplinkfw-initramfs
287 IMAGES
:= sysupgrade.bin factory.bin
288 IMAGE
/sysupgrade.bin
:= append-rootfs | mktplinkfw sysupgrade
289 IMAGE
/factory.bin
:= append-rootfs | mktplinkfw factory
292 define Device
/tplink-nolzma
294 LOADER_FLASH_OFFS
:= 0x22000
295 COMPILE
:= loader-
$(1).gz
296 COMPILE
/loader-
$(1).gz
:= loader-okli-compile
297 KERNEL
:= copy-file
$(KDIR
)/vmlinux.bin.lzma | uImage lzma
-M
0x4f4b4c49 | loader-okli
$(1)
298 KERNEL_INITRAMFS
:= copy-file
$(KDIR
)/vmlinux-initramfs.bin.lzma | loader-kernel-cmdline | mktplinkfw-initramfs
301 define Device
/tplink-4m
302 $(Device
/tplink-nolzma
)
303 TPLINK_FLASHLAYOUT
:= 4M
307 define Device
/tplink-8m
308 $(Device
/tplink-nolzma
)
309 TPLINK_FLASHLAYOUT
:= 8M
313 define Device
/tplink-4mlzma
315 TPLINK_FLASHLAYOUT
:= 4Mlzma
319 define Device
/tplink-8mlzma
321 TPLINK_FLASHLAYOUT
:= 8Mlzma
325 define Device
/tplink-16mlzma
327 TPLINK_FLASHLAYOUT
:= 16Mlzma
331 define Device
/cpe210-220-510-520
332 MTDPARTS
:= spi0.0
:128k
(u-boot
)ro
,64k
(pation-table
)ro
,64k
(product-info
)ro
,1536k
(kernel
),6144k
(rootfs
),192k
(config
)ro
,64k
(ART
)ro
,7680k@
0x40000(firmware
)
335 TPLINK_BOARD_NAME
:= CPE510
337 KERNEL
:= kernel-bin | patch-cmdline | lzma | loader-kernel
338 IMAGES
:= sysupgrade.bin factory.bin
339 IMAGE
/sysupgrade.bin
:= append-rootfs | tplink-safeloader sysupgrade
340 IMAGE
/factory.bin
:= append-rootfs | tplink-safeloader factory
342 TARGET_DEVICES
+= cpe210-220-510-520
344 define Device
/tl-wdr4300-v1
345 $(Device
/tplink-8mlzma
)
346 BOARDNAME
= TL-WDR4300
347 DEVICE_PROFILE
= TLWDR4300
348 TPLINK_HWID
:= 0x43000001
351 define Device
/tl-wdr3500-v1
352 $(Device
/tl-wdr4300-v1
)
353 BOARDNAME
= TL-WDR3500
354 TPLINK_HWID
:= 0x35000001
357 define Device
/tl-wdr3600-v1
358 $(Device
/tl-wdr4300-v1
)
359 TPLINK_HWID
:= 0x36000001
362 define Device
/tl-wdr4300-v1-il
363 $(Device
/tl-wdr4300-v1
)
364 TPLINK_HWID
:= 0x43008001
367 define Device
/tl-wdr4310-v1
368 $(Device
/tl-wdr4300-v1
)
369 TPLINK_HWID
:= 0x43100001
372 define Device
/mw4530r-v1
373 $(Device
/tl-wdr4300-v1
)
374 TPLINK_HWID
:= 0x45300001
376 TARGET_DEVICES
+= tl-wdr3500-v1 tl-wdr3600-v1 tl-wdr4300-v1 tl-wdr4300-v1-il tl-wdr4310-v1 mw4530r-v1
378 define Device
/tl-wdr6500-v2
379 $(Device
/tplink-8mlzma
)
380 KERNEL
:= kernel-bin | patch-cmdline | lzma | uImage lzma
381 KERNEL_INITRAMFS
:= kernel-bin | patch-cmdline | lzma | uImage lzma | mktplinkfw-initramfs
382 BOARDNAME
= TL-WDR6500-v2
383 DEVICE_PROFILE
= TLWDR6500V2
384 TPLINK_HWID
:= 0x65000002
385 TPLINK_HEADER_VERSION
:= 2
387 TARGET_DEVICES
+= tl-wdr6500-v2
389 define Device
/tl-wdr3320-v2
390 $(Device
/tplink-4mlzma
)
391 BOARDNAME
= TL-WDR3320-v2
392 DEVICE_PROFILE
= TLWDR3320V2
393 TPLINK_HWID
:= 0x33200002
394 TPLINK_HEADER_VERSION
:= 2
396 TARGET_DEVICES
+= tl-wdr3320-v2
398 define Device
/archer-c5-v1
399 $(Device
/tplink-16mlzma
)
400 BOARDNAME
:= ARCHER-C5
401 DEVICE_PROFILE
:= ARCHERC7
402 TPLINK_HWID
:= 0xc5000001
405 define Device
/archer-c7-v1
406 $(Device
/tplink-8mlzma
)
407 BOARDNAME
:= ARCHER-C7
408 DEVICE_PROFILE
:= ARCHERC7
409 TPLINK_HWID
:= 0x75000001
412 define Device
/archer-c7-v2
413 $(Device
/tplink-16mlzma
)
414 BOARDNAME
:= ARCHER-C7-V2
415 DEVICE_PROFILE
:= ARCHERC7
416 TPLINK_HWID
:= 0xc7000002
417 IMAGE
/factory.bin
:= append-rootfs | mktplinkfw factory
-C US
420 define Device
/tl-wdr7500-v3
421 $(Device
/tplink-8mlzma
)
422 BOARDNAME
:= ARCHER-C7
423 DEVICE_PROFILE
:= ARCHERC7
424 TPLINK_HWID
:= 0x75000003
426 TARGET_DEVICES
+= archer-c5-v1 archer-c7-v1 archer-c7-v2 tl-wdr7500-v3
430 DEVICE_PROFILE
:= CAP324
432 MTDPARTS
= spi0.0
:256k
(u-boot
),64k
(u-boot-env
)ro
,15296k
(firmware
),640k
(certs
),64k
(nvram
),64k
(art
)
435 TARGET_DEVICES
+= cap324
437 define Device
/cap324-nocloud
439 DEVICE_PROFILE
:= CAP324
441 MTDPARTS
= spi0.0
:256k
(u-boot
),64k
(u-boot-env
)ro
,16000k
(firmware
),64k
(art
)
444 TARGET_DEVICES
+= cap324-nocloud
448 DEVICE_PROFILE
:= CR3000
450 MTDPARTS
= spi0.0
:256k
(u-boot
),64k
(u-boot-env
)ro
,7104k
(firmware
),640k
(certs
),64k
(nvram
),64k
(art
)
453 TARGET_DEVICES
+= cr3000
455 define Device
/cr3000-nocloud
457 DEVICE_PROFILE
:= CR3000
459 MTDPARTS
= spi0.0
:256k
(u-boot
),64k
(u-boot-env
)ro
,7808k
(firmware
),64k
(art
)
462 TARGET_DEVICES
+= cr3000-nocloud
466 DEVICE_PROFILE
:= CR5000
468 MTDPARTS
= spi0.0
:256k
(u-boot
),64k
(u-boot-env
)ro
,7104k
(firmware
),640k
(certs
),64k
(nvram
),64k
(art
)
471 TARGET_DEVICES
+= cr5000
473 define Device
/cr5000-nocloud
475 DEVICE_PROFILE
:= CR5000
477 MTDPARTS
= spi0.0
:256k
(u-boot
),64k
(u-boot-env
)ro
,7808k
(firmware
),64k
(art
)
480 TARGET_DEVICES
+= cr5000-nocloud
482 define Device
/antminer-s1
483 $(Device
/tplink-8mlzma
)
484 BOARDNAME
:= ANTMINER-S1
485 DEVICE_PROFILE
:= ANTMINERS1
486 TPLINK_HWID
:= 0x04440101
487 CONSOLE
:= ttyATH0
,115200
490 define Device
/antminer-s3
491 $(Device
/tplink-8mlzma
)
492 BOARDNAME
:= ANTMINER-S3
493 DEVICE_PROFILE
:= ANTMINERS3
494 TPLINK_HWID
:= 0x04440301
495 CONSOLE
:= ttyATH0
,115200
498 define Device
/antrouter-r1
499 $(Device
/tplink-8mlzma
)
500 BOARDNAME
:= ANTROUTER-R1
501 DEVICE_PROFILE
:= ANTROUTERR1
502 TPLINK_HWID
:= 0x44440101
503 CONSOLE
:= ttyATH0
,115200
506 define Device
/el-m150
507 $(Device
/tplink-8mlzma
)
509 DEVICE_PROFILE
:= ELM150
510 TPLINK_HWID
:= 0x01500101
511 CONSOLE
:= ttyATH0
,115200
514 define Device
/el-mini
515 $(Device
/tplink-8mlzma
)
517 DEVICE_PROFILE
:= ELMINI
518 TPLINK_HWID
:= 0x01530001
519 CONSOLE
:= ttyATH0
,115200
521 TARGET_DEVICES
+= antminer-s1 antminer-s3 antrouter-r1 el-m150 el-mini
523 define Device
/gl-inet-6408A-v1
524 $(Device
/tplink-8mlzma
)
526 DEVICE_PROFILE
:= GLINET
527 TPLINK_HWID
:= 0x08000001
528 CONSOLE
:= ttyATH0
,115200
531 define Device
/gl-inet-6416A-v1
532 $(Device
/tplink-16mlzma
)
534 DEVICE_PROFILE
:= GLINET
535 TPLINK_HWID
:= 0x08000001
536 CONSOLE
:= ttyATH0
,115200
538 TARGET_DEVICES
+= gl-inet-6408A-v1 gl-inet-6416A-v1
540 define Device
/rnx-n360rt
542 BOARDNAME
:= TL-WR941ND
543 DEVICE_PROFILE
:= RNXN360RT
544 TPLINK_HWID
:= 0x09410002
545 TPLINK_HWREV
:= 0x00420001
547 TARGET_DEVICES
+= rnx-n360rt
549 define Device
/mc-mac1200r
550 $(Device
/tplink-8mlzma
)
551 BOARDNAME
:= MC-MAC1200R
552 DEVICE_PROFILE
:= MAC1200R
553 TPLINK_HWID
:= 0x12000001
555 TARGET_DEVICES
+= mc-mac1200r
557 define Device
/minibox-v1
558 $(Device
/tplink-16mlzma
)
559 BOARDNAME
:= MINIBOX-V1
560 DEVICE_PROFILE
:= MINIBOXV1
561 TPLINK_HWID
:= 0x3C000201
562 CONSOLE
:= ttyATH0
,115200
564 TARGET_DEVICES
+= minibox-v1
567 $(Device
/tplink-16mlzma
)
569 DEVICE_PROFILE
:= OMYG1
570 TPLINK_HWID
:= 0x06660101
574 $(Device
/tplink-8mlzma
)
576 DEVICE_PROFILE
:= OMYX1
577 TPLINK_HWID
:= 0x06660201
579 TARGET_DEVICES
+= omy-g1 omy-x1
581 define Device
/onion-omega
582 $(Device
/tplink-16mlzma
)
583 BOARDNAME
:= ONION-OMEGA
584 DEVICE_PROFILE
:= OMEGA
585 TPLINK_HWID
:= 0x04700001
586 CONSOLE
:= ttyATH0
,115200
588 TARGET_DEVICES
+= onion-omega
590 define Device
/tl-mr10u-v1
591 $(Device
/tplink-4mlzma
)
592 BOARDNAME
:= TL-MR10U
593 DEVICE_PROFILE
:= TLMR10U
594 TPLINK_HWID
:= 0x00100101
595 CONSOLE
:= ttyATH0
,115200
598 define Device
/tl-mr11u-v1
599 $(Device
/tplink-4mlzma
)
600 BOARDNAME
:= TL-MR11U
601 DEVICE_PROFILE
:= TLMR11U
602 TPLINK_HWID
:= 0x00110101
603 CONSOLE
:= ttyATH0
,115200
606 define Device
/tl-mr11u-v2
607 $(Device
/tplink-4mlzma
)
608 BOARDNAME
:= TL-MR11U
609 DEVICE_PROFILE
:= TLMR11U
610 TPLINK_HWID
:= 0x00110102
611 CONSOLE
:= ttyATH0
,115200
614 define Device
/tl-mr12u-v1
615 $(Device
/tplink-4mlzma
)
616 BOARDNAME
:= TL-MR13U
617 DEVICE_PROFILE
:= TLMR12U
618 TPLINK_HWID
:= 0x00120101
619 CONSOLE
:= ttyATH0
,115200
622 define Device
/tl-mr13u-v1
623 $(Device
/tplink-4mlzma
)
624 BOARDNAME
:= TL-MR13U
625 DEVICE_PROFILE
:= TLMR13U
626 TPLINK_HWID
:= 0x00130101
627 CONSOLE
:= ttyATH0
,115200
629 TARGET_DEVICES
+= tl-mr10u-v1 tl-mr11u-v1 tl-mr11u-v2 tl-mr12u-v1 tl-mr13u-v1
631 define Device
/tl-mr3020-v1
632 $(Device
/tplink-4mlzma
)
633 BOARDNAME
:= TL-MR3020
634 DEVICE_PROFILE
:= TLMR3020
635 TPLINK_HWID
:= 0x30200001
636 CONSOLE
:= ttyATH0
,115200
639 define Device
/tl-mr3040-v1
640 $(Device
/tplink-4mlzma
)
641 BOARDNAME
:= TL-MR3040
642 DEVICE_PROFILE
:= TLMR3040
643 TPLINK_HWID
:= 0x30400001
644 CONSOLE
:= ttyATH0
,115200
647 define Device
/tl-mr3040-v2
648 $(Device
/tplink-4mlzma
)
649 BOARDNAME
:= TL-MR3040-v2
650 DEVICE_PROFILE
:= TLMR3040
651 TPLINK_HWID
:= 0x30400002
652 CONSOLE
:= ttyATH0
,115200
655 define Device
/tl-mr3220-v1
657 BOARDNAME
:= TL-MR3220
658 DEVICE_PROFILE
:= TLMR3220
659 TPLINK_HWID
:= 0x32200001
662 define Device
/tl-mr3220-v2
663 $(Device
/tplink-4mlzma
)
664 BOARDNAME
:= TL-MR3220-v2
665 DEVICE_PROFILE
:= TLMR3220
666 TPLINK_HWID
:= 0x32200002
667 CONSOLE
:= ttyATH0
,115200
670 define Device
/tl-mr3420-v1
672 BOARDNAME
:= TL-MR3420
673 DEVICE_PROFILE
:= TLMR3420
674 TPLINK_HWID
:= 0x34200001
677 define Device
/tl-mr3420-v2
678 $(Device
/tplink-4mlzma
)
679 BOARDNAME
:= TL-MR3420-v2
680 DEVICE_PROFILE
:= TLMR3420
681 TPLINK_HWID
:= 0x34200002
683 TARGET_DEVICES
+= tl-mr3020-v1 tl-mr3040-v1 tl-mr3040-v2 tl-mr3220-v1 tl-mr3220-v2 tl-mr3420-v1 tl-mr3420-v2
685 define Device
/tl-wr703n-v1
686 $(Device
/tplink-4mlzma
)
687 BOARDNAME
:= TL-WR703N
688 DEVICE_PROFILE
:= TLWR703
689 TPLINK_HWID
:= 0x07030101
690 CONSOLE
:= ttyATH0
,115200
693 define Device
/tl-wr710n-v1
694 $(Device
/tplink-8mlzma
)
695 BOARDNAME
:= TL-WR710N
696 DEVICE_PROFILE
:= TLWR710
697 TPLINK_HWID
:= 0x07100001
698 CONSOLE
:= ttyATH0
,115200
701 define Device
/tl-wr710n-v2
702 $(Device
/tplink-4mlzma
)
703 BOARDNAME
:= TL-WR710N
704 DEVICE_PROFILE
:= TLWR710
705 TPLINK_HWID
:= 0x07100002
706 CONSOLE
:= ttyATH0
,115200
709 define Device
/tl-wr710n-v2.1
710 $(Device
/tplink-8mlzma
)
711 BOARDNAME
:= TL-WR710N
712 DEVICE_PROFILE
:= TLWR710
713 TPLINK_HWID
:= 0x07100002
714 TPLINK_HWREV
:= 0x00000002
715 CONSOLE
:= ttyATH0
,115200
718 define Device
/tl-wr720n-v3
719 $(Device
/tplink-4mlzma
)
720 BOARDNAME
:= TL-WR720N-v3
721 DEVICE_PROFILE
:= TLWR720
722 TPLINK_HWID
:= 0x07200103
723 CONSOLE
:= ttyATH0
,115200
726 define Device
/tl-wr720n-v4
727 $(Device
/tplink-4mlzma
)
728 BOARDNAME
:= TL-WR720N-v3
729 DEVICE_PROFILE
:= TLWR720
730 TPLINK_HWID
:= 0x07200104
731 CONSOLE
:= ttyATH0
,115200
733 TARGET_DEVICES
+= tl-wr703n-v1 tl-wr710n-v1 tl-wr710n-v2 tl-wr710n-v2.1 tl-wr720n-v3 tl-wr720n-v4
735 define Device
/tl-wr740n-v1
737 BOARDNAME
:= TL-WR741ND
738 DEVICE_PROFILE
:= TLWR740
739 TPLINK_HWID
:= 0x07400001
742 define Device
/tl-wr740n-v3
744 BOARDNAME
:= TL-WR741ND
745 DEVICE_PROFILE
:= TLWR740
746 TPLINK_HWID
:= 0x07400003
749 define Device
/tl-wr740n-v4
750 $(Device
/tplink-4mlzma
)
751 BOARDNAME
:= TL-WR741ND-v4
752 DEVICE_PROFILE
:= TLWR740
753 TPLINK_HWID
:= 0x07400004
754 CONSOLE
:= ttyATH0
,115200
757 define Device
/tl-wr740n-v5
758 $(Device
/tplink-4mlzma
)
759 BOARDNAME
:= TL-WR741ND-v4
760 DEVICE_PROFILE
:= TLWR740
761 TPLINK_HWID
:= 0x07400005
762 CONSOLE
:= ttyATH0
,115200
765 define Device
/tl-wr740n-v6
766 $(Device
/tplink-4mlzma
)
767 BOARDNAME
:= TL-WR841N-v9
768 DEVICE_PROFILE
:= TLWR740
769 TPLINK_HWID
:= 0x07400006
772 define Device
/tl-wr741nd-v1
774 BOARDNAME
:= TL-WR741ND
775 DEVICE_PROFILE
:= TLWR741
776 TPLINK_HWID
:= 0x07410001
779 define Device
/tl-wr741nd-v2
781 BOARDNAME
:= TL-WR741ND
782 DEVICE_PROFILE
:= TLWR741
783 TPLINK_HWID
:= 0x07410001
786 define Device
/tl-wr741nd-v4
787 $(Device
/tplink-4mlzma
)
788 BOARDNAME
:= TL-WR741ND-v4
789 DEVICE_PROFILE
:= TLWR741
790 TPLINK_HWID
:= 0x07410004
791 CONSOLE
:= ttyATH0
,115200
794 define Device
/tl-wr741nd-v5
795 $(Device
/tplink-4mlzma
)
796 BOARDNAME
:= TL-WR741ND-v4
797 DEVICE_PROFILE
:= TLWR741
798 TPLINK_HWID
:= 0x07400005
799 CONSOLE
:= ttyATH0
,115200
802 define Device
/tl-wr810n
803 $(Device
/tplink-8mlzma
)
804 BOARDNAME
:= TL-WR810N
805 DEVICE_PROFILE
:= TLWR810
806 TPLINK_HWID
:= 0x08100001
808 TARGET_DEVICES
+= tl-wr810n
810 define Device
/tl-wr743nd-v1
812 BOARDNAME
:= TL-WR741ND
813 DEVICE_PROFILE
:= TLWR743
814 TPLINK_HWID
:= 0x07430001
817 define Device
/tl-wr743nd-v2
818 $(Device
/tplink-4mlzma
)
819 BOARDNAME
:= TL-WR741ND-v4
820 DEVICE_PROFILE
:= TLWR743
821 TPLINK_HWID
:= 0x07430002
822 CONSOLE
:= ttyATH0
,115200
824 TARGET_DEVICES
+= tl-wr740n-v1 tl-wr740n-v3 tl-wr740n-v4 tl-wr740n-v5 tl-wr740n-v6 tl-wr741nd-v1 tl-wr741nd-v2 tl-wr741nd-v4 tl-wr741nd-v5 tl-wr743nd-v1 tl-wr743nd-v2
826 define Device
/tl-wr841-v1.5
828 BOARDNAME
:= TL-WR841N-v1.5
829 DEVICE_PROFILE
:= TLWR841
830 TPLINK_HWID
:= 0x08410002
834 define Device
/tl-wr841-v3
836 BOARDNAME
:= TL-WR941ND
837 DEVICE_PROFILE
:= TLWR841
838 TPLINK_HWID
:= 0x08410003
842 define Device
/tl-wr841-v5
844 BOARDNAME
:= TL-WR741ND
845 DEVICE_PROFILE
:= TLWR841
846 TPLINK_HWID
:= 0x08410005
849 define Device
/tl-wr841-v7
851 BOARDNAME
:= TL-WR841N-v7
852 DEVICE_PROFILE
:= TLWR841
853 TPLINK_HWID
:= 0x08410007
856 define Device
/tl-wr841-v8
857 $(Device
/tplink-4mlzma
)
858 BOARDNAME
:= TL-WR841N-v8
859 DEVICE_PROFILE
:= TLWR841
860 TPLINK_HWID
:= 0x08410008
863 define Device
/tl-wr841-v9
864 $(Device
/tplink-4mlzma
)
865 BOARDNAME
:= TL-WR841N-v9
866 DEVICE_PROFILE
:= TLWR841
867 TPLINK_HWID
:= 0x08410009
870 define Device
/tl-wr841-v10
871 $(Device
/tplink-4mlzma
)
872 BOARDNAME
:= TL-WR841N-v9
873 DEVICE_PROFILE
:= TLWR841
874 TPLINK_HWID
:= 0x08410010
877 define Device
/tl-wr841-v11
878 $(Device
/tplink-4mlzma
)
879 BOARDNAME
:= TL-WR841N-v9
880 DEVICE_PROFILE
:= TLWR841
881 TPLINK_HWID
:= 0x08410011
884 define Device
/tl-wr842n-v1
886 BOARDNAME
:= TL-MR3420
887 DEVICE_PROFILE
:= TLWR842
888 TPLINK_HWID
:= 0x08420001
891 define Device
/tl-wr842n-v2
892 $(Device
/tplink-8mlzma
)
893 BOARDNAME
:= TL-WR842N-v2
894 DEVICE_PROFILE
:= TLWR842
895 TPLINK_HWID
:= 0x8420002
898 define Device
/tl-wr842n-v3
899 $(Device
/tplink-16mlzma
)
900 BOARDNAME
:= TL-WR842N-v3
901 DEVICE_PROFILE
:= TLWR842
902 TPLINK_HWID
:= 0x08420003
905 define Device
/tl-wr843nd-v1
906 $(Device
/tplink-4mlzma
)
907 BOARDNAME
:= TL-WR841N-v8
908 DEVICE_PROFILE
:= TLWR843
909 TPLINK_HWID
:= 0x08430001
912 define Device
/tl-wr847n-v8
913 $(Device
/tplink-4mlzma
)
914 BOARDNAME
:= TL-WR841N-v8
915 DEVICE_PROFILE
:= TLWR841
916 TPLINK_HWID
:= 0x08470008
918 TARGET_DEVICES
+= tl-wr841-v1.5 tl-wr841-v3 tl-wr841-v5 tl-wr841-v7 tl-wr841-v8 tl-wr841-v9 tl-wr841-v10 tl-wr841-v11 tl-wr842n-v1 tl-wr842n-v2 tl-wr842n-v3 tl-wr843nd-v1 tl-wr847n-v8
920 define Device
/tl-wr941nd-v2
922 BOARDNAME
:= TL-WR941ND
923 DEVICE_PROFILE
:= TLWR941
924 TPLINK_HWID
:= 0x09410002
928 define Device
/tl-wr941nd-v3
930 BOARDNAME
:= TL-WR941ND
931 DEVICE_PROFILE
:= TLWR941
932 TPLINK_HWID
:= 0x09410002
936 define Device
/tl-wr941nd-v4
938 BOARDNAME
:= TL-WR741ND
939 DEVICE_PROFILE
:= TLWR941
940 TPLINK_HWID
:= 0x09410004
943 define Device
/tl-wr941nd-v5
944 $(Device
/tplink-4mlzma
)
945 BOARDNAME
:= TL-WR941ND-v5
946 DEVICE_PROFILE
:= TLWR941
947 TPLINK_HWID
:= 0x09410005
950 define Device
/tl-wr941nd-v6
951 $(Device
/tplink-4mlzma
)
952 BOARDNAME
:= TL-WR941ND-v6
953 DEVICE_PROFILE
:= TLWR941
954 TPLINK_HWID
:= 0x09410006
957 # Chinese version (unlike European) is similar to the TL-WDR3500
958 define Device
/tl-wr941nd-v6-cn
959 $(Device
/tplink-4mlzma
)
960 BOARDNAME
:= TL-WDR3500
961 DEVICE_PROFILE
:= TLWR941
962 TPLINK_HWID
:= 0x09410006
964 TARGET_DEVICES
+= tl-wr941nd-v2 tl-wr941nd-v3 tl-wr941nd-v4 tl-wr941nd-v5 tl-wr941nd-v6 tl-wr941nd-v6-cn
966 define Device
/tl-wr1041n-v2
967 $(Device
/tplink-4mlzma
)
968 BOARDNAME
:= TL-WR1041N-v2
969 DEVICE_PROFILE
:= TLWR1041
970 TPLINK_HWID
:= 0x10410002
972 TARGET_DEVICES
+= tl-wr1041n-v2
974 define Device
/tl-wr1043nd-v1
976 BOARDNAME
:= TL-WR1043ND
977 DEVICE_PROFILE
:= TLWR1043
978 TPLINK_HWID
:= 0x10430001
981 define Device
/tl-wr1043nd-v2
982 $(Device
/tplink-8mlzma
)
983 BOARDNAME
:= TL-WR1043ND-v2
984 DEVICE_PROFILE
:= TLWR1043
985 TPLINK_HWID
:= 0x10430002
988 define Device
/tl-wr1043nd-v3
989 $(Device
/tplink-8mlzma
)
990 BOARDNAME
:= TL-WR1043ND-v2
991 DEVICE_PROFILE
:= TLWR1043
992 TPLINK_HWID
:= 0x10430003
994 TARGET_DEVICES
+= tl-wr1043nd-v1 tl-wr1043nd-v2 tl-wr1043nd-v3
996 define Device
/tl-wr2543-v1
997 $(Device
/tplink-8mlzma
)
998 BOARDNAME
:= TL-WR2543N
999 DEVICE_PROFILE
:= TLWR2543
1000 TPLINK_HWID
:= 0x25430001
1001 IMAGE
/sysupgrade.bin
:= append-rootfs | mktplinkfw sysupgrade
-v
3.13.99
1002 IMAGE
/factory.bin
:= append-rootfs | mktplinkfw factory
-v
3.13.99
1004 TARGET_DEVICES
+= tl-wr2543-v1
1006 define Device
/tl-wdr4900-v2
1007 $(Device
/tplink-8mlzma
)
1008 BOARDNAME
:= TL-WDR4900-v2
1009 DEVICE_PROFILE
:= TLWDR4900V2
1010 TPLINK_HWID
:= 0x49000002
1012 TARGET_DEVICES
+= tl-wdr4900-v2
1014 define Device
/tl-wa701nd-v1
1016 BOARDNAME
:= TL-WA901ND
1017 DEVICE_PROFILE
:= TLWA701
1018 TPLINK_HWID
:= 0x07010001
1021 define Device
/tl-wa701nd-v2
1022 $(Device
/tplink-4mlzma
)
1023 BOARDNAME
:= TL-WA701ND-v2
1024 DEVICE_PROFILE
:= TLWA701
1025 TPLINK_HWID
:= 0x07010002
1026 CONSOLE
:= ttyATH0
,115200
1029 define Device
/tl-wa730re-v1
1031 BOARDNAME
:= TL-WA901ND
1032 DEVICE_PROFILE
:= TLWA730RE
1033 TPLINK_HWID
:= 0x07300001
1036 define Device
/tl-wa750re-v1
1037 $(Device
/tplink-4mlzma
)
1038 BOARDNAME
:= TL-WA750RE
1039 DEVICE_PROFILE
:= TLWA750
1040 TPLINK_HWID
:= 0x07500001
1043 define Device
/tl-wa7510n
1045 BOARDNAME
:= TL-WA7510N
1046 DEVICE_PROFILE
:= TLWA7510
1047 TPLINK_HWID
:= 0x75100001
1049 TARGET_DEVICES
+= tl-wa701nd-v1 tl-wa701nd-v2 tl-wa730re-v1 tl-wa750re-v1 tl-wa7510n
1051 define Device
/tl-wa801nd-v1
1053 BOARDNAME
:= TL-WA901ND
1054 DEVICE_PROFILE
:= TLWA801
1055 TPLINK_HWID
:= 0x08010001
1058 define Device
/tl-wa801nd-v2
1059 $(Device
/tplink-4mlzma
)
1060 BOARDNAME
:= TL-WA801ND-v2
1061 DEVICE_PROFILE
:= TLWA801
1062 TPLINK_HWID
:= 0x08010002
1065 define Device
/tl-wa801nd-v3
1066 $(Device
/tplink-4mlzma
)
1067 BOARDNAME
:= TL-WA801ND-v3
1068 DEVICE_PROFILE
:= TLWA801
1069 TPLINK_HWID
:= 0x08010003
1072 define Device
/tl-wa830re-v1
1074 BOARDNAME
:= TL-WA901ND
1075 DEVICE_PROFILE
:= TLWA830
1076 TPLINK_HWID
:= 0x08300010
1079 define Device
/tl-wa830re-v2
1080 $(Device
/tplink-4mlzma
)
1081 BOARDNAME
:= TL-WA830RE-v2
1082 DEVICE_PROFILE
:= TLWA830
1083 TPLINK_HWID
:= 0x08300002
1086 define Device
/tl-wa850re-v1
1087 $(Device
/tplink-4mlzma
)
1088 BOARDNAME
:= TL-WA850RE
1089 DEVICE_PROFILE
:= TLWA850
1090 TPLINK_HWID
:= 0x08500001
1093 define Device
/tl-wa860re-v1
1094 $(Device
/tplink-4mlzma
)
1095 BOARDNAME
:= TL-WA860RE
1096 DEVICE_PROFILE
:= TLWA860
1097 TPLINK_HWID
:= 0x08600001
1099 TARGET_DEVICES
+= tl-wa801nd-v1 tl-wa801nd-v2 tl-wa801nd-v3 tl-wa830re-v1 tl-wa830re-v2 tl-wa850re-v1 tl-wa860re-v1
1101 define Device
/tl-wa901nd-v1
1103 BOARDNAME
:= TL-WA901ND
1104 DEVICE_PROFILE
:= TLWA901
1105 TPLINK_HWID
:= 0x09010001
1108 define Device
/tl-wa901nd-v2
1110 BOARDNAME
:= TL-WA901ND-v2
1111 DEVICE_PROFILE
:= TLWA901
1112 TPLINK_HWID
:= 0x09010002
1115 define Device
/tl-wa901nd-v3
1116 $(Device
/tplink-4mlzma
)
1117 BOARDNAME
:= TL-WA901ND-v3
1118 DEVICE_PROFILE
:= TLWA901
1119 TPLINK_HWID
:= 0x09010003
1122 define Device
/tl-wa901nd-v4
1123 $(Device
/tplink-4mlzma
)
1124 BOARDNAME
:= TL-WA901ND-v4
1125 DEVICE_PROFILE
:= TLWA901
1126 TPLINK_HWID
:= 0x09010004
1129 TARGET_DEVICES
+= tl-wa901nd-v1 tl-wa901nd-v2 tl-wa901nd-v3 tl-wa901nd-v4
1131 define Device
/tl-wa7210n-v2
1132 $(Device
/tplink-4mlzma
)
1133 BOARDNAME
:= TL-WA7210N-v2
1134 DEVICE_PROFILE
:= TLWA7210
1135 TPLINK_HWID
:= 0x72100002
1136 CONSOLE
:= ttyATH0
,115200
1138 TARGET_DEVICES
+= tl-wa7210n-v2
1140 define Device
/smart-300
1141 $(Device
/tplink-8mlzma
)
1142 BOARDNAME
:= SMART-300
1143 DEVICE_PROFILE
:= SMART-300
1144 TPLINK_HWID
:= 0x93410001
1146 TARGET_DEVICES
+= smart-300
1148 define Device
/tellstick-znet-lite
1149 $(Device
/tplink-16mlzma
)
1150 BOARDNAME
:= TELLSTICK-ZNET-LITE
1151 DEVICE_PROFILE
:= TELLSTICKZNETLITE
1152 TPLINK_HWID
:= 0x00726001
1153 CONSOLE
:= ttyATH0
,115200
1155 TARGET_DEVICES
+= tellstick-znet-lite
1157 define Device
/oolite
1158 $(Device
/tplink-16mlzma
)
1159 BOARDNAME
:= GS-OOLITE
1160 DEVICE_PROFILE
:= OOLITE
1161 TPLINK_HWID
:= 0x3C000101
1162 CONSOLE
:= ttyATH0
,115200
1164 TARGET_DEVICES
+= oolite
1166 # UBNT_BOARD e.g. one of (XS2, XS5, RS, XM)
1167 # UBNT_TYPE e.g. one of (BZ, XM, XW)
1168 # UBNT_CHIP e.g. one of (ar7240, ar933x, ar934x)
1169 define Device
/ubnt-xm
1170 DEVICE_PROFILE
:= UBNT
1172 MTDPARTS
= spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,7552k
(firmware
),256k
(cfg
)ro
,64k
(EEPROM
)ro
1176 IMAGES
:= sysupgrade.bin factory.bin
1177 IMAGE
/factory.bin
= $$(IMAGE
/sysupgrade.bin
) | mkubntimage-split
1178 IMAGE
/sysupgrade.bin
= append-kernel
$$$$(BLOCKSIZE
) | append-rootfs | pad-rootfs | check-size
$$$$(IMAGE_SIZE
)
1181 define Device
/ubnt-xw
1182 DEVICE_PROFILE
:= UBNT
1184 MTDPARTS
= spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,7552k
(firmware
),256k
(cfg
)ro
,64k
(EEPROM
)ro
1188 IMAGES
:= sysupgrade.bin factory.bin
1189 IMAGE
/factory.bin
= $$(IMAGE
/sysupgrade.bin
) | mkubntimage-split
1190 IMAGE
/sysupgrade.bin
= append-kernel
$$$$(BLOCKSIZE
) | append-rootfs | pad-rootfs | check-size
$$$$(IMAGE_SIZE
)
1193 define Device
/ubnt-bz
1194 DEVICE_PROFILE
:= UBNT
1196 MTDPARTS
= spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,7552k
(firmware
),256k
(cfg
)ro
,64k
(EEPROM
)ro
1200 IMAGES
:= sysupgrade.bin factory.bin
1201 IMAGE
/factory.bin
= $$(IMAGE
/sysupgrade.bin
) | mkubntimage-split
1202 IMAGE
/sysupgrade.bin
= append-kernel
$$$$(BLOCKSIZE
) | append-rootfs | pad-rootfs | check-size
$$$$(IMAGE_SIZE
)
1205 define Device
/ubnt-unifiac
1206 DEVICE_PROFILE
:= UBNT
1208 MTDPARTS
= spi0.0
:384k
(u-boot
)ro
,64k
(u-boot-env
)ro
,7744k
(firmware
),7744k
(ubnt-airos
)ro
,128k
(bs
)ro
,256k
(cfg
)ro
,64k
(EEPROM
)ro
1209 IMAGES
:= sysupgrade.bin
1210 IMAGE
/sysupgrade.bin
= append-kernel
$$$$(BLOCKSIZE
) | append-rootfs | pad-rootfs | check-size
$$$$(IMAGE_SIZE
)
1213 define Device
/rw2458n
1215 BOARDNAME
:= RW2458N
1218 define Device
/ubnt-airrouter
1220 BOARDNAME
:= UBNT-AR
1223 define Device
/ubnt-bullet-m
1225 BOARDNAME
:= UBNT-BM
1228 define Device
/ubnt-rocket-m
1230 BOARDNAME
:= UBNT-RM
1233 define Device
/ubnt-nano-m
1235 BOARDNAME
:= UBNT-NM
1237 TARGET_DEVICES
+= rw2458n ubnt-airrouter ubnt-bullet-m ubnt-rocket-m ubnt-nano-m
1239 define Device
/ubnt-unifi
1241 BOARDNAME
:= UBNT-UF
1242 DEVICE_PROFILE
:= UBNT UBNTUNIFI
1245 define Device
/ubnt-unifiac-lite
1246 $(Device
/ubnt-unifiac
)
1247 DEVICE_PROFILE
:= UBNT UBNTUNIFIACLITE
1248 BOARDNAME
:= UBNT-UF-AC-LITE
1251 define Device
/ubnt-unifiac-pro
1252 $(Device
/ubnt-unifiac
)
1253 DEVICE_PROFILE
:= UBNT UBNTUNIFIACPRO
1254 BOARDNAME
:= UBNT-UF-AC-PRO
1257 define Device
/ubnt-unifi-outdoor
1259 BOARDNAME
:= UBNT-U20
1260 DEVICE_PROFILE
:= UBNT UBNTUNIFIOUTDOOR
1262 TARGET_DEVICES
+= ubnt-unifi ubnt-unifiac-lite ubnt-unifiac-pro ubnt-unifi-outdoor
1264 define Device
/ubnt-nano-m-xw
1266 BOARDNAME
:= UBNT-NM-XW
1269 define Device
/ubnt-loco-m-xw
1271 BOARDNAME
:= UBNT-LOCO-XW
1274 define Device
/ubnt-rocket-m-xw
1276 BOARDNAME
:= UBNT-RM-XW
1279 define Device
/ubnt-rocket-m-ti
1281 BOARDNAME
:= UBNT-RM-TI
1285 TARGET_DEVICES
+= ubnt-nano-m-xw ubnt-loco-m-xw ubnt-rocket-m-xw ubnt-rocket-m-ti
1287 define Device
/ubnt-air-gateway
1289 BOARDNAME
:= UBNT-AGW
1293 CONSOLE
= ttyATH0
,115200
1295 TARGET_DEVICES
+= ubnt-air-gateway
1297 define Device
/ubnt-air-gateway-pro
1299 BOARDNAME
:= UBNT-AGWP
1302 CONSOLE
= ttyS0
,115200
1304 TARGET_DEVICES
+= ubnt-air-gateway-pro
1306 define Device
/ubdev01
1308 MTDPARTS
:= spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,7488k
(firmware
),64k
(certs
),256k
(cfg
)ro
,64k
(EEPROM
)ro
1309 BOARDNAME
:= UBNT-UF
1310 UBNT_BOARD
:= UBDEV01
1315 TARGET_DEVICES
+= ubdev01
1317 define Device
/ubnt-routerstation
1318 IMAGE_SIZE
:= 16128k
1319 IMAGES
:= sysupgrade.bin factory.bin
1320 IMAGE
/factory.bin
= append-rootfs | pad-rootfs | mkubntimage
1321 IMAGE
/sysupgrade.bin
= append-rootfs | pad-rootfs | combined-image | check-size
$$$$(IMAGE_SIZE
)
1322 KERNEL
:= kernel-bin | patch-cmdline | lzma | pad-to
$$(BLOCKSIZE
)
1325 define Device
/ubnt-rs
1326 $(Device
/ubnt-routerstation
)
1327 BOARDNAME
:= UBNT-RS
1328 DEVICE_PROFILE
:= Madwifi UBNT UBNTRS
1334 define Device
/ubnt-rspro
1335 $(Device
/ubnt-routerstation
)
1336 BOARDNAME
:= UBNT-RSPRO
1337 DEVICE_PROFILE
:= Madwifi UBNT UBNTRSPRO
1340 UBNT_CHIP
:= ar7100pro
1343 define Device
/ubnt-ls-sr71
1344 $(Device
/ubnt-routerstation
)
1345 BOARDNAME
:= UBNT-LS-SR71
1346 DEVICE_PROFILE
:= Madwifi UBNT
1347 UBNT_BOARD
:= LS-SR71
1348 UBNT_TYPE
:= LS-SR71
1352 TARGET_DEVICES
+= ubnt-rs ubnt-rspro ubnt-ls-sr71
1354 define Device
/ubnt-uap-pro
1355 KERNEL_SIZE
:= 1536k
1356 IMAGE_SIZE
:= 15744k
1357 MTDPARTS
:= spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,1536k
(kernel
),14208k
(rootfs
),256k
(cfg
)ro
,64k
(EEPROM
)ro
,15744k@
0x50000(firmware
)
1360 BOARDNAME
:= UAP-PRO
1361 DEVICE_PROFILE
:= UBNT UAPPRO
1362 KERNEL
:= kernel-bin | patch-cmdline | lzma | uImage lzma | jffs2 kernel0
1363 IMAGES
:= sysupgrade.bin factory.bin
1364 IMAGE
/sysupgrade.bin
= append-kernel
$$$$(KERNEL_SIZE
) | append-rootfs | pad-rootfs | check-size
$$$$(IMAGE_SIZE
)
1365 IMAGE
/factory.bin
= $$(IMAGE
/sysupgrade.bin
) | mkubntimage2
1368 define Device
/ubnt-unifi-outdoor-plus
1369 $(Device
/ubnt-uap-pro
)
1371 BOARDNAME
:= UBNT-UOP
1372 DEVICE_PROFILE
:= UBNT
1375 TARGET_DEVICES
+= ubnt-uap-pro ubnt-unifi-outdoor-plus
1377 rootfs_type
=$(patsubst jffs2-
%,jffs2
,$(patsubst squashfs-
%,squashfs
,$(1)))
1379 # $(1): rootfs type.
1382 $(BIN_DIR
)/$(IMG_PREFIX
)-$(2)-$(call rootfs_type
,$(1))
1386 $(patsubst %-256k
,0x40000,$(patsubst %-128k
,0x20000,$(patsubst %-64k
,0x10000,$(patsubst squashfs
%,0x4,$(patsubst root.
%,%,$(1))))))
1390 $(call imgname
,$(1),$(2))-sysupgrade.bin
1394 $(call imgname
,$(1),$(2))-factory.bin
1400 $(if
$(1),board
=$(1) )$(if
$(2),console
=$(2)$(COMMA
)$(3))
1404 $(shell sz
=`echo '$(2)' | sed -ne 's/.*[:$(COMMA)]\([0-9]*\)k[@]*[0-9a-zx]*($(1)).*/\1/p'`; [ -n
"$$sz" ] && echo
$$(($$sz * 1024)))
1409 # $(1) : name of image build method to be used, e.g., AthLzma.
1410 # $(2) : name of the build template to be used, e.g. 64k, 64kraw, 128k, etc.
1411 # $(3) : name of the profile to be defined.
1412 # $(4) : board name.
1413 # $(5)~$(7) : arguments for $(mkcmdline)
1414 # board=$(1) console=$(2),$(3)
1415 # $(8)~$(14): extra arguments.
1416 define SingleProfile
1417 # $(1): action name, e.g. loader, buildkernel, squashfs, etc.
1418 define Image
/Build
/Profile
/$(3)
1419 $$(call Image
/Build
/Template
/$(2)/$$(1),$(1),$(4),$$(call mkcmdline
,$(5),$(6),$(7)),$(8),$(9),$(10),$(11),$(12),$(13),$(14))
1421 SINGLE_PROFILES
+= $(3)
1424 # $(1), name of the MultiProfile to be added.
1425 # $(2), name of Profiles to be included in the MultiProfile.
1427 define Image
/Build
/Profile
/$(1)
1429 $$(call Image
/Build
/Profile
/$p,$$(1))
1434 LOADER_MAKE
:= $(NO_TRACE_MAKE
) -C lzma-loader KDIR
=$(KDIR
)
1436 VMLINUX
:=$(BIN_DIR
)/$(IMG_PREFIX
)-vmlinux
1437 UIMAGE
:=$(BIN_DIR
)/$(IMG_PREFIX
)-uImage
1440 # $(2): output file.
1441 # $(3): extra arguments for lzma.
1443 $(STAGING_DIR_HOST
)/bin
/lzma e
$(1) -lc1
-lp2
-pb2
$(3) $(2)
1447 cp
$(KDIR
)/vmlinux
$(3) $(KDIR_TMP
)/vmlinux
$(3)-$(1)
1448 $(STAGING_DIR_HOST
)/bin
/patch-cmdline
$(KDIR_TMP
)/vmlinux
$(3)-$(1) "$(strip $(2))"
1451 define PatchKernel
/initramfs
1452 $(call PatchKernel
,$(1),$(2),-initramfs
)
1453 cp
$(KDIR_TMP
)/vmlinux-initramfs-
$(1) $(call imgname
,initramfs
,$(1)).bin
1457 # $(2): kernel command line.
1458 # $(3): extra argumetns for lzma.
1459 # $(4): name suffix, e.g. "-initramfs".
1460 define PatchKernelLzma
1461 cp
$(KDIR
)/vmlinux
$(4) $(KDIR_TMP
)/vmlinux
$(4)-$(1)
1462 $(STAGING_DIR_HOST
)/bin
/patch-cmdline
$(KDIR_TMP
)/vmlinux
$(4)-$(1) "$(strip $(2))"
1463 $(call CompressLzma
,$(KDIR_TMP
)/vmlinux
$(4)-$(1),$(KDIR_TMP
)/vmlinux
$(4)-$(1).bin.lzma
,$(3))
1466 define PatchKernelGzip
1467 cp
$(KDIR
)/vmlinux
$(3) $(KDIR_TMP
)/vmlinux
$(3)-$(1)
1468 $(STAGING_DIR_HOST
)/bin
/patch-cmdline
$(KDIR_TMP
)/vmlinux
$(3)-$(1) "$(strip $(2))"
1469 gzip
-9n
-c
$(KDIR_TMP
)/vmlinux
$(3)-$(1) > $(KDIR_TMP
)/vmlinux
$(3)-$(1).bin.gz
1472 ifneq ($(SUBTARGET
),mikrotik
)
1473 # $(1): compression method of the data.
1474 # $(2): extra arguments.
1475 # $(3): input data file.
1476 # $(4): output file.
1478 mkimage
-A mips
-O linux
-T kernel
-a
0x80060000 -C
$(1) $(2) \
1479 -e
0x80060000 -n
'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
1484 # $(2): kernel command line.
1485 # $(3): extra arguments for lzma.
1486 # $(4): name suffix, e.g. "-initramfs".
1487 # $(5): extra arguments for mkimage.
1489 $(call PatchKernelLzma
,$(1),$(2),$(3),$(4))
1490 $(call MkuImage
,lzma
,$(5),$(KDIR_TMP
)/vmlinux
$(4)-$(1).bin.lzma
,$(KDIR_TMP
)/vmlinux
$(4)-$(1).uImage
)
1493 define MkuImageLzma
/initramfs
1494 $(call PatchKernelLzma
,$(1),$(2),$(3),-initramfs
)
1495 $(call MkuImage
,lzma
,$(4),$(KDIR_TMP
)/vmlinux-initramfs-
$(1).bin.lzma
,$(call imgname
,initramfs
,$(1))-uImage.bin
)
1499 $(call PatchKernelGzip
,$(1),$(2))
1500 $(call MkuImage
,gzip
,,$(KDIR_TMP
)/vmlinux-
$(1).bin.gz
,$(KDIR_TMP
)/vmlinux-
$(1).uImage
)
1503 define MkuImageGzip
/initramfs
1504 $(call PatchKernelGzip
,$(1),$(2),-initramfs
)
1505 $(call MkuImage
,gzip
,,$(KDIR_TMP
)/vmlinux-initramfs-
$(1).bin.gz
,$(call imgname
,initramfs
,$(1))-uImage.bin
)
1509 $(call MkuImage
,lzma
,-M
0x4f4b4c49,$(KDIR
)/vmlinux.bin.lzma
,$(KDIR_TMP
)/vmlinux-
$(1).okli
)
1513 # $(1): name of the 1st file.
1514 # $(2): size limit of the 1st file if it is greater than 262144, or
1515 # the erase size of the flash if it is greater than zero and less
1517 # $(3): name of the 2nd file.
1518 # $(4): size limit of the 2nd file if $(2) is greater than 262144, otherwise
1519 # it is the size limit of the output file
1520 # $(5): name of the output file.
1521 # $(6): padding size.
1523 if
[ $(2) -eq
0 ]; then \
1524 filename
="$(3)"; fstype
=$$$${filename
##*\.}; \
1525 case
"$$$${fstype}" in \
1526 "jffs2-64k") bs
=65536;; \
1527 "jffs2-128k") bs
=131072;; \
1528 "jffs2-256k") bs
=262144;; \
1529 *) bs
=`stat -c%s $(1)`;; \
1531 ( dd if
=$(1) bs
=$$$${bs} conv
=sync
; cat
$(3) ) > $(5); \
1532 if
[ -n
"$(6)" ]; then \
1533 case
"$$$${fstype}" in \
1535 padjffs2
$(5) $(6); \
1539 if
[ `stat -c%s $(5)` -gt
$(4) ]; then \
1540 echo
"Warning: $(5) is too big (> $(4) bytes)" >&2; \
1543 else if
[ $(2) -gt
262144 ]; then \
1544 if
[ `stat -c%s "$(1)"` -gt
$(2) ]; then \
1545 echo
"Warning: $(1) is too big (> $(2) bytes)" >&2; \
1546 else if
[ `stat -c%s $(3)` -gt
$(4) ]; then \
1547 echo
"Warning: $(3) is too big (> $(4) bytes)" >&2; \
1549 ( dd if
=$(1) bs
=$(2) conv
=sync
; dd if
=$(3) ) > $(5); \
1552 ( dd if
=$(1) bs
=$(2) conv
=sync
; dd if
=$(3) ) > $(5); \
1553 if
[ `stat -c%s $(5)` -gt
$(4) ]; then \
1554 echo
"Warning: $(5) is too big (> $(4) bytes)" >&2; \
1560 # $(1): rootfs type.
1562 # $(3): kernel image size limit.
1563 # $(4): rootfs image size limit.
1564 # $(5): padding argument for padjffs2.
1565 Sysupgrade
/KR
=$(call CatFiles
,$(2),$(3),$(KDIR
)/root.
$(1),$(4),$(call sysupname
,$(1),$(5)))
1566 Sysupgrade
/KRuImage
=$(call CatFiles
,$(KDIR_TMP
)/vmlinux-
$(2).uImage
,$(3),$(KDIR
)/root.
$(1),$(4),$(call sysupname
,$(1),$(2)),$(5))
1567 Sysupgrade
/RKuImage
=$(call CatFiles
,$(KDIR
)/root.
$(1),$(4),$(KDIR_TMP
)/vmlinux-
$(2).uImage
,$(3),$(call sysupname
,$(1),$(2)))
1569 # $(1): ubinize ini file
1570 # $(2): working directory
1572 # $(4): physical erase block size
1573 # $(5): minimum I/O unit size
1574 # $(6): custom options
1577 ( cd
$(2); $(STAGING_DIR_HOST
)/bin
/ubinize
-o
$(3) -p
$(4) -m
$(5) $(6) $(1))
1581 # Embed lzma-compressed kernel inside lzma-loader.
1583 # $(1), suffix of output filename, e.g. generic, lowercase board name, etc.
1584 # $(2), suffix of target file to build, e.g. bin, gz, elf
1585 # $(3), kernel command line to pass from lzma-loader to kernel
1587 # $(5), suffix of kernel filename, e.g. -initramfs, or empty
1588 define Image
/BuildLoader
1589 -rm -rf
$(KDIR
)/lzma-loader
1590 $(LOADER_MAKE
) LOADER
=loader-
$(1).
$(2) KERNEL_CMDLINE
="$(3)"\
1591 LZMA_TEXT_START
=0x80a00000 LOADADDR
=0x80060000 \
1592 LOADER_DATA
="$(KDIR)/vmlinux$(5).bin.lzma" BOARD
="$(1)" \
1594 -$(CP
) $(KDIR
)/loader-
$(1).
$(2) $(KDIR
)/loader-
$(1)$(5).
$(2)
1598 # Build lzma-loader alone which will search for lzma-compressed kernel identified by
1599 # uImage header with magic "OKLI" at boot time.
1601 # $(4), offset into the flash space to start searching uImage magic "OKLI".
1602 # $(5), size of search range starting at $(4). With 0 as the value, uImage
1603 # header is expected to be at precisely $(4)
1604 define Image
/BuildLoaderAlone
1605 -rm -rf
$(KDIR
)/lzma-loader
1606 $(LOADER_MAKE
) LOADER
=loader-
$(1).
$(2) KERNEL_CMDLINE
="$(3)" \
1607 LZMA_TEXT_START
=0x80a00000 LOADADDR
=0x80060000 \
1608 BOARD
="$(1)" FLASH_OFFS
=$(4) FLASH_MAX
=$(5) \
1613 $(LOADER_MAKE
) clean
1616 alfa_ap120c_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,13312k
(rootfs
),1536k
(kernel
),1152k
(unknown
)ro
,64k
(art
)ro
;spi0.1
:-(unknown
)
1617 alfa_ap96_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,256k
(u-boot-env
)ro
,13312k
(rootfs
),2048k
(kernel
),512k
(caldata
)ro
,15360k@
0x80000(firmware
)
1618 alfa_mtdlayout_8M
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,6144k
(rootfs
),1600k
(kernel
),64k
(nvram
),64k
(art
)ro
,7744k@
0x50000(firmware
)
1619 alfa_mtdlayout_16M
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,15936k
(firmware
),64k
(nvram
),64k
(art
)ro
1620 all0258n_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
),64k
(u-boot-env
),6272k
(firmware
),1536k
(failsafe
),64k
(art
)
1621 all0315n_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,256k
(u-boot-env
),13568k
(firmware
),2048k
(failsafe
),256k
(art
)ro
1622 ap81_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,5120k
(rootfs
),2688k
(kernel
),64k
(art
)ro
,7808k@
0x50000(firmware
)
1623 ap83_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,128k
(u-boot-env
)ro
,4096k
(rootfs
),3648k
(kernel
),64k
(art
)ro
,7744k@
0x60000(firmware
)
1624 ap96_mtdlayout
=mtdparts
=spi0.0
:192k
(u-boot
)ro
,64k
(u-boot-env
)ro
,6144k
(rootfs
),1728k
(kernel
),64k
(art
)ro
,7872k@
0x40000(firmware
)
1625 ap113_mtd_layout
=mtdparts
=spi0.0
:64k
(u-boot
),3008k
(rootfs
),896k
(uImage
),64k
(NVRAM
),64k
(ART
),3904k@
0x10000(firmware
)
1626 ap121_mtdlayout_2M
=mtdparts
=spi0.0
:64k
(u-boot
)ro
,1216k
(rootfs
),704k
(kernel
),64k
(art
)ro
,1920k@
0x10000(firmware
)
1627 ap121_mtdlayout_4M
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,2448k
(rootfs
),1200k
(kernel
),64k
(nvram
),64k
(art
)ro
,3648k@
0x50000(firmware
)
1628 ap121_mtdlayout_8M
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,6144k
(rootfs
),1600k
(kernel
),64k
(nvram
),64k
(art
)ro
,7744k@
0x50000(firmware
)
1629 ap121_mtdlayout_16M
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,10944k
(rootfs
),4992k
(kernel
),64k
(nvram
),64k
(art
)ro
,15936k@
0x50000(firmware
)
1630 ap132_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,1408k
(kernel
),6400k
(rootfs
),64k
(art
),7808k@
0x50000(firmware
)
1631 ap135_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,14528k
(rootfs
),1472k
(kernel
),64k
(art
)ro
,16000k@
0x50000(firmware
)
1632 ap136_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,6336k
(rootfs
),1408k
(kernel
),64k
(mib0
),64k
(art
)ro
,7744k@
0x50000(firmware
)
1633 ap143_mtdlayout_8M
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,6336k
(rootfs
),1472k
(kernel
),64k
(art
)ro
,7744k@
0x50000(firmware
)
1634 ap143_mtdlayout_16M
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,14528k
(rootfs
),1472k
(kernel
),64k
(art
)ro
,16000k@
0x50000(firmware
)
1635 ap147_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,14528k
(rootfs
),1472k
(kernel
),64k
(art
),16000k@
0x50000(firmware
)
1636 ap152_mtdlayout_16M
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,14528k
(rootfs
),1472k
(kernel
),64k
(art
)ro
,16000k@
0x50000(firmware
)
1637 bxu2000n2_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,1408k
(kernel
),8448k
(rootfs
),6016k
(user
),64k
(cfg
),64k
(oem
),64k
(art
)ro
1638 cameo_ap81_mtdlayout
=mtdparts
=spi0.0
:128k
(u-boot
)ro
,64k
(config
)ro
,3840k
(firmware
),64k
(art
)ro
1639 cameo_ap91_mtdlayout
=mtdparts
=spi0.0
:192k
(u-boot
)ro
,64k
(nvram
)ro
,3712k
(firmware
),64k
(mac
)ro
,64k
(art
)ro
1640 cameo_ap99_mtdlayout
=mtdparts
=spi0.0
:192k
(u-boot
)ro
,64k
(nvram
)ro
,3520k
(firmware
),64k
(mac
)ro
,192k
(lp
)ro
,64k
(art
)ro
1641 cameo_ap121_mtdlayout
=mtdparts
=spi0.0
:64k
(u-boot
)ro
,64k
(art
)ro
,64k
(mac
)ro
,64k
(nvram
)ro
,192k
(language
)ro
,3648k
(firmware
)
1642 cameo_ap121_mtdlayout_8M
=mtdparts
=spi0.0
:64k
(u-boot
)ro
,64k
(art
)ro
,64k
(mac
)ro
,64k
(nvram
)ro
,256k
(language
)ro
,7680k@
0x80000(firmware
)
1643 cameo_ap123_mtdlayout_4M
=mtdparts
=spi0.0
:64k
(u-boot
)ro
,64k
(nvram
)ro
,3712k
(firmware
),192k
(lang
)ro
,64k
(art
)ro
1644 cameo_db120_mtdlayout
=mtdparts
=spi0.0
:64k
(uboot
)ro
,64k
(nvram
)ro
,15936k
(firmware
),192k
(lang
)ro
,64k
(mac
)ro
,64k
(art
)ro
1645 cameo_db120_mtdlayout_8M
=mtdparts
=spi0.0
:64k
(uboot
)ro
,64k
(nvram
)ro
,7872k
(firmware
),128k
(lang
)ro
,64k
(art
)ro
1646 cap4200ag_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
),64k
(u-boot-env
),320k
(custom
)ro
,1536k
(kernel
),12096k
(rootfs
),2048k
(failsafe
),64k
(art
),13632k@
0xa0000(firmware
)
1647 eap300v2_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
),320k
(custom
),13632k
(firmware
),2048k
(failsafe
),64k
(art
)ro
1648 db120_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,6336k
(rootfs
),1408k
(kernel
),64k
(nvram
),64k
(art
)ro
,7744k@
0x50000(firmware
)
1649 dgl_5500_mtdlayout
=mtdparts
=spi0.0
:192k
(u-boot
)ro
,64k
(nvram
)ro
,15296k
(firmware
),192k
(lang
)ro
,512k
(my-dlink
)ro
,64k
(mac
)ro
,64k
(art
)ro
1650 dlan_hotspot_mtdlayout
=mtdparts
=spi0.0
:128k
(u-boot
)ro
,64k
(Config1
)ro
,64k
(Config2
)ro
,7872k@
0x40000(firmware
),64k
(art
)ro
1651 dlan_pro_500_wp_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,64k
(Config1
)ro
,64k
(Config2
)ro
,7680k@
0x70000(firmware
),64k
(art
)ro
1652 dlan_pro_1200_ac_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,64k
(Config1
)ro
,64k
(Config2
)ro
,15872k@
0x70000(firmware
),64k
(art
)ro
1653 cameo_ap94_mtdlayout
=mtdparts
=spi0.0
:256k
(uboot
)ro
,64k
(config
)ro
,6208k
(firmware
),64k
(caldata
)ro
,1600k
(unknown
)ro
,64k@
0x7f0000(caldata_copy
)
1654 cameo_ap94_mtdlayout_fat
=mtdparts
=spi0.0
:256k
(uboot
)ro
,64k
(config
)ro
,7808k
(firmware
),64k
(caldata
)ro
,64k@
0x660000(caldata_orig
),6208k@
0x50000(firmware_orig
)
1655 esr900_mtdlayout
=mtdparts
=spi0.0
:192k
(u-boot
)ro
,64k
(u-boot-env
)ro
,1408k
(kernel
),13248k
(rootfs
),1024k
(manufacture
)ro
,64k
(backup
)ro
,320k
(storage
)ro
,64k
(caldata
)ro
,14656k@
0x40000(firmware
)
1656 esr1750_mtdlayout
=mtdparts
=spi0.0
:192k
(u-boot
)ro
,64k
(u-boot-env
)ro
,1408k
(kernel
),13248k
(rootfs
),1024k
(manufacture
)ro
,64k
(backup
)ro
,320k
(storage
)ro
,64k
(caldata
)ro
,14656k@
0x40000(firmware
)
1657 epg5000_mtdlayout
=mtdparts
=spi0.0
:192k
(u-boot
)ro
,64k
(u-boot-env
)ro
,1408k
(kernel
),13248k
(rootfs
),1024k
(manufacture
)ro
,64k
(backup
)ro
,320k
(storage
)ro
,64k
(caldata
)ro
,14656k@
0x40000(firmware
)
1658 ew-dorin_mtdlayout_4M
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
),3712k
(firmware
),64k
(art
)
1659 ew-dorin_mtdlayout_16M
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
),16000k
(firmware
),64k
(art
)ro
1660 f9k1115v2_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
),14464k
(rootfs
),1408k
(kernel
),64k
(nvram
)ro
,64k
(envram
)ro
,64k
(art
)ro
,15872k@
0x50000(firmware
)
1661 dlrtdev_mtdlayout
=mtdparts
=spi0.0
:256k
(uboot
)ro
,64k
(config
)ro
,6208k
(firmware
),64k
(caldata
)ro
,640k
(certs
),960k
(unknown
)ro
,64k@
0x7f0000(caldata_copy
)
1662 dlrtdev_mtdlayout_fat
=mtdparts
=spi0.0
:256k
(uboot
)ro
,64k
(config
)ro
,7168k
(firmware
),640k
(certs
),64k
(caldata
)ro
,64k@
0x660000(caldata_orig
),6208k@
0x50000(firmware_orig
)
1663 dragino2_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,16000k
(firmware
),64k
(config
)ro
,64k
(art
)ro
1664 hiwifi_hc6361_mtdlayout
=mtdparts
=spi0.0
:64k
(u-boot
)ro
,64k
(bdinfo
)ro
,1280k
(kernel
),14848k
(rootfs
),64k
(backup
)ro
,64k
(art
)ro
,16128k@
0x20000(firmware
)
1665 mr12_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,256k
(u-boot-env
)ro
,13440k
(rootfs
),2304k
(kernel
),128k
(art
)ro
,15744k@
0x80000(firmware
)
1666 mr16_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,256k
(u-boot-env
)ro
,13440k
(rootfs
),2304k
(kernel
),128k
(art
)ro
,15744k@
0x80000(firmware
)
1667 pb92_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,2752k
(rootfs
),896k
(kernel
),64k
(nvram
),64k
(art
)ro
,3648k@
0x50000(firmware
)
1668 planex_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,7744k
(firmware
),128k
(art
)ro
1669 ubntxm_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,7552k
(firmware
),256k
(cfg
)ro
,64k
(EEPROM
)ro
1670 uap_pro_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,1536k
(kernel
),14208k
(rootfs
),256k
(cfg
)ro
,64k
(EEPROM
)ro
,15744k@
0x50000(firmware
)
1671 ubdev_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,7488k
(firmware
),64k
(certs
),256k
(cfg
)ro
,64k
(EEPROM
)ro
1672 whrhpg300n_mtdlayout
=mtdparts
=spi0.0
:248k
(u-boot
)ro
,8k
(u-boot-env
)ro
,3712k
(firmware
),64k
(art
)ro
1673 wlr8100_mtdlayout
=mtdparts
=spi0.0
:192k
(u-boot
)ro
,64k
(u-boot-env
)ro
,1408k
(kernel
),14080k
(rootfs
),192k
(unknown
)ro
,64k
(art
)ro
,384k
(unknown2
)ro
,15488k@
0x40000(firmware
)
1674 wpj342_mtdlayout_16M
=mtdparts
=spi0.0
:192k
(u-boot
)ro
,16128k
(firmware
),64k
(art
)ro
1675 wpj344_mtdlayout_16M
=mtdparts
=spi0.0
:192k
(u-boot
)ro
,16128k
(firmware
),64k
(art
)ro
1676 dr344_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,6336k
(rootfs
),1408k
(kernel
),64k
(nvram
),64k
(art
)ro
,7744k@
0x50000(firmware
)
1677 wpj531_mtdlayout_16M
=mtdparts
=spi0.0
:192k
(u-boot
)ro
,16128k
(firmware
),64k
(art
)ro
1678 wpj558_mtdlayout_16M
=mtdparts
=spi0.0
:192k
(u-boot
)ro
,16128k
(firmware
),64k
(art
)ro
1679 wndap360_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,1728k
(kernel
),6016k
(rootfs
),64k
(nvram
)ro
,64k
(art
)ro
,7744k@
0x50000(firmware
)
1680 wnr2200_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,7808k
(firmware
),64k
(art
)ro
1681 wnr2000v3_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,3712k
(firmware
),64k
(art
)ro
1682 wnr2000v4_mtdlayout
=mtdparts
=spi0.0
:192k
(u-boot
)ro
,64k
(u-boot-env
)ro
,3776k
(firmware
),64k
(art
)ro
1683 r6100_mtdlayout
=mtdparts
=ar934x-nfc
:128k
(u-boot
)ro
,256k
(caldata
),256k
(caldata-backup
),512k
(config
),512k
(pot
),2048k
(kernel
),122240k
(ubi
),25600k@
0x1a0000(firmware
),2048k
(language
),3072k
(traffic_meter
)
1684 tew823dru_mtdlayout
=mtdparts
=spi0.0
:192k
(u-boot
)ro
,64k
(nvram
)ro
,15296k
(firmware
),192k
(lang
)ro
,512k
(my-dlink
)ro
,64k
(mac
)ro
,64k
(art
)ro
1685 wndr4300_mtdlayout
=mtdparts
=ar934x-nfc
:256k
(u-boot
)ro
,256k
(u-boot-env
)ro
,256k
(caldata
),512k
(pot
),2048k
(language
),512k
(config
),3072k
(traffic_meter
),2048k
(kernel
),23552k
(ubi
),25600k@
0x6c0000(firmware
),256k
(caldata_backup
),-(reserved
)
1686 zcn1523h_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,6208k
(rootfs
),1472k
(kernel
),64k
(configure
)ro
,64k
(mfg
)ro
,64k
(art
)ro
,7680k@
0x50000(firmware
)
1687 mynet_n600_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,64k
(devdata
)ro
,64k
(devconf
)ro
,15872k
(firmware
),64k
(radiocfg
)ro
1688 mynet_rext_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,7808k
(firmware
),64k
(nvram
)ro
,64k
(ART
)ro
1689 zyx_nbg6716_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(env
)ro
,64k
(RFdata
)ro
,-(nbu
);ar934x-nfc
:2048k
(zyxel_rfsd
),2048k
(romd
),1024k
(header
),2048k
(kernel
),-(ubi
)
1690 qihoo_c301_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
),64k
(devdata
),64k
(devconf
),15744k
(firmware
),64k
(warm_start
),64k
(action_image_config
),64k
(radiocfg
)ro
;spi0.1
:15360k
(upgrade2
),1024k
(privatedata
)
1691 yun_mtdlayout_8M
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,6464k
(rootfs
),1280k
(kernel
),64k
(nvram
),64k
(art
),7744k@
0x50000(firmware
)
1692 yun_mtdlayout_16M
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,14656k
(rootfs
),1280k
(kernel
),64k
(nvram
),64k
(art
),15936k@
0x50000(firmware
)
1695 define Image
/BuildKernel
1696 cp
$(KDIR
)/vmlinux.elf
$(VMLINUX
).elf
1697 cp
$(KDIR
)/vmlinux
$(VMLINUX
).bin
1698 dd if
=$(KDIR
)/vmlinux.bin.lzma of
=$(VMLINUX
).lzma bs
=65536 conv
=sync
1699 dd if
=$(KDIR
)/vmlinux.bin.gz of
=$(VMLINUX
).gz bs
=65536 conv
=sync
1700 $(call MkuImage
,gzip
,,$(KDIR
)/vmlinux.bin.gz
,$(UIMAGE
)-gzip.bin
)
1701 $(call MkuImage
,lzma
,,$(KDIR
)/vmlinux.bin.lzma
,$(UIMAGE
)-lzma.bin
)
1702 cp
$(KDIR
)/loader-generic.elf
$(VMLINUX
)-lzma.elf
1703 -mkdir
-p
$(KDIR_TMP
)
1704 $(call Image
/Build
/Profile
/$(IMAGE_PROFILE
),buildkernel
)
1707 define Image
/BuildKernel
/Initramfs
1708 cp
$(KDIR
)/vmlinux-initramfs.elf
$(VMLINUX
)-initramfs.elf
1709 cp
$(KDIR
)/vmlinux-initramfs
$(VMLINUX
)-initramfs.bin
1710 dd if
=$(KDIR
)/vmlinux-initramfs.bin.lzma of
=$(VMLINUX
)-initramfs.lzma bs
=65536 conv
=sync
1711 dd if
=$(KDIR
)/vmlinux-initramfs.bin.gz of
=$(VMLINUX
)-initramfs.gz bs
=65536 conv
=sync
1712 $(call MkuImage
,gzip
,,$(KDIR
)/vmlinux-initramfs.bin.gz
,$(UIMAGE
)-initramfs-gzip.bin
)
1713 $(call MkuImage
,lzma
,,$(KDIR
)/vmlinux-initramfs.bin.lzma
,$(UIMAGE
)-initramfs-lzma.bin
)
1714 cp
$(KDIR
)/loader-generic-initramfs.elf
$(VMLINUX
)-initramfs-lzma.elf
1715 $(call Image
/Build
/Initramfs
)
1718 Image
/Build
/WRT400N
/buildkernel
=$(call MkuImageLzma
,$(2),$(3))
1720 define Image
/Build
/WRT400N
1721 $(call Sysupgrade
/KRuImage
,$(1),$(2),1310720,6488064)
1722 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
1723 wrt400n
$(KDIR_TMP
)/vmlinux-
$(2).uImage
$(KDIR
)/root.
$(1) $(call factoryname
,$(1),$(2)); \
1728 define Image
/Build
/CameoAP94
/buildkernel
1729 $(call MkuImageLzma
,$(2),$(3) $(4))
1730 $(call MkuImageLzma
,$(2)-fat
,$(3) $(5))
1733 define Image
/Build
/CameoAP94
1734 $(eval fwsize
=$(call mtdpartsize
,firmware
,$(4)))
1735 $(eval fwsize_fat
=$(call mtdpartsize
,firmware
,$(5)))
1736 $(call Sysupgrade
/KRuImage
,$(1),$(2),0,$$$$(($(fwsize
)-4*64*1024)),64)
1737 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
1739 dd if
=$(call sysupname
,$(1),$(2)); \
1741 ) > $(call imgname
,$(1),$(2))-backup-loader.bin
; \
1742 if
[ `stat -c%s $(call sysupname,$(1),$(2))` -gt
4194304 ]; then \
1743 echo
"Warning: $(call sysupname,$(1),$(2)) is too big" >&2; \
1746 dd if
=$(call sysupname
,$(1),$(2)) bs
=4096k conv
=sync
; \
1748 ) > $(call factoryname
,$(1),$(2)); \
1751 $(call CatFiles
,$(KDIR_TMP
)/vmlinux-
$(2)-fat.uImage
,0,$(KDIR
)/root.
$(1),$$$$(($(fwsize_fat
)-4*64*1024)),$(KDIR_TMP
)/$(2)-fat.bin
,64)
1752 if
[ -e
"$(KDIR_TMP)/$(2)-fat.bin" ]; then \
1753 echo
-n
"" > $(KDIR_TMP
)/$(2)-fat.dummy
; \
1754 sh
$(TOPDIR
)/scripts
/combined-image.sh \
1755 "$(KDIR_TMP)/$(2)-fat.bin" \
1756 "$(KDIR_TMP)/$(2)-fat.dummy" \
1757 $(call sysupname
,$(1),$(2)-fat
); \
1761 define Image
/Build
/WZRHP
1762 $(call Sysupgrade
/KRuImage
,$(1),$(2),0,$$$$(($(3)-4*$(4)*1024)),$(4))
1763 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
1765 echo
-n
-e
"# Airstation Public Fmt1\x00\x00\x00\x00\x00\x00\x00\x00"; \
1766 dd if
=$(call sysupname
,$(1),$(2)); \
1767 ) > $(call imgname
,$(1),$(2))-tftp.bin
; \
1768 buffalo-enc
-p
$(5) -v
1.99 \
1769 -i
$(call sysupname
,$(1),$(2)) \
1770 -o
$(KDIR_TMP
)/$(2).enc
; \
1771 buffalo-tag
-b
$(5) -p
$(5) -a ath
-v
1.99 -m
1.01 -l mlang8 \
1772 -w
3 -c
0x80041000 -d
0x801e8000 -f
1 -r M_ \
1773 -i
$(KDIR_TMP
)/$(2).enc \
1774 -o
$(call factoryname
,$(1),$(2)); \
1778 Image
/Build
/WZRHP64K
/buildkernel
=$(call MkuImageLzma
,$(2),$(3))
1779 Image
/Build
/WZRHP64K
/initramfs
=$(call MkuImageLzma
/initramfs
,$(2),$(3) $(4))
1780 Image
/Build
/WZRHP64K
=$(call Image
/Build
/WZRHP
,$(1),$(2),33095680,64,$(4))
1782 Image
/Build
/WZRHP128K
/buildkernel
=$(call MkuImageLzma
,$(2),$(3))
1783 Image
/Build
/WZRHP128K
/initramfs
=$(call MkuImageLzma
/initramfs
,$(2),$(3) $(4))
1784 Image
/Build
/WZRHP128K
=$(call Image
/Build
/WZRHP
,$(1),$(2),33030144,128,$(4))
1787 Image
/Build
/WHRHPG300N
/buildkernel
=$(call MkuImageLzma
,$(2),$(3) $(4))
1788 Image
/Build
/WHRHPG300N
/initramfs
=$(call MkuImageLzma
/initramfs
,$(2),$(3) $(4))
1790 define Image
/Build
/WHRHPG300N
1791 $(eval fwsize
=$(call mtdpartsize
,firmware
,$(4)))
1792 $(call Sysupgrade
/KRuImage
,$(1),$(2),0,$$$$(($(fwsize
)-4*64*1024)),64)
1793 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
1795 echo
-n
-e
"# Airstation Public Fmt1\x00\x00\x00\x00\x00\x00\x00\x00"; \
1796 dd if
=$(call sysupname
,$(1),$(2)); \
1797 ) > $(call imgname
,$(1),$(2))-tftp.bin
; \
1798 buffalo-enc
-p
$(5) -v
1.99 \
1799 -i
$(call sysupname
,$(1),$(2)) \
1800 -o
$(KDIR_TMP
)/$(2).enc
; \
1801 buffalo-tag
-b
$(5) -p
$(5) -a ath
-v
1.99 -m
1.01 -l mlang8 \
1802 -w
3 -c
0x80041000 -d
0x801e8000 -f
1 -r M_ \
1803 -i
$(KDIR_TMP
)/$(2).enc \
1804 -o
$(call factoryname
,$(1),$(2)); \
1809 define Image
/Build
/Cameo
1810 $(eval fwsize
=$(call mtdpartsize
,firmware
,$(4)))
1811 $(call Sysupgrade
/KRuImage
,$(1),$(2),0,$$$$(($(fwsize
)-4*64*1024)),64)
1812 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
1813 factory_size
=$$$$(($(fwsize
) - $(6))); \
1815 dd if
=$(call sysupname
,$(1),$(2)) bs
=$$$${factory_size} conv
=sync
; \
1817 ) > $(call factoryname
,$(1),$(2)); \
1821 Image
/Build
/CameoAP81
/buildkernel
=$(call MkuImageLzma
,$(2),$(3) $(cameo_ap81_mtdlayout
))
1822 Image
/Build
/CameoAP81
=$(call Image
/Build
/Cameo
,$(1),$(2),$(3),$(cameo_ap81_mtdlayout
),$(4),65536)
1823 Image
/Build
/CameoAP81
/initramfs
=$(call MkuImageLzma
/initramfs
,$(2),$(3) $(cameo_ap81_mtdlayout
))
1825 Image
/Build
/CameoAP91
/buildkernel
=$(call MkuImageLzma
,$(2),$(3) $(cameo_ap91_mtdlayout
))
1826 Image
/Build
/CameoAP91
=$(call Image
/Build
/Cameo
,$(1),$(2),$(3),$(cameo_ap91_mtdlayout
),$(4),65536)
1827 Image
/Build
/CameoAP91
/initramfs
=$(call MkuImageLzma
/initramfs
,$(2),$(3) $(cameo_ap91_mtdlayout
))
1829 Image
/Build
/CameoAP99
/buildkernel
=$(call MkuImageLzma
,$(2),$(3) $(cameo_ap99_mtdlayout
))
1830 Image
/Build
/CameoAP99
=$(call Image
/Build
/Cameo
,$(1),$(2),$(3),$(cameo_ap99_mtdlayout
),$(4),65536)
1831 Image
/Build
/CameoAP99
/initramfs
=$(call MkuImageLzma
/initramfs
,$(2),$(3) $(cameo_ap99_mtdlayout
))
1833 Image
/Build
/CameoAP123_4M
/buildkernel
=$(call MkuImageLzma
,$(2),$(3) $(cameo_ap123_mtdlayout_4M
))
1834 Image
/Build
/CameoAP123_4M
=$(call Image
/Build
/Cameo
,$(1),$(2),$(3),$(cameo_ap123_mtdlayout_4M
),$(4),26)
1835 Image
/Build
/CameoAP123_4M
/initramfs
=$(call MkuImageLzma
/initramfs
,$(2),$(3) $(cameo_ap123_mtdlayout_4M
))
1837 Image
/Build
/CameoAP135
/buildkernel
=$(call MkuImageLzma
,$(2),$(3) $(4))
1838 Image
/Build
/CameoAP135
=$(call Image
/Build
/Cameo
,$(1),$(2),$(3),$(4),$(5),26)
1839 Image
/Build
/CameoAP135
/initramfs
=$(call MkuImageLzma
/initramfs
,$(2),$(3) $(4))
1841 Image
/Build
/CameoDB120
/buildkernel
=$(call MkuImageLzma
,$(2),$(3) $(cameo_db120_mtdlayout
))
1842 Image
/Build
/CameoDB120
=$(call Image
/Build
/Cameo
,$(1),$(2),$(3),$(cameo_db120_mtdlayout
),$(4),26)
1843 Image
/Build
/CameoDB120
/initramfs
=$(call MkuImageLzma
/initramfs
,$(2),$(3) $(cameo_db120_mtdlayout
))
1845 Image
/Build
/CameoDB120_8M
/buildkernel
=$(call MkuImageLzma
,$(2),$(3) $(cameo_db120_mtdlayout_8M
))
1846 Image
/Build
/CameoDB120_8M
=$(call Image
/Build
/Cameo
,$(1),$(2),$(3),$(cameo_db120_mtdlayout_8M
),$(4),26)
1847 Image
/Build
/CameoDB120_8M
/initramfs
=$(call MkuImageLzma
/initramfs
,$(2),$(3) $(cameo_db120_mtdlayout_8M
))
1849 define Image
/Build
/CameoHornet
1850 $(eval fwsize
=$(call mtdpartsize
,firmware
,$(4)))
1851 $(call Sysupgrade
/KRuImage
,$(1),$(2),0,$$$$(($(fwsize
)-4*64*1024)),64)
1852 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
1854 [ -n
"$$$$r" ] && dashr
="-$$$$r" || dashr
=; \
1855 [ -z
"$$$$r" ] && r
="DEF"; \
1856 mkcameofw
-M HORNET
-R
"$$$$r" -S
$(5) -V
$(6) -c \
1857 -K
$(8) -I
$(fwsize
) \
1858 -k
"$(call sysupname,$(1),$(2))" \
1859 -o
$(call imgname
,$(1),$(2))-factory
$$$$dashr.bin
; \
1865 Image
/Build
/CameoAP121
/buildkernel
=$(call MkuImageLzma
,$(2),$(3) $(cameo_ap121_mtdlayout
))
1866 Image
/Build
/CameoAP121
=$(call Image
/Build
/CameoHornet
,$(1),$(2),$(3),$(cameo_ap121_mtdlayout
),$(4),$(5),$(6),0xe0000)
1867 Image
/Build
/CameoAP121
/initramfs
=$(call MkuImageLzma
/initramfs
,$(2),$(3) $(cameo_ap121_mtdlayout
))
1869 Image
/Build
/CameoAP121_8M
/buildkernel
=$(call MkuImageLzma
,$(2),$(3) $(cameo_ap121_mtdlayout_8M
))
1870 Image
/Build
/CameoAP121_8M
=$(call Image
/Build
/CameoHornet
,$(1),$(2),$(3),$(cameo_ap121_mtdlayout_8M
),$(4),$(5),$(6),0x100000)
1871 Image
/Build
/CameoAP121_8M
/initramfs
=$(call MkuImageLzma
/initramfs
,$(2),$(3) $(cameo_ap121_mtdlayout_8M
))
1873 define Image
/Build
/dLAN
1874 $(eval fwsize
=$(call mtdpartsize
,firmware
,$(4)))
1875 $(eval rootsize
=$(call mtdpartsize
,rootfs
,$(4)))
1876 $(eval kernsize
=$(call mtdpartsize
,kernel
,$(4)))
1877 $(call Sysupgrade
/$(5),$(1),$(2),$(if
$(6),$(6),$(kernsize
)),$(if
$(rootsize
),$(rootsize
),$(fwsize
)))
1878 if
[ -e
"$(call factoryname,$(1),$(2))" ]; then \
1879 dd if
=$(KDIR_TMP
)/vmlinux-
$(2).uImage \
1880 of
=$(call imgname
,kernel
,$(2)).bin bs
=64k conv
=sync
; \
1881 dd if
=$(KDIR
)/root.
$(1) \
1882 of
=$(call imgname
,$(1),$(2)-rootfs
).bin bs
=128k conv
=sync
; \
1886 Image
/Build
/dLANLzma
/buildkernel
=$(call MkuImageLzma
,$(2),$(3) $(4))
1887 Image
/Build
/dLANLzma
=$(call Image
/Build
/dLAN
,$(1),$(2),$(3),$(4),$(5),$(6),$(7))
1888 Image
/Build
/dLANLzma
/initramfs
=$(call MkuImageLzma
/initramfs
,$(2),$(3) $(4))
1890 define Image
/Build
/Ath
1891 $(eval fwsize
=$(call mtdpartsize
,firmware
,$(4)))
1892 $(eval rootsize
=$(call mtdpartsize
,rootfs
,$(4)))
1893 $(eval kernsize
=$(call mtdpartsize
,kernel
,$(4)))
1894 $(call Sysupgrade
/$(5),$(1),$(2),$(if
$(6),$(6),$(kernsize
)),$(if
$(rootsize
),$(rootsize
),$(fwsize
)))
1895 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
1896 dd if
=$(KDIR_TMP
)/vmlinux-
$(2).uImage \
1897 of
=$(call imgname
,kernel
,$(2)).bin bs
=64k conv
=sync
; \
1898 dd if
=$(KDIR
)/root.
$(1) \
1899 of
=$(call imgname
,$(1),$(2)-rootfs
).bin bs
=128k conv
=sync
; \
1903 Image
/Build
/AthGzip
/buildkernel
=$(call MkuImageGzip
,$(2),$(3) $(4))
1904 Image
/Build
/AthGzip
=$(call Image
/Build
/Ath
,$(1),$(2),$(3),$(4),$(5),$(6),$(7))
1905 Image
/Build
/AthGzip
/initramfs
=$(call MkuImageGzip
/initramfs
,$(2),$(3) $(4))
1907 Image
/Build
/AthLzma
/buildkernel
=$(call MkuImageLzma
,$(2),$(3) $(4))
1908 Image
/Build
/AthLzma
=$(call Image
/Build
/Ath
,$(1),$(2),$(3),$(4),$(5),$(6),$(7))
1909 Image
/Build
/AthLzma
/initramfs
=$(call MkuImageLzma
/initramfs
,$(2),$(3) $(4))
1912 Image
/Build
/Belkin
/buildkernel
=$(call MkuImageLzma
,$(2),$(3) $(4))
1913 Image
/Build
/Belkin
/initramfs
=$(call MkuImageLzma
/initramfs
,$(2),$(3) $(4))
1915 define Image
/Build
/Belkin
1916 $(eval fwsize
=$(call mtdpartsize
,firmware
,$(4)))
1917 $(eval kernsize
=$(call mtdpartsize
,kernel
,$(4)))
1918 $(eval rootsize
=$(call mtdpartsize
,rootfs
,$(4)))
1919 $(call Sysupgrade
/RKuImage
,$(1),$(2),$(kernsize
),$(rootsize
))
1920 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
1921 edimax_fw_header
-m
$(5) -v
"OpenWrt$(REVISION)" \
1923 -i
$(KDIR_TMP
)/vmlinux-
$(2).uImage \
1924 -o
$(KDIR_TMP
)/$(2)-uImage
; \
1925 edimax_fw_header
-m
$(5) -v
"OpenWrt$(REVISION)" \
1927 -i
$(KDIR
)/root.
$(1) \
1928 -o
$(KDIR_TMP
)/$(2)-rootfs
; \
1930 dd if
=$(KDIR_TMP
)/$(2)-rootfs
; \
1931 dd if
=$(KDIR_TMP
)/$(2)-uImage
; \
1932 ) > "$(call factoryname,$(1),$(2))"; \
1936 define Image
/Build
/EnGenius
1937 $(eval fwsize
=$(call mtdpartsize
,firmware
,$(4)))
1938 $(eval rootsize
=$(call mtdpartsize
,rootfs
,$(4)))
1939 $(eval kernsize
=$(call mtdpartsize
,kernel
,$(4)))
1940 $(call Sysupgrade
/$(5),$(1),$(2),$(if
$(6),$(6),$(kernsize
)),$(if
$(rootsize
),$(rootsize
),$(fwsize
)))
1941 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
1942 dd if
=$(KDIR_TMP
)/vmlinux-
$(2).uImage \
1943 of
=$(call imgname
,kernel
,$(2)).bin bs
=64k conv
=sync
; \
1944 dd if
=$(KDIR
)/root.
$(1) \
1945 of
=$(call imgname
,$(1),$(2)-rootfs
).bin bs
=128k conv
=sync
; \
1946 mksenaofw
-e
$(call sysupname
,$(1),$(2)) \
1947 -o
$(call imgname
,$(1),$(2))-factory.dlf \
1948 -r
0x101 -p
$(7) -t
2; \
1952 Image
/Build
/EnGenius
/buildkernel
=$(call MkuImageLzma
,$(2),$(3) $(4))
1953 Image
/Build
/EnGenius
/initramfs
=$(call MkuImageLzma
/initramfs
,$(2),$(3) $(4))
1956 define MkuImageHiWiFi
1957 # Field ih_name needs to start with "tw150v1"
1958 mkimage
-A mips
-O linux
-T kernel
-a
0x80060000 -C
$(1) $(2) \
1959 -e
0x80060000 -n
'tw150v1 MIPS OpenWrt Linux-$(LINUX_VERSION)' \
1963 define MkuImageLzmaHiWiFi
1964 $(call PatchKernelLzma
,$(1),$(2),$(3),$(4))
1965 $(call MkuImageHiWiFi
,lzma
,$(5),$(KDIR_TMP
)/vmlinux
$(4)-$(1).bin.lzma
,$(KDIR_TMP
)/vmlinux
$(4)-$(1).uImage
)
1968 Image
/Build
/HiWiFi
/buildkernel
=$(call MkuImageLzmaHiWiFi
,$(2),$(3) $(4))
1969 Image
/Build
/HiWiFi
=$(call Image
/Build
/Ath
,$(1),$(2),$(3),$(4),$(5),$(6),$(7))
1970 Image
/Build
/HiWiFi
/initramfs
=$(call MkuImageLzma
/initramfs
,$(2),$(3) $(4))
1972 Image
/Build
/PB4X
/buildkernel
=$(call PatchKernelLzma
,$(2),$(3))
1974 define Image
/Build
/PB4X
1975 dd if
=$(KDIR_TMP
)/vmlinux-
$(2).bin.lzma \
1976 of
=$(call imgname
,kernel
,$(2)).bin bs
=64k conv
=sync
1977 dd if
=$(KDIR
)/root.
$(1) \
1978 of
=$(call imgname
,$(1),$(2)-rootfs
).bin bs
=128k conv
=sync
1979 -sh
$(TOPDIR
)/scripts
/combined-image.sh \
1980 "$(call imgname,kernel,$(2)).bin" \
1981 "$(call imgname,$(1),$(2)-rootfs).bin" \
1982 $(call sysupname
,$(1),$(2))
1986 Image
/Build
/MyLoader
/buildkernel
=$(call PatchKernelLzma
,$(2),$(3))
1987 Image
/Build
/MyLoader
/initramfs
=$(call PatchKernel
/initramfs
,$(2),$(3))
1989 define Image
/Build
/MyLoader
1990 $(eval fwsize
=$(shell echo
$$(($(4)-0x30000-4*64*1024))))
1991 $(eval fwimage
=$(KDIR_TMP
)/$(2)-$(5)-firmware.bin
)
1992 $(call CatFiles
,$(KDIR_TMP
)/vmlinux-
$(2).bin.lzma
,65536,$(KDIR
)/root.
$(1),$(fwsize
),$(fwimage
))
1993 if
[ -e
"$(fwimage)" ]; then \
1994 $(STAGING_DIR_HOST
)/bin
/mkmylofw
-B
$(2) -s
$(4) -v \
1995 -p0x00030000
:0:al
:0x80060000:firmware
:$(fwimage
) \
1996 $(call imgname
,$(1),$(2))-$(5)-factory.img
; \
1997 echo
-n
"" > $(KDIR_TMP
)/empty.bin
; \
1998 sh
$(TOPDIR
)/scripts
/combined-image.sh \
1999 $(fwimage
) $(KDIR_TMP
)/empty.bin \
2000 $(call imgname
,$(1),$(2))-$(5)-sysupgrade.bin
; \
2004 Image
/Build
/Planex
/initramfs
=$(call MkuImageGzip
/initramfs
,$(2),$(3) $(planex_mtdlayout
))
2005 Image
/Build
/Planex
/loader
=$(call Image
/BuildLoaderAlone
,$(1),gz
,$(2) $(planex_mtdlayout
),0x52000,0)
2007 define Image
/Build
/Planex
/buildkernel
2008 [ -e
"$(KDIR)/loader-$(2).gz" ]
2009 $(call MkuImageOKLI
,$(2))
2011 dd if
=$(KDIR
)/loader-
$(2).gz bs
=8128 count
=1 conv
=sync
; \
2012 dd if
=$(KDIR_TMP
)/vmlinux-
$(2).okli
; \
2013 ) > $(KDIR_TMP
)/kernel-
$(2).bin
2014 $(call MkuImage
,gzip
,,$(KDIR_TMP
)/kernel-
$(2).bin
,$(KDIR_TMP
)/vmlinux-
$(2).uImage
)
2017 define Image
/Build
/Planex
2018 $(eval fwsize
=$(call mtdpartsize
,firmware
,$(planex_mtdlayout
)))
2019 $(call Sysupgrade
/KRuImage
,$(1),$(2),0,$$$$(($(fwsize
)-4*64*1024)),64)
2020 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
2021 $(STAGING_DIR_HOST
)/bin
/mkplanexfw \
2024 -i
$(call sysupname
,$(1),$(2)) \
2025 -o
$(call factoryname
,$(1),$(2)); \
2030 Image
/Build
/ALFA
/buildkernel
=$(call MkuImageLzma
,$(2),$(3) $(4))
2031 Image
/Build
/ALFA
/initramfs
=$(call MkuImageLzma
/initramfs
,$(2),$(3) $(4))
2033 define Image
/Build
/ALFA
2034 $(call Sysupgrade
/RKuImage
,$(1),$(2),$(5),$(6))
2035 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
2036 rm -rf
$(KDIR
)/$(1); \
2037 mkdir
-p
$(KDIR
)/$(1); \
2039 cp
$(KDIR_TMP
)/vmlinux-
$(2).uImage
$(KDIR
)/$(1)/$(7); \
2040 cp
$(KDIR
)/root.
$(1) $(KDIR
)/$(1)/$(8); \
2041 $(TAR
) zcf
$(call factoryname
,$(1),$(2)) -C
$(KDIR
)/$(1) $(7) $(8); \
2043 echo WRM7222C | dd bs
=32 count
=1 conv
=sync
; \
2045 ) >> $(call factoryname
,$(1),$(2)); \
2050 Image
/Build
/Seama
/loader
=$(call Image
/BuildLoader
,$(1),bin
,$(2) $(3),0x80060000)
2052 define Image
/Build
/Seama
2053 [ -e
"$(KDIR)/loader-$(2).bin" ]
2054 $(call CompressLzma
,$(KDIR
)/loader-
$(2).bin
,$(KDIR_TMP
)/loader-
$(2).bin.lzma
)
2055 -rm -f
$(KDIR_TMP
)/image-
$(2).tmp
2056 $(call CatFiles
,$(KDIR_TMP
)/loader-
$(2).bin.lzma
,$$$$(($(6) - 64)),$(KDIR
)/root.
$(1),$(7),$(KDIR_TMP
)/image-
$(2).tmp
)
2057 [ -e
"$(KDIR_TMP)/image-$(2).tmp" ] && { \
2058 head
-c
-4 "$(KDIR_TMP)/image-$(2).tmp" > "$(KDIR_TMP)/image-$(2).no-jffs2mark.tmp"; \
2059 $(STAGING_DIR_HOST
)/bin
/seama \
2060 -i
$(KDIR_TMP
)/image-
$(2).no-jffs2mark.tmp \
2061 -m
"dev=/dev/mtdblock/1" -m
"type=firmware"; \
2062 $(STAGING_DIR_HOST
)/bin
/seama \
2063 -s
$(call imgname
,$(1),$(2))-factory.bin \
2064 -m
"signature=$(5)" \
2065 -i
$(KDIR_TMP
)/image-
$(2).no-jffs2mark.tmp.seama
; \
2066 tail
-c
4 "$(KDIR_TMP)/image-$(2).tmp" >> $(call imgname
,$(1),$(2))-factory.bin
; \
2068 cat
$(KDIR_TMP
)/loader-
$(2).bin.lzma
> $(KDIR_TMP
)/image-
$(2)-sysupgrade.tmp
2069 $(STAGING_DIR_HOST
)/bin
/seama \
2070 -i
$(KDIR_TMP
)/image-
$(2)-sysupgrade.tmp \
2071 -m
"dev=/dev/mtdblock/1" -m
"type=firmware"
2072 $(call CatFiles
,$(KDIR_TMP
)/image-
$(2)-sysupgrade.tmp.seama
,$(6),$(KDIR
)/root.
$(1),$(7),$(call sysupname
,$(1),$(2)))
2075 define Image
/Build
/Seama
/initramfs
2076 $(call PatchKernelLzma
,$(2),$(3) $(4),,-initramfs
)
2077 $(STAGING_DIR_HOST
)/bin
/seama \
2078 -i
$(KDIR_TMP
)/vmlinux-initramfs-
$(2).bin.lzma \
2079 -m
"dev=/dev/mtdblock/1" -m
"type=firmware"
2080 cat
$(KDIR_TMP
)/vmlinux-initramfs-
$(2).bin.lzma.seama
> $(call imgname
,initramfs
,$(2))-seama.bin
2083 Image
/Build
/Senao
/buildkernel
=$(call MkuImageLzma
,$(2),$(3) $(4))
2084 Image
/Build
/Senao
/initramfs
=$(call MkuImageLzma
/initramfs
,$(2),$(3) $(4))
2086 define Image
/Build
/Senao
2087 mkdir
-p
$(KDIR_TMP
)/$(2)/
2088 touch
$(KDIR_TMP
)/$(2)/FWINFO-OpenWrt-
$(REVISION
)-$(2)
2089 -$(CP
) .
/$(2)/* $(KDIR_TMP
)/$(2)/
2090 dd if
=$(KDIR_TMP
)/vmlinux-
$(2).uImage \
2091 of
=$(KDIR_TMP
)/$(2)/openwrt-senao-
$(2)-uImage-lzma.bin bs
=64k conv
=sync
2092 dd if
=$(KDIR
)/root.
$(1) \
2093 of
=$(KDIR_TMP
)/$(2)/openwrt-senao-
$(2)-root.
$(1) bs
=64k conv
=sync
2095 cd
$(KDIR_TMP
)/$(2)/; \
2096 $(TAR
) -cz
-f
$(call factoryname
,$(1),$(2)) * \
2098 -rm -rf
$(KDIR_TMP
)/$(2)/
2099 -sh
$(TOPDIR
)/scripts
/combined-image.sh \
2100 $(KDIR_TMP
)/vmlinux-
$(2).uImage \
2102 $(call sysupname
,$(1),$(2))
2105 define Image
/Build
/CyberTAN
2106 echo
-n
'' > $(KDIR_TMP
)/empty.bin
2107 $(STAGING_DIR_HOST
)/bin
/trx
-o
$(KDIR
)/image.tmp \
2108 -f
$(KDIR_TMP
)/vmlinux-
$(2).uImage
-F
$(KDIR_TMP
)/empty.bin \
2109 -x
32 -a
0x10000 -x
-32 -f
$(KDIR
)/root.
$(1)
2110 -$(STAGING_DIR_HOST
)/bin
/addpattern
-B
$(2) -v v
$(5) \
2111 -i
$(KDIR
)/image.tmp \
2112 -o
$(call sysupname
,$(1),$(2))
2113 $(STAGING_DIR_HOST
)/bin
/trx
-o
$(KDIR
)/image.tmp
-f
$(KDIR_TMP
)/vmlinux-
$(2).uImage \
2114 -x
32 -a
0x10000 -x
-32 -f
$(KDIR
)/root.
$(1)
2115 -$(STAGING_DIR_HOST
)/bin
/addpattern
-B
$(2) -v v
$(5) -g \
2116 -i
$(KDIR
)/image.tmp \
2117 -o
$(call factoryname
,$(1),$(2))
2118 rm $(KDIR
)/image.tmp
2121 Image
/Build
/CyberTANGZIP
/loader
=$(call Image
/BuildLoader
,$(1),gz
,$(2),0x80060000)
2122 Image
/Build
/CyberTANGZIP
/buildkernel
=$(call MkuImage
,gzip
,,$(KDIR
)/loader-
$(2).gz
,$(KDIR_TMP
)/vmlinux-
$(2).uImage
)
2123 Image
/Build
/CyberTANGZIP
=$(call Image
/Build
/CyberTAN
,$(1),$(2),$(3),$(4),$(5))
2125 Image
/Build
/CyberTANLZMA
/buildkernel
=$(call MkuImageLzma
,$(2),$(3) $(4))
2126 Image
/Build
/CyberTANLZMA
=$(call Image
/Build
/CyberTAN
,$(1),$(2),$(3),$(4),$(5))
2129 define Build
/MerakiNAND
2130 -$(STAGING_DIR_HOST
)/bin
/mkmerakifw \
2131 -B
$(BOARDNAME
) -s \
2137 Image
/Build
/Netgear
/initramfs
=$(call MkuImageLzma
/initramfs
,$(2),$(3) $(4),,-M
$(5))
2139 define Image
/Build
/Netgear
/buildkernel
2140 $(call MkuImageLzma
,$(2),$(3) $(4),-d20
,,-M
$(5))
2141 -rm -rf
$(KDIR_TMP
)/$(2)
2142 mkdir
-p
$(KDIR_TMP
)/$(2)/image
2143 cat
$(KDIR_TMP
)/vmlinux-
$(2).uImage
> $(KDIR_TMP
)/$(2)/image
/uImage
2144 $(STAGING_DIR_HOST
)/bin
/mksquashfs-lzma \
2145 $(KDIR_TMP
)/$(2) $(KDIR_TMP
)/vmlinux-
$(2).uImage.squashfs.tmp1 \
2146 -noappend
-root-owned
-be
-b
65536 \
2147 $(if
$(SOURCE_DATE_EPOCH
),-fixed-time
$(SOURCE_DATE_EPOCH
))
2149 cat
$(KDIR_TMP
)/vmlinux-
$(2).uImage.squashfs.tmp1
; \
2150 dd if
=/dev
/zero bs
=1k count
=1 \
2151 ) > $(KDIR_TMP
)/vmlinux-
$(2).uImage.squashfs.tmp2
2152 mkimage
-A mips
-O linux
-T filesystem
-C none
-M
$(5) \
2153 -a
0xbf070000 -e
0xbf070000 \
2154 -n
'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
2155 -d
$(KDIR_TMP
)/vmlinux-
$(2).uImage.squashfs.tmp2 \
2156 $(KDIR_TMP
)/vmlinux-
$(2).uImage.squashfs
2159 define Image
/Build
/Netgear
2160 $(eval fwsize
=$(call mtdpartsize
,firmware
,$(4)))
2161 $(call CatFiles
,$(KDIR_TMP
)/vmlinux-
$(2).uImage.squashfs
,0,$(KDIR
)/root.
$(1),$(fwsize
),$(call sysupname
,$(1),$(2)),64)
2162 if
[ -e
$(call sysupname
,$(1),$(2)) ]; then \
2163 for r in
$(7) ; do \
2164 [ -n
"$$$$r" ] && dashr
="-$$$$r" || dashr
= ; \
2165 $(STAGING_DIR_HOST
)/bin
/mkdniimg \
2166 -B
$(6) -v OpenWrt.
$(REVISION
) -r
"$$$$r" $(8) \
2167 -i
$(call sysupname
,$(1),$(2)) \
2168 -o
$(call imgname
,$(1),$(2))-factory
$$$$dashr.img
; \
2174 Image
/Build
/NetgearLzma
/initramfs
=$(call MkuImageLzma
/initramfs
,$(2),$(3) $(4),,-M
$(5))
2175 Image
/Build
/NetgearLzma
/buildkernel
=$(call MkuImageLzma
,$(2),$(3) $(4),-d20
,,-M
$(5))
2177 define Image
/Build
/NetgearLzma
2178 $(eval fwsize
=$(call mtdpartsize
,firmware
,$(4)))
2179 $(call CatFiles
,$(KDIR_TMP
)/vmlinux-
$(2).uImage
,0,$(KDIR
)/root.
$(1),$(fwsize
),$(call sysupname
,$(1),$(2)),64)
2183 Image
/Build
/NetgearNAND
/initramfs
=$(call MkuImageLzma
/initramfs
,$(2),$(3) $(4),,-M
$(5))
2186 # $(2): Board name (small caps)
2187 # $(3): Kernel board specific cmdline
2188 # $(4): Kernel mtdparts definition
2189 # $(5): U-Boot magic
2190 define Image
/Build
/NetgearNAND
/buildkernel
2191 $(eval kernelsize
=$(call mtdpartsize
,kernel
,$(4)))
2192 $(call PatchKernelLzma
,$(2),$(3) $(4),-d20
)
2193 dd if
=$(KDIR_TMP
)/vmlinux-
$(2).bin.lzma \
2194 of
=$(KDIR_TMP
)/vmlinux-
$(2).bin.tmp \
2195 bs
=$$$$(($(kernelsize
)-131072-2*64-1)) \
2197 $(call MkuImage
,lzma
,-M
$(5),$(KDIR_TMP
)/vmlinux-
$(2).bin.tmp
,$(KDIR_TMP
)/vmlinux-
$(2).uImage
)
2198 echo
-ne
'\xff' >> $(KDIR_TMP
)/vmlinux-
$(2).uImage
2199 # create a fake rootfs image
2200 dd if
=/dev
/zero of
=$(KDIR_TMP
)/fakeroot-
$(2) bs
=131072 count
=1
2201 mkimage
-A mips
-O linux
-T filesystem
-C none \
2202 -a
0xbf070000 -e
0xbf070000 \
2203 -n
'MIPS OpenWrt fakeroot' \
2204 -d
$(KDIR_TMP
)/fakeroot-
$(2) \
2206 $(KDIR_TMP
)/fakeroot-
$(2).uImage
2207 # append the fake rootfs image to the kernel, it will reside in the last
2208 # erase block of the kernel partition
2209 cat
$(KDIR_TMP
)/fakeroot-
$(2).uImage
>> $(KDIR_TMP
)/vmlinux-
$(2).uImage
2213 # $(1): rootfs image suffix
2214 # $(2): Board name (small caps)
2215 # $(3): Kernel board specific cmdline
2216 # $(4): Kernel mtdparts definition
2217 # $(5): U-Boot magic
2218 # $(6): Board name (upper caps)
2219 # $(7): firmware region code (not used yet)
2220 # $(8): DNI Hardware version
2221 # $(9): suffix of the configuration file for ubinize
2222 define Image
/Build
/NetgearNAND
2223 $(eval firmwaresize
=$(call mtdpartsize
,firmware
,$(4)))
2224 $(eval kernelsize
=$(call mtdpartsize
,kernel
,$(4)))
2225 $(eval imageraw
=$(KDIR_TMP
)/$(2)-raw.img
)
2226 $(CP
) $(KDIR
)/root.squashfs-raw
$(KDIR_TMP
)/root.squashfs
2227 echo
-ne
'\xde\xad\xc0\xde' > $(KDIR_TMP
)/jffs2.eof
2228 $(call ubinize
,ubinize-
$(9).ini
,$(KDIR_TMP
),$(KDIR_TMP
)/$(2)-root.ubi
,128KiB
,2048,-E
5)
2230 dd if
=$(KDIR_TMP
)/vmlinux-
$(2).uImage
; \
2231 dd if
=$(KDIR_TMP
)/$(2)-root.ubi \
2233 $(STAGING_DIR_HOST
)/bin
/mkdniimg \
2234 -B
$(6) -v OpenWrt.
$(REVISION
) -r
"$$$$r" $(8) \
2236 -o
$(call imgname
,ubi
,$(2))-factory.img
2238 $(call Image
/Build
/SysupgradeNAND
,$(2),squashfs
,$(KDIR_TMP
)/vmlinux-
$(2).uImage
)
2242 ifdef CONFIG_PACKAGE_uboot-ar71xx-nbg460n_550n_550nh
2243 Image
/Build
/ZyXEL
/buildkernel
=$(call MkuImageLzma
,$(2),$(3))
2245 define Image
/Build
/ZyXEL
2246 $(call Sysupgrade
/KRuImage
,$(1),$(2),917504,2752512)
2247 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
2248 if
[ ! -f
$(BIN_DIR
)/$(IMG_PREFIX
)-$(2)-u-boot.bin
]; then \
2249 echo
"Warning: $(IMG_PREFIX)-$(2)-u-boot.bin not found" >&2; \
2251 $(STAGING_DIR_HOST
)/bin
/mkzynfw \
2253 -b
$(BIN_DIR
)/$(IMG_PREFIX
)-$(2)-u-boot.bin \
2254 -r
$(call sysupname
,$(1),$(2)):0x10000 \
2255 -o
$(call factoryname
,$(1),$(2)); \
2260 define Device
/NBG6616
2264 MTDPARTS
= spi0.0
:192k
(u-boot
)ro
,64k
(env
)ro
,64k
(RFdata
)ro
,384k
(zyxel_rfsd
),384k
(romd
),64k
(header
),2048k
(kernel
),13184k
(rootfs
),15232k@
0x120000(firmware
)
2266 IMAGES
:= sysupgrade.bin
2267 KERNEL
:= kernel-bin | patch-cmdline | lzma | uImage lzma | jffs2 boot
/vmlinux.lzma.uImage
2268 IMAGE
/sysupgrade.bin
= append-kernel
$$$$(KERNEL_SIZE
) | append-rootfs | pad-rootfs | check-size
$$$$(IMAGE_SIZE
)
2269 # We cannot currently build a factory image. It is the sysupgrade image
2270 # prefixed with a header (which is actually written into the MTD device).
2271 # The header is 2kiB and is filled with 0xff. The format seems to be:
2273 # 2 bytes: checksum of the data partition (big endian)
2274 # 4 bytes: length of the contained image file (big endian)
2275 # 32 bytes: Firmware Version string (NUL terminated, 0xff padded)
2277 # 2 bytes: checksum over the header partition (big endian)
2278 # 32 bytes: Model (e.g. "NBG6616", NUL termiated, 0xff padded)
2279 # rest: 0xff padding
2281 # The checksums are calculated by adding up all bytes and if a 16bit
2282 # overflow occurs, one is added and the sum is masked to 16 bit:
2283 # csum = csum + databyte; if (csum > 0xffff) { csum += 1; csum &= 0xffff };
2284 # Should the file have an odd number of bytes then the byte len-0x800 is
2285 # used additionally.
2286 # The checksum for the header is calcualted over the first 2048 bytes with
2287 # the firmware checksum as the placeholder during calculation.
2289 # The header is padded with 0xff to the erase block size of the device.
2292 TARGET_DEVICES
+= NBG6616
2294 define Image
/Build
/ZyXELNAND
/buildkernel
2295 $(eval kernelsize
=$(call mtdpartsize
,kernel
,$(5)))
2296 $(call MkuImageLzma
,$(2),$(3) $(5) $(6))
2297 mkdir
-p
$(KDIR_TMP
)/$(2)/image
/boot
2298 cp
$(KDIR_TMP
)/vmlinux-
$(2).uImage
$(KDIR_TMP
)/$(2)/image
/boot
/vmlinux.lzma.uImage
2299 $(STAGING_DIR_HOST
)/bin
/mkfs.jffs2 \
2300 --pad
=$(kernelsize
) --big-endian
--squash-uids
-v
-e
128KiB \
2301 -o
$(KDIR_TMP
)/$(2)-kernel.jffs2 \
2302 -d
$(KDIR_TMP
)/$(2)/image \
2303 2>&1 1>/dev
/null | awk
'/^.+$$$$/'
2304 -rm -rf
$(KDIR_TMP
)/$(2)
2307 define Image
/Build
/ZyXELNAND
2308 if
[ "$(1)" != "squashfs" ]; then \
2309 echo Only squashfs is supported
; \
2312 $(eval firmwaresize
=$(call mtdpartsize
,firmware
,$(4)))
2313 $(eval kernelsize
=$(call mtdpartsize
,kernel
,$(4)))
2314 $(eval imageraw
=$(KDIR_TMP
)/$(2)-raw.img
)
2315 $(CP
) $(KDIR
)/root.
$(1) $(KDIR_TMP
)/ubi_root.img
2316 $(call ubinize
,ubinize-
$(2).ini
,$(KDIR_TMP
),$(KDIR_TMP
)/$(2)-root.ubi
,128KiB
,2048,-E
5)
2318 dd if
=$(KDIR_TMP
)/$(2)-kernel.jffs2
; \
2319 dd if
=$(KDIR_TMP
)/$(2)-root.ubi \
2321 dd if
=$(imageraw
) of
=$(BIN_DIR
)/$(IMG_PREFIX
)-$(2)-$(1)-factory.bin \
2323 $(call Image
/Build
/SysupgradeNAND
,$(2),squashfs
,$(KDIR_TMP
)/$(2)-kernel.jffs2
)
2327 Image
/Build
/OpenMesh
/buildkernel
=$(call MkuImageLzma
,$(2))
2329 define Image
/Build
/OpenMesh
2330 -sh
$(TOPDIR
)/scripts
/om-fwupgradecfg-gen.sh \
2332 "$(BUILD_DIR)/fwupgrade.cfg-$(4)" \
2333 "$(KDIR_TMP)/vmlinux-$(2).uImage" \
2335 -sh
$(TOPDIR
)/scripts
/combined-ext-image.sh \
2336 "$(4)" "$(call factoryname,$(1),$(2))" \
2337 "$(BUILD_DIR)/fwupgrade.cfg-$(4)" "fwupgrade.cfg" \
2338 "$(KDIR_TMP)/vmlinux-$(2).uImage" "kernel" \
2339 "$(KDIR)/root.$(1)" "rootfs"
2343 Image
/Build
/Zcomax
/buildkernel
=$(call MkuImageLzma
,$(2),$(3) $(4))
2344 Image
/Build
/Zcomax
/initramfs
=$(call MkuImageLzma
/initramfs
,$(2),$(3) $(4))
2346 define Image
/Build
/Zcomax
2347 $(call Sysupgrade
/RKuImage
,$(1),$(2),1507328,6356992)
2348 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
2349 $(STAGING_DIR_HOST
)/bin
/mkzcfw \
2351 -k
$(KDIR_TMP
)/vmlinux-
$(2).uImage \
2352 -r
$(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1) \
2353 -o
$(call imgname
,$(1),$(2))-factory.img
; \
2358 # $(1): template name to be defined, etc. squashfs-only, 64k, 64kraw, etc.
2359 # $(2): jffs2 blocksize.
2360 define Jffs2Template
2361 define Image
/Build
/Template
/$(1)/jffs2-
$(2)
2362 $$(call Image
/Build
/$$(1),jffs2-
$(2),$$(2),$$(3),$$(4),$$(5),$$(6),$$(7),$$(8),$$(9),$$(10))
2366 # $(1): template name to be defined.
2367 # $(2): squashfs suffix to be used.
2368 # $(3): jffs2 suffix to be used.
2369 define BuildTemplate
2370 # $(1) : name of build method.
2371 # $(2) : board name.
2372 # $(3) : kernel command line.
2373 # $(4)~$(8): extra arguments.
2374 define Image
/Build
/Template
/$(1)/initramfs
2375 $$(call Image
/Build
/$$(1)/initramfs
,initramfs
,$$(2),$$(3),$$(4),$$(5),$$(6),$$(7),$$(8),$$(9),$$(10))
2377 define Image
/Build
/Template
/$(1)/loader
2378 $$(call Image
/Build
/$$(1)/loader
,$$(2),$$(3),$$(4),$$(5),$$(6),$$(7),$$(8),$$(9),$$(10))
2380 define Image
/Build
/Template
/$(1)/buildkernel
2381 $$(call Image
/Build
/$$(1)/buildkernel
,,$$(2),$$(3),$$(4),$$(5),$$(6),$$(7),$$(8),$$(9),$$(10))
2383 define Image
/Build
/Template
/$(1)/squashfs
2384 $$(call Image
/Build
/$$(1),squashfs
$(2),$$(2),$$(3),$$(4),$$(5),$$(6),$$(7),$$(8),$$(9),$$(10))
2386 $(if
$(3),$(foreach bs
,$(3),$(eval
$(call Jffs2Template
,$(1),$(bs
)))))
2389 $(eval
$(call BuildTemplate
,squashfs-only
))
2390 $(eval
$(call BuildTemplate
,64k
,-64k
,64k
))
2391 $(eval
$(call BuildTemplate
,64kraw
,-raw
,64k
))
2392 $(eval
$(call BuildTemplate
,64kraw-nojffs
,-raw
))
2393 $(eval
$(call BuildTemplate
,128k
,,128k
))
2394 $(eval
$(call BuildTemplate
,128kraw
,-raw
,128k
))
2395 $(eval
$(call BuildTemplate
,256k
,,256k
))
2396 $(eval
$(call BuildTemplate
,all,,64k
128k
256k
))
2398 ifeq ($(SUBTARGET
),generic
)
2403 MTDPARTS
= spi0.0
:256k
(u-boot
)ro
,128k
(u-boot-env
)ro
,2048k
(kernel
),13824k
(rootfs
),13824k
(opt
)ro
,2624k
(failsafe
)ro
,64k
(art
)ro
,15872k@
0x60000(firmware
)
2404 IMAGE
/sysupgrade.bin
= append-kernel
$$$$(KERNEL_SIZE
) | append-rootfs | pad-rootfs | check-size
$$$$(IMAGE_SIZE
)
2407 TARGET_DEVICES
+= c-55
2409 $(eval
$(call SingleProfile
,ALFA
,64k
,ALFANX
,alfa-nx
,ALFA-NX
,ttyS0
,115200,$$(alfa_mtdlayout_8M
),1638400,6291456,vmlinux.gz.uImage
,pb9x-2.6
.31-jffs2
))
2410 $(eval
$(call SingleProfile
,ALFA
,64k
,HORNETUB
,hornet-ub
,HORNET-UB
,ttyATH0
,115200,$$(alfa_mtdlayout_8M
),1638400,6291456,kernel_image
,rootfs_image
))
2411 $(eval
$(call SingleProfile
,ALFA
,64k
,TUBE2H8M
,tube2h-8M
,TUBE2H
,ttyATH0
,115200,$$(alfa_mtdlayout_8M
),1638400,6291456,kernel.image
,rootfs.image
))
2413 $(eval
$(call SingleProfile
,AthGzip
,64k
,AP81
,ap81
,AP81
,ttyS0
,115200,$$(ap81_mtdlayout
),RKuImage
))
2414 $(eval
$(call SingleProfile
,AthGzip
,64k
,AP83
,ap83
,AP83
,ttyS0
,115200,$$(ap83_mtdlayout
),RKuImage
))
2415 $(eval
$(call SingleProfile
,AthGzip
,64k
,AP96
,ap96
,AP96
,ttyS0
,115200,$$(ap96_mtdlayout
),RKuImage
))
2416 $(eval
$(call SingleProfile
,AthGzip
,64k
,WNDAP360
,wndap360
,WNDAP360
,ttyS0
,9600,$$(wndap360_mtdlayout
),KRuImage
))
2418 $(eval
$(call SingleProfile
,AthLzma
,64k
,ALFAAP120C
,alfa-ap120c
,ALFA-AP120C
,ttyS0
,115200,$$(alfa_ap120c_mtdlayout
),RKuImage
))
2419 $(eval
$(call SingleProfile
,AthLzma
,64k
,ALFAAP96
,alfa-ap96
,ALFA-AP96
,ttyS0
,115200,$$(alfa_ap96_mtdlayout
),RKuImage
))
2420 $(eval
$(call SingleProfile
,AthLzma
,64k
,ALL0258N
,all0258n
,ALL0258N
,ttyS0
,115200,$$(all0258n_mtdlayout
),KRuImage
,65536))
2421 $(eval
$(call SingleProfile
,AthLzma
,256k
,ALL0315N
,all0315n
,ALL0315N
,ttyS0
,115200,$$(all0315n_mtdlayout
),KRuImage
,262144))
2422 $(eval
$(call SingleProfile
,AthLzma
,64k
,AP113
,ap113
,AP113
,ttyS0
,115200,$$(ap113_mtd_layout
),RK
))
2423 $(eval
$(call SingleProfile
,AthLzma
,64k
,AP121_2M
,ap121-2M
,AP121
,ttyATH0
,115200,$$(ap121_mtdlayout_2M
),RKuImage
))
2424 $(eval
$(call SingleProfile
,AthLzma
,64k
,AP121_4M
,ap121-4M
,AP121
,ttyATH0
,115200,$$(ap121_mtdlayout_4M
),RKuImage
))
2425 $(eval
$(call SingleProfile
,AthLzma
,64k
,AP121_8M
,ap121-8M
,AP121
,ttyATH0
,115200,$$(ap121_mtdlayout_8M
),RKuImage
))
2426 $(eval
$(call SingleProfile
,AthLzma
,64k
,AP121_16M
,ap121-16M
,AP121
,ttyATH0
,115200,$$(ap121_mtdlayout_16M
),RKuImage
))
2427 $(eval
$(call SingleProfile
,AthLzma
,64k
,AP121MINI
,ap121-mini
,AP121-MINI
,ttyATH0
,115200,$$(ap121_mtdlayout_4M
),RKuImage
))
2428 $(eval
$(call SingleProfile
,AthLzma
,64k
,AP132
,ap132
,AP132
,ttyS0
,115200,$$(ap132_mtdlayout
),KRuImage
))
2429 $(eval
$(call SingleProfile
,AthLzma
,64k
,AP135
,ap135-020
,AP135-020
,ttyS0
,115200,$$(ap135_mtdlayout
),RKuImage
))
2430 $(eval
$(call SingleProfile
,AthLzma
,64k
,AP136_010
,ap136-010
,AP136-010
,ttyS0
,115200,$$(ap136_mtdlayout
),RKuImage
))
2431 $(eval
$(call SingleProfile
,AthLzma
,64k
,AP136_020
,ap136-020
,AP136-020
,ttyS0
,115200,$$(ap136_mtdlayout
),RKuImage
))
2432 $(eval
$(call SingleProfile
,AthLzma
,64k
,AP143_8M
,ap143-8M
,AP143
,ttyS0
,115200,$$(ap143_mtdlayout_8M
),RKuImage
))
2433 $(eval
$(call SingleProfile
,AthLzma
,64k
,AP143_16M
,ap143-16M
,AP143
,ttyS0
,115200,$$(ap143_mtdlayout_16M
),RKuImage
))
2434 $(eval
$(call SingleProfile
,AthLzma
,64k
,AP147_010
,ap147-010
,AP147-010
,ttyS0
,115200,$$(ap147_mtdlayout
),RKuImage
))
2435 $(eval
$(call SingleProfile
,AthLzma
,64k
,AP152_16M
,ap152-16M
,AP152
,ttyS0
,115200,$$(ap152_mtdlayout_16M
),RKuImage
))
2436 $(eval
$(call SingleProfile
,AthLzma
,64k
,BXU2000N2
,bxu2000n-2-a1
,BXU2000n-2-A1
,ttyS0
,115200,$$(bxu2000n2_mtdlayout
),RKuImage
))
2437 $(eval
$(call SingleProfile
,AthLzma
,64k
,CAP4200AG
,cap4200ag
,CAP4200AG
,ttyS0
,115200,$$(cap4200ag_mtdlayout
),KRuImage
))
2438 $(eval
$(call SingleProfile
,AthLzma
,64k
,DB120
,db120
,DB120
,ttyS0
,115200,$$(db120_mtdlayout
),RKuImage
))
2439 $(eval
$(call SingleProfile
,AthLzma
,64k
,DRAGINO2
,dragino2
,DRAGINO2
,ttyATH0
,115200,$$(dragino2_mtdlayout
),KRuImage
,65536))
2440 $(eval
$(call SingleProfile
,AthLzma
,64k
,EWDORINAP
,ew-dorin
,EW-DORIN
,ttyATH0
,115200,$$(ew-dorin_mtdlayout_4M
),KRuImage
,65536))
2441 $(eval
$(call SingleProfile
,AthLzma
,64k
,EWDORINRT
,ew-dorin-router
,EW-DORIN-ROUTER
,ttyATH0
,115200,$$(ew-dorin_mtdlayout_4M
),KRuImage
,65536))
2442 $(eval
$(call SingleProfile
,AthLzma
,64k
,EWDORIN16M
,ew-dorin-16M
,EW-DORIN
,ttyATH0
,115200,$$(ew-dorin_mtdlayout_16M
),KRuImage
,65536))
2443 $(eval
$(call SingleProfile
,AthLzma
,64k
,HORNETUBx2
,hornet-ub-x2
,HORNET-UB
,ttyATH0
,115200,$$(alfa_mtdlayout_16M
),KRuImage
,65536))
2444 $(eval
$(call SingleProfile
,AthLzma
,64k
,MR12
,mr12
,MR12
,ttyS0
,115200,$$(mr12_mtdlayout
),RKuImage
))
2445 $(eval
$(call SingleProfile
,AthLzma
,64k
,MR16
,mr16
,MR16
,ttyS0
,115200,$$(mr16_mtdlayout
),RKuImage
))
2446 $(eval
$(call SingleProfile
,AthLzma
,64k
,PB92
,pb92
,PB92
,ttyS0
,115200,$$(pb92_mtdlayout
),KRuImage
))
2447 $(eval
$(call SingleProfile
,AthLzma
,64k
,TUBE2H16M
,tube2h-16M
,TUBE2H
,ttyATH0
,115200,$$(alfa_mtdlayout_16M
),KRuImage
,65536))
2448 $(eval
$(call SingleProfile
,AthLzma
,64k
,WLR8100
,wlr8100
,WLR8100
,ttyS0
,115200,$$(wlr8100_mtdlayout
),KRuImage
))
2449 $(eval
$(call SingleProfile
,AthLzma
,64k
,WPJ342_16M
,wpj342-16M
,WPJ342
,ttyS0
,115200,$$(wpj342_mtdlayout_16M
),KRuImage
,65536))
2450 $(eval
$(call SingleProfile
,AthLzma
,64k
,WPJ344_16M
,wpj344-16M
,WPJ344
,ttyS0
,115200,$$(wpj344_mtdlayout_16M
),KRuImage
,65536))
2451 $(eval
$(call SingleProfile
,AthLzma
,64k
,DR344
,dr344
,DR344
,ttyS0
,115200,$$(dr344_mtdlayout
),RKuImage
))
2452 $(eval
$(call SingleProfile
,AthLzma
,64k
,WPJ531_16M
,wpj531-16M
,WPJ531
,ttyS0
,115200,$$(wpj531_mtdlayout_16M
),KRuImage
,65536))
2453 $(eval
$(call SingleProfile
,AthLzma
,64k
,WPJ558_16M
,wpj558-16M
,WPJ558
,ttyS0
,115200,$$(wpj558_mtdlayout_16M
),KRuImage
,65536))
2454 $(eval
$(call SingleProfile
,AthLzma
,64k
,YUN_8M
,yun-8M
,Yun
,ttyATH0
,250000,$$(yun_mtdlayout_8M
),RKuImage
))
2455 $(eval
$(call SingleProfile
,AthLzma
,64k
,YUN_16M
,yun-16M
,Yun
,ttyATH0
,250000,$$(yun_mtdlayout_16M
),RKuImage
))
2457 $(eval
$(call SingleProfile
,Belkin
,64k
,F9K1115V2
,f9k1115v2
,F9K1115V2
,ttyS0
,115200,$$(f9k1115v2_mtdlayout
),BR-6679BAC
))
2459 $(eval
$(call SingleProfile
,CameoAP91
,64kraw
,DIR600A1
,dir-600-a1
,DIR-600-A1
,ttyS0
,115200,"AP91-AR7240-RT-090223-00"))
2460 $(eval
$(call SingleProfile
,CameoAP91
,64kraw
,DIR601A1
,dir-601-a1
,DIR-600-A1
,ttyS0
,115200,"AP91-AR7240-RT-090223-02"))
2461 $(eval
$(call SingleProfile
,CameoAP91
,64kraw
,FR54RTR
,fr-54rtr
,DIR-600-A1
,ttyS0
,115200,"AP91-AR7240-RT-090223-01"))
2463 $(eval
$(call SingleProfile
,CameoAP99
,64kraw
,DIR615E1
,dir-615-e1
,DIR-615-E1
,ttyS0
,115200,"AP93-AR7240-RT-081028-00"))
2464 $(eval
$(call SingleProfile
,CameoAP99
,64kraw
,DIR615E4
,dir-615-e4
,DIR-615-E4
,ttyS0
,115200,"AP99-AR7240-RT-091105-05"))
2466 $(eval
$(call SingleProfile
,CameoAP123_4M
,64kraw
,DIR615I1
,dir-615-i1
,DIR-615-I1
,ttyS0
,115200,"00DB120AR9341-RT-1012I1-00"))
2467 $(eval
$(call SingleProfile
,CameoAP123_4M
,64kraw
,DIR615I3
,dir-615-i3
,DIR-615-I1
,ttyS0
,115200,"00DB120AR9341-RT-101214-00"))
2469 $(eval
$(call SingleProfile
,CameoAP81
,64kraw-nojffs
,A02RBW300N
,a02-rb-w300n
,TEW-632BRP
,ttyS0
,115200,"AP81-AR9130-RT-070614-03"))
2470 $(eval
$(call SingleProfile
,CameoAP81
,64kraw-nojffs
,DIR615C1
,dir-615-c1
,DIR-615-C1
,ttyS0
,115200,"AP81-AR9130-RT-070614-02"))
2471 $(eval
$(call SingleProfile
,CameoAP81
,64kraw-nojffs
,TEW632BRP
,tew-632brp
,TEW-632BRP
,ttyS0
,115200,"AP81-AR9130-RT-070614-00"))
2472 $(eval
$(call SingleProfile
,CameoAP81
,64kraw-nojffs
,TEW652BRP_FW
,tew-652brp
,TEW-632BRP
,ttyS0
,115200,"AP81-AR9130-RT-080609-05"))
2473 $(eval
$(call SingleProfile
,CameoAP81
,64kraw-nojffs
,TEW652BRP_RECOVERY
,tew-652brp-recovery
,TEW-632BRP
,ttyS0
,115200,"AP81-AR9130-RT-070614-02"))
2475 $(eval
$(call SingleProfile
,CameoAP121
,64kraw-nojffs
,TEW712BR
,tew-712br
,TEW-712BR
,ttyATH0
,115200,"HORNET-RT-TEW712BR-3",1.99,""))
2476 $(eval
$(call SingleProfile
,CameoAP121
,64kraw-nojffs
,DIR601B1
,dir-601-b1
,TEW-712BR
,ttyATH0
,115200,"HORNET-RT-DIR601B1-3",2.99.99,"" "NA"))
2477 $(eval
$(call SingleProfile
,CameoAP121_8M
,64kraw-nojffs
,DIR505A1
,dir-505-a1
,DIR-505-A1
,ttyATH0
,115200,"HORNET-PACKET-DIR505A1-3",1.99.99,""))
2479 $(eval
$(call SingleProfile
,CameoAP135
,64kraw
,DGL5500A1
,dgl-5500-a1
,DGL-5500-A1
,ttyS0
,115200,$$(dgl_5500_mtdlayout
),"00AP135AR9558-RT-130508-00"))
2480 $(eval
$(call SingleProfile
,CameoAP135
,64kraw
,TEW823DRU
,tew-823dru
,TEW-823DRU
,ttyS0
,115200,$$(tew823dru_mtdlayout
) mem
=256M
,"00AP135AR9558-RT-131129-00"))
2482 $(eval
$(call SingleProfile
,CameoDB120
,64kraw
,DHP1565A1
,dhp-1565-a1
,DHP-1565-A1
,ttyS0
,115200,"00DB120AR9344-RT-101214-00"))
2483 $(eval
$(call SingleProfile
,CameoDB120
,64kraw
,DIR825C1
,dir-825-c1
,DIR-825-C1
,ttyS0
,115200,"00DB120AR9344-RT-101214-00"))
2484 $(eval
$(call SingleProfile
,CameoDB120
,64kraw
,DIR835A1
,dir-835-a1
,DIR-835-A1
,ttyS0
,115200,"00DB120AR9344-RT-101214-00"))
2486 $(eval
$(call SingleProfile
,CameoDB120_8M
,64kraw
,TEW732BR
,tew-732br
,TEW-732BR
,ttyS0
,115200,"00DB120AR9341-RT-120906-NA"))
2488 $(eval
$(call SingleProfile
,CyberTANGZIP
,64k
,WRT160NL
,wrt160nl
,WRT160NL
,ttyS0
,115200,,1.00.01))
2490 $(eval
$(call SingleProfile
,CyberTANLZMA
,64k
,MYNETREXT
,mynet-rext
,MYNET-REXT
,ttyS0
,115200,$$(mynet_rext_mtdlayout
) root
=31:2,1.00.01))
2492 $(eval
$(call SingleProfile
,CameoAP94
,64kraw
,DIR825B1
,dir-825-b1
,DIR-825-B1
,ttyS0
,115200,$$(cameo_ap94_mtdlayout
),$$(cameo_ap94_mtdlayout_fat
),01AP94-AR7161-RT-080619-00
,00AP94-AR7161-RT-080619-00
))
2493 $(eval
$(call SingleProfile
,CameoAP94
,64kraw
,TEW673GRU
,tew-673gru
,TEW-673GRU
,ttyS0
,115200,$$(cameo_ap94_mtdlayout
),$$(cameo_ap94_mtdlayout_fat
),01AP94-AR7161-RT-080619-01
,00AP94-AR7161-RT-080619-01
))
2494 $(eval
$(call SingleProfile
,CameoAP94
,64kraw
,DLRTDEV01
,dlrtdev01
,DIR-825-B1
,ttyS0
,115200,$$(dlrtdev_mtdlayout
),$$(dlrtdev_mtdlayout_fat
),01AP94-AR7161-RT-080619-00
,00AP94-AR7161-RT-080619-00
))
2496 $(eval
$(call SingleProfile
,dLANLzma
,64k
,dLAN_Hotspot
,dlan-hotspot
,dLAN-Hotspot
,ttyATH0
,115200,$$(dlan_hotspot_mtdlayout
) mem
=64M
,KRuImage
,65536))
2497 $(eval
$(call SingleProfile
,dLANLzma
,64k
,dLAN_pro_500_wp
,dlan-pro-500-wp
,dLAN-pro-500-wp
,ttyS0
,115200,$$(dlan_pro_500_wp_mtdlayout
) mem
=128M
,KRuImage
,65536))
2498 $(eval
$(call SingleProfile
,dLANLzma
,64k
,dLAN_pro_1200_ac
,dlan-pro-1200-ac
,dLAN-pro-1200-ac
,ttyS0
,115200,$$(dlan_pro_1200_ac_mtdlayout
) mem
=128M
,KRuImage
,65536))
2500 $(eval
$(call SingleProfile
,EnGenius
,64k
,ESR900
,esr900
,ESR900
,ttyS0
,115200,$$(esr900_mtdlayout
),KRuImage
,,0x4e))
2501 $(eval
$(call SingleProfile
,EnGenius
,64k
,ESR1750
,esr1750
,ESR1750
,ttyS0
,115200,$$(esr1750_mtdlayout
),KRuImage
,,0x61))
2502 $(eval
$(call SingleProfile
,EnGenius
,64k
,EPG5000
,epg5000
,EPG5000
,ttyS0
,115200,$$(epg5000_mtdlayout
),KRuImage
,,0x71))
2504 $(eval
$(call SingleProfile
,HiWiFi
,64k
,HIWIFI_HC6361
,hiwifi-hc6361
,HiWiFi-HC6361
,ttyATH0
,115200,$$(hiwifi_hc6361_mtdlayout
),KRuImage
))
2506 $(eval
$(call SingleProfile
,MyLoader
,64k
,WP543_2M
,wp543
,,ttyS0
,115200,0x200000,2M
))
2507 $(eval
$(call SingleProfile
,MyLoader
,64k
,WP543_4M
,wp543
,,ttyS0
,115200,0x400000,4M
))
2508 $(eval
$(call SingleProfile
,MyLoader
,64k
,WP543_8M
,wp543
,,ttyS0
,115200,0x800000,8M
))
2509 $(eval
$(call SingleProfile
,MyLoader
,64k
,WP543_16M
,wp543
,,ttyS0
,115200,0x1000000,16M
))
2510 $(eval
$(call SingleProfile
,MyLoader
,64k
,WPE72_4M
,wpe72
,,ttyS0
,115200,0x400000,4M
))
2511 $(eval
$(call SingleProfile
,MyLoader
,64k
,WPE72_8M
,wpe72
,,ttyS0
,115200,0x800000,8M
))
2512 $(eval
$(call SingleProfile
,MyLoader
,64k
,WPE72_16M
,wpe72
,,ttyS0
,115200,0x1000000,16M
))
2514 $(eval
$(call SingleProfile
,Netgear
,64kraw
,WNR2000V3
,wnr2000v3
,WNR2000V3
,ttyS0
,115200,$$(wnr2000v3_mtdlayout
),0x32303033,WNR2000V3
,"" NA
,-H
29763551+04+32))
2515 $(eval
$(call SingleProfile
,NetgearLzma
,64kraw
,WNR2000V4
,wnr2000v4
,WNR2000V4
,ttyS0
,115200,$$(wnr2000v4_mtdlayout
),0x32303034,WNR2000V4
,"" NA
,))
2516 $(eval
$(call SingleProfile
,Netgear
,64kraw
,WNR2200
,wnr2200
,WNR2200
,ttyS0
,115200,$$(wnr2200_mtdlayout
),0x32323030,wnr2200
,"" NA
,))
2517 $(eval
$(call SingleProfile
,Netgear
,64kraw
,REALWNR612V2
,wnr612v2
,WNR612V2
,ttyS0
,115200,$$(wnr2000v3_mtdlayout
),0x32303631,WNR612V2
,"",))
2518 $(eval
$(call SingleProfile
,Netgear
,64kraw
,N150R
,n150r
,WNR612V2
,ttyS0
,115200,$$(wnr2000v3_mtdlayout
),0x32303631,N150R
,"",))
2519 $(eval
$(call SingleProfile
,Netgear
,64kraw
,REALWNR1000V2
,wnr1000v2
,WNR1000V2
,ttyS0
,115200,$$(wnr2000v3_mtdlayout
),0x31303031,WNR1000V2
,"",))
2520 $(eval
$(call SingleProfile
,Netgear
,64kraw
,WNR1000V2_VC
,wnr1000v2-vc
,WNR1000V2
,ttyS0
,115200,$$(wnr2000v3_mtdlayout
),0x31303030,WNR1000V2-VC
,"",))
2521 $(eval
$(call SingleProfile
,Netgear
,64kraw
,WPN824N
,wpn824n
,WPN824N
,ttyS0
,115200,$$(wnr2000v3_mtdlayout
),0x31313030,WPN824N
,"" NA
,))
2523 $(eval
$(call SingleProfile
,OpenMesh
,squashfs-only
,OM2P
,om2p
,,,,OM2P
))
2524 $(eval
$(call SingleProfile
,OpenMesh
,squashfs-only
,OM5P
,om5p
,,,,OM5P
))
2525 $(eval
$(call SingleProfile
,OpenMesh
,squashfs-only
,OM5PAC
,om5pac
,,,,OM5PAC
))
2526 $(eval
$(call SingleProfile
,OpenMesh
,squashfs-only
,MR600
,mr600
,,,,MR600
))
2527 $(eval
$(call SingleProfile
,OpenMesh
,squashfs-only
,MR900
,mr900
,,,,MR900
))
2528 $(eval
$(call SingleProfile
,OpenMesh
,squashfs-only
,MR1750
,mr1750
,,,,MR1750
))
2530 $(eval
$(call SingleProfile
,PB4X
,128k
,ALL0305
,all0305
,ALL0305
,ttyS0
,115200))
2531 $(eval
$(call SingleProfile
,PB4X
,128k
,EAP7660D
,eap7660d
,EAP7660D
,ttyS0
,115200))
2532 $(eval
$(call SingleProfile
,PB4X
,64k
,JA76PF
,ja76pf
,JA76PF
,ttyS0
,115200))
2533 $(eval
$(call SingleProfile
,PB4X
,64k
,JA76PF2
,ja76pf2
,JA76PF2
,ttyS0
,115200))
2534 $(eval
$(call SingleProfile
,PB4X
,64k
,JWAP003
,jwap003
,JWAP003
,ttyS0
,115200))
2535 $(eval
$(call SingleProfile
,PB4X
,64k
,PB42
,pb42
,PB42
,ttyS0
,115200))
2536 $(eval
$(call SingleProfile
,PB4X
,64k
,PB44
,pb44
,PB44
,ttyS0
,115200))
2538 $(eval
$(call SingleProfile
,Planex
,64kraw
,MZKW04NU
,mzk-w04nu
,MZK-W04NU
,ttyS0
,115200))
2539 $(eval
$(call SingleProfile
,Planex
,64kraw
,MZKW300NH
,mzk-w300nh
,MZK-W300NH
,ttyS0
,115200))
2541 $(eval
$(call SingleProfile
,Seama
,64k
,MYNETN600
,mynet-n600
,MYNET-N600
,ttyS0
,115200,$$(mynet_n600_mtdlayout
),wrgnd16_wd_db600
,65536,16187392))
2542 $(eval
$(call SingleProfile
,Seama
,64k
,MYNETN750
,mynet-n750
,MYNET-N750
,ttyS0
,115200,$$(mynet_n600_mtdlayout
),wrgnd13_wd_av
,65536,16187392))
2544 $(eval
$(call SingleProfile
,Seama
,64k
,QIHOO360
,qihoo-c301
,QIHOO-C301
,ttyS0
,115200,$$(qihoo_c301_mtdlayout
),wrgac26_qihoo360_360rg
,65536,16121856))
2546 $(eval
$(call SingleProfile
,Senao
,squashfs-only
,EAP300V2
,eap300v2
,EAP300V2
,ttyS0
,115200,$$(eap300v2_mtdlayout
)))
2548 $(eval
$(call SingleProfile
,WHRHPG300N
,64kraw
,WHRG301N
,whr-g301n
,WHR-G301N
,ttyS0
,115200,$$(whrhpg300n_mtdlayout
),WHR-G301N
))
2549 $(eval
$(call SingleProfile
,WHRHPG300N
,64kraw
,WHRHPG300N
,whr-hp-g300n
,WHR-HP-G300N
,ttyS0
,115200,$$(whrhpg300n_mtdlayout
),WHR-HP-G300N
))
2550 $(eval
$(call SingleProfile
,WHRHPG300N
,64kraw
,WHRHPGN
,whr-hp-gn
,WHR-HP-GN
,ttyS0
,115200,$$(whrhpg300n_mtdlayout
),WHR-HP-GN
))
2551 $(eval
$(call SingleProfile
,WHRHPG300N
,64kraw
,WLAEAG300N
,wlae-ag300n
,WLAE-AG300N
,ttyS0
,115200,$$(whrhpg300n_mtdlayout
),WLAE-AG300N
))
2553 $(eval
$(call SingleProfile
,WRT400N
,64k
,WRT400N
,wrt400n
,WRT400N
,ttyS0
,115200))
2555 $(eval
$(call SingleProfile
,WZRHP128K
,128kraw
,WZRHPG300NH
,wzr-hp-g300nh
,WZR-HP-G300NH
,ttyS0
,115200,WZR-HP-G300NH
))
2556 $(eval
$(call SingleProfile
,WZRHP64K
,64kraw
,WZRHPG300NH2
,wzr-hp-g300nh2
,WZR-HP-G300NH2
,ttyS0
,115200,WZR-HP-G300NH2
))
2557 $(eval
$(call SingleProfile
,WZRHP64K
,64kraw
,WZRHPAG300H
,wzr-hp-ag300h
,WZR-HP-AG300H
,ttyS0
,115200,WZR-HP-AG300H
))
2558 $(eval
$(call SingleProfile
,WZRHP64K
,64kraw
,WZRHPG450H
,wzr-hp-g450h
,WZR-HP-G450H
,ttyS0
,115200,WZR-HP-AG450H
))
2559 $(eval
$(call SingleProfile
,WZRHP64K
,64kraw
,WZR600DHP
,wzr-600dhp
,WZR-HP-AG300H
,ttyS0
,115200,WZR-600DHP
))
2560 $(eval
$(call SingleProfile
,WZRHP64K
,64kraw
,WZR450HP2
,wzr-450hp2
,WZR-450HP2
,ttyS0
,115200,WZR-450HP2
))
2562 $(eval
$(call SingleProfile
,Zcomax
,64k
,ZCN1523H28
,zcn-1523h-2-8
,ZCN-1523H-2
,ttyS0
,115200,$$(zcn1523h_mtdlayout
)))
2563 $(eval
$(call SingleProfile
,Zcomax
,64k
,ZCN1523H516
,zcn-1523h-5-16
,ZCN-1523H-5
,ttyS0
,115200,$$(zcn1523h_mtdlayout
)))
2565 $(eval
$(call SingleProfile
,ZyXEL
,64k
,NBG_460N_550N_550NH
,nbg460n_550n_550nh
,NBG460N
,ttyS0
,115200,NBG-460N
))
2567 $(eval
$(call MultiProfile
,AP121
,AP121_2M AP121_4M AP121_8M AP121_16M
))
2568 $(eval
$(call MultiProfile
,AP136
,AP136_010 AP136_020
))
2569 $(eval
$(call MultiProfile
,AP143
,AP143_8M AP143_16M
))
2570 $(eval
$(call MultiProfile
,AP147
,AP147_010
))
2571 $(eval
$(call MultiProfile
,AP152
,AP152_16M
))
2572 $(eval
$(call MultiProfile
,DIR615IX
,DIR615I1 DIR615I3
))
2573 $(eval
$(call MultiProfile
,EWDORIN
, EWDORINAP EWDORINRT EWDORIN16M
))
2574 $(eval
$(call MultiProfile
,OPENMESH
,OM2P OM5P OM5PAC MR600 MR900 MR1750
))
2575 $(eval
$(call MultiProfile
,TEW652BRP
,TEW652BRP_FW TEW652BRP_RECOVERY
))
2576 $(eval
$(call MultiProfile
,TUBE2H
,TUBE2H8M TUBE2H16M
))
2577 $(eval
$(call MultiProfile
,WNR612V2
,REALWNR612V2 N150R
))
2578 $(eval
$(call MultiProfile
,WNR1000V2
,REALWNR1000V2 WNR1000V2_VC
))
2579 $(eval
$(call MultiProfile
,WP543
,WP543_2M WP543_4M WP543_8M WP543_16M
))
2580 $(eval
$(call MultiProfile
,WPE72
,WPE72_4M WPE72_8M WPE72_16M
))
2581 $(eval
$(call MultiProfile
,WPJ342
,WPJ342_16M
))
2582 $(eval
$(call MultiProfile
,WPJ344
,WPJ344_16M
))
2583 $(eval
$(call MultiProfile
,WPJ531
,WPJ531_16M
))
2584 $(eval
$(call MultiProfile
,WPJ558
,WPJ558_16M
))
2585 $(eval
$(call MultiProfile
,Yun
,YUN_16M YUN_8M
))
2587 $(eval
$(call MultiProfile
,Minimal
,$(SINGLE_PROFILES
)))
2588 $(eval
$(call MultiProfile
,Madwifi
,EAP7660D WP543
))
2589 endif # ifeq ($(SUBTARGET),generic)
2591 ifeq ($(SUBTARGET
),nand
)
2596 CONSOLE
= ttyS0
,115200
2597 MTDPARTS
= ar934x-nfc
:512k
(nandloader
)ro
,8M
(kernel
),8M
(recovery
),113664k
(ubi
),128k@
130944k
(odm-caldata
)ro
2598 IMAGES
:= sysupgrade.
tar
2599 KERNEL
:= kernel-bin | patch-cmdline | MerakiNAND
2600 KERNEL_INITRAMFS
:= kernel-bin | patch-cmdline | MerakiNAND
2601 IMAGE
/sysupgrade.
tar := sysupgrade-nand
2603 TARGET_DEVICES
+= mr18
2605 $(eval
$(call SingleProfile
,NetgearNAND
,64k
,WNDR3700V4
,wndr3700v4
,WNDR3700_V4
,ttyS0
,115200,$$(wndr4300_mtdlayout
),0x33373033,WNDR3700v4
,"",-H
29763948+128+128,wndr4300
))
2606 $(eval
$(call SingleProfile
,NetgearNAND
,64k
,WNDR4300V1
,wndr4300
,WNDR4300
,ttyS0
,115200,$$(wndr4300_mtdlayout
),0x33373033,WNDR4300
,"",-H
29763948+0+128+128+2x2
+3x3
,wndr4300
))
2607 $(eval
$(call SingleProfile
,NetgearNAND
,64k
,R6100
,r6100
,R6100
,ttyS0
,115200,$$(r6100_mtdlayout
),0x36303030,R6100
,"",-H
29764434+0+128+128+2x2
+2x2
,wndr4300
))
2609 $(eval
$(call SingleProfile
,ZyXELNAND
,128k
,NBG6716
,nbg6716
,NBG6716
,ttyS0
,115200,NBG6716
,$$(zyx_nbg6716_mtdlayout
),mem
=256M
))
2611 $(eval
$(call MultiProfile
,WNDR4300
,WNDR3700V4 WNDR4300V1
))
2612 endif # ifeq ($(SUBTARGET),nand)
2615 $(eval
$(call MultiProfile
,Default
,$(SINGLE_PROFILES
)))
2617 define Image
/Build
/squashfs
2618 cp
$(KDIR
)/root.squashfs
$(KDIR
)/root.squashfs-raw
2619 cp
$(KDIR
)/root.squashfs
$(KDIR
)/root.squashfs-64k
2620 $(STAGING_DIR_HOST
)/bin
/padjffs2
$(KDIR
)/root.squashfs-64k
64
2621 cp
$(KDIR
)/root.squashfs-64k
$(BIN_DIR
)/$(IMG_PREFIX
)-root.squashfs-64k
2622 $(call prepare_generic_squashfs
,$(KDIR
)/root.squashfs
)
2623 dd if
=$(KDIR
)/root.
$(1) of
=$(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1) bs
=128k conv
=sync
2626 define Image
/Build
/jffs2
2627 dd if
=$(KDIR
)/root.
$(1) of
=$(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1) bs
=128k conv
=sync
2630 define Image
/Build
/Initramfs
2631 $(call Image
/Build
/Profile
/$(IMAGE_PROFILE
),initramfs
)
2634 define Image
/Prepare
2635 gzip
-9n
-c
$(KDIR
)/vmlinux
> $(KDIR
)/vmlinux.bin.gz
2636 $(call CompressLzma
,$(KDIR
)/vmlinux
,$(KDIR
)/vmlinux.bin.lzma
)
2637 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS
),)
2638 gzip
-9n
-c
$(KDIR
)/vmlinux-initramfs
> $(KDIR
)/vmlinux-initramfs.bin.gz
2639 $(call CompressLzma
,$(KDIR
)/vmlinux-initramfs
,$(KDIR
)/vmlinux-initramfs.bin.lzma
)
2640 $(call Image
/BuildLoader
,generic
,elf
,,,-initramfs
)
2642 $(call Image
/BuildLoader
,generic
,elf
)
2643 $(call Image
/Build
/Profile
/$(if
$(CONFIG_IB
),Default
,$(IMAGE_PROFILE
)),loader
)
2646 # $(1): filesystem type.
2648 $(call Image
/Build
/$(call rootfs_type
,$(1)),$(1))
2649 $(call Image
/Build
/Profile
/$(IMAGE_PROFILE
),$(1))
2652 $(eval
$(call BuildImage
))