2 # RT3662/RT3883 Profiles
5 define Device
/tew-691gr
8 IMAGE
/factory.bin
:= $$(IMAGE
/sysupgrade.bin
) | umedia-header
0x026910
9 DEVICE_TITLE
:= TRENDnet TEW-691GR
10 DEVICE_PACKAGES
:= swconfig
12 TARGET_DEVICES
+= tew-691gr
15 define Device
/tew-692gr
18 IMAGE
/factory.bin
:= $$(IMAGE
/sysupgrade.bin
) | umedia-header
0x026920
19 DEVICE_TITLE
:= TRENDnet TEW-692GR
20 DEVICE_PACKAGES
:= swconfig
22 TARGET_DEVICES
+= tew-692gr
25 # $(1) = squashfs/initramfs
26 # $(2) = lowercase board name
32 # $(8) = flash address
33 # $(9) = start address
34 define BuildFirmware
/EdimaxCombined
/squashfs
35 $(call PatchKernelLzmaDtb
,$(2),$(3))
36 $(call MkImage
,lzma
,$(KDIR
)/vmlinux-
$(2).bin.lzma
,$(KDIR
)/vmlinux-
$(2).bin.uImage
)
37 if
[ `stat -c%s "$(KDIR)/vmlinux-$(2).bin.uImage"` -gt
`expr $(4) - 20` ]; then \
38 echo
"Warning: $(KDIR)/vmlinux-$(2).bin.uImage is too big" >&2; \
40 else if
[ `stat -c%s "$(KDIR)/root.$(1)"` -gt
$(5) ]; then \
41 echo
"Warning: $(KDIR)/root.$(1) is too big" >&2; \
44 ( dd if
=$(KDIR
)/vmlinux-
$(2).bin.uImage bs
=`expr $(4) - 20` conv
=sync
; dd if
=$(KDIR
)/root.
$(1) ) > $(KDIR
)/vmlinux-
$(2).bin.uImage.combined
; \
46 mkedimaximg
-i
"$(KDIR)/vmlinux-$(2).bin.uImage.combined" \
47 -o
$(call imgname
,$(1),$(2)).bin \
48 -s
$(6) -m
$(7) -f
$(8) -S
$(9)
51 define BuildFirmware
/RTN56U
/squashfs
52 $(call BuildFirmware
/Default8M
/$(1),$(1),rt-n56u
,RT-N56U
)
53 -mkrtn56uimg
-s
$(call sysupname
,$(1),rt-n56u
)
54 -cp
$(call sysupname
,$(1),rt-n56u
) $(call imgname
,$(1),rt-n56u
)-factory.bin
55 -mkrtn56uimg
-f
$(call imgname
,$(1),rt-n56u
)-factory.bin
59 Image
/Build
/Profile
/CYSWR1100
=$(call BuildFirmware
/Seama
/$(1),$(1),cy-swr1100
,CY-SWR1100
,wrgnd10_samsung_ss815
,$(ralink_default_fw_size_8M
))
60 Image
/Build
/Profile
/DIR645
=$(call BuildFirmware
/Seama
/$(1),$(1),dir-645
,DIR-645
,wrgn39_dlob.hans_dir645
,$(ralink_default_fw_size_8M
))
62 Image
/Build
/Profile
/HPM
=$(call BuildFirmware
/CustomFlash
/$(1),$(1),hpm
,HPM
,$(hpm_mtd_size
))
63 Image
/Build
/Profile
/RTN56U
=$(call BuildFirmware
/RTN56U
/$(1),$(1),rt-n56u
,RT-N56U
)
64 kernel_size_BR6475ND
:=2097152
65 rootfs_size_BR6475ND
:=5832704
66 Image
/Build
/Profile
/BR6475ND
=$(call BuildFirmware
/EdimaxCombined
/$(1),$(1),br-6475nd
,BR-6475ND
,$(kernel_size_BR6475ND
),$(rootfs_size_BR6475ND
),CSYS
,RN54
,0x70000,0x01100000)
69 define LegacyDevice
/CYSWR1100
70 DEVICE_TITLE
:= Samsung CY-SWR1100
71 DEVICE_PACKAGES
:= kmod-usb-core kmod-usb-ohci kmod-usb2 swconfig
73 LEGACY_DEVICES
+= CYSWR1100
76 define LegacyDevice
/DIR645
77 DEVICE_TITLE
:= D-Link DIR-645
78 DEVICE_PACKAGES
:= kmod-usb-core kmod-usb-ohci kmod-usb2 swconfig
80 LEGACY_DEVICES
+= DIR645
83 define LegacyDevice
/HPM
84 DEVICE_TITLE
:= Omnima HPM
85 DEVICE_PACKAGES
:= kmod-usb-core kmod-usb-ohci kmod-usb2
90 define LegacyDevice
/RTN56U
91 DEVICE_TITLE
:= Asus RT-N56U
92 DEVICE_PACKAGES
:= kmod-usb-core kmod-usb-ohci kmod-usb2 swconfig
94 LEGACY_DEVICES
+= RTN56U
97 define LegacyDevice
/BR6475ND
98 DEVICE_TITLE
:= Edimax BR-6475nD
99 DEVICE_PACKAGES
:= swconfig
101 LEGACY_DEVICES
+= BR6475ND