Skip to contentSkip to conversation

arm: enable DM_RNG on QEMU by default

PATCH New Heinrich Schuchardt 2 participants 4 messages Sep 19, 2020 – Oct 14, 2020 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: enable DM_RNG on QEMU by default

The EFI_RNG_PROTOCOL is needed for address randomization in Linux. We should provide it by default on QEMU.

---
Resent, cc U-Boot list

---
 arch/arm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/Kconfig +1 -0
index 80702c23d3..4ebedece80 100644
@@ -935,6 +935,7 @@ config ARCH_QEMU
 	select OF_CONTROL
 	select PL01X_SERIAL
 	imply CMD_DM
+	imply DM_RNG
 	imply DM_RTC
 	imply RTC_PL031
 

--
2.28.0

#1 lore raw

PATCH 1/1 arm: enable DM_RNG on QEMU by default

Quoted 5 lines · Heinrich Schuchardt

The EFI_RNG_PROTOCOL is needed for address randomization in Linux. We should provide it by default on QEMU.

This causes cmd_bootefi_selftest to fail on both qemu_arm and qemu_arm64.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200922/46866517/attachment.sig>
#2 lore raw

PATCH 1/1 arm: enable DM_RNG on QEMU by default

Quoted 11 lines · Tom Rini
Quoted 5 lines · Heinrich Schuchardt

The EFI_RNG_PROTOCOL is needed for address randomization in Linux. We should provide it by default on QEMU.

This causes cmd_bootefi_selftest to fail on both qemu_arm and qemu_arm64.

Fixed in https://github.com/swarren/uboot-test-hooks.git by:
cf979fcf372c ("u-boot-hooks: add virtio-rng-pci")

Best regards

Heinrich

#3 lore raw

PATCH 1/1 arm: enable DM_RNG on QEMU by default

In reply to Heinrich Schuchardt
Quoted 5 lines · Heinrich Schuchardt

The EFI_RNG_PROTOCOL is needed for address randomization in Linux. We should provide it by default on QEMU.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20201014/7ee04d8d/attachment.sig>