common.mk 2.7 KB

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