[poky] Trouble running Poky 2.7 qemu-x86 build
Alexander Kanavin
alex.kanavin at gmail.com
Sat Jul 20 00:19:39 PDT 2019
The line
PACKAGECONFIG_append_pn-qemu-native = " sdl"
looks incorrect. The default local.conf set up for you (when you run
'source oe-init-build-env build') should have the correct one. Where did
that line come from? If it's some manual or guide or wiki, we need to
update it.
Qemu doesn't actually hang, it runs fine but without any graphical output,
because the graphical support is misconfigured (disabled) in your case.
Alex
On Sat, 20 Jul 2019 at 07:56, Geoff Shannon <geoffpshannon at gmail.com> wrote:
> Hi all, I'm trying to get started using Poky to build a custom image to
> run on a beaglebone black. I started off by trying to follow the Yocto
> Project Quickstart and I'm stuck at getting the image to run on QEMU. I'm
> new to both Yocto Project and using QEMU so I expect I'm doing something
> simple that's wrong but I haven't been able to figure it out.
>
> I cloned the poky git repository, checked out tag yocto-2.7, ran `source
> oe-init-build-env build`, setup my local.conf file with the contents in
> file attached to this message, and then ran `bitbake core-image-sato`.
>
> This appeared to complete successfully, so I then proceeded to try and
> test the built image by running `runqemu qemux86`. This spit out this
> output, and then proceeds to hang indefinitely.
>
> ```
> runqemu - INFO - Running MACHINE=qemux86 bitbake -e...
> runqemu - INFO - Continuing with the following parameters:
>
> KERNEL:
> [/home/geoff/prog/yocto/quick-build/poky/build/tmp/deploy/images/qemux86/bzImage--5.0.3+git0+f0b575cda6_3df4aae607-r0-qemux86-20190520070424.bin]
> MACHINE: [qemux86]
> FSTYPE: [ext4]
> ROOTFS:
> [/home/geoff/prog/yocto/quick-build/poky/build/tmp/deploy/images/qemux86/core-image-sato-qemux86-20190520070424.rootfs.ext4]
> CONFFILE:
> [/home/geoff/prog/yocto/quick-build/poky/build/tmp/deploy/images/qemux86/core-image-sato-qemux86-20190520070424.qemuboot.conf]
>
> runqemu - INFO - Setting up tap interface under sudo
> [sudo] password for geoff:
> runqemu - INFO - Network configuration: 192.168.7.2::192.168.7.1:255
> .255.255.0
> runqemu - INFO - Running
> /home/geoff/prog/yocto/quick-build/poky/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:02 -netdev
> tap,id=net0,ifname=tap0,script=no,downscript=no -drive
> file=/home/geoff/prog/yocto/quick-build/poky/build/tmp/deploy/images/qemux86/core-image-sato-qemux86-20190520070424.rootfs.ext4,if=virtio,format=raw
> -vga vmware -show-cursor -usb -device usb-tablet -object
> rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0
> -cpu pentium2 -m 256 -serial mon:vc -serial null -kernel
> /home/geoff/prog/yocto/quick-build/poky/build/tmp/deploy/images/qemux86/bzImage--5.0.3+git0+f0b575cda6_3df4aae607-r0-qemux86-20190520070424.bin
> -append 'root=/dev/vda rw highres=off mem=256M ip=192.168.7.2:
> :192.168.7.1:255.255.255.0 vga=0 uvesafb.mode_option=640x480-32
> oprofile.timer=1 uvesafb.task_timeout=-1 '
> ```
>
> I was under the impression that this would pop up a window with the built
> image running in QEMU, but nothing happens.
>
> In case it helps, the output of `uname -a` on my machine is:
> Linux pop-os 4.18.0-17-generic #18~18.04.1-Ubuntu SMP Fri Mar 15 15:27:12
> UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
>
> If anyone has ideas about what is going wrong, further troubleshooting
> suggestions I would very much appreciate it. If there is a more suitable
> place to ask for this kind of help my apologies and I would appreciate a
> pointer to the correct place to get help.
>
> Thanks,
> Geoff
>
> Nothing is ever easy.
> --
> _______________________________________________
> poky mailing list
> poky at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/poky/attachments/20190720/e67d1caf/attachment-0001.html>
More information about the poky
mailing list