common.mk 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. define Device/cameo-fw
  3. CAMEO_BOARD_MODEL = $$(DEVICE_MODEL)
  4. KERNEL := \
  5. kernel-bin | \
  6. append-dtb | \
  7. libdeflate-gzip | \
  8. uImage gzip | \
  9. cameo-tag
  10. IMAGES += factory_image1.bin
  11. IMAGE/factory_image1.bin := \
  12. append-kernel | \
  13. pad-to 64k | \
  14. append-rootfs | \
  15. pad-rootfs | \
  16. pad-to 16 | \
  17. check-size | \
  18. cameo-version | \
  19. cameo-headers
  20. endef
  21. define Device/d-link_dgs-1210
  22. $(Device/cameo-fw)
  23. IMAGE_SIZE := 13824k
  24. DEVICE_VENDOR := D-Link
  25. CAMEO_KERNEL_PART_SIZE := 1572864
  26. CAMEO_KERNEL_PART := 2
  27. CAMEO_ROOTFS_PART := 3
  28. CAMEO_CUSTOMER_SIGNATURE := 2
  29. CAMEO_BOARD_VERSION := 32
  30. endef
  31. # The "IMG-" uImage name allows flashing the iniramfs from the vendor Web UI.
  32. # Avoided for sysupgrade, as the vendor FW would do an incomplete flash.
  33. define Device/engenius_ews2910p
  34. IMAGE_SIZE := 8192k
  35. DEVICE_VENDOR := EnGenius
  36. KERNEL_INITRAMFS := \
  37. kernel-bin | \
  38. append-dtb | \
  39. libdeflate-gzip | \
  40. uImage gzip -n 'IMG-0.00.00-c0.0.00'
  41. endef
  42. define Device/hpe_1920
  43. DEVICE_VENDOR := HPE
  44. IMAGE_SIZE := 29632k
  45. BLOCKSIZE := 64k
  46. H3C_PRODUCT_ID := 0x3c010501
  47. KERNEL := \
  48. kernel-bin | \
  49. append-dtb | \
  50. 7z | \
  51. h3c-image | \
  52. h3c-vfs
  53. KERNEL_INITRAMFS := \
  54. kernel-bin | \
  55. append-dtb | \
  56. 7z | \
  57. h3c-image
  58. IMAGE/sysupgrade.bin := \
  59. append-kernel | \
  60. pad-to $$$$(BLOCKSIZE) | \
  61. append-rootfs | \
  62. pad-rootfs | \
  63. check-size | \
  64. append-metadata
  65. endef
  66. define Device/hwmon-fan-migration
  67. DEVICE_COMPAT_VERSION := 1.1
  68. DEVICE_COMPAT_MESSAGE := Fan control switched to hwmon. Your fans will retain \
  69. bootloader speed unless another control scheme is in place. \
  70. Config cannot be kept due to conflict in gpio_switch config 'fan_ctrl' under \
  71. /etc/config/system.
  72. endef
  73. define Device/zyxel_gs1900
  74. DEVICE_COMPAT_VERSION := 2.0
  75. DEVICE_COMPAT_MESSAGE := Dual firmware paritition merged due to size constraints. \
  76. Upgrade requires a new factory install. Regular sysupgrade is not possible.
  77. DEVICE_VENDOR := Zyxel
  78. IMAGE_SIZE := 13952k
  79. UIMAGE_MAGIC := 0x83800000
  80. KERNEL_INITRAMFS := \
  81. kernel-bin | \
  82. append-dtb | \
  83. rt-compress | \
  84. zyxel-vers | \
  85. rt-loader | \
  86. uImage none | \
  87. check-size 6976k
  88. endef
  89. define Device/zyxel_xgs1210-12
  90. SOC := rtl9302
  91. UIMAGE_MAGIC := 0x93001210
  92. ZYXEL_VERS := ABTY
  93. DEVICE_VENDOR := Zyxel
  94. DEVICE_MODEL := XGS1210-12
  95. IMAGE_SIZE := 13312k
  96. KERNEL := \
  97. kernel-bin | \
  98. append-dtb | \
  99. rt-compress | \
  100. rt-loader | \
  101. uImage none
  102. KERNEL_INITRAMFS := \
  103. kernel-bin | \
  104. append-dtb | \
  105. rt-compress | \
  106. zyxel-vers | \
  107. rt-loader | \
  108. uImage none
  109. endef