rtl930x.mk 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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_psx8
  29. $(Device/plasmacloud-common)
  30. DEVICE_MODEL := PSX8
  31. endef
  32. TARGET_DEVICES += plasmacloud_psx8
  33. define Device/plasmacloud_psx10
  34. $(Device/plasmacloud-common)
  35. DEVICE_MODEL := PSX10
  36. endef
  37. TARGET_DEVICES += plasmacloud_psx10
  38. define Device/tplink_tl-st1008f-v2
  39. SOC := rtl9303
  40. UIMAGE_MAGIC := 0x93030000
  41. DEVICE_VENDOR := TP-Link
  42. DEVICE_MODEL := TL-ST1008F
  43. DEVICE_VARIANT := v2.0
  44. DEVICE_PACKAGES := kmod-gpio-pca953x
  45. SUPPORTED_DEVICES += tplink,tl-st1008f,v2
  46. IMAGE_SIZE := 31808k
  47. $(Device/kernel-lzma)
  48. endef
  49. TARGET_DEVICES += tplink_tl-st1008f-v2
  50. define Device/vimin_vm-s100-0800ms
  51. SOC := rtl9303
  52. UIMAGE_MAGIC := 0x93000000
  53. DEVICE_VENDOR := Vimin
  54. DEVICE_MODEL := VM-S100-0800MS
  55. IMAGE_SIZE := 13312k
  56. $(Device/kernel-lzma)
  57. endef
  58. TARGET_DEVICES += vimin_vm-s100-0800ms
  59. define Device/xikestor_sks8300-8x
  60. SOC := rtl9303
  61. DEVICE_VENDOR := XikeStor
  62. DEVICE_MODEL := SKS8300-8X
  63. DEVICE_ALT0_VENDOR := ONTi
  64. DEVICE_ALT0_MODEL := ONT-S508CL-8S
  65. BLOCKSIZE := 64k
  66. KERNEL_SIZE := 8192k
  67. IMAGE_SIZE := 30720k
  68. IMAGE/sysupgrade.bin := pad-extra 256 | append-kernel | xikestor-nosimg | \
  69. jffs2 nos.img -e 4KiB -x lzma | pad-to $$$$(KERNEL_SIZE) | \
  70. append-rootfs | pad-rootfs | append-metadata | check-size
  71. endef
  72. TARGET_DEVICES += xikestor_sks8300-8x
  73. define Device/xikestor_sks8310-8x
  74. SOC := rtl9303
  75. UIMAGE_MAGIC := 0x93000000
  76. DEVICE_VENDOR := XikeStor
  77. DEVICE_MODEL := SKS8310-8X
  78. IMAGE_SIZE := 20480k
  79. $(Device/kernel-lzma)
  80. IMAGE/sysupgrade.bin := \
  81. pad-extra 16 | \
  82. append-kernel | \
  83. pad-to 64k | \
  84. append-rootfs | \
  85. pad-rootfs | \
  86. check-size | \
  87. append-metadata
  88. endef
  89. TARGET_DEVICES += xikestor_sks8310-8x
  90. define Device/zyxel_xgs1210-12-a1
  91. $(Device/zyxel_xgs1210-12)
  92. SUPPORTED_DEVICES += zyxel,xgs1210-12
  93. DEVICE_VARIANT := A1
  94. endef
  95. TARGET_DEVICES += zyxel_xgs1210-12-a1
  96. define Device/zyxel_xgs1210-12-b1
  97. $(Device/zyxel_xgs1210-12)
  98. DEVICE_VARIANT := B1
  99. endef
  100. TARGET_DEVICES += zyxel_xgs1210-12-b1
  101. define Device/zyxel_xgs1250-12-common
  102. SOC := rtl9302
  103. UIMAGE_MAGIC := 0x93001250
  104. ZYXEL_VERS := ABWE
  105. DEVICE_VENDOR := Zyxel
  106. DEVICE_MODEL := XGS1250-12
  107. DEVICE_PACKAGES := kmod-hwmon-gpiofan kmod-thermal
  108. IMAGE_SIZE := 13312k
  109. KERNEL := \
  110. kernel-bin | \
  111. append-dtb | \
  112. rt-compress | \
  113. rt-loader | \
  114. uImage none
  115. KERNEL_INITRAMFS := \
  116. kernel-bin | \
  117. append-dtb | \
  118. rt-compress | \
  119. zyxel-vers | \
  120. rt-loader | \
  121. uImage none
  122. endef
  123. define Device/zyxel_xgs1250-12-a1
  124. $(Device/zyxel_xgs1250-12-common)
  125. SUPPORTED_DEVICES += zyxel,xgs1250-12
  126. DEVICE_VARIANT := A1
  127. endef
  128. TARGET_DEVICES += zyxel_xgs1250-12-a1
  129. define Device/zyxel_xgs1250-12-b1
  130. $(Device/zyxel_xgs1250-12-common)
  131. DEVICE_VARIANT := B1
  132. endef
  133. TARGET_DEVICES += zyxel_xgs1250-12-b1