mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM64: qemu-virt: enable PCI support
@ 2021-11-17 13:00 Ahmad Fatoum
  2021-11-17 13:00 ` [PATCH 2/2] ARM64: qemu-virt64: extend config for PCI, Virt I/O and more Ahmad Fatoum
  2021-11-22  8:54 ` [PATCH 1/2] ARM64: qemu-virt: enable PCI support Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Ahmad Fatoum @ 2021-11-17 13:00 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

We now have a driver for the PCI controller on QEMU, so define
HW_HAS_PCI. The barebox PCI implementation doesn't yet deal with 64-bit
addresses, so use -M virt,highmem=off by default.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 arch/arm/Kconfig                    | 1 +
 test/arm/qemu_virt64_defconfig.yaml | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index a8b7bdeaa6ee..14aa7e26af29 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -276,6 +276,7 @@ config ARCH_ARM64_VIRT
 	select SYS_SUPPORTS_64BIT_KERNEL
 	select ARM_AMBA
 	select BOARD_ARM_VIRT
+	select HW_HAS_PCI
 
 endchoice
 
diff --git a/test/arm/qemu_virt64_defconfig.yaml b/test/arm/qemu_virt64_defconfig.yaml
index ed308591da53..5da5dfeb7e27 100644
--- a/test/arm/qemu_virt64_defconfig.yaml
+++ b/test/arm/qemu_virt64_defconfig.yaml
@@ -3,7 +3,7 @@ targets:
     drivers:
       QEMUDriver:
         qemu_bin: qemu
-        machine: virt
+        machine: virt,highmem=off
         cpu: cortex-a57
         memory: 1024M
         kernel: barebox-dt-2nd.img
-- 
2.30.2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 2/2] ARM64: qemu-virt64: extend config for PCI, Virt I/O and more
  2021-11-17 13:00 [PATCH 1/2] ARM64: qemu-virt: enable PCI support Ahmad Fatoum
@ 2021-11-17 13:00 ` Ahmad Fatoum
  2021-11-22  8:54 ` [PATCH 1/2] ARM64: qemu-virt: enable PCI support Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Ahmad Fatoum @ 2021-11-17 13:00 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

Besides some generic features like initrd booting and bootloader spec,
there have been some drivers added since last time the config was
touched, e.g. Virt I/O networking, input and generic ECAM PCI. Extend
the config to support these. Example of something newly possible:

  test/emulate.pl qemu_virt64_defconfig -- -device VGA

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 arch/arm/configs/qemu_virt64_defconfig | 35 ++++++++++++++++++++++++--
 1 file changed, 33 insertions(+), 2 deletions(-)

diff --git a/arch/arm/configs/qemu_virt64_defconfig b/arch/arm/configs/qemu_virt64_defconfig
index 17509ce9d644..57e715bf8d09 100644
--- a/arch/arm/configs/qemu_virt64_defconfig
+++ b/arch/arm/configs/qemu_virt64_defconfig
@@ -1,25 +1,31 @@
 CONFIG_ARCH_ARM64_VIRT=y
 CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
+CONFIG_ARM_PSCI_CLIENT=y
 CONFIG_MMU=y
 # CONFIG_MMU_EARLY is not set
+CONFIG_MALLOC_SIZE=0x0
 CONFIG_KALLSYMS=y
 CONFIG_PROMPT=""
 CONFIG_HUSH_FANCY_PROMPT=y
 CONFIG_CMDLINE_EDITING=y
 CONFIG_AUTO_COMPLETE=y
 CONFIG_MENU=y
-CONFIG_IMD=y
+CONFIG_BOOTM_INITRD=y
+CONFIG_BLSPEC=y
 CONFIG_CONSOLE_ACTIVATE_NONE=y
 CONFIG_CONSOLE_ALLOW_COLOR=y
 CONFIG_PARTITION_DISK_EFI=y
 CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW=y
-CONFIG_POLLER=y
 CONFIG_STATE=y
 CONFIG_BOOTCHOOSER=y
 CONFIG_RESET_SOURCE=y
 CONFIG_MACHINE_ID=y
 CONFIG_LONGHELP=y
+CONFIG_CMD_IOMEM=y
+CONFIG_CMD_IMD=y
 CONFIG_CMD_MEMINFO=y
+CONFIG_CMD_POLLER=y
+CONFIG_CMD_SLICE=y
 CONFIG_CMD_GO=y
 CONFIG_CMD_LOADB=y
 CONFIG_CMD_RESET=y
@@ -32,6 +38,7 @@ CONFIG_CMD_MAGICVAR=y
 CONFIG_CMD_MAGICVAR_HELP=y
 CONFIG_CMD_SAVEENV=y
 CONFIG_CMD_FILETYPE=y
