2 # RT3662/RT3883 Profiles
5 define Device
/cy-swr1100
8 KERNEL
:= $(KERNEL_DTB
)
10 IMAGE
/sysupgrade.bin
:= \
11 append-kernel | pad-offset
$$$$(BLOCKSIZE
) 64 | append-rootfs | \
12 seama
-m
"dev=/dev/mtdblock/2" -m
"type=firmware" | \
13 pad-rootfs | check-size
$$$$(IMAGE_SIZE
)
14 IMAGE
/factory.bin
:= \
15 append-kernel | pad-offset
$$$$(BLOCKSIZE
) 64 | \
16 append-rootfs | pad-rootfs
-x
64 | \
17 seama
-m
"dev=/dev/mtdblock/2" -m
"type=firmware" | \
18 seama-seal
-m
"signature=wrgnd10_samsung_ss815" | \
19 check-size
$$$$(IMAGE_SIZE
)
20 DEVICE_TITLE
:= Samsung CY-SWR1100
21 DEVICE_PACKAGES
:= kmod-usb-core kmod-usb-ohci kmod-usb2 swconfig
23 TARGET_DEVICES
+= cy-swr1100
29 KERNEL
:= $(KERNEL_DTB
)
31 IMAGE
/sysupgrade.bin
:= \
32 append-kernel | pad-offset
$$$$(BLOCKSIZE
) 64 | append-rootfs | \
33 seama
-m
"dev=/dev/mtdblock/2" -m
"type=firmware" | \
34 pad-rootfs | check-size
$$$$(IMAGE_SIZE
)
35 IMAGE
/factory.bin
:= \
36 append-kernel | pad-offset
$$$$(BLOCKSIZE
) 64 | \
37 append-rootfs | pad-rootfs
-x
64 | \
38 seama
-m
"dev=/dev/mtdblock/2" -m
"type=firmware" | \
39 seama-seal
-m
"signature=wrgn39_dlob.hans_dir645" | \
40 check-size
$$$$(IMAGE_SIZE
)
41 DEVICE_TITLE
:= D-Link DIR-645
42 DEVICE_PACKAGES
:= kmod-usb-core kmod-usb-ohci kmod-usb2 swconfig
44 TARGET_DEVICES
+= dir-645
51 DEVICE_TITLE
:= Omnima HPM
52 DEVICE_PACKAGES
:= kmod-usb-core kmod-usb-ohci kmod-usb2
57 define Device
/tew-691gr
61 IMAGE
/factory.bin
:= $$(IMAGE
/sysupgrade.bin
) | umedia-header
0x026910
62 DEVICE_TITLE
:= TRENDnet TEW-691GR
63 DEVICE_PACKAGES
:= swconfig
65 TARGET_DEVICES
+= tew-691gr
68 define Device
/tew-692gr
72 IMAGE
/factory.bin
:= $$(IMAGE
/sysupgrade.bin
) | umedia-header
0x026920
73 DEVICE_TITLE
:= TRENDnet TEW-692GR
74 DEVICE_PACKAGES
:= swconfig
76 TARGET_DEVICES
+= tew-692gr
79 # $(1) = squashfs/initramfs
80 # $(2) = lowercase board name
86 # $(8) = flash address
87 # $(9) = start address
88 define BuildFirmware
/EdimaxCombined
/squashfs
89 $(call PatchKernelLzmaDtb
,$(2),$(3))
90 $(call MkImage
,lzma
,$(KDIR
)/vmlinux-
$(2).bin.lzma
,$(KDIR
)/vmlinux-
$(2).bin.uImage
)
91 if
[ `stat -c%s "$(KDIR)/vmlinux-$(2).bin.uImage"` -gt
`expr $(4) - 20` ]; then \
92 echo
"Warning: $(KDIR)/vmlinux-$(2).bin.uImage is too big" >&2; \
94 else if
[ `stat -c%s "$(KDIR)/root.$(1)"` -gt
$(5) ]; then \
95 echo
"Warning: $(KDIR)/root.$(1) is too big" >&2; \
98 ( dd if
=$(KDIR
)/vmlinux-
$(2).bin.uImage bs
=`expr $(4) - 20` conv
=sync
; dd if
=$(KDIR
)/root.
$(1) ) > $(KDIR
)/vmlinux-
$(2).bin.uImage.combined
; \
100 mkedimaximg
-i
"$(KDIR)/vmlinux-$(2).bin.uImage.combined" \
101 -o
$(call imgname
,$(1),$(2)).bin \
102 -s
$(6) -m
$(7) -f
$(8) -S
$(9)
105 define BuildFirmware
/RTN56U
/squashfs
106 $(call BuildFirmware
/Default8M
/$(1),$(1),rt-n56u
,RT-N56U
)
107 -mkrtn56uimg
-s
$(call sysupname
,$(1),rt-n56u
)
108 -cp
$(call sysupname
,$(1),rt-n56u
) $(call imgname
,$(1),rt-n56u
)-factory.bin
109 -mkrtn56uimg
-f
$(call imgname
,$(1),rt-n56u
)-factory.bin
113 Image
/Build
/Profile
/RTN56U
=$(call BuildFirmware
/RTN56U
/$(1),$(1),rt-n56u
,RT-N56U
)
114 kernel_size_BR6475ND
:=2097152
115 rootfs_size_BR6475ND
:=5832704
116 Image
/Build
/Profile
/BR6475ND
=$(call BuildFirmware
/EdimaxCombined
/$(1),$(1),br-6475nd
,BR-6475ND
,$(kernel_size_BR6475ND
),$(rootfs_size_BR6475ND
),CSYS
,RN54
,0x70000,0x01100000)
119 define LegacyDevice
/RTN56U
121 DEVICE_TITLE
:= Asus RT-N56U
122 DEVICE_PACKAGES
:= kmod-usb-core kmod-usb-ohci kmod-usb2 swconfig
124 LEGACY_DEVICES
+= RTN56U
127 define LegacyDevice
/BR6475ND
129 DEVICE_TITLE
:= Edimax BR-6475nD
130 DEVICE_PACKAGES
:= swconfig
132 LEGACY_DEVICES
+= BR6475ND