sama5.mk 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. AT91_SD_BOOT_PARTSIZE:=64
  2. FAT32_BLOCK_SIZE:=1024
  3. FAT32_BLOCKS:=$(shell echo \
  4. $$(($(AT91_SD_BOOT_PARTSIZE)*1024*1024/$(FAT32_BLOCK_SIZE))))
  5. define Build/at91-sdcard
  6. rm -f [email protected]
  7. mkfs.fat -C [email protected] $(FAT32_BLOCKS)
  8. mcopy -i [email protected] $(KDIR)/zImage ::zImage
  9. $(foreach dts,$(DEVICE_DTS), \
  10. mcopy -i [email protected] $(DTS_DIR)/$(dts).dtb \
  11. ::$(dts).dtb; \
  12. mcopy -i [email protected] \
  13. $(BIN_DIR)/u-boot-$(dts:at91-%=%)_mmc/u-boot.bin \
  14. ::u-boot.bin; \
  15. $(CP) $(BIN_DIR)/at91bootstrap-$(dts:at91-%=%)sd_uboot*/*.bin \
  16. [email protected]; \
  17. mcopy -i [email protected] [email protected] ::BOOT.bin;)
  18. ./gen_at91_sdcard_img.sh \
  19. [email protected] \
  20. [email protected] \
  21. $(KDIR)/root.ext4 \
  22. $(AT91_SD_BOOT_PARTSIZE) \
  23. $(CONFIG_TARGET_ROOTFS_PARTSIZE)
  24. gzip -nc9 [email protected] > $@
  25. rm -f [email protected] [email protected] [email protected]
  26. endef
  27. define Device/evaluation-sdimage
  28. IMAGES += sdcard.img.gz
  29. IMAGE/sdcard.img.gz := at91-sdcard
  30. endef
  31. define Device/default-nand
  32. BLOCKSIZE := 128k
  33. PAGESIZE := 2048
  34. SUBPAGESIZE := 2048
  35. MKUBIFS_OPTS := -m $$(PAGESIZE) -e 124KiB -c 2048
  36. endef
  37. define Device/at91-sama5d3_xplained
  38. $(Device/evaluation-dtb)
  39. DEVICE_TITLE := Microchip(Atmel AT91) SAMA5D3 Xplained
  40. KERNEL_SIZE := 6144k
  41. $(Device/evaluation-sdimage)
  42. endef
  43. TARGET_DEVICES += at91-sama5d3_xplained
  44. define Device/at91-sama5d2_xplained
  45. $(Device/evaluation-dtb)
  46. DEVICE_TITLE := Microchip(Atmel AT91) SAMA5D2 Xplained
  47. KERNEL_SIZE := 6144k
  48. $(Device/evaluation-sdimage)
  49. endef
  50. TARGET_DEVICES += at91-sama5d2_xplained
  51. define Device/at91-sama5d4_xplained
  52. $(Device/evaluation-dtb)
  53. DEVICE_TITLE := Microchip(Atmel AT91) SAMA5D4 Xplained
  54. KERNEL_SIZE := 6144k
  55. BLOCKSIZE := 256k
  56. PAGESIZE := 4096
  57. SUBPAGESIZE := 2048
  58. MKUBIFS_OPTS := -m $$(PAGESIZE) -e 248KiB -c 2082 -x lzo
  59. $(Device/evaluation-sdimage)
  60. endef
  61. TARGET_DEVICES += at91-sama5d4_xplained
  62. define Device/wb50n
  63. $(Device/evaluation-fit)
  64. DEVICE_TITLE := Laird WB50N
  65. DEVICE_PACKAGES := \
  66. kmod-mmc-at91 kmod-ath6kl-sdio ath6k-firmware \
  67. kmod-usb-storage kmod-fs-vfat kmod-fs-msdos \
  68. kmod-leds-gpio
  69. BLOCKSIZE := 128k
  70. PAGESIZE := 2048
  71. SUBPAGESIZE := 2048
  72. MKUBIFS_OPTS := -m $$(PAGESIZE) -e 124KiB -c 955
  73. endef
  74. TARGET_DEVICES += wb50n