[PATCH v2] ARM: qemu: add support for qemu virt platform

Sascha Hauer s.hauer at pengutronix.de
Mon Nov 9 04:53:42 EST 2020


Hi Rouven,

On Thu, Nov 05, 2020 at 07:41:48AM +0100, Rouven Czerwinski wrote:
> Necessary support to boot barebox on ARM qemu virt platforms.
> No internal device tree, since it is passed by qemu. Therefore it
> employs the generic 2nd stage image as the low level code and only adds
> a virt specific board driver.
> 
> Signed-off-by: Rouven Czerwinski <r.czerwinski at pengutronix.de>
> ---
>  arch/arm/boards/Makefile           |  1 +
>  arch/arm/boards/qemu-virt/Makefile |  1 +
>  arch/arm/boards/qemu-virt/board.c  | 36 ++++++++++++++++++++++++++++++
>  arch/arm/mach-qemu/Kconfig         |  8 +++++++
>  4 files changed, 46 insertions(+)
>  create mode 100644 arch/arm/boards/qemu-virt/Makefile
> +static int virt_probe(struct device_d *dev)
> +{
> +	char *hostname = "virt64";

virt64?

> +config MACH_QEMU_VIRT
> +	bool "QEMU arm virt machine"
> +	select CPU_V7
> +	select ARM_AMBA
> +	select ARM_PSCI_CLIENT
> +	select BOARD_ARM_GENERIC_DT
> +	select HAVE_PBL_MULTI_IMAGES

You have to select OFDEVICE here as well.

Could you provide a defconfig file for this machine?

Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list