From ffb0344b7410dddea0c7804e1a9797a802736c69 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 19 Jul 2019 14:45:17 +0200 Subject: 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 --- images/Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'images') 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 -- cgit v1.2.3