ramips: use rootfs splitter and new image build code for BR-6475ND
[openwrt/openwrt.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
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 | 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 | 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 := $$(IMAGE/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 := $$(IMAGE/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 BuildFirmware/RTN56U/squashfs
91 $(call BuildFirmware/Default8M/$(1),$(1),rt-n56u,RT-N56U)
92 -mkrtn56uimg -s $(call sysupname,$(1),rt-n56u)
93 -cp $(call sysupname,$(1),rt-n56u) $(call imgname,$(1),rt-n56u)-factory.bin
94 -mkrtn56uimg -f $(call imgname,$(1),rt-n56u)-factory.bin
95 endef
96
97 Image/Build/Profile/RTN56U=$(call BuildFirmware/RTN56U/$(1),$(1),rt-n56u,RT-N56U)
98
99
100 define LegacyDevice/RTN56U
101 BLOCKSIZE := 64k
102 DEVICE_TITLE := Asus RT-N56U
103 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 swconfig
104 endef
105 LEGACY_DEVICES += RTN56U