rt3883.mk 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. #
  2. # RT3662/RT3883 Profiles
  3. #
  4. define Device/br-6475nd
  5. DTS := BR-6475ND
  6. BLOCKSIZE := 64k
  7. IMAGE_SIZE := 7744k
  8. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | \
  9. edimax-header -s CSYS -m RN54 -f 0x70000 -S 0x01100000 | pad-rootfs | append-metadata
  10. DEVICE_TITLE := Edimax BR-6475nD
  11. DEVICE_PACKAGES := swconfig
  12. endef
  13. TARGET_DEVICES += br-6475nd
  14. define Device/cy-swr1100
  15. DTS := CY-SWR1100
  16. BLOCKSIZE := 64k
  17. KERNEL := $(KERNEL_DTB)
  18. IMAGES += factory.bin
  19. IMAGE/sysupgrade.bin := \
  20. append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs | \
  21. seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \
  22. pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
  23. IMAGE/factory.bin := \
  24. append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
  25. append-rootfs | pad-rootfs -x 64 | \
  26. seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \
  27. seama-seal -m "signature=wrgnd10_samsung_ss815" | \
  28. check-size $$$$(IMAGE_SIZE)
  29. DEVICE_TITLE := Samsung CY-SWR1100
  30. DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 swconfig
  31. endef
  32. TARGET_DEVICES += cy-swr1100
  33. define Device/dir-645
  34. DTS := DIR-645
  35. BLOCKSIZE := 4k
  36. KERNEL := $(KERNEL_DTB)
  37. IMAGES += factory.bin
  38. IMAGE/sysupgrade.bin := \
  39. append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs | \
  40. seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \
  41. pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
  42. IMAGE/factory.bin := \
  43. append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
  44. append-rootfs | pad-rootfs -x 64 | \
  45. seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \
  46. seama-seal -m "signature=wrgn39_dlob.hans_dir645" | \
  47. check-size $$$$(IMAGE_SIZE)
  48. DEVICE_TITLE := D-Link DIR-645
  49. DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 swconfig
  50. endef
  51. TARGET_DEVICES += dir-645
  52. define Device/hpm
  53. DTS := HPM
  54. BLOCKSIZE := 64k
  55. IMAGE_SIZE := 16064k
  56. DEVICE_TITLE := Omnima HPM
  57. DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2
  58. endef
  59. TARGET_DEVICES += hpm
  60. define Device/tew-691gr
  61. DTS := TEW-691GR
  62. BLOCKSIZE := 64k
  63. IMAGES += factory.bin
  64. IMAGE/factory.bin := $$(sysupgrade_bin) | umedia-header 0x026910
  65. DEVICE_TITLE := TRENDnet TEW-691GR
  66. DEVICE_PACKAGES := swconfig
  67. endef
  68. TARGET_DEVICES += tew-691gr
  69. define Device/tew-692gr
  70. DTS := TEW-692GR
  71. BLOCKSIZE := 64k
  72. IMAGES += factory.bin
  73. IMAGE/factory.bin := $$(sysupgrade_bin) | umedia-header 0x026920
  74. DEVICE_TITLE := TRENDnet TEW-692GR
  75. DEVICE_PACKAGES := swconfig
  76. endef
  77. TARGET_DEVICES += tew-692gr
  78. define Device/wlr-6000
  79. DTS := WLR-6000
  80. BLOCKSIZE := 4k
  81. IMAGE_SIZE := 7244k
  82. IMAGES += factory.dlf
  83. IMAGE/factory.dlf := \
  84. $$(sysupgrade_bin) | senao-header -r 0x0202 -p 0x41 -t 2
  85. DEVICE_TITLE := Sitecom WLR-6000
  86. DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 swconfig
  87. endef
  88. TARGET_DEVICES += wlr-6000
  89. define BuildFirmware/RTN56U/squashfs
  90. $(call BuildFirmware/Default8M/$(1),$(1),rt-n56u,RT-N56U)
  91. -mkrtn56uimg -s $(call sysupname,$(1),rt-n56u)
  92. -cp $(call sysupname,$(1),rt-n56u) $(call imgname,$(1),rt-n56u)-factory.bin
  93. -mkrtn56uimg -f $(call imgname,$(1),rt-n56u)-factory.bin
  94. endef
  95. Image/Build/Profile/RTN56U=$(call BuildFirmware/RTN56U/$(1),$(1),rt-n56u,RT-N56U)
  96. define LegacyDevice/RTN56U
  97. BLOCKSIZE := 64k
  98. DEVICE_TITLE := Asus RT-N56U
  99. DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 swconfig
  100. endef
  101. LEGACY_DEVICES += RTN56U