diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2019-07-19 14:45:17 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-08-19 15:40:45 +0200 |
commit | ffb0344b7410dddea0c7804e1a9797a802736c69 (patch) | |
tree | 8f158b5e989fdebb0adf928aeea1a27b8e6f5491 /arch/arm/Kconfig | |
parent | 7887781e0faadfa1f71a10c81475543bcfca6b22 (diff) | |
download | barebox-ffb0344b7410dddea0c7804e1a9797a802736c69.tar.gz barebox-ffb0344b7410dddea0c7804e1a9797a802736c69.tar.xz |
ARM: Add generic device tree 2nd stage support
This adds support for building a barebox image that boots with the
Linux ARM Kernel booting convention. Support for this image can be
enabled in Kconfig. It picks up a device tree passed in r2. This new
image helps for example with qemu. It can be started with:
qemu-system-aarch64 -m 2G -M virt -kernel images/barebox-dt-2nd.img -cpu cortex-a57 -serial stdio
or:
qemu-system-arm -m 1G -M sabrelite -kernel images/barebox-dt-2nd.img -nographic -dtb arch/arm/dts/imx6q-sabrelite.dtb
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/Kconfig')
-rw-r--r-- | arch/arm/Kconfig | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index de45bcf82a..931a16599f 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -314,6 +314,24 @@ source "arch/arm/mach-zynq/Kconfig" source "arch/arm/mach-qemu/Kconfig" source "arch/arm/mach-zynqmp/Kconfig" +config BOARD_ARM_GENERIC_DT + select LIBFDT + select ARM_AMBA + depends on HAVE_PBL_MULTI_IMAGES + depends on OFDEVICE + bool "Build generic ARM device tree 2nd stage image" + help + This enables compilation of a generic image that can be started 2nd + stage from barebox or from qemu. It picks up a device tree passed + in r2 like the Kernel does, so it could be used anywhere where a Kernel + image could be used. The image will be called images/barebox-dt-2nd.img + +config BOARD_ARM_GENERIC_DT_AARCH64 + bool + depends on CPU_V8 + depends on BOARD_ARM_GENERIC_DT + default y + config ARM_ASM_UNIFIED bool |