nand.mk 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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 LegacyDevice/GL-AR300MD
  22. DEVICE_TITLE := GL-AR300M with nand flash
  23. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 uboot-envtools
  24. endef
  25. define LegacyDevice/TPE-R1200D
  26. DEVICE_TITLE := TPE-R1200 Think Penguin Mini Router
  27. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 uboot-envtools
  28. endef
  29. LEGACY_DEVICES += GL-AR300MD TPE-R1200D
  30. define Device/mr18
  31. DEVICE_TITLE := Meraki MR18
  32. DEVICE_PACKAGES := kmod-spi-gpio kmod-ath9k
  33. BOARDNAME = MR18
  34. BLOCKSIZE := 64k
  35. CONSOLE = ttyS0,115200
  36. MTDPARTS = ar934x-nfc:512k(nandloader)ro,8M(kernel),8M(recovery),113664k(ubi),128k@130944k(odm-caldata)ro
  37. IMAGES := sysupgrade.tar
  38. KERNEL := kernel-bin | patch-cmdline | MerakiNAND
  39. KERNEL_INITRAMFS := kernel-bin | patch-cmdline | MerakiNAND
  40. IMAGE/sysupgrade.tar := sysupgrade-tar
  41. endef
  42. TARGET_DEVICES += mr18
  43. define Build/MerakiNAND-old
  44. -$(STAGING_DIR_HOST)/bin/mkmerakifw-old \
  45. -B $(BOARDNAME) -s \
  46. -i $@ \
  47. -o $@.new
  48. @mv $@.new $@
  49. endef
  50. define Device/z1
  51. DEVICE_TITLE := Meraki Z1
  52. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-spi-gpio kmod-ath9k kmod-owl-loader
  53. BOARDNAME = Z1
  54. BLOCKSIZE := 64k
  55. CONSOLE = ttyS0,115200
  56. MTDPARTS = ar934x-nfc:128K(loader1)ro,8064K(kernel),128K(loader2)ro,8064K(recovery),114560K(ubi),128K(origcaldata)ro
  57. IMAGES := sysupgrade.tar
  58. KERNEL := kernel-bin | patch-cmdline | MerakiNAND-old
  59. KERNEL_INITRAMFS := kernel-bin | patch-cmdline | MerakiNAND-old
  60. IMAGE/sysupgrade.tar := sysupgrade-tar
  61. endef
  62. TARGET_DEVICES += z1
  63. define LegacyDevice/WNDR3700V4
  64. DEVICE_TITLE := NETGEAR WNDR3700v4
  65. DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport
  66. endef
  67. LEGACY_DEVICES += WNDR3700V4
  68. define LegacyDevice/WNDR4300V1
  69. DEVICE_TITLE := NETGEAR WNDR4300v1
  70. DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport
  71. endef
  72. LEGACY_DEVICES += WNDR4300V1