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