nand.mk 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. define Build/MerakiNAND
  2. -$(STAGING_DIR_HOST)/bin/mkmerakifw \
  3. -B $(BOARDNAME) -s \
  4. -i $@ \
  5. -o $@.new
  6. @mv $@.new $@
  7. endef
  8. define Build/MerakiNAND-old
  9. -$(STAGING_DIR_HOST)/bin/mkmerakifw-old \
  10. -B $(BOARDNAME) -s \
  11. -i $@ \
  12. -o $@.new
  13. @mv $@.new $@
  14. endef
  15. define Device/c-60
  16. DEVICE_TITLE := AirTight C-60
  17. DEVICE_PACKAGES := kmod-spi-gpio kmod-usb-core kmod-usb2 kmod-ath9k
  18. BOARDNAME := C-60
  19. BLOCKSIZE := 64k
  20. KERNEL_SIZE := 3648k
  21. IMAGE_SIZE := 32m
  22. IMAGES := sysupgrade.tar
  23. MTDPARTS := spi0.0:256k(u-boot)ro,128k(u-boot-env)ro,3648k(kernel),64k(art)ro;ar934x-nfc:32m(ubi)
  24. KERNEL := kernel-bin | patch-cmdline | lzma | uImage lzma
  25. IMAGE/sysupgrade.tar := sysupgrade-tar
  26. endef
  27. TARGET_DEVICES += c-60
  28. define Device/hiveap-121
  29. DEVICE_TITLE := Aerohive HiveAP-121
  30. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-i2c-gpio-custom kmod-spi-gpio kmod-ath9k kmod-tpm-i2c-atmel
  31. BOARDNAME := HiveAP-121
  32. BLOCKSIZE := 128k
  33. PAGESIZE := 2048
  34. IMAGE_SIZE := 115m
  35. KERNEL_SIZE := 5120k
  36. UBINIZE_OPTS := -E 5
  37. CONSOLE := ttyS0,9600
  38. MTDPARTS := spi0.0:512k(u-boot)ro,64k(u-boot-env),64k(hw-info)ro,64k(boot-info)ro,64k(boot-sinfo)ro;ar934x-nfc:4096k(u-boot-1),4096k(u-boot-env-1),5m(kernel),111m(ubi),4096k(wifi-info)ro
  39. IMAGES := sysupgrade.tar factory.bin
  40. KERNEL := kernel-bin | patch-cmdline | lzma | uImage lzma
  41. IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | check-size $$$$(IMAGE_SIZE)
  42. IMAGE/sysupgrade.tar := sysupgrade-tar
  43. endef
  44. TARGET_DEVICES += hiveap-121
  45. define Device/mr18
  46. DEVICE_TITLE := Meraki MR18
  47. DEVICE_PACKAGES := kmod-spi-gpio kmod-ath9k
  48. BOARDNAME := MR18
  49. BLOCKSIZE := 64k
  50. MTDPARTS := ar934x-nfc:512k(nandloader)ro,8M(kernel),8M(recovery),113664k(ubi),128k@130944k(odm-caldata)ro
  51. IMAGES := sysupgrade.tar
  52. KERNEL := kernel-bin | patch-cmdline | MerakiNAND
  53. KERNEL_INITRAMFS := kernel-bin | patch-cmdline | MerakiNAND
  54. IMAGE/sysupgrade.tar := sysupgrade-tar
  55. endef
  56. TARGET_DEVICES += mr18
  57. define Device/rambutan
  58. DEVICE_TITLE := 8devices Rambutan
  59. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  60. BOARDNAME := RAMBUTAN
  61. BLOCKSIZE := 128KiB
  62. MTDPARTS := ar934x-nfc:3M(u-boot)ro,2M(u-boot-env),1M(art),122M(ubi)
  63. PAGESIZE := 2048
  64. KERNEL_IN_UBI := 1
  65. IMAGES := factory.ubi sysupgrade.tar
  66. IMAGE/sysupgrade.tar := sysupgrade-tar
  67. IMAGE/factory.ubi := append-ubi
  68. endef
  69. TARGET_DEVICES += rambutan
  70. define Device/z1
  71. DEVICE_TITLE := Meraki Z1
  72. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-spi-gpio kmod-ath9k kmod-owl-loader
  73. BOARDNAME := Z1
  74. BLOCKSIZE := 64k
  75. MTDPARTS := ar934x-nfc:128K(loader1)ro,8064K(kernel),128K(loader2)ro,8064K(recovery),114560K(ubi),128K(origcaldata)ro
  76. IMAGES := sysupgrade.tar
  77. KERNEL := kernel-bin | patch-cmdline | MerakiNAND-old
  78. KERNEL_INITRAMFS := kernel-bin | patch-cmdline | MerakiNAND-old
  79. IMAGE/sysupgrade.tar := sysupgrade-tar
  80. endef
  81. TARGET_DEVICES += z1
  82. define LegacyDevice/WNDR3700V4
  83. DEVICE_TITLE := NETGEAR WNDR3700v4
  84. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  85. endef
  86. LEGACY_DEVICES += WNDR3700V4
  87. define LegacyDevice/WNDR4300V1
  88. DEVICE_TITLE := NETGEAR WNDR4300v1
  89. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  90. endef
  91. LEGACY_DEVICES += WNDR4300V1