sam9x.mk 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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. $(BIN_DIR)/u-boot-$(if $(findstring sam9x60,$@),$(DEVICE_DTS:at91-%=%),at91sam9x5ek)_mmc/u-boot.bin \
  16. ::u-boot.bin
  17. mcopy -i [email protected] \
  18. $(BIN_DIR)/at91bootstrap-$(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_PACKAGES := kmod-rtc-pcf2123 kmod-usb-acm \
  107. kmod-usb-serial-option kmod-usb-serial-sierrawireless \
  108. kmod-pinctrl-mcp23s08-spi
  109. endef
  110. TARGET_DEVICES += calamp_lmu5000
  111. define Device/calao_tny-a9260
  112. $(Device/production-dtb)
  113. DEVICE_VENDOR := Calao
  114. DEVICE_MODEL := TNY A9260
  115. DEVICE_DTS := tny_a9260
  116. endef
  117. TARGET_DEVICES += calao_tny-a9260
  118. define Device/calao_tny-a9263
  119. $(Device/production-dtb)
  120. DEVICE_VENDOR := Calao
  121. DEVICE_MODEL := TNY A9263
  122. DEVICE_DTS := tny_a9263
  123. SUPPORTED_DEVICES := atmel,tny-a9263
  124. endef
  125. TARGET_DEVICES += calao_tny-a9263
  126. define Device/calao_tny-a9g20
  127. $(Device/production-dtb)
  128. DEVICE_VENDOR := Calao
  129. DEVICE_MODEL := TNY A9G20
  130. DEVICE_DTS := tny_a9g20
  131. endef
  132. TARGET_DEVICES += calao_tny-a9g20
  133. define Device/calao_usb-a9260
  134. $(Device/production-dtb)
  135. DEVICE_VENDOR := Calao
  136. DEVICE_MODEL := USB A9260
  137. DEVICE_DTS := usb_a9260
  138. endef
  139. TARGET_DEVICES += calao_usb-a9260
  140. define Device/calao_usb-a9263
  141. $(Device/production-dtb)
  142. DEVICE_VENDOR := Calao
  143. DEVICE_MODEL := USB A9263
  144. DEVICE_DTS := usb_a9263
  145. SUPPORTED_DEVICES := atmel,usb-a9263
  146. endef
  147. TARGET_DEVICES += calao_usb-a9263
  148. define Device/calao_usb-a9g20
  149. $(Device/production-dtb)
  150. DEVICE_VENDOR := Calao
  151. DEVICE_MODEL := USB A9G20
  152. DEVICE_DTS := usb_a9g20
  153. endef
  154. TARGET_DEVICES += calao_usb-a9g20
  155. define Device/egnite_ethernut5
  156. $(Device/evaluation)
  157. DEVICE_VENDOR := egnite
  158. DEVICE_MODEL := Ethernut 5
  159. UBINIZE_OPTS := -E 5
  160. endef
  161. TARGET_DEVICES += egnite_ethernut5
  162. define Device/exegin_q5xr5
  163. $(Device/production-dtb)
  164. DEVICE_VENDOR := Exegin
  165. DEVICE_MODEL := Q5x
  166. DEVICE_VARIANT := rev5
  167. DEVICE_DTS := at91-q5xr5
  168. KERNEL_SIZE := 2048k
  169. DEFAULT := n
  170. endef
  171. TARGET_DEVICES += exegin_q5xr5
  172. define Device/laird_wb45n
  173. $(Device/evaluation-fit)
  174. DEVICE_VENDOR := Laird
  175. DEVICE_MODEL := WB45N
  176. DEVICE_DTS := at91-wb45n
  177. DEVICE_PACKAGES := \
  178. kmod-mmc-at91 kmod-ath6kl-sdio ath6k-firmware \
  179. kmod-usb-storage kmod-fs-vfat kmod-fs-msdos \
  180. kmod-leds-gpio
  181. BLOCKSIZE := 128k
  182. PAGESIZE := 2048
  183. SUBPAGESIZE := 2048
  184. MKUBIFS_OPTS := -m $$(PAGESIZE) -e 124KiB -c 955
  185. endef
  186. TARGET_DEVICES += laird_wb45n