1 AT91_SD_BOOT_PARTSIZE
:=64
3 FAT32_BLOCKS
:=$(shell echo \
4 $$(($(AT91_SD_BOOT_PARTSIZE
)*1024*1024/$(FAT32_BLOCK_SIZE
))))
6 define Build
/at91-sdcard
8 mkfs.fat
-C
$@.boot
$(FAT32_BLOCKS
)
10 mcopy
-i
$@.boot
$(KDIR
)/zImage
::zImage
12 $(foreach dts
,$(DEVICE_DTS
), \
13 mcopy
-i
$@.boot
$(DTS_DIR
)/$(dts
).dtb \
16 $(BIN_DIR
)/u-boot-
$(dts
:at91-
%=%)_mmc
/u-boot.bin \
18 $(CP
) $(BIN_DIR
)/at91bootstrap-
$(dts
:at91-
%=%)sd_uboot
*/*.bin \
20 mcopy
-i
$@.boot
$@.BOOT.bin
::BOOT.bin
;)
22 .
/gen_at91_sdcard_img.sh \
26 $(AT91_SD_BOOT_PARTSIZE
) \
27 $(CONFIG_TARGET_ROOTFS_PARTSIZE
)
31 rm -f
$@.img
$@.boot
$@.BOOT.bin
34 define Device
/evaluation-sdimage
35 IMAGES
+= sdcard.img.gz
36 IMAGE
/sdcard.img.gz
:= at91-sdcard
39 define Device
/default-nand
43 MKUBIFS_OPTS
:= -m
$$(PAGESIZE
) -e
124KiB
-c
2048
46 define Device
/at91-sama5d3_xplained
47 $(Device
/evaluation-dtb
)
48 DEVICE_TITLE
:= Microchip
(Atmel AT91
) SAMA5D3 Xplained
50 $(Device
/evaluation-sdimage
)
52 TARGET_DEVICES
+= at91-sama5d3_xplained
54 define Device
/at91-sama5d2_xplained
55 $(Device
/evaluation-dtb
)
56 DEVICE_TITLE
:= Microchip
(Atmel AT91
) SAMA5D2 Xplained
58 $(Device
/evaluation-sdimage
)
60 TARGET_DEVICES
+= at91-sama5d2_xplained
62 define Device
/at91-sama5d4_xplained
63 $(Device
/evaluation-dtb
)
64 DEVICE_TITLE
:= Microchip
(Atmel AT91
) SAMA5D4 Xplained
69 MKUBIFS_OPTS
:= -m
$$(PAGESIZE
) -e
248KiB
-c
2082 -x lzo
70 $(Device
/evaluation-sdimage
)
72 TARGET_DEVICES
+= at91-sama5d4_xplained
75 $(Device
/evaluation-fit
)
76 DEVICE_TITLE
:= Laird WB50N
78 kmod-mmc-at91 kmod-ath6kl-sdio ath6k-firmware \
79 kmod-usb-storage kmod-fs-vfat kmod-fs-msdos \
84 MKUBIFS_OPTS
:= -m
$$(PAGESIZE
) -e
124KiB
-c
955
86 TARGET_DEVICES
+= wb50n