[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [Qemu-devel] [PATCH for-QEMU-4.1 v5 22/29] hw/arm: Expr
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [Qemu-block] [Qemu-devel] [PATCH for-QEMU-4.1 v5 22/29] hw/arm: Express dependencies of sabrelite with Kconfig |
Date: |
Thu, 25 Apr 2019 18:43:47 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
Hi Thomas,
On 4/18/19 8:00 PM, Thomas Huth wrote:
> Add Kconfig dependencies for the Sabrelite / iMX6 machine.
>
> Signed-off-by: Thomas Huth <address@hidden>
> ---
> default-configs/arm-softmmu.mak | 4 +---
> hw/arm/Kconfig | 7 +++++++
> hw/arm/Makefile.objs | 3 ++-
> 3 files changed, 10 insertions(+), 4 deletions(-)
>
> diff --git a/default-configs/arm-softmmu.mak b/default-configs/arm-softmmu.mak
> index 76508e3910..ef7dd7156a 100644
> --- a/default-configs/arm-softmmu.mak
> +++ b/default-configs/arm-softmmu.mak
> @@ -33,6 +33,7 @@ CONFIG_NETDUINO2=y
> CONFIG_MPS2=y
> CONFIG_RASPI=y
> CONFIG_DIGIC=y
> +CONFIG_SABRELITE=y
>
> CONFIG_VGA=y
> CONFIG_SSI_M25P80=y
> @@ -40,13 +41,10 @@ CONFIG_IMX_FEC=y
>
> CONFIG_NRF51_SOC=y
>
> -CONFIG_FSL_IMX6=y
> CONFIG_FSL_IMX25=y
> CONFIG_FSL_IMX7=y
> CONFIG_FSL_IMX6UL=y
>
> -CONFIG_IMX_I2C=y
> -
> CONFIG_PCIE_PORT=y
> CONFIG_XIO3130=y
> CONFIG_IOH3420=y
> diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig
> index 059fb8282c..065c7acf1b 100644
> --- a/hw/arm/Kconfig
> +++ b/hw/arm/Kconfig
> @@ -177,6 +177,10 @@ config REALVIEW
> select DS1338 # I2C RTC+NVRAM
> select USB_OHCI
>
> +config SABRELITE
> + bool
> + select FSL_IMX6
This one crashes:
$ qemu-system-aarch64 -display none -M sabrelite
ERROR:/source/qemu/qom/object.c:454:object_initialize_with_type:
assertion failed: (type != NULL)
Aborted (core dumped)
(gdb) bt
#3 0x00007f71139fb4de in g_assertion_message_expr () at
/lib64/libglib-2.0.so.0
[...]
#8 0x000055a148c5eec9 in sysbus_init_child_obj
(address@hidden,
address@hidden "eth",
address@hidden, address@hidden,
address@hidden "imx.enet")
at /source/qemu/hw/core/sysbus.c:373
#9 0x000055a148b37b82 in fsl_imx6_init (obj=0x55a14a2fbe10) at
/source/qemu/hw/arm/fsl-imx6.c:91
#10 0x000055a148d0fb17 in object_initialize_with_type
(address@hidden, address@hidden,
type=0x55a14a27dbd0) at /source/qemu/qom/object.c:466
#11 0x000055a148d0fe5d in object_initialize
(address@hidden, address@hidden,
address@hidden "fsl,imx6") at
/source/qemu/qom/object.c:474
#12 0x000055a148b35ced in sabrelite_init (machine=0x55a14a2c1300) at
/source/qemu/hw/arm/sabrelite.c:58
#13 0x000055a148c608bb in machine_run_board_init
(machine=0x55a14a2c1300) at /source/qemu/hw/core/machine.c:1030
[...]
Then:
$ qemu-system-aarch64 -display none -nodefaults -M sabrelite
qemu-system-aarch64: Unknown device 'sst25vf016b' for bus 'SSI'
Aborted (core dumped)
I got it working using the following snippet:
-- >8 --
@@ -186,6 +186,7 @@ config REALVIEW
config SABRELITE
bool
select FSL_IMX6
+ select SSI_M25P80
config STELLARIS
bool
@@ -321,6 +322,7 @@ config FSL_IMX6
select A9MPCORE
select IMX
select IMX_I2C
+ select IMX_FEC
select SDHCI
config ASPEED_SOC
---
With this snippet amended:
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
> +
> config STELLARIS
> bool
> select ARM_V7M
> @@ -289,6 +293,9 @@ config FSL_IMX31
>
> config FSL_IMX6
> bool
> + select A9MPCORE
> + select IMX
> + select IMX_I2C
>
> config ASPEED_SOC
> bool
> diff --git a/hw/arm/Makefile.objs b/hw/arm/Makefile.objs
> index 4f591ca487..fadd69882c 100644
> --- a/hw/arm/Makefile.objs
> +++ b/hw/arm/Makefile.objs
> @@ -22,6 +22,7 @@ obj-$(CONFIG_COLLIE) += collie.o
> obj-$(CONFIG_VERSATILE) += versatilepb.o
> obj-$(CONFIG_VEXPRESS) += vexpress.o
> obj-$(CONFIG_ZYNQ) += xilinx_zynq.o
> +obj-$(CONFIG_SABRELITE) += sabrelite.o
>
> obj-$(CONFIG_ARM_V7M) += armv7m.o
> obj-$(CONFIG_EXYNOS4) += exynos4210.o
> @@ -36,7 +37,7 @@ obj-$(CONFIG_XLNX_ZYNQMP_ARM) += xlnx-zynqmp.o xlnx-zcu102.o
> obj-$(CONFIG_XLNX_VERSAL) += xlnx-versal.o xlnx-versal-virt.o
> obj-$(CONFIG_FSL_IMX25) += fsl-imx25.o imx25_pdk.o
> obj-$(CONFIG_FSL_IMX31) += fsl-imx31.o kzm.o
> -obj-$(CONFIG_FSL_IMX6) += fsl-imx6.o sabrelite.o
> +obj-$(CONFIG_FSL_IMX6) += fsl-imx6.o
> obj-$(CONFIG_ASPEED_SOC) += aspeed_soc.o aspeed.o
> obj-$(CONFIG_MPS2) += mps2.o
> obj-$(CONFIG_MPS2) += mps2-tz.o
>
- Re: [Qemu-block] [Qemu-devel] [PATCH for-QEMU-4.1 v5 17/29] hw/arm: Express dependencies of netduino / stm32f2xx with Kconfig, (continued)
- [Qemu-block] [PATCH for-QEMU-4.1 v5 18/29] hw/arm: Express dependencies of allwinner / cubieboard with Kconfig, Thomas Huth, 2019/04/18
- [Qemu-block] [PATCH for-QEMU-4.1 v5 19/29] hw/arm: Express dependencies of the MPS2 boards with Kconfig, Thomas Huth, 2019/04/18
- [Qemu-block] [PATCH for-QEMU-4.1 v5 20/29] hw/arm: Express dependencies of the raspi machines with Kconfig, Thomas Huth, 2019/04/18
- [Qemu-block] [PATCH for-QEMU-4.1 v5 21/29] hw/arm: Express dependencies of canon-a1100 with Kconfig, Thomas Huth, 2019/04/18
- [Qemu-block] [PATCH for-QEMU-4.1 v5 22/29] hw/arm: Express dependencies of sabrelite with Kconfig, Thomas Huth, 2019/04/18
- Re: [Qemu-block] [Qemu-devel] [PATCH for-QEMU-4.1 v5 22/29] hw/arm: Express dependencies of sabrelite with Kconfig,
Philippe Mathieu-Daudé <=
- [Qemu-block] [PATCH for-QEMU-4.1 v5 23/29] hw/arm: Express dependencies of the MSF2 / EMCRAFT_SF2 machine with Kconfig, Thomas Huth, 2019/04/18
- [Qemu-block] [PATCH for-QEMU-4.1 v5 24/29] hw/arm: Express dependencies for remaining IMX boards with Kconfig, Thomas Huth, 2019/04/18
- [Qemu-block] [PATCH for-QEMU-4.1 v5 25/29] hw/arm: Express dependencies of the microbit / nrf51 machine with Kconfig, Thomas Huth, 2019/04/18
- [Qemu-block] [PATCH for-QEMU-4.1 v5 26/29] hw/arm: Express dependencies of the ZynqMP zcu102 machine with Kconfig, Thomas Huth, 2019/04/18