[OE-core] [PATCH] machine/qemu*: fix kernel finish crng init more and more slowly

Hongxu Jia hongxu.jia at windriver.com
Tue Oct 30 02:00:51 UTC 2018


On 2018/10/26 下午9:59, Hongxu Jia wrote:
> --- a/meta/conf/machine/include/qemuboot-x86.inc
> +++ b/meta/conf/machine/include/qemuboot-x86.inc
> @@ -11,7 +11,8 @@ QB_CPU_KVM_x86-64 = "-cpu core2duo"
>   QB_AUDIO_DRV = "alsa"
>   QB_AUDIO_OPT = "-soundhw ac97,es1370"
>   QB_KERNEL_CMDLINE_APPEND = "vga=0 uvesafb.mode_option=${UVESA_MODE} oprofile.timer=1 uvesafb.task_timeout=-1"
> +QB_OPT_APPEND = "-vga vmware -show-cursor -usb -device usb-tablet -device"

Hi RP,

Sorry there is an extra `-device' should be remove which caused the 
issue you mentioned.

[snip]

runqemu - INFO - Running 
/home/pokybuild/yocto-worker/nightly-deb-non-deb/build/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-i386 
-device virtio-net-pci,netdev=net0,mac=52:54:00:12:34:04 -netdev 
tap,id=net0,ifname=tap1,script=no,downscript=no -drive 
file=/home/pokybuild/yocto-worker/nightly-deb-non-deb/build/build/tmp/deploy/images/qemux86/core-image-sato-qemux86.ext4,if=virtio,format=raw 
-vga vmware -show-cursor -usb -device usb-tablet -device -object 
rng-random,filename=/dev/urandom,id=rng0 -device 
virtio-rng-pci,rng=rng0  -serial tcp:127.0.0.1:56531 -pidfile 
pidfile_43632  -cpu pentium2 -enable-kvm -m 256 -serial 
tcp:127.0.0.1:46573 -snapshot -kernel 
/home/pokybuild/yocto-worker/nightly-deb-non-deb/build/build/tmp/deploy/images/qemux86/bzImage--4.18.14+git0+bf98e195a4_33859b3077-r0.2-qemux86-20181019214032.bin 
-append 'root=/dev/vda rw highres=off  clocksource=kvm-clock 
hpet=disable noapic nolapic mem=256M 
ip=192.168.7.4::192.168.7.3:255.255.255.0 vga=0 
uvesafb.mode_option=640x480-32 oprofile.timer=1 uvesafb.task_timeout=-1 
console=tty1 console=ttyS0,115200n8 printk.time=1'

runqemu - ERROR - Failed to run qemu: qemu-system-i386: -device -object: 
Could not open 'rng-random,filename=/dev/urandom,id=rng0': No such file 
or directory

[snip]

After I do a runqemu build on qemux86/qemux86-64, then V2 incoming

//Hongxu

>   # Add the 'virtio-rng-pci' device otherwise the guest may run out of entropy
> -QB_OPT_APPEND = "-vga vmware -show-cursor -usb -device usb-tablet -device virtio-rng-pci"
> +QB_OPT_APPEND += "-object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0"
>   





More information about the Openembedded-core mailing list