|
|
@@ -5,6 +5,44 @@ define Device/default-nand
|
|
|
MKUBIFS_OPTS := -m $$(PAGESIZE) -e 126KiB -c 2048
|
|
|
endef
|
|
|
|
|
|
+define Build/at91-sdcard
|
|
|
+ $(if $(findstring ext4,$@), \
|
|
|
+ rm -f [email protected]
|
|
|
+ mkfs.fat -C [email protected] $(FAT32_BLOCKS)
|
|
|
+
|
|
|
+ mcopy -i [email protected] \
|
|
|
+ $(KDIR)/$(DEVICE_NAME)-fit-zImage.itb \
|
|
|
+ ::$(DEVICE_NAME)-fit.itb
|
|
|
+
|
|
|
+ mcopy -i [email protected] \
|
|
|
+ $(BIN_DIR)/u-boot-at91sam9x5ek_mmc/u-boot.bin \
|
|
|
+ ::u-boot.bin
|
|
|
+
|
|
|
+ mcopy -i [email protected] \
|
|
|
+ $(BIN_DIR)/at91bootstrap-at91sam9x5eksd_uboot/at91bootstrap.bin \
|
|
|
+ ::BOOT.bin
|
|
|
+
|
|
|
+ $(CP) uboot-env.txt [email protected]
|
|
|
+ sed -i '2d;3d' [email protected]
|
|
|
+ sed -i '2i board='"$(DEVICE_NAME)"'' [email protected]
|
|
|
+ sed -i '3i board_name='"$(DEVICE_NAME)"'' [email protected]
|
|
|
+
|
|
|
+ mkenvimage -s 0x4000 -o [email protected] [email protected]
|
|
|
+
|
|
|
+ mcopy -i [email protected] [email protected] ::uboot.env
|
|
|
+
|
|
|
+ ./gen_at91_sdcard_img.sh \
|
|
|
+ [email protected] \
|
|
|
+ [email protected] \
|
|
|
+ $(KDIR)/root.ext4 \
|
|
|
+ $(AT91_SD_BOOT_PARTSIZE) \
|
|
|
+ $(CONFIG_TARGET_ROOTFS_PARTSIZE)
|
|
|
+
|
|
|
+ gzip -nc9 [email protected] > $@
|
|
|
+
|
|
|
+ rm -f [email protected] [email protected] [email protected] [email protected])
|
|
|
+endef
|
|
|
+
|
|
|
define Device/at91sam9263ek
|
|
|
$(Device/evaluation-dtb)
|
|
|
DEVICE_VENDOR := Atmel
|
|
|
@@ -56,16 +94,18 @@ endef
|
|
|
TARGET_DEVICES += at91sam9m10g45ek
|
|
|
|
|
|
define Device/at91sam9x25ek
|
|
|
- $(Device/evaluation)
|
|
|
+ $(Device/evaluation-dtb)
|
|
|
DEVICE_VENDOR := Atmel
|
|
|
DEVICE_MODEL := AT91SAM9X25-EK
|
|
|
+ $(Device/evaluation-sdimage)
|
|
|
endef
|
|
|
TARGET_DEVICES += at91sam9x25ek
|
|
|
|
|
|
define Device/at91sam9x35ek
|
|
|
- $(Device/evaluation)
|
|
|
+ $(Device/evaluation-dtb)
|
|
|
DEVICE_VENDOR := Atmel
|
|
|
DEVICE_MODEL := AT91SAM9X35-EK
|
|
|
+ $(Device/evaluation-sdimage)
|
|
|
endef
|
|
|
TARGET_DEVICES += at91sam9x35ek
|
|
|
|