ar71xx: image: seama: fix making factory and sysupgrade image
[openwrt/staging/lynxis/omap.git] / target / linux / ar71xx / image / generic.mk
1 define Device/bsb
2 DEVICE_TITLE := Smart Electronics Black Swift board
3 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
4 BOARDNAME = BSB
5 IMAGE_SIZE = 16000k
6 CONSOLE = ttyATH0,115200
7 MTDPARTS = spi0.0:128k(u-boot)ro,64k(u-boot-env)ro,16128k(firmware),64k(art)ro
8 endef
9 TARGET_DEVICES += bsb
10
11 define Device/carambola2
12 DEVICE_TITLE := Carambola2 board from 8Devices
13 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
14 BOARDNAME = CARAMBOLA2
15 IMAGE_SIZE = 16000k
16 CONSOLE = ttyATH0,115200
17 MTDPARTS = spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro
18 endef
19 TARGET_DEVICES += carambola2
20
21 define Device/cf-e316n-v2
22 DEVICE_TITLE := COMFAST CF-E316N v2
23 BOARDNAME = CF-E316N-V2
24 IMAGE_SIZE = 16192k
25 CONSOLE = ttyS0,115200
26 MTDPARTS = spi0.0:64k(u-boot)ro,64k(art)ro,16192k(firmware),64k(nvram)ro
27 endef
28 TARGET_DEVICES += cf-e316n-v2
29
30 define Device/weio
31 DEVICE_TITLE := WeIO
32 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
33 BOARDNAME = WEIO
34 IMAGE_SIZE = 16000k
35 CONSOLE = ttyATH0,115200
36 MTDPARTS = spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro
37 endef
38 TARGET_DEVICES += weio
39
40 define Device/gl-ar150
41 DEVICE_TITLE := GL AR150
42 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
43 BOARDNAME = GL-AR150
44 IMAGE_SIZE = 16000k
45 CONSOLE = ttyATH0,115200
46 MTDPARTS = spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro
47 endef
48 TARGET_DEVICES += gl-ar150
49
50 define Device/gl-ar300
51 DEVICE_TITLE := GL AR300
52 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
53 BOARDNAME = GL-AR300
54 IMAGE_SIZE = 16000k
55 CONSOLE = ttyS0,115200
56 MTDPARTS = spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro
57 endef
58 TARGET_DEVICES += gl-ar300
59
60 define Device/gl-domino
61 DEVICE_TITLE := GL Domino Pi
62 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
63 BOARDNAME = DOMINO
64 IMAGE_SIZE = 16000k
65 CONSOLE = ttyATH0,115200
66 MTDPARTS = spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro
67 endef
68 TARGET_DEVICES += gl-domino
69
70 define Device/wndr3700
71 DEVICE_TITLE := NETGEAR WNDR3700
72 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-ledtrig-usbdev kmod-leds-wndr3700-usb
73 BOARDNAME = WNDR3700
74 NETGEAR_KERNEL_MAGIC = 0x33373030
75 NETGEAR_BOARD_ID = WNDR3700
76 IMAGE_SIZE = 7680k
77 MTDPARTS = spi0.0:320k(u-boot)ro,128k(u-boot-env)ro,7680k(firmware),64k(art)ro
78 IMAGES := sysupgrade.bin factory.img factory-NA.img
79 KERNEL := kernel-bin | patch-cmdline | lzma -d20 | netgear-uImage lzma
80 IMAGE/default = append-kernel $$$$(BLOCKSIZE) | netgear-squashfs | append-rootfs | pad-rootfs
81 IMAGE/sysupgrade.bin = $$(IMAGE/default) | check-size $$$$(IMAGE_SIZE)
82 IMAGE/factory.img = $$(IMAGE/default) | netgear-dni | check-size $$$$(IMAGE_SIZE)
83 IMAGE/factory-NA.img = $$(IMAGE/default) | netgear-dni NA | check-size $$$$(IMAGE_SIZE)
84 endef
85
86 define Device/wndr3700v2
87 $(Device/wndr3700)
88 DEVICE_TITLE := NETGEAR WNDR3700 v2
89 NETGEAR_BOARD_ID = WNDR3700v2
90 NETGEAR_KERNEL_MAGIC = 0x33373031
91 NETGEAR_HW_ID = 29763654+16+64
92 IMAGE_SIZE = 15872k
93 MTDPARTS = spi0.0:320k(u-boot)ro,128k(u-boot-env)ro,15872k(firmware),64k(art)ro
94 IMAGES := sysupgrade.bin factory.img
95 endef
96
97 define Device/wndr3800
98 $(Device/wndr3700v2)
99 DEVICE_TITLE := NETGEAR WNDR3800
100 NETGEAR_BOARD_ID = WNDR3800
101 NETGEAR_HW_ID = 29763654+16+128
102 endef
103
104 define Device/wndr3800ch
105 $(Device/wndr3800)
106 DEVICE_TITLE := NETGEAR WNDR3800 (Ch)
107 NETGEAR_BOARD_ID = WNDR3800CH
108 endef
109
110 define Device/wndrmac
111 $(Device/wndr3700v2)
112 DEVICE_TITLE := NETGEAR WNDRMAC
113 NETGEAR_BOARD_ID = WNDRMAC
114 endef
115
116 define Device/wndrmacv2
117 $(Device/wndr3800)
118 DEVICE_TITLE := NETGEAR WNDRMAC v2
119 NETGEAR_BOARD_ID = WNDRMACv2
120 endef
121
122 TARGET_DEVICES += wndr3700 wndr3700v2 wndr3800 wndr3800ch wndrmac wndrmacv2
123
124 define Device/cap324
125 DEVICE_TITLE := PowerCloud CAP324 Cloud AP
126 DEVICE_PACKAGES := uboot-envtools
127 BOARDNAME := CAP324
128 DEVICE_PROFILE := CAP324
129 IMAGE_SIZE = 15296k
130 MTDPARTS = spi0.0:256k(u-boot),64k(u-boot-env)ro,15296k(firmware),640k(certs),64k(nvram),64k(art)
131 endef
132
133 TARGET_DEVICES += cap324
134
135 define Device/cap324-nocloud
136 DEVICE_TITLE := PowerCloud CAP324 Cloud AP
137 DEVICE_PACKAGES := uboot-envtools
138 BOARDNAME := CAP324
139 DEVICE_PROFILE := CAP324
140 IMAGE_SIZE = 16000k
141 MTDPARTS = spi0.0:256k(u-boot),64k(u-boot-env)ro,16000k(firmware),64k(art)
142 endef
143
144 TARGET_DEVICES += cap324-nocloud
145
146 define Device/cr3000
147 DEVICE_TITLE := PowerCloud CR3000 Cloud Router
148 DEVICE_PACKAGES := uboot-envtools
149 BOARDNAME := CR3000
150 DEVICE_PROFILE := CR3000
151 IMAGE_SIZE = 7104k
152 MTDPARTS = spi0.0:256k(u-boot),64k(u-boot-env)ro,7104k(firmware),640k(certs),64k(nvram),64k(art)
153 endef
154
155 TARGET_DEVICES += cr3000
156
157 define Device/cr3000-nocloud
158 DEVICE_TITLE := PowerCloud CR3000 (No-Cloud)
159 DEVICE_PACKAGES := uboot-envtools
160 BOARDNAME := CR3000
161 DEVICE_PROFILE := CR3000
162 IMAGE_SIZE = 7808k
163 MTDPARTS = spi0.0:256k(u-boot),64k(u-boot-env)ro,7808k(firmware),64k(art)
164 endef
165
166 TARGET_DEVICES += cr3000-nocloud
167
168 define Device/cr5000
169 DEVICE_TITLE := PowerCloud CR5000 Cloud Router
170 DEVICE_PACKAGES := uboot-envtools kmod-usb2 kmod-usb-ohci kmod-ledtrig-usbdev kmod-usb-core
171 BOARDNAME := CR5000
172 DEVICE_PROFILE := CR5000
173 IMAGE_SIZE = 7104k
174 MTDPARTS = spi0.0:256k(u-boot),64k(u-boot-env)ro,7104k(firmware),640k(certs),64k(nvram),64k(art)
175 endef
176
177 TARGET_DEVICES += cr5000
178
179 define Device/cr5000-nocloud
180 DEVICE_TITLE := PowerCloud CR5000 (No-Cloud)
181 DEVICE_PACKAGES := uboot-envtools kmod-usb2 kmod-usb-ohci kmod-ledtrig-usbdev kmod-usb-core
182 BOARDNAME := CR5000
183 DEVICE_PROFILE := CR5000
184 IMAGE_SIZE = 7808k
185 MTDPARTS = spi0.0:256k(u-boot),64k(u-boot-env)ro,7808k(firmware),64k(art)
186 endef
187
188 TARGET_DEVICES += cr5000-nocloud
189
190 define Device/antminer-s1
191 $(Device/tplink-8mlzma)
192 DEVICE_TITLE := Antminer-S1
193 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-crypto-manager kmod-i2c-gpio-custom kmod-usb-hid
194 BOARDNAME := ANTMINER-S1
195 DEVICE_PROFILE := ANTMINERS1
196 TPLINK_HWID := 0x04440101
197 CONSOLE := ttyATH0,115200
198 endef
199
200 define Device/antminer-s3
201 $(Device/tplink-8mlzma)
202 DEVICE_TITLE := Antminer-S3
203 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-crypto-manager kmod-i2c-gpio-custom kmod-usb-hid
204 BOARDNAME := ANTMINER-S3
205 DEVICE_PROFILE := ANTMINERS3
206 TPLINK_HWID := 0x04440301
207 CONSOLE := ttyATH0,115200
208 endef
209
210 define Device/antrouter-r1
211 $(Device/tplink-8mlzma)
212 DEVICE_TITLE := Antrouter-R1
213 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
214 BOARDNAME := ANTROUTER-R1
215 DEVICE_PROFILE := ANTROUTERR1
216 TPLINK_HWID := 0x44440101
217 CONSOLE := ttyATH0,115200
218 endef
219
220 define Device/el-m150
221 $(Device/tplink-8mlzma)
222 DEVICE_TITLE := EasyLink EL-M150
223 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
224 BOARDNAME := EL-M150
225 DEVICE_PROFILE := ELM150
226 TPLINK_HWID := 0x01500101
227 CONSOLE := ttyATH0,115200
228 endef
229
230 define Device/el-mini
231 $(Device/tplink-8mlzma)
232 DEVICE_TITLE := EasyLink EL-MINI
233 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
234 BOARDNAME := EL-MINI
235 DEVICE_PROFILE := ELMINI
236 TPLINK_HWID := 0x01530001
237 CONSOLE := ttyATH0,115200
238 endef
239 TARGET_DEVICES += antminer-s1 antminer-s3 antrouter-r1 el-m150 el-mini
240
241 define Device/gl-inet-6408A-v1
242 $(Device/tplink-8mlzma)
243 DEVICE_TITLE := GL.iNet 6408
244 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
245 BOARDNAME := GL-INET
246 DEVICE_PROFILE := GLINET
247 TPLINK_HWID := 0x08000001
248 CONSOLE := ttyATH0,115200
249 endef
250
251 define Device/gl-inet-6416A-v1
252 $(Device/tplink-16mlzma)
253 DEVICE_TITLE := GL.iNet 6416
254 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
255 BOARDNAME := GL-INET
256 DEVICE_PROFILE := GLINET
257 TPLINK_HWID := 0x08000001
258 CONSOLE := ttyATH0,115200
259 endef
260 TARGET_DEVICES += gl-inet-6408A-v1 gl-inet-6416A-v1
261
262 define Device/rnx-n360rt
263 $(Device/tplink-4m)
264 DEVICE_TITLE := Rosewill RNX-N360RT
265 BOARDNAME := TL-WR941ND
266 DEVICE_PROFILE := RNXN360RT
267 TPLINK_HWID := 0x09410002
268 TPLINK_HWREV := 0x00420001
269 endef
270 TARGET_DEVICES += rnx-n360rt
271
272 define Device/mc-mac1200r
273 $(Device/tplink-8mlzma)
274 DEVICE_TITLE := MERCURY MAC1200R
275 DEVICE_PACKAGES := kmod-ath10k
276 BOARDNAME := MC-MAC1200R
277 DEVICE_PROFILE := MAC1200R
278 TPLINK_HWID := 0x12000001
279 endef
280 TARGET_DEVICES += mc-mac1200r
281
282 define Device/minibox-v1
283 $(Device/tplink-16mlzma)
284 DEVICE_TITLE := Gainstrong MiniBox V1.0
285 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ledtrig-usbdev
286 BOARDNAME := MINIBOX-V1
287 DEVICE_PROFILE := MINIBOXV1
288 TPLINK_HWID := 0x3C000201
289 CONSOLE := ttyATH0,115200
290 endef
291 TARGET_DEVICES += minibox-v1
292
293 define Device/omy-g1
294 $(Device/tplink-16mlzma)
295 DEVICE_TITLE := OMYlink OMY-G1
296 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
297 BOARDNAME := OMY-G1
298 DEVICE_PROFILE := OMYG1
299 TPLINK_HWID := 0x06660101
300 endef
301
302 define Device/omy-x1
303 $(Device/tplink-8mlzma)
304 DEVICE_TITLE := OMYlink OMY-X1
305 BOARDNAME := OMY-X1
306 DEVICE_PROFILE := OMYX1
307 TPLINK_HWID := 0x06660201
308 endef
309 TARGET_DEVICES += omy-g1 omy-x1
310
311 define Device/onion-omega
312 $(Device/tplink-16mlzma)
313 DEVICE_TITLE := Onion Omega
314 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage kmod-i2c-core kmod-i2c-gpio-custom kmod-spi-bitbang kmod-spi-dev kmod-spi-gpio kmod-spi-gpio-custom kmod-usb-serial
315 BOARDNAME := ONION-OMEGA
316 DEVICE_PROFILE := OMEGA
317 TPLINK_HWID := 0x04700001
318 CONSOLE := ttyATH0,115200
319 endef
320 TARGET_DEVICES += onion-omega
321
322 define Device/smart-300
323 $(Device/tplink-8mlzma)
324 DEVICE_TITLE := NC-LINK SMART-300
325 BOARDNAME := SMART-300
326 DEVICE_PROFILE := SMART-300
327 TPLINK_HWID := 0x93410001
328 endef
329 TARGET_DEVICES += smart-300
330
331 define Device/som9331
332 $(Device/tplink-8mlzma)
333 DEVICE_TITLE := OpenEmbed SOM9331
334 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage kmod-i2c-core kmod-i2c-gpio-custom kmod-spi-bitbang kmod-spi-dev kmod-spi-gpio kmod-spi-gpio-custom kmod-usb-serial
335 BOARDNAME := SOM9331
336 DEVICE_PROFILE := SOM9331
337 TPLINK_HWID := 0x04800054
338 CONSOLE := ttyATH0,115200
339 endef
340 TARGET_DEVICES += som9331
341
342 define Device/tellstick-znet-lite
343 $(Device/tplink-16mlzma)
344 DEVICE_TITLE := TellStick ZNet Lite
345 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-acm kmod-usb-serial kmod-usb-serial-pl2303
346 BOARDNAME := TELLSTICK-ZNET-LITE
347 DEVICE_PROFILE := TELLSTICKZNETLITE
348 TPLINK_HWID := 0x00726001
349 CONSOLE := ttyATH0,115200
350 endef
351 TARGET_DEVICES += tellstick-znet-lite
352
353 define Device/oolite
354 $(Device/tplink-16mlzma)
355 DEVICE_TITLE := Gainstrong OOLITE
356 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ledtrig-usbdev
357 BOARDNAME := GS-OOLITE
358 DEVICE_PROFILE := OOLITE
359 TPLINK_HWID := 0x3C000101
360 CONSOLE := ttyATH0,115200
361 endef
362 TARGET_DEVICES += oolite
363
364
365 define Device/NBG6616
366 DEVICE_TITLE := ZyXEL NBG6616
367 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ledtrig-usbdev kmod-usb-storage kmod-rtc-pcf8563 kmod-ath10k
368 BOARDNAME = NBG6616
369 KERNEL_SIZE = 2048k
370 IMAGE_SIZE = 15323k
371 MTDPARTS = spi0.0:192k(u-boot)ro,64k(env)ro,64k(RFdata)ro,384k(zyxel_rfsd),384k(romd),64k(header),2048k(kernel),13184k(rootfs),15232k@0x120000(firmware)
372 CMDLINE += mem=128M
373 IMAGES := sysupgrade.bin
374 KERNEL := kernel-bin | patch-cmdline | lzma | uImage lzma | jffs2 boot/vmlinux.lzma.uImage
375 IMAGE/sysupgrade.bin = append-kernel $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)
376 # We cannot currently build a factory image. It is the sysupgrade image
377 # prefixed with a header (which is actually written into the MTD device).
378 # The header is 2kiB and is filled with 0xff. The format seems to be:
379 # 2 bytes: 0x0000
380 # 2 bytes: checksum of the data partition (big endian)
381 # 4 bytes: length of the contained image file (big endian)
382 # 32 bytes: Firmware Version string (NUL terminated, 0xff padded)
383 # 2 bytes: 0x0000
384 # 2 bytes: checksum over the header partition (big endian)
385 # 32 bytes: Model (e.g. "NBG6616", NUL termiated, 0xff padded)
386 # rest: 0xff padding
387 #
388 # The checksums are calculated by adding up all bytes and if a 16bit
389 # overflow occurs, one is added and the sum is masked to 16 bit:
390 # csum = csum + databyte; if (csum > 0xffff) { csum += 1; csum &= 0xffff };
391 # Should the file have an odd number of bytes then the byte len-0x800 is
392 # used additionally.
393 # The checksum for the header is calcualted over the first 2048 bytes with
394 # the firmware checksum as the placeholder during calculation.
395 #
396 # The header is padded with 0xff to the erase block size of the device.
397 endef
398
399 TARGET_DEVICES += NBG6616
400
401 define Device/c-55
402 DEVICE_TITLE := AirTight Networks C-55
403 DEVICE_PACKAGES := kmod-ath9k
404 BOARDNAME = C-55
405 KERNEL_SIZE = 2048k
406 IMAGE_SIZE = 15872k
407 MTDPARTS = spi0.0:256k(u-boot)ro,128k(u-boot-env)ro,2048k(kernel),13824k(rootfs),13824k(opt)ro,2624k(failsafe)ro,64k(art)ro,15872k@0x60000(firmware)
408 IMAGE/sysupgrade.bin = append-kernel $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)
409 endef
410
411 TARGET_DEVICES += c-55
412
413
414 define Build/uImageHiWiFi
415 # Field ih_name needs to start with "tw150v1"
416 mkimage -A $(LINUX_KARCH) \
417 -O linux -T kernel \
418 -C $(1) -a $(KERNEL_LOADADDR) -e $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \
419 -n 'tw150v1 $(call toupper,$(LINUX_KARCH)) LEDE Linux-$(LINUX_VERSION)' -d $@ $@.new
420 @mv $@.new $@
421 endef
422
423 define Device/hiwifi-hc6361
424 DEVICE_TITLE := HiWiFi HC6361
425 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage \
426 kmod-fs-ext4 kmod-nls-iso8859-1 e2fsprogs
427 BOARDNAME := HiWiFi-HC6361
428 DEVICE_PROFILE := HIWIFI_HC6361
429 IMAGE_SIZE := 16128k
430 KERNEL := kernel-bin | patch-cmdline | lzma | uImageHiWiFi lzma
431 CONSOLE := ttyATH0,115200
432 MTDPARTS := spi0.0:64k(u-boot)ro,64k(bdinfo)ro,16128k(firmware),64k(backup)ro,64k(art)ro
433 endef
434 TARGET_DEVICES += hiwifi-hc6361
435
436
437 # The pre-filled 64 bytes consist of
438 # - 28 bytes seama_header
439 # - 36 bytes of META data (4-bytes aligned)
440 define Build/seama-factory
441 ( dd if=/dev/zero bs=64 count=1; cat $(word 1,$^) ) >$@.loader.tmp
442 ( dd if=$@.loader.tmp bs=64k conv=sync; dd if=$(word 2,$^) ) >$@.tmp.0
443 tail -c +65 $@.tmp.0 >$@.tmp.1
444 $(STAGING_DIR_HOST)/bin/seama \
445 -i $@.tmp.1 \
446 -m "dev=/dev/mtdblock/1" -m "type=firmware"
447 $(STAGING_DIR_HOST)/bin/seama \
448 -s $@ \
449 -m "signature=$(1)" \
450 -i $@.tmp.1.seama
451 rm -f $@.loader.tmp $@.tmp.*
452 endef
453
454 define Build/seama-sysupgrade
455 $(STAGING_DIR_HOST)/bin/seama \
456 -i $(word 1,$^) \
457 -m "dev=/dev/mtdblock/1" -m "type=firmware"
458 ( dd if=$(word 1,$^).seama bs=64k conv=sync; dd if=$(word 2,$^) ) >$@
459 rm -f $(word 1,$^).seama
460 endef
461
462 define Build/seama-initramfs
463 $(STAGING_DIR_HOST)/bin/seama \
464 -i $@ \
465 -m "dev=/dev/mtdblock/1" -m "type=firmware"
466 mv $@.seama $@
467 endef
468
469 define Build/seama-pad-rootfs
470 $(STAGING_DIR_HOST)/bin/padjffs2 $(word 2,$^) -c 64 >>$@
471 endef
472
473 define Device/seama
474 CONSOLE := ttyS0,115200
475 LOADER_TYPE := bin
476 KERNEL := kernel-bin | lzma | loader-kernel-cmdline | lzma
477 KERNEL_INITRAMFS := kernel-bin | patch-cmdline | lzma | seama-initramfs
478 KERNEL_INITRAMFS_SUFFIX = $$(KERNEL_SUFFIX).seama
479 IMAGES := sysupgrade.bin factory.bin
480 IMAGE/sysupgrade.bin := seama-sysupgrade $$$$(SEAMA_SIGNATURE) | seama-pad-rootfs | check-size $$$$(IMAGE_SIZE)
481 IMAGE/factory.bin := seama-factory $$$$(SEAMA_SIGNATURE) | seama-pad-rootfs | check-size $$$$(IMAGE_SIZE)
482 SEAMA_SIGNATURE :=
483 DEVICE_VARS += SEAMA_SIGNATURE
484 endef
485
486 define Device/mynet-n600
487 $(Device/seama)
488 DEVICE_TITLE := Western Digital My Net N600
489 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
490 BOARDNAME = MYNET-N600
491 IMAGE_SIZE = 15808k
492 MTDPARTS = spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,64k(devdata)ro,64k(devconf)ro,15872k(firmware),64k(radiocfg)ro
493 SEAMA_SIGNATURE := wrgnd16_wd_db600
494 endef
495
496 define Device/mynet-n750
497 $(Device/seama)
498 DEVICE_TITLE := Western Digital My Net N750
499 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
500 BOARDNAME = MYNET-N750
501 IMAGE_SIZE = 15808k
502 MTDPARTS = spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,64k(devdata)ro,64k(devconf)ro,15872k(firmware),64k(radiocfg)ro
503 SEAMA_SIGNATURE := wrgnd13_wd_av
504 endef
505
506 define Device/qihoo-c301
507 $(Device/seama)
508 DEVICE_TITLE := Qihoo C301
509 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ledtrig-usbdev kmod-ath10k
510 BOARDNAME = QIHOO-C301
511 IMAGE_SIZE = 15744k
512 MTDPARTS = mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env),64k(devdata),64k(devconf),15744k(firmware),64k(warm_start),64k(action_image_config),64k(radiocfg)ro;spi0.1:15360k(upgrade2),1024k(privatedata)
513 SEAMA_SIGNATURE := wrgac26_qihoo360_360rg
514 endef
515
516 TARGET_DEVICES += mynet-n600 mynet-n750 qihoo-c301