nand.mk 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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 Device/domywifi-dw33d
  15. DEVICE_TITLE := DomyWifi DW33D
  16. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
  17. BOARDNAME = DW33D
  18. IMAGE_SIZE = 16000k
  19. CONSOLE = ttyS0,115200
  20. MTDPARTS = spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,14528k(rootfs),1472k(kernel),64k(art)ro,16000k@0x50000(firmware);ar934x-nfc:96m(rootfs_data),32m(backup)ro
  21. IMAGE/sysupgrade.bin = append-rootfs | pad-rootfs | pad-to 14528k | append-kernel | check-size $$$$(IMAGE_SIZE)
  22. endef
  23. TARGET_DEVICES += domywifi-dw33d
  24. define Build/MerakiNAND
  25. -$(STAGING_DIR_HOST)/bin/mkmerakifw \
  26. -B $(BOARDNAME) -s \
  27. -i $@ \
  28. -o $@.new
  29. @mv $@.new $@
  30. endef
  31. define Device/mr18
  32. DEVICE_TITLE := Meraki MR18
  33. DEVICE_PACKAGES := kmod-spi-gpio kmod-ath9k
  34. BOARDNAME = MR18
  35. BLOCKSIZE := 64k
  36. CONSOLE = ttyS0,115200
  37. MTDPARTS = ar934x-nfc:512k(nandloader)ro,8M(kernel),8M(recovery),113664k(ubi),128k@130944k(odm-caldata)ro
  38. IMAGES := sysupgrade.tar
  39. KERNEL := kernel-bin | patch-cmdline | MerakiNAND
  40. KERNEL_INITRAMFS := kernel-bin | patch-cmdline | MerakiNAND
  41. IMAGE/sysupgrade.tar := sysupgrade-tar
  42. endef
  43. TARGET_DEVICES += mr18
  44. define Build/MerakiNAND-old
  45. -$(STAGING_DIR_HOST)/bin/mkmerakifw-old \
  46. -B $(BOARDNAME) -s \
  47. -i $@ \
  48. -o $@.new
  49. @mv $@.new $@
  50. endef
  51. define Device/z1
  52. DEVICE_TITLE := Meraki Z1
  53. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-spi-gpio kmod-ath9k kmod-owl-loader
  54. BOARDNAME = Z1
  55. BLOCKSIZE := 64k
  56. CONSOLE = ttyS0,115200
  57. MTDPARTS = ar934x-nfc:128K(loader1)ro,8064K(kernel),128K(loader2)ro,8064K(recovery),114560K(ubi),128K(origcaldata)ro
  58. IMAGES := sysupgrade.tar
  59. KERNEL := kernel-bin | patch-cmdline | MerakiNAND-old
  60. KERNEL_INITRAMFS := kernel-bin | patch-cmdline | MerakiNAND-old
  61. IMAGE/sysupgrade.tar := sysupgrade-tar
  62. endef
  63. TARGET_DEVICES += z1
  64. define LegacyDevice/R6100
  65. DEVICE_TITLE := NETGEAR R6100
  66. DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport
  67. endef
  68. LEGACY_DEVICES += R6100
  69. define LegacyDevice/WNDR3700V4
  70. DEVICE_TITLE := NETGEAR WNDR3700v4
  71. DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport
  72. endef
  73. LEGACY_DEVICES += WNDR3700V4
  74. define LegacyDevice/WNDR4300V1
  75. DEVICE_TITLE := NETGEAR WNDR4300v1
  76. DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport
  77. endef
  78. LEGACY_DEVICES += WNDR4300V1
  79. define LegacyDevice/NBG6716
  80. DEVICE_TITLE := Zyxel NBG 6716
  81. DEVICE_PACKAGES := kmod-rtc-pcf8563 kmod-ath10k ath10k-firmware-qca988x
  82. endef
  83. LEGACY_DEVICES += NBG6716