Unable to complete even the basic tutorial about yocto #poky
Hi,
I am following https://docs.yoctoproject.org/brief-yoctoprojectqs/brief-yoctoprojectqs.html.
I am able to compile core-image-sato, but while trying to run there is an error
runqemu qemux86-64
runqemu - INFO - Running MACHINE=qemux86-64 bitbake -e ...
runqemu - INFO - Continuing with the following parameters:
KERNEL: [/home/arun/yocto/poky/build/tmp/deploy/images/qemux86-64/bzImage--5.4.78+git0+d626f9108d_370ef947d5-r0-qemux86-64-20201210083639.bin]
MACHINE: [qemux86-64]
FSTYPE: [ext4]
ROOTFS: [/home/arun/yocto/poky/build/tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64-20201210134810.rootfs.ext4]
CONFFILE: [/home/arun/yocto/poky/build/tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64-20201210134810.qemuboot.conf]
runqemu - INFO - Setting up tap interface under sudo
[sudo] password for arun:
Sorry, try again.
[sudo] password for arun:
runqemu - INFO - Network configuration: ip=192.168.7.2::192.168.7.1:255.255.255.0
runqemu - INFO - Running /home/arun/yocto/poky/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-x86_64 -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/arun/yocto/poky/build/tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64-20201210134810.rootfs.ext4,if=virtio,format=raw -show-cursor -usb -device usb-tablet -object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0 -cpu core2duo -m 256 -serial mon:vc -serial null -kernel /home/arun/yocto/poky/build/tmp/deploy/images/qemux86-64/bzImage--5.4.78+git0+d626f9108d_370ef947d5-r0-qemux86-64-20201210083639.bin -append 'root=/dev/vda rw mem=256M ip=192.168.7.2::192.168.7.1:255.255.255.0 oprofile.timer=1 '
runqemu - ERROR - Failed to run qemu: X Error: BadValue Request Major code 130 (MIT-SHM)
Request Minor code 3 ()
Value 0x400
Error Serial #2168
Current Serial #2169
runqemu - INFO - Cleaning up
Set 'tap0' nonpersistent
My host pc configuration is
Intel NUC
Ubuntu 20.04
regards
Arun
Quoted 35 lines · On 12/10/20 6:22 AM, [email protected] wrote:
Hi,
I am following https://docs.yoctoproject.org/brief-yoctoprojectqs/brief-yoctoprojectqs.html <https://docs.yoctoproject.org/brief-yoctoprojectqs/brief-yoctoprojectqs.html>.
I am able to compile core-image-sato, but while trying to run there is an error
runqemu qemux86-64
runqemu - INFO - Running MACHINE=qemux86-64 bitbake -e ...
runqemu - INFO - Continuing with the following parameters:
KERNEL: [/home/arun/yocto/poky/build/tmp/deploy/images/qemux86-64/bzImage--5.4.78+git0+d626f9108d_370ef947d5-r0-qemux86-64-20201210083639.bin]
MACHINE: [qemux86-64]
FSTYPE: [ext4]
ROOTFS: [/home/arun/yocto/poky/build/tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64-20201210134810.rootfs.ext4]
CONFFILE: [/home/arun/yocto/poky/build/tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64-20201210134810.qemuboot.conf]runqemu - INFO - Setting up tap interface under sudo
[sudo] password for arun:
Sorry, try again.
[sudo] password for arun:
runqemu - INFO - Network configuration: ip=192.168.7.2::192.168.7.1:255.255.255.0
runqemu - INFO - Running/home/arun/yocto/poky/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-x86_64
-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/arun/yocto/poky/build/tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64-20201210134810.rootfs.ext4,if=virtio,format=raw
-show-cursor -usb -device usb-tablet -object
rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0 -cpu core2duo -m 256 -serial mon:vc -serial null -kernel/home/arun/yocto/poky/build/tmp/deploy/images/qemux86-64/bzImage--5.4.78+git0+d626f9108d_370ef947d5-r0-qemux86-64-20201210083639.bin-append 'root=/dev/vda rw mem=256M
ip=192.168.7.2::192.168.7.1:255.255.255.0 oprofile.timer=1 'runqemu - ERROR - Failed to run qemu: X Error: BadValue
Request Major code 130 (MIT-SHM)
Request Minor code 3 ()
Value0x400
Error Serial #2168
Current Serial #2169
Quoted 6 lines
runqemu - INFO - Cleaning up
Set 'tap0' nonpersistentMy host pc configuration is
Intel NUC
Ubuntu 20.04
is this running full desktop ?
can you try runqemu nographic
it could be that graphic system is not properly set on your build host
Quoted 7 lines
regards
Arun
Quoted 5 lines · Khem Raj
is this running full desktop ?
can you try runqemu nographicit could be that graphic system is not properly set on your build host
Yes i am running Full Ubuntu Desktop.
Quoted 9 lines · On 12/11/20 12:16 AM, [email protected] wrote:
On Thu, Dec 10, 2020 at 09:12 AM, Khem Raj wrote:
is this running full desktop ?
can you try runqemu nographicit could be that graphic system is not properly set on your build host
Yes i am running Full Ubuntu Desktop.
OK, and you are not using docker or some such for building/running the images. it seems the X server on your host could be run without MIT-SHM extension ( -extension MIT-SHM ) and see if that helps something like
Section "Extensions"
Option "MIT-SHM" "Disable"
EndSection
in /etc/X11/xorg.conf.d/no-shm.conf
Quoted 3 lines
Quoted 2 lines · Khem Raj
can you try runqemu nographic
runqemu nographics works fine
Quoted 6 lines · On 12/11/20 12:18 AM, [email protected] wrote:
On Thu, Dec 10, 2020 at 09:12 AM, Khem Raj wrote:
can you try runqemu nographic
runqemu nographics works fine
OK, then perhaps try adding in local.conf PACKAGECONFIG_append_pn-qemu-system-native = " sdl"
Quoted 3 lines
Quoted 3 lines · Khem Raj
OK, then perhaps try adding in local.conf PACKAGECONFIG_append_pn-qemu-system-native = " sdl"
It is there already. I think is done always when source oe-init-build-env is done.
Quoted 2 lines · On Fri, Dec 11, 2020 at 08:40 AM, <[email protected]> wrote:
PACKAGECONFIG_append_pn-qemu-system-native = " sdl"
I changed this to gtk+ and the UI came up.