rtl930x.mk 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. include ./common.mk
  3. define Build/xikestor-nosimg
  4. $(STAGING_DIR_HOST)/bin/nosimg-enc -i $@ -o [email protected]
  5. mv [email protected] $@
  6. endef
  7. define Device/hasivo_s1100w-8xgt-se
  8. SOC := rtl9303
  9. DEVICE_VENDOR := Hasivo
  10. DEVICE_MODEL := S1100W-8XGT-SE
  11. IMAGE_SIZE := 12288k
  12. $(Device/kernel-lzma)
  13. endef
  14. TARGET_DEVICES += hasivo_s1100w-8xgt-se
  15. define Device/plasmacloud-common
  16. SOC := rtl9302
  17. UIMAGE_MAGIC := 0x93000000
  18. DEVICE_VENDOR := Plasma Cloud
  19. DEVICE_PACKAGES := poemgr
  20. IMAGE_SIZE := 15872k
  21. BLOCKSIZE := 64k
  22. KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | uImage lzma
  23. KERNEL := kernel-bin | append-dtb | lzma | uImage lzma | pad-to $$(BLOCKSIZE)
  24. IMAGES += factory.bin
  25. IMAGE/factory.bin := append-kernel | append-rootfs | pad-rootfs | check-size
  26. IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
  27. endef
  28. define Device/plasmacloud_mcx3
  29. $(Device/plasmacloud-common)
  30. DEVICE_MODEL := MCX3
  31. endef
  32. TARGET_DEVICES += plasmacloud_mcx3
  33. define Device/plasmacloud_psx8
  34. $(Device/plasmacloud-common)
  35. DEVICE_MODEL := PSX8
  36. endef
  37. TARGET_DEVICES += plasmacloud_psx8
  38. define Device/plasmacloud_psx10
  39. $(Device/plasmacloud-common)
  40. DEVICE_MODEL := PSX10
  41. endef
  42. TARGET_DEVICES += plasmacloud_psx10
  43. define Device/tplink_tl-st1008f-v2
  44. SOC := rtl9303
  45. UIMAGE_MAGIC := 0x93030000
  46. DEVICE_VENDOR := TP-Link
  47. DEVICE_MODEL := TL-ST1008F
  48. DEVICE_VARIANT := v2.0
  49. DEVICE_PACKAGES := kmod-gpio-pca953x
  50. SUPPORTED_DEVICES += tplink,tl-st1008f,v2
  51. IMAGE_SIZE := 31808k
  52. $(Device/kernel-lzma)
  53. endef
  54. TARGET_DEVICES += tplink_tl-st1008f-v2
  55. define Device/vimin_vm-s100-0800ms
  56. SOC := rtl9303
  57. UIMAGE_MAGIC := 0x93000000
  58. DEVICE_VENDOR := Vimin
  59. DEVICE_MODEL := VM-S100-0800MS
  60. IMAGE_SIZE := 13312k
  61. $(Device/kernel-lzma)
  62. endef
  63. TARGET_DEVICES += vimin_vm-s100-0800ms
  64. define Device/xikestor_sks8300-8x
  65. SOC := rtl9303
  66. DEVICE_VENDOR := XikeStor
  67. DEVICE_MODEL := SKS8300-8X
  68. DEVICE_ALT0_VENDOR := ONTi
  69. DEVICE_ALT0_MODEL := ONT-S508CL-8S
  70. BLOCKSIZE := 64k
  71. KERNEL_SIZE := 8192k
  72. IMAGE_SIZE := 30720k
  73. IMAGE/sysupgrade.bin := pad-extra 256 | append-kernel | xikestor-nosimg | \
  74. jffs2 nos.img -e 4KiB -x lzma | pad-to $$$$(KERNEL_SIZE) | \
  75. append-rootfs | pad-rootfs | append-metadata | check-size
  76. endef
  77. TARGET_DEVICES += xikestor_sks8300-8x
  78. define Device/xikestor_sks8310-8x
  79. SOC := rtl9303
  80. UIMAGE_MAGIC := 0x93000000
  81. DEVICE_VENDOR := XikeStor
  82. DEVICE_MODEL := SKS8310-8X
  83. IMAGE_SIZE := 20480k
  84. $(Device/kernel-lzma)
  85. IMAGE/sysupgrade.bin := \
  86. pad-extra 16 | \
  87. append-kernel | \
  88. pad-to 64k | \
  89. append-rootfs | \
  90. pad-rootfs | \
  91. check-size | \
  92. append-metadata
  93. endef
  94. TARGET_DEVICES += xikestor_sks8310-8x
  95. define Device/zyxel_xgs1010-12-a1
  96. SOC := rtl9302
  97. UIMAGE_MAGIC := 0x93001010
  98. DEVICE_VENDOR := Zyxel
  99. DEVICE_MODEL := XGS1010-12
  100. DEVICE_VARIANT := A1
  101. KERNEL_SIZE := 7168k
  102. IMAGE_SIZE := 13184k
  103. $(Device/kernel-lzma)
  104. endef
  105. TARGET_DEVICES += zyxel_xgs1010-12-a1
  106. define Device/zyxel_xgs1210-12-a1
  107. $(Device/zyxel_xgs1210-12)
  108. SUPPORTED_DEVICES += zyxel,xgs1210-12
  109. DEVICE_VARIANT := A1
  110. endef
  111. TARGET_DEVICES += zyxel_xgs1210-12-a1
  112. define Device/zyxel_xgs1210-12-b1
  113. $(Device/zyxel_xgs1210-12)
  114. DEVICE_VARIANT := B1
  115. endef
  116. TARGET_DEVICES += zyxel_xgs1210-12-b1
  117. define Device/zyxel_xgs1250-12-common
  118. SOC := rtl9302
  119. UIMAGE_MAGIC := 0x93001250
  120. ZYXEL_VERS := ABWE
  121. DEVICE_VENDOR := Zyxel
  122. DEVICE_MODEL := XGS1250-12
  123. DEVICE_PACKAGES := kmod-hwmon-gpiofan kmod-thermal
  124. IMAGE_SIZE := 13312k
  125. KERNEL := \
  126. kernel-bin | \
  127. append-dtb | \
  128. rt-compress | \
  129. rt-loader | \
  130. uImage none
  131. KERNEL_INITRAMFS := \
  132. kernel-bin | \
  133. append-dtb | \
  134. rt-compress | \
  135. zyxel-vers | \
  136. rt-loader | \
  137. uImage none
  138. endef
  139. define Device/zyxel_xgs1250-12-a1
  140. $(Device/zyxel_xgs1250-12-common)
  141. SUPPORTED_DEVICES += zyxel,xgs1250-12
  142. DEVICE_VARIANT := A1
  143. endef
  144. TARGET_DEVICES += zyxel_xgs1250-12-a1
  145. define Device/zyxel_xgs1250-12-b1
  146. $(Device/zyxel_xgs1250-12-common)
  147. DEVICE_VARIANT := B1
  148. endef
  149. TARGET_DEVICES += zyxel_xgs1250-12-b1