diff options
Diffstat (limited to 'board/atmel/at91sam9x5ek_mmc')
-rw-r--r-- | board/atmel/at91sam9x5ek_mmc/genimage.cfg | 34 | ||||
-rwxr-xr-x | board/atmel/at91sam9x5ek_mmc/post-image.sh | 20 |
2 files changed, 54 insertions, 0 deletions
diff --git a/board/atmel/at91sam9x5ek_mmc/genimage.cfg b/board/atmel/at91sam9x5ek_mmc/genimage.cfg new file mode 100644 index 0000000000..46c2dc9366 --- /dev/null +++ b/board/atmel/at91sam9x5ek_mmc/genimage.cfg @@ -0,0 +1,34 @@ +# Image for SD card boot on Atmel at91sam9x5ek boards +# +image boot.vfat { + vfat { + files = { + "zImage", + "at91sam9g15ek.dtb", + "at91sam9g25ek.dtb", + "at91sam9g35ek.dtb", + "at91sam9x25ek.dtb", + "at91sam9x35ek.dtb", + "boot.bin", + "u-boot.bin" + } + } + size = 16M +} + +image sdcard.img { + hdimage { + } + + partition boot { + partition-type = 0xC + bootable = "true" + image = "boot.vfat" + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext4" + size = 512M + } +} diff --git a/board/atmel/at91sam9x5ek_mmc/post-image.sh b/board/atmel/at91sam9x5ek_mmc/post-image.sh new file mode 100755 index 0000000000..b560fd31c4 --- /dev/null +++ b/board/atmel/at91sam9x5ek_mmc/post-image.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +BOARD_DIR="$(dirname $0)" +GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg" +GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp" + +rm -rf "${GENIMAGE_TMP}" + +echo --rootpath "${TARGET_DIR}" +echo --tmppath "${GENIMAGE_TMP}" +echo --inputpath "${BINARIES_DIR}" +echo --outputpath "${BINARIES_DIR}" +echo --config "${GENIMAGE_CFG}" + +genimage \ + --rootpath "${TARGET_DIR}" \ + --tmppath "${GENIMAGE_TMP}" \ + --inputpath "${BINARIES_DIR}" \ + --outputpath "${BINARIES_DIR}" \ + --config "${GENIMAGE_CFG}" |