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 /images | |
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 'images')
-rw-r--r-- | images/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/images/Makefile b/images/Makefile index 907986e2d0..dd39f44afb 100644 --- a/images/Makefile +++ b/images/Makefile @@ -164,6 +164,10 @@ include $(srctree)/images/Makefile.at91 include $(srctree)/images/Makefile.zynqmp include $(srctree)/images/Makefile.layerscape +pblb-$(CONFIG_BOARD_ARM_GENERIC_DT) += start_dt_2nd +FILE_barebox-dt-2nd.img = start_dt_2nd.pblb +image-$(CONFIG_BOARD_ARM_GENERIC_DT) += barebox-dt-2nd.img + ifneq ($(pblx-y)$(pblx-),) $(error pblx- has been removed. Please use pblb- instead.) endif |