1
0

nand.mk 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. define Device/c-60
  2. DEVICE_TITLE := AirTight C-60
  3. DEVICE_PACKAGES := kmod-spi-gpio kmod-usb-core kmod-usb2 kmod-ath9k
  4. BOARDNAME = C-60
  5. BLOCKSIZE := 64k
  6. KERNEL_SIZE = 3648k
  7. IMAGE_SIZE = 32m
  8. IMAGES := sysupgrade.tar
  9. MTDPARTS = spi0.0:256k(u-boot)ro,128k(u-boot-env)ro,3648k(kernel),64k(art)ro;ar934x-nfc:32m(ubi)
  10. KERNEL := kernel-bin | patch-cmdline | lzma | uImage lzma
  11. IMAGE/sysupgrade.tar := sysupgrade-tar
  12. endef
  13. TARGET_DEVICES += c-60
  14. define Build/MerakiNAND
  15. -$(STAGING_DIR_HOST)/bin/mkmerakifw \
  16. -B $(BOARDNAME) -s \
  17. -i $@ \
  18. -o $@.new
  19. @mv $@.new $@
  20. endef
  21. define Device/mr18
  22. DEVICE_TITLE := Meraki MR18
  23. DEVICE_PACKAGES := kmod-spi-gpio kmod-ath9k
  24. BOARDNAME = MR18
  25. BLOCKSIZE := 64k
  26. CONSOLE = ttyS0,115200
  27. MTDPARTS = ar934x-nfc:512k(nandloader)ro,8M(kernel),8M(recovery),113664k(ubi),128k@130944k(odm-caldata)ro
  28. IMAGES := sysupgrade.tar
  29. KERNEL := kernel-bin | patch-cmdline | MerakiNAND
  30. KERNEL_INITRAMFS := kernel-bin | patch-cmdline | MerakiNAND
  31. IMAGE/sysupgrade.tar := sysupgrade-tar
  32. endef
  33. TARGET_DEVICES += mr18
  34. define Build/MerakiNAND-old
  35. -$(STAGING_DIR_HOST)/bin/mkmerakifw-old \
  36. -B $(BOARDNAME) -s \
  37. -i $@ \
  38. -o $@.new
  39. @mv $@.new $@
  40. endef
  41. define Device/z1
  42. DEVICE_TITLE := Meraki Z1
  43. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-spi-gpio kmod-ath9k kmod-owl-loader
  44. BOARDNAME = Z1
  45. BLOCKSIZE := 64k
  46. CONSOLE = ttyS0,115200
  47. MTDPARTS = ar934x-nfc:128K(loader1)ro,8064K(kernel),128K(loader2)ro,8064K(recovery),114560K(ubi),128K(origcaldata)ro
  48. IMAGES := sysupgrade.tar
  49. KERNEL := kernel-bin | patch-cmdline | MerakiNAND-old
  50. KERNEL_INITRAMFS := kernel-bin | patch-cmdline | MerakiNAND-old
  51. IMAGE/sysupgrade.tar := sysupgrade-tar
  52. endef
  53. TARGET_DEVICES += z1
  54. define LegacyDevice/WNDR3700V4
  55. DEVICE_TITLE := NETGEAR WNDR3700v4
  56. DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport
  57. endef
  58. LEGACY_DEVICES += WNDR3700V4
  59. define LegacyDevice/WNDR4300V1
  60. DEVICE_TITLE := NETGEAR WNDR4300v1
  61. DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport
  62. endef
  63. LEGACY_DEVICES += WNDR4300V1