ramips: add support for Buffalo WCR-1166DS
[openwrt/openwrt.git] / target / linux / ramips / image / rt3883.mk
1 #
2 # RT3662/RT3883 Profiles
3 #
4 define Build/mkrtn56uimg
5 $(STAGING_DIR_HOST)/bin/mkrtn56uimg $(1) $@
6 endef
7
8 define Device/br-6475nd
9 DTS := BR-6475ND
10 BLOCKSIZE := 64k
11 IMAGE_SIZE := 7744k
12 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | \
13 edimax-header -s CSYS -m RN54 -f 0x70000 -S 0x01100000 | pad-rootfs | \
14 append-metadata | check-size $$$$(IMAGE_SIZE)
15 DEVICE_TITLE := Edimax BR-6475nD
16 DEVICE_PACKAGES := swconfig
17 endef
18 TARGET_DEVICES += br-6475nd
19
20 define Device/cy-swr1100
21 DTS := CY-SWR1100
22 BLOCKSIZE := 64k
23 KERNEL := $(KERNEL_DTB)
24 IMAGES += factory.bin
25 IMAGE/sysupgrade.bin := \
26 append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs | \
27 seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \
28 pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
29 IMAGE/factory.bin := \
30 append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
31 append-rootfs | pad-rootfs -x 64 | \
32 seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \
33 seama-seal -m "signature=wrgnd10_samsung_ss815" | \
34 check-size $$$$(IMAGE_SIZE)
35 DEVICE_TITLE := Samsung CY-SWR1100
36 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 swconfig
37 endef
38 TARGET_DEVICES += cy-swr1100
39
40
41 define Device/dir-645
42 DTS := DIR-645
43 BLOCKSIZE := 4k
44 KERNEL := $(KERNEL_DTB)
45 IMAGES += factory.bin
46 IMAGE/sysupgrade.bin := \
47 append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs | \
48 seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \
49 pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
50 IMAGE/factory.bin := \
51 append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
52 append-rootfs | pad-rootfs -x 64 | \
53 seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \
54 seama-seal -m "signature=wrgn39_dlob.hans_dir645" | \
55 check-size $$$$(IMAGE_SIZE)
56 DEVICE_TITLE := D-Link DIR-645
57 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 swconfig
58 endef
59 TARGET_DEVICES += dir-645
60
61
62 define Device/hpm
63 DTS := HPM
64 BLOCKSIZE := 64k
65 IMAGE_SIZE := 16064k
66 DEVICE_TITLE := Omnima HPM
67 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2
68 endef
69 TARGET_DEVICES += hpm
70
71
72 define Device/rt-n56u
73 DTS := RT-N56U
74 BLOCKSIZE := 64k
75 IMAGES += factory.bin
76 IMAGE/sysupgrade.bin += | mkrtn56uimg -s
77 IMAGE/factory.bin := $$(sysupgrade_bin) | \
78 check-size $$$$(IMAGE_SIZE) | mkrtn56uimg -f
79 DEVICE_TITLE := Asus RT-N56U
80 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 swconfig
81 endef
82 TARGET_DEVICES += rt-n56u
83
84
85 define Device/tew-691gr
86 DTS := TEW-691GR
87 BLOCKSIZE := 64k
88 IMAGES += factory.bin
89 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
90 umedia-header 0x026910
91 DEVICE_TITLE := TRENDnet TEW-691GR
92 DEVICE_PACKAGES := swconfig
93 endef
94 TARGET_DEVICES += tew-691gr
95
96
97 define Device/tew-692gr
98 DTS := TEW-692GR
99 BLOCKSIZE := 64k
100 IMAGES += factory.bin
101 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
102 umedia-header 0x026920
103 DEVICE_TITLE := TRENDnet TEW-692GR
104 DEVICE_PACKAGES := swconfig
105 endef
106 TARGET_DEVICES += tew-692gr
107
108
109 define Device/wlr-6000
110 DTS := WLR-6000
111 BLOCKSIZE := 4k
112 IMAGE_SIZE := 7244k
113 IMAGES += factory.dlf
114 IMAGE/factory.dlf := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
115 senao-header -r 0x0202 -p 0x41 -t 2
116 DEVICE_TITLE := Sitecom WLR-6000
117 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 swconfig
118 endef
119 TARGET_DEVICES += wlr-6000