[PATCH test hooks 1/1] u-boot-hooks: add virtio-rng-pci

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH test hooks 1/1] u-boot-hooks: add virtio-rng-pci

Heinrich Schuchardt
In the UEFI subsystem we test the RNG device.
On QEMU it is provided via '-device virtio-rng-pci'.

We need to add this PCI device before enable DM_RNG on ARCH_ARM.

Signed-off-by: Heinrich Schuchardt <[hidden email]>
---
Tested on Gitlab CI:
https://gitlab.denx.de/u-boot/custodians/u-boot-efi/-/commits/efi-2020-10
---
 bin/travis-ci/conf.qemu_arm64_na | 2 +-
 bin/travis-ci/conf.qemu_arm_na   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/travis-ci/conf.qemu_arm64_na b/bin/travis-ci/conf.qemu_arm64_na
index c507aad..e7c9426 100644
--- a/bin/travis-ci/conf.qemu_arm64_na
+++ b/bin/travis-ci/conf.qemu_arm64_na
@@ -23,7 +23,7 @@
 console_impl=qemu
 qemu_machine="virt"
 qemu_binary="qemu-system-aarch64"
-qemu_extra_args="-cpu cortex-a57 -nographic -netdev user,id=net0,tftp=${UBOOT_TRAVIS_BUILD_DIR} -device e1000,netdev=net0"
+qemu_extra_args="-cpu cortex-a57 -nographic -netdev user,id=net0,tftp=${UBOOT_TRAVIS_BUILD_DIR} -device e1000,netdev=net0 -device virtio-rng-pci"
 qemu_kernel_args="-bios ${U_BOOT_BUILD_DIR}/u-boot.bin"
 reset_impl=none
 flash_impl=none
diff --git a/bin/travis-ci/conf.qemu_arm_na b/bin/travis-ci/conf.qemu_arm_na
index 7662c62..0f07c80 100644
--- a/bin/travis-ci/conf.qemu_arm_na
+++ b/bin/travis-ci/conf.qemu_arm_na
@@ -23,7 +23,7 @@
 console_impl=qemu
 qemu_machine="virt"
 qemu_binary="qemu-system-arm"
-qemu_extra_args="-nographic -netdev user,id=net0,tftp=${UBOOT_TRAVIS_BUILD_DIR} -device e1000,netdev=net0"
+qemu_extra_args="-nographic -netdev user,id=net0,tftp=${UBOOT_TRAVIS_BUILD_DIR} -device e1000,netdev=net0 -device virtio-rng-pci"
 qemu_kernel_args="-bios ${U_BOOT_BUILD_DIR}/u-boot.bin"
 reset_impl=none
 flash_impl=none
--
2.28.0

Reply | Threaded
Open this post in threaded view
|

Re: [PATCH test hooks 1/1] u-boot-hooks: add virtio-rng-pci

Stephen Warren-2
On 9/22/20 12:27 PM, Heinrich Schuchardt wrote:
> In the UEFI subsystem we test the RNG device.
> On QEMU it is provided via '-device virtio-rng-pci'.
>
> We need to add this PCI device before enable DM_RNG on ARCH_ARM.

Applied, thanks.