[poky] testimage feature ( automated tests for qemu images ) not working for qemuarm virt machine

Anand Ingale anand.build1985 at gmail.com
Thu May 31 02:03:26 PDT 2018


AIngale at swpfintbld03:~/Poky-1/poky-virt/build-2$ bitbake core-image-minimal
-c testimage
WARNING: Host distribution "ubuntu-14.04" has not been validated with this
version of the build system; you may possibly experience unexpected
failures. It is recommended that you use a tested distribution.
Loading cache: 100%
|###########################################################################################################|
Time: 0:00:00
Loaded 1280 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.36.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal-4.8"
TARGET_SYS           = "arm-poky-linux-gnueabi"
MACHINE              = "qemuarm"
DISTRO               = "poky"
DISTRO_VERSION       = "2.4.2"
TUNE_FEATURES        = "arm armv5 thumb dsp"
TARGET_FPU           = "soft"
meta
meta-poky
meta-yocto-bsp       = "rocko:9915e071bcadd7c4d5363a067c529889851d37a5"

Initialising tasks: 100%
|######################################################################################################|
Time: 0:00:03
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: core-image-minimal-1.0-r0 do_testimage: Qemu ended unexpectedly,
dump data from host is in /tmp/oe-saved-tests/201805310859_qemu
ERROR: core-image-minimal-1.0-r0 do_testimage: testimage received SIGTERM,
shutting down...
ERROR: core-image-minimal-1.0-r0 do_testimage: core-image-minimal - FAILED
- tests were interrupted during execution
ERROR: core-image-minimal-1.0-r0 do_testimage: Function failed: do_testimage
ERROR: Logfile of failure stored in:
/home/AIngale/Poky-1/poky-virt/build-2/tmp/work/qemuarm-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_testimage.45252
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are
['virtual:native:/home/AIngale/Poky-1/poky-virt/meta/recipes-devtools/createrepo-c/createrepo-c_git.bb:do_populate_sysroot',
'virtual:native:/home/AIngale/Poky-1/poky-virt/meta/recipes-devtools/qemu/qemu_2.10.0.bb:do_populate_sysroot',
'/home/AIngale/Poky-1/poky-virt/meta/recipes-devtools/qemu/qemu-helper-native_1.0.bb:do_populate_sysroot',
'virtual:native:/home/AIngale/Poky-1/poky-virt/meta/recipes-extended/cpio/cpio_2.12.bb:
do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['createrepo-c-native',
'qemu-native', 'qemu-helper-native', 'cpio-native', 'quilt-native',
'zlib-native', 'pkgconfig-native', 'alsa-lib-native', 'libtool-native',
'pixman-native', 'automake-native', 'glib-2.0-native', 'libsdl-native',
'dtc-native', 'autoconf-native', 'gnu-config-native',
'texinfo-dummy-native', 'gettext-minimal-native', 'curl-native',
'cmake-native', 'file-native', 'python3-native', 'rpm-native',
'sqlite3-native', 'libxml2-native', 'openssl-native', 'xz-native',
'expat-native', 'libpng-native', 'util-macros-native', 'gettext-native',
'gtk-doc-native', 'libpcre-native', 'libffi-native', 'util-linux-native',
'libxext-native', 'libxrender-native', 'libxrandr-native', 'libx11-native',
'flex-native', 'bison-native', 'm4-native', 'bzip2-native',
'readline-native', 'nss-native', 'elfutils-native', 'popt-native',
'db-native', 'libarchive-native', 'dbus-native', 'makedepend-native',
'cryptodev-linux-native', 'pigz-native', 'ncurses-native', 'lzo-native',
'xextproto-native', 'xproto-native', 'renderproto-native',
'randrproto-native', 'inputproto-native', 'xtrans-native', 'libxcb-native',
'kbproto-native', 'nspr-native', 'e2fsprogs-native',
'libpthread-stubs-native', 'libxdmcp-native', 'xcb-proto-native',
'libxau-native', 'attr-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing python function do_testimage
| DEBUG: Not using kvm for runqemu
| DEBUG: Created listening socket for qemu serial console on:
127.0.0.1:33331
| DEBUG: Created listening socket for qemu serial console on:
127.0.0.1:49750
| DEBUG: launchcmd=runqemu snapshot   nographic qemuarm
/home/AIngale/Poky-1/poky-virt/build-2/tmp/deploy/images/qemuarm/core-image-minimal-qemuarm.ext4
tcpserial=49750 bootparams="console=tty1 console=ttyS0,115200n8
printk.time=1" qemuparams="-serial tcp:127.0.0.1:33331 -pidfile
pidfile_45252"
| DEBUG: runqemu started, pid is 45707
| DEBUG: waiting at most 120 seconds for qemu pid
| DEBUG: qemu started in 2.0028998851776123 seconds - qemu procces pid is
47588
| DEBUG: qemu cmdline used:
|
/home/AIngale/Poky-1/poky-virt/build-2/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-arm
-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/AIngale/Poky-1/poky-virt/build-2/tmp/deploy/images/qemuarm/core-image-minimal-qemuarm.ext4,if=virtio,format=raw
-show-cursor -device virtio-rng-pci -nographic -serial tcp:127.0.0.1:33331
-pidfile pidfile_45252 -machine virt -m 256 -serial tcp:127.0.0.1:49750
-snapshot -kernel
/home/AIngale/Poky-1/poky-virt/build-2/tmp/deploy/images/qemuarm/zImage
-append root=/dev/vda rw highres=off  console=ttyS0 mem=256M ip=192.168.7.2:
:192.168.7.1:255.255.255.0 console=ttyAMA0,115200 console=tty console=tty1
console=ttyS0,115200n8 printk.time=1
| DEBUG: Target IP: 192.168.7.2
| DEBUG: Server IP: 192.168.7.1
| DEBUG: Starting logging thread
| DEBUG: Starting thread event loop
| DEBUG: Connection request received
| DEBUG: Setting connection established event
| DEBUG: Output from runqemu:
| runqemu - INFO - Continuing with the following parameters:
|
| runqemu - INFO - Using preconfigured tap device tap0
| runqemu - INFO - If this is not intended, touch
/tmp/qemu-tap-locks/tap0.skip to make runqemu skip tap0.
| runqemu - INFO - Network configuration: 192.168.7.2::192.168.7.1:255
.255.255.0
| runqemu - INFO - Running
/home/AIngale/Poky-1/poky-virt/build-2/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-arm
-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/AIngale/Poky-1/poky-virt/build-2/tmp/deploy/images/qemuarm/core-image-minimal-qemuarm.ext4,if=virtio,format=raw
-show-cursor  -device virtio-rng-pci  -nographic -serial tcp:127.0.0.1:33331
-pidfile pidfile_45252 -machine virt  -m 256 -serial tcp:127.0.0.1:49750
-snapshot -kernel
/home/AIngale/Poky-1/poky-virt/build-2/tmp/deploy/images/qemuarm/zImage
-append 'root=/dev/vda rw highres=off  console=ttyS0 mem=256M
ip=192.168.7.2::192.168.7.1:255.255.255.0 console=ttyAMA0,115200
console=tty console=tty1 console=ttyS0,115200n8 printk.time=1'
|
| QEMU 2.10.0 monitor - type 'help' for more information
| (qemu)
| DEBUG: Waiting at most 1000 seconds for login banner
| DEBUG: Connection from 127.0.0.1:47228
| DEBUG: Target didn't reached login boot in 1000 seconds
| DEBUG: Last 25 lines of text:
| [    0.992021] IP-Config: Complete:
| [    0.992354]      device=eth0, hwaddr=52:54:00:12:34:02,
ipaddr=192.168.7.2, mask=255.255.255.0, gw=192.168.7.1
| [    0.992529]      host=192.168.7.2, domain=, nis-domain=(none)
| [    0.992661]      bootserver=255.255.255.255,
rootserver=255.255.255.255, rootpath=
| [    1.073664] EXT4-fs (vda): recovery complete
| [    1.076213] EXT4-fs (vda): mounted filesystem with ordered data mode.
Opts: (null)
| [    1.078025] VFS: Mounted root (ext4 filesystem) on device 254:0.
| [    1.080978] devtmpfs: mounted
| [    1.154450] Freeing unused kernel memory: 2048K
| [    2.255136] udevd[69]: starting version 3.2.2
| [    2.267361] random: udevd: uninitialized urandom read (16 bytes read)
| [    2.276791] random: udevd: uninitialized urandom read (16 bytes read)
| [    2.280743] random: udevd: uninitialized urandom read (16 bytes read)
| [    2.376356] udevd[70]: starting eudev-3.2.2
| [    8.340642] EXT4-fs (vda): re-mounted. Opts: (null)
| [   10.052558] urandom_read: 1 callbacks suppressed
| [   10.052693] random: dd: uninitialized urandom read (512 bytes read)
| [   12.312545] uart-pl011 9000000.pl011: no DMA platform data
|
|
| Poky (Yocto Project Reference Distro) 2.4.2 qemuarm /dev/ttyAMA0
|
|
|
| qemuarm login:
| DEBUG: Check full boot log:
/home/AIngale/Poky-1/poky-virt/build-2/tmp/work/qemuarm-poky-linux-gnueabi/core-image-minimal/1.0-r0/testimage/qemu_boot_log.20180531084306
| WARNING: Qemu ended unexpectedly, dump data from host is in
/tmp/oe-saved-tests/201805310859_qemu
| DEBUG: Stopping logging thread
| DEBUG: Stop event received
| DEBUG: Tearing down logging thread
| DEBUG: Sending SIGTERM to runqemu
| ERROR: testimage received SIGTERM, shutting down...
| ERROR: core-image-minimal - FAILED - tests were interrupted during
execution
| DEBUG: Python function do_testimage finished
| ERROR: Function failed: do_testimage
ERROR: Task
(/home/AIngale/Poky-1/poky-virt/meta/recipes-core/images/core-image-minimal.bb:do_testimage)
failed with exit code '1'
NOTE: Tasks Summary: Attempted 563 tasks of which 562 didn't need to be
rerun and 1 failed.

Summary: 1 task failed:

/home/AIngale/Poky-1/poky-virt/meta/recipes-core/images/core-image-minimal.bb:
do_testimage
Summary: There were 2 WARNING messages shown.
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.
AIngale at swpfintbld03:~/Poky-1/poky-virt/build-2$


On Thu, May 31, 2018 at 1:58 PM Sangal, Apoorv <apoorv.sangal at intel.com>
wrote:

>
> > -----Original Message-----
> > From: Anand Ingale [mailto:anand.build1985 at gmail.com]
> > Sent: Thursday, May 31, 2018 4:22 PM
> > To: Sangal, Apoorv <apoorv.sangal at intel.com>
> > Subject: Re: [poky] testimage feature ( automated tests for qemu images
> ) not
> > working for qemuarm virt machine
> >
> > Please clarify , what i need to check to see TAP device is setup
> correctly or not ,
> > as is mentioned i am able to boot qemuarm image
> >
> > {{{
> > MACHINE: [qemuarm]
> > FSTYPE: [ext4]
> > ROOTFS: [/home/AIngale/Poky-1/poky-virt/build-
> > 2/tmp/deploy/images/qemuarm/core-image-minimal-qemuarm-
> > 20180519172847.rootfs.ext4]
> > CONFFILE: [/home/AIngale/Poky-1/poky-virt/build-
> > 2/tmp/deploy/images/qemuarm/core-image-minimal-qemuarm-
> > 20180519172847.qemuboot.conf]
> >
> > runqemu - INFO - Using preconfigured tap device tap0
> > runqemu - INFO - If this is not intended, touch
> /tmp/qemu-tap-locks/tap0.skip to
> > make runqemu skip tap0.
> > runqemu - INFO - Network configuration:
> > 192.168.7.2::192.168.7.1:255.255.255.0
> > runqemu - INFO - Running /home/AIngale/Poky-1/poky-virt/build-
> > 2/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-
> > native/usr/bin/qemu-system-arm -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/AIngale/Poky-1/poky-virt/build-
> > 2/tmp/deploy/images/qemuarm/core-image-minimal-qemuarm-
> > 20180519172847.rootfs.ext4,if=virtio,format=raw -show-cursor  -device
> virtio-
> > rng-pci  -nographic -machine virt  -m 256 -serial mon:stdio -serial null
> -kernel
> > /home/AIngale/Poky-1/poky-virt/build-2/tmp/deploy/images/qemuarm/zImage
> > -append 'root=/dev/vda rw highres=off  console=ttyS0 mem=256M
> > ip=192.168.7.2::192.168.7.1:255.255.255.0 console=ttyAMA0,115200
> > console=tty '
> >
> > ....
> > ...
> > ...
> >
> >
> > [   10.674455] random: dd: uninitialized urandom read (512 bytes read)
> > [   13.339060] uart-pl011 9000000.pl011: no DMA platform data
> >
> > Poky (Yocto Project Reference Distro) 2.4.2 qemuarm /dev/ttyAMA0
> >
> > qemuarm login: root
> > root at qemuarm:~#
> > root at qemuarm:~#
> > root at qemuarm:~#
> >
> > root at qemuarm:~# uname -a
> > Linux qemuarm 4.17.0-rc5-myker #1 SMP Sat May 19 17:25:41 UTC 2018 armv7l
> > GNU/Linux
> > root at qemuarm:~#
> > root at qemuarm:~#
> >
> > }}}
> >
> >
> >
> > Best Regards
> Share complete log of bitbake core-image-minimal -c testimage command.
> -Apoorv
> >
> > On Thu, May 31, 2018 at 1:28 PM Sangal, Apoorv <apoorv.sangal at intel.com
> > <mailto:apoorv.sangal at intel.com> > wrote:
> >
> >
> >
> >       > -----Original Message-----
> >       > From: poky-bounces at yoctoproject.org <mailto:poky-
> > bounces at yoctoproject.org>  [mailto:poky- <mailto:poky->
> >       > bounces at yoctoproject.org <mailto:bounces at yoctoproject.org> ] On
> > Behalf Of Anand Ingale
> >       > Sent: Thursday, May 31, 2018 3:15 PM
> >       > To: poky at yoctoproject.org <mailto:poky at yoctoproject.org>
> >       > Subject: [poky] testimage feature ( automated tests for qemu
> images )
> > not
> >       > working for qemuarm virt machine
> >       >
> >       > Hi All,
> >       >  I have booted qemuarm  image for virt machine ( not for
> versatilepb
> > which is
> >       > available by default in poky) .
> >       >
> >       > in my kernel recipe , source i have taken from below repository
> >       > {{{
> >       >
> >       > SRC_URI =
> > "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> > <http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git>
> >       > <
> http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git> "
> >       >
> >       > }}}
> >       >
> >       > i have created a defconfig file using multi_v7_defconfig
> >       >      # cloned
> > git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> > <http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git>
> >       > <
> http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git>
> >       >      # make multi_v7_defconfig
> >       >      # copied .config generated as defconfig to recipes-kernel
> directory
> >       >
> >       >
> >       >  i have used  core-image-minimal  to build rootfs
> >       >
> >       >  i am able to boot qemu image when i run , # runqemu qemuarm
> > nographic
> >       >  {{{
> >       > Poky (Yocto Project Reference Distro) 2.4.2 qemuarm /dev/ttyAMA0
> >       >
> >       > qemuarm login: root
> >       > root at qemuarm:~#
> >       > root at qemuarm:~# uname -a
> >       > Linux qemuarm 4.17.0-rc5-myker #1 SMP Sat May 19 17:25:41 UTC
> > 2018 armv7l
> >       > GNU/Linux
> >       > root at qemuarm:~#
> >       > }}}
> >       >
> >       > followed this link to run testimage
> >       > https://wiki.yoctoproject.org/wiki/Image_tests
> >       >
> >       >  when i run below commnad , it  fails to run tests
> >       >   # bitbake core-image-minimal -c testimage
> >       > {{{
> >       >  WARNING: Qemu ended unexpectedly, dump data from host is in
> > /tmp/oe-
> >       > saved-tests/201805310707_qemu
> >       > | DEBUG: Stopping logging thread
> >       > | DEBUG: Stop event received
> >       > | DEBUG: Tearing down logging thread
> >       > | DEBUG: Sending SIGTERM to runqemu
> >       > | ERROR: testimage received SIGTERM, shutting down...
> >       > | ERROR: core-image-minimal - FAILED - tests were interrupted
> during
> > execution
> >       > | DEBUG: Python function do_testimage finished
> >       > | ERROR: Function failed: do_testimage
> >       > ERROR: Task (/home/AIngale/Poky-1/poky-virt/meta/recipes-
> >       > core/images/core-image-minimal.bb:do_testimage) failed with exit
> > code '1'
> >       >
> >       > }}}
> >       >
> >       >   do i need enable any kernel config for testimage feature to
> work ??.
> > please
> >       > suggest  what changes i need to do . I have tried this on poky's
> rocko
> > branch .
> >       >
> >       There is no specific kernel configuration needed for testimage
> feature
> > to work.
> >       Please check whether your TAP device is setup correctly for qemu to
> > work.
> >       -Apoorv
> >       > Best Regards
> >       >
> >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/poky/attachments/20180531/0d8ba987/attachment-0001.html>


More information about the poky mailing list