+CONFIG_CMD_LN=y
 CONFIG_CMD_SHA256SUM=y
 CONFIG_CMD_UNCOMPRESS=y
 CONFIG_CMD_SLEEP=y
@@ -41,6 +48,8 @@ CONFIG_CMD_LOGIN=y
 CONFIG_CMD_MENU=y
 CONFIG_CMD_MENU_MANAGEMENT=y
 CONFIG_CMD_PASSWD=y
+CONFIG_CMD_SPLASH=y
+CONFIG_CMD_FBTEST=y
 CONFIG_CMD_READLINE=y
 CONFIG_CMD_TIMEOUT=y
 CONFIG_CMD_CRC=y
@@ -48,6 +57,7 @@ CONFIG_CMD_CRC_CMP=y
 CONFIG_CMD_DETECT=y
 CONFIG_CMD_FLASH=y
 CONFIG_CMD_POWEROFF=y
+CONFIG_CMD_SMC=y
 CONFIG_CMD_BAREBOX_UPDATE=y
 CONFIG_CMD_OF_DIFF=y
 CONFIG_CMD_OF_NODE=y
@@ -56,11 +66,20 @@ CONFIG_CMD_OF_DISPLAY_TIMINGS=y
 CONFIG_CMD_OF_FIXUP_STATUS=y
 CONFIG_CMD_OF_OVERLAY=y
 CONFIG_CMD_OFTREE=y
+CONFIG_CMD_TIME=y
 CONFIG_CMD_STATE=y
+CONFIG_NET=y
+CONFIG_NET_NFS=y
+CONFIG_NET_NETCONSOLE=y
+CONFIG_NET_DHCP=y
+CONFIG_NET_SNTP=y
+CONFIG_NET_FASTBOOT=y
 CONFIG_OF_BAREBOX_DRIVERS=y
 CONFIG_OF_BAREBOX_ENV_IN_FS=y
+CONFIG_OF_OVERLAY_LIVE=y
 CONFIG_SERIAL_AMBA_PL011=y
 CONFIG_VIRTIO_CONSOLE=y
+CONFIG_DRIVER_NET_VIRTIO=y
 # CONFIG_SPI is not set
 CONFIG_MTD=y
 CONFIG_DRIVER_CFI=y
@@ -68,11 +87,23 @@ CONFIG_CFI_BUFFER_WRITE=y
 CONFIG_DISK=y
 CONFIG_DISK_WRITE=y
 CONFIG_VIRTIO_BLK=y
+CONFIG_VIDEO=y
+CONFIG_FRAMEBUFFER_CONSOLE=y
+CONFIG_DRIVER_VIDEO_BOCHS_PCI=y
+CONFIG_SOUND=y
+CONFIG_STATE_DRV=y
+CONFIG_VIRTIO_INPUT=y
 CONFIG_HWRNG=y
 CONFIG_HW_RANDOM_VIRTIO=y
 # CONFIG_PINCTRL is not set
+CONFIG_NVMEM=y
+CONFIG_NVMEM_RMEM=y
+CONFIG_PCI_ECAM_GENERIC=y
+CONFIG_NVMEM_REBOOT_MODE=y
 CONFIG_VIRTIO_MMIO=y
+CONFIG_VIRTIO_PCI=y
 CONFIG_FS_EXT4=y
+CONFIG_FS_NFS=y
 CONFIG_FS_FAT=y
 CONFIG_FS_PSTORE=y
 CONFIG_FS_PSTORE_CONSOLE=y
-- 
2.30.2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] ARM64: qemu-virt: enable PCI support
  2021-11-17 13:00 [PATCH 1/2] ARM64: qemu-virt: enable PCI support Ahmad Fatoum
  2021-11-17 13:00 ` [PATCH 2/2] ARM64: qemu-virt64: extend config for PCI, Virt I/O and more Ahmad Fatoum
@ 2021-11-22  8:54 ` Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2021-11-22  8:54 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: barebox

On Wed, Nov 17, 2021 at 02:00:43PM +0100, Ahmad Fatoum wrote:
> We now have a driver for the PCI controller on QEMU, so define
> HW_HAS_PCI. The barebox PCI implementation doesn't yet deal with 64-bit
> addresses, so use -M virt,highmem=off by default.
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
>  arch/arm/Kconfig                    | 1 +
>  test/arm/qemu_virt64_defconfig.yaml | 2 +-
>  2 files changed, 2 insertions(+), 1 deletion(-)

Applied, thanks

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 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-11-22  8:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-17 13:00 [PATCH 1/2] ARM64: qemu-virt: enable PCI support Ahmad Fatoum
2021-11-17 13:00 ` [PATCH 2/2] ARM64: qemu-virt64: extend config for PCI, Virt I/O and more Ahmad Fatoum
2021-11-22  8:54 ` [PATCH 1/2] ARM64: qemu-virt: enable PCI support Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox