sam9x.mk 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. define Device/default-nand
  2. BLOCKSIZE := 128k
  3. PAGESIZE := 2048
  4. SUBPAGESIZE := 512
  5. MKUBIFS_OPTS := -m $$(PAGESIZE) -e 126KiB -c 2048
  6. endef
  7. define Build/at91-sdcard
  8. $(if $(findstring ext4,$@), \
  9. rm -f [email protected]
  10. mkfs.fat -C [email protected] $(FAT32_BLOCKS)
  11. mcopy -i [email protected] \
  12. $(KDIR)/$(DEVICE_NAME)-fit-zImage.itb \
  13. ::$(DEVICE_NAME)-fit.itb
  14. mcopy -i [email protected] \
  15. $(STAGING_DIR_IMAGE)/$(if $(findstring sam9x60,$@),$(DEVICE_DTS:at91-%=%),at91sam9x5ek)_mmc-u-boot.bin \
  16. ::u-boot.bin
  17. mcopy -i [email protected] \
  18. $(STAGING_DIR_IMAGE)/$(if $(findstring sam9x60,$@),$(DEVICE_DTS:at91-%=%),at91sam9x5ek)sd_uboot-at91bootstrap.bin \
  19. ::BOOT.bin
  20. $(CP) uboot-env.txt [email protected]
  21. sed -i '2d;3d' [email protected]
  22. sed -i '2i board='"$(DEVICE_NAME)"'' [email protected]
  23. sed -i '3i board_name='"$(firstword $(SUPPORTED_DEVICES))"'' [email protected]
  24. mkenvimage -s 0x4000 -o [email protected] [email protected]
  25. mcopy -i [email protected] [email protected] ::uboot.env
  26. ./gen_at91_sdcard_img.sh \
  27. [email protected] \
  28. [email protected] \
  29. $(IMAGE_ROOTFS) \
  30. $(AT91_SD_BOOT_PARTSIZE) \
  31. $(CONFIG_TARGET_ROOTFS_PARTSIZE)
  32. gzip -nc9 [email protected] > $@
  33. rm -f [email protected] [email protected] [email protected] [email protected])
  34. endef
  35. define Device/atmel_at91sam9263ek
  36. $(Device/evaluation-dtb)
  37. DEVICE_VENDOR := Atmel
  38. DEVICE_MODEL := AT91SAM9263-EK
  39. endef
  40. TARGET_DEVICES += atmel_at91sam9263ek
  41. define Device/atmel_at91sam9g15ek
  42. $(Device/evaluation)
  43. DEVICE_VENDOR := Atmel
  44. DEVICE_MODEL := AT91SAM9G15-EK
  45. endef
  46. TARGET_DEVICES += atmel_at91sam9g15ek
  47. define Device/atmel_at91sam9g20ek
  48. $(Device/evaluation-dtb)
  49. DEVICE_VENDOR := Atmel
  50. DEVICE_MODEL := AT91SAM9G20-EK
  51. endef
  52. TARGET_DEVICES += atmel_at91sam9g20ek
  53. define Device/atmel_at91sam9g20ek-2mmc
  54. $(Device/evaluation-dtb)
  55. DEVICE_VENDOR := Atmel
  56. DEVICE_MODEL := AT91SAM9G20-EK
  57. DEVICE_VARIANT := 2MMC
  58. DEVICE_DTS := at91sam9g20ek_2mmc
  59. SUPPORTED_DEVICES := atmel,at91sam9g20ek_2mmc
  60. endef
  61. TARGET_DEVICES += atmel_at91sam9g20ek-2mmc
  62. define Device/atmel_at91sam9g25ek
  63. $(Device/evaluation)
  64. DEVICE_VENDOR := Atmel
  65. DEVICE_MODEL := AT91SAM9G25-EK
  66. endef
  67. TARGET_DEVICES += atmel_at91sam9g25ek
  68. define Device/atmel_at91sam9g35ek
  69. $(Device/evaluation)
  70. DEVICE_VENDOR := Atmel
  71. DEVICE_MODEL := AT91SAM9G35-EK
  72. endef
  73. TARGET_DEVICES += atmel_at91sam9g35ek
  74. define Device/atmel_at91sam9m10g45ek
  75. $(Device/evaluation)
  76. DEVICE_VENDOR := Atmel
  77. DEVICE_MODEL := AT91SAM9M10G45-EK
  78. endef
  79. TARGET_DEVICES += atmel_at91sam9m10g45ek
  80. define Device/atmel_at91sam9x25ek
  81. $(Device/evaluation-dtb)
  82. DEVICE_VENDOR := Atmel
  83. DEVICE_MODEL := AT91SAM9X25-EK
  84. $(Device/evaluation-sdimage)
  85. endef
  86. TARGET_DEVICES += atmel_at91sam9x25ek
  87. define Device/atmel_at91sam9x35ek
  88. $(Device/evaluation-dtb)
  89. DEVICE_VENDOR := Atmel
  90. DEVICE_MODEL := AT91SAM9X35-EK
  91. $(Device/evaluation-sdimage)
  92. endef
  93. TARGET_DEVICES += atmel_at91sam9x35ek
  94. define Device/microchip_sam9x60ek
  95. $(Device/evaluation-dtb)
  96. DEVICE_VENDOR := Microchip
  97. DEVICE_MODEL := SAM9X60-EK
  98. DEVICE_DTS := at91-sam9x60ek
  99. $(Device/evaluation-sdimage)
  100. endef
  101. TARGET_DEVICES += microchip_sam9x60ek
  102. define Device/calamp_lmu5000
  103. $(Device/production)
  104. DEVICE_VENDOR := CalAmp
  105. DEVICE_MODEL := LMU5000
  106. DEVICE_DTS := at91-lmu5000
  107. DEVICE_PACKAGES := kmod-rtc-pcf2123 kmod-usb-acm \
  108. kmod-usb-serial-option kmod-usb-serial-sierrawireless \
  109. kmod-pinctrl-mcp23s08-spi
  110. endef
  111. TARGET_DEVICES += calamp_lmu5000
  112. define Device/calao_tny-a9260
  113. $(Device/production-dtb)
  114. DEVICE_VENDOR := Calao
  115. DEVICE_MODEL := TNY A9260
  116. DEVICE_DTS := tny_a9260
  117. endef
  118. TARGET_DEVICES += calao_tny-a9260
  119. define Device/calao_tny-a9263
  120. $(Device/production-dtb)
  121. DEVICE_VENDOR := Calao
  122. DEVICE_MODEL := TNY A9263
  123. DEVICE_DTS := tny_a9263
  124. SUPPORTED_DEVICES := atmel,tny-a9263
  125. endef
  126. TARGET_DEVICES += calao_tny-a9263
  127. define Device/calao_tny-a9g20
  128. $(Device/production-dtb)
  129. DEVICE_VENDOR := Calao
  130. DEVICE_MODEL := TNY A9G20
  131. DEVICE_DTS := tny_a9g20
  132. endef
  133. TARGET_DEVICES += calao_tny-a9g20
  134. define Device/calao_usb-a9260
  135. $(Device/production-dtb)
  136. DEVICE_VENDOR := Calao
  137. DEVICE_MODEL := USB A9260
  138. DEVICE_DTS := usb_a9260
  139. endef
  140. TARGET_DEVICES += calao_usb-a9260
  141. define Device/calao_usb-a9263
  142. $(Device/production-dtb)
  143. DEVICE_VENDOR := Calao
  144. DEVICE_MODEL := USB A9263
  145. DEVICE_DTS := usb_a9263
  146. SUPPORTED_DEVICES := atmel,usb-a9263
  147. endef
  148. TARGET_DEVICES += calao_usb-a9263
  149. define Device/calao_usb-a9g20
  150. $(Device/production-dtb)
  151. DEVICE_VENDOR := Calao
  152. DEVICE_MODEL := USB A9G20
  153. DEVICE_DTS := usb_a9g20
  154. endef
  155. TARGET_DEVICES += calao_usb-a9g20
  156. define Device/egnite_ethernut5
  157. $(Device/evaluation)
  158. DEVICE_VENDOR := egnite
  159. DEVICE_MODEL := Ethernut 5
  160. UBINIZE_OPTS := -E 5
  161. endef
  162. TARGET_DEVICES += egnite_ethernut5
  163. define Device/exegin_q5xr5
  164. $(Device/production-dtb)
  165. DEVICE_VENDOR := Exegin
  166. DEVICE_MODEL := Q5x
  167. DEVICE_VARIANT := rev5
  168. DEVICE_DTS := at91-q5xr5
  169. KERNEL_SIZE := 2048k
  170. DEFAULT := n
  171. endef
  172. TARGET_DEVICES += exegin_q5xr5
  173. define Device/laird_wb45n
  174. $(Device/evaluation-fit)
  175. DEVICE_VENDOR := Laird
  176. DEVICE_MODEL := WB45N
  177. DEVICE_DTS := at91-wb45n
  178. DEVICE_PACKAGES := \
  179. kmod-mmc-at91 kmod-ath6kl-sdio ath6k-firmware \
  180. kmod-usb-storage kmod-fs-vfat kmod-fs-msdos \
  181. kmod-leds-gpio
  182. BLOCKSIZE := 128k
  183. PAGESIZE := 2048
  184. SUBPAGESIZE := 2048
  185. MKUBIFS_OPTS := -m $$(PAGESIZE) -e 124KiB -c 955
  186. endef
  187. TARGET_DEVICES += laird_wb45n