rt3883.mk 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. #
  2. # RT3662/RT3883 Profiles
  3. #
  4. define Device/TEW691GR
  5. DTS := TEW-691GR
  6. IMAGES += factory.bin
  7. IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | umedia-header 0x026910
  8. DEVICE_TITLE := TRENDnet TEW-691GR
  9. DEVICE_PACKAGES := swconfig
  10. endef
  11. TARGET_DEVICES += TEW691GR
  12. define Device/TEW692GR
  13. DTS := TEW-692GR
  14. IMAGES += factory.bin
  15. IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | umedia-header 0x026920
  16. DEVICE_TITLE := TRENDnet TEW-692GR
  17. DEVICE_PACKAGES := swconfig
  18. endef
  19. TARGET_DEVICES += TEW692GR
  20. # $(1) = squashfs/initramfs
  21. # $(2) = lowercase board name
  22. # $(3) = dts file
  23. # $(4) = kernel size
  24. # $(5) = rootfs size
  25. # $(6) = signature
  26. # $(7) = model
  27. # $(8) = flash address
  28. # $(9) = start address
  29. define BuildFirmware/EdimaxCombined/squashfs
  30. $(call PatchKernelLzmaDtb,$(2),$(3))
  31. $(call MkImage,lzma,$(KDIR)/vmlinux-$(2).bin.lzma,$(KDIR)/vmlinux-$(2).bin.uImage)
  32. if [ `stat -c%s "$(KDIR)/vmlinux-$(2).bin.uImage"` -gt `expr $(4) - 20` ]; then \
  33. echo "Warning: $(KDIR)/vmlinux-$(2).bin.uImage is too big" >&2; \
  34. exit 1; \
  35. else if [ `stat -c%s "$(KDIR)/root.$(1)"` -gt $(5) ]; then \
  36. echo "Warning: $(KDIR)/root.$(1) is too big" >&2; \
  37. exit 1; \
  38. else \
  39. ( dd if=$(KDIR)/vmlinux-$(2).bin.uImage bs=`expr $(4) - 20` conv=sync ; dd if=$(KDIR)/root.$(1) ) > $(KDIR)/vmlinux-$(2).bin.uImage.combined ; \
  40. fi ; fi
  41. mkedimaximg -i "$(KDIR)/vmlinux-$(2).bin.uImage.combined" \
  42. -o $(call imgname,$(1),$(2)).bin \
  43. -s $(6) -m $(7) -f $(8) -S $(9)
  44. endef
  45. define BuildFirmware/RTN56U/squashfs
  46. $(call BuildFirmware/Default8M/$(1),$(1),rt-n56u,RT-N56U)
  47. -mkrtn56uimg -s $(call sysupname,$(1),rt-n56u)
  48. -cp $(call sysupname,$(1),rt-n56u) $(call imgname,$(1),rt-n56u)-factory.bin
  49. -mkrtn56uimg -f $(call imgname,$(1),rt-n56u)-factory.bin
  50. endef
  51. Image/Build/Profile/CYSWR1100=$(call BuildFirmware/Seama/$(1),$(1),cy-swr1100,CY-SWR1100,wrgnd10_samsung_ss815,$(ralink_default_fw_size_8M))
  52. Image/Build/Profile/DIR645=$(call BuildFirmware/Seama/$(1),$(1),dir-645,DIR-645,wrgn39_dlob.hans_dir645,$(ralink_default_fw_size_8M))
  53. hpm_mtd_size=16449536
  54. Image/Build/Profile/HPM=$(call BuildFirmware/CustomFlash/$(1),$(1),hpm,HPM,$(hpm_mtd_size))
  55. Image/Build/Profile/RTN56U=$(call BuildFirmware/RTN56U/$(1),$(1),rt-n56u,RT-N56U)
  56. kernel_size_BR6475ND:=2097152
  57. rootfs_size_BR6475ND:=5832704
  58. Image/Build/Profile/BR6475ND=$(call BuildFirmware/EdimaxCombined/$(1),$(1),br-6475nd,BR-6475ND,$(kernel_size_BR6475ND),$(rootfs_size_BR6475ND),CSYS,RN54,0x70000,0x01100000)
  59. define LegacyDevice/CYSWR1100
  60. DEVICE_TITLE := Samsung CY-SWR1100
  61. DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 swconfig
  62. endef
  63. LEGACY_DEVICES += CYSWR1100
  64. define LegacyDevice/DIR645
  65. DEVICE_TITLE := D-Link DIR-645
  66. DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 swconfig
  67. endef
  68. LEGACY_DEVICES += DIR645
  69. define LegacyDevice/HPM
  70. DEVICE_TITLE := Omnima HPM
  71. DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2
  72. endef
  73. LEGACY_DEVICES += HPM
  74. define LegacyDevice/RTN56U
  75. DEVICE_TITLE := Asus RT-N56U
  76. DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 swconfig
  77. endef
  78. LEGACY_DEVICES += RTN56U
  79. define LegacyDevice/BR6475ND
  80. DEVICE_TITLE := Edimax BR-6475nD
  81. DEVICE_PACKAGES := swconfig
  82. endef
  83. LEGACY_DEVICES += BR6475ND