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

Sangal, Apoorv apoorv.sangal at intel.com
Thu May 31 00:58:36 PDT 2018


> -----Original Message-----
> From: poky-bounces at yoctoproject.org [mailto:poky-
> bounces at yoctoproject.org] On Behalf Of Anand Ingale
> Sent: Thursday, May 31, 2018 3:15 PM
> To: 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> "
> 
> }}}
> 
> 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>
>      # 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
> 



More information about the poky mailing list