mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
configs: at91sam9x5ek: new additional defconfigs
This commit: - Adds a development rootfs defconfig for the at91sam9x5ek board for NAND-based configurations. - Adds SD-card based configurations for the at91sam9x5ek board, both a minimal one and development one. Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com> [Thomas: add at91sam9x5ek_mmc_defconfig to have all four combinations: NAND minimal, NAND development, SD minimal, SD development.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
0524f90a2f
commit
ece884a704
34
board/atmel/at91sam9x5ek_mmc/genimage.cfg
Normal file
34
board/atmel/at91sam9x5ek_mmc/genimage.cfg
Normal file
@@ -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
|
||||
}
|
||||
}
|
||||
20
board/atmel/at91sam9x5ek_mmc/post-image.sh
Executable file
20
board/atmel/at91sam9x5ek_mmc/post-image.sh
Executable file
@@ -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}"
|
||||
Reference in New Issue
Block a user