All of lore.kernel.org
 help / color / mirror / Atom feed
* testimage feature ( automated tests for qemu images ) not working for qemuarm virt machine
@ 2018-05-31  7:14 Anand Ingale
  2018-05-31  7:58 ` Sangal, Apoorv
  0 siblings, 1 reply; 7+ messages in thread
From: Anand Ingale @ 2018-05-31  7:14 UTC (permalink / raw)
  To: poky

[-- Attachment #1: Type: text/plain, Size: 1881 bytes --]

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
"

}}}

i have created a defconfig file using multi_v7_defconfig
     # cloned git://
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@qemuarm:~#
root@qemuarm:~# uname -a
Linux qemuarm 4.17.0-rc5-myker #1 SMP Sat May 19 17:25:41 UTC 2018 armv7l
GNU/Linux
root@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 .

Best Regards

[-- Attachment #2: Type: text/html, Size: 2707 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: testimage feature ( automated tests for qemu images ) not working for qemuarm virt machine
  2018-05-31  7:14 testimage feature ( automated tests for qemu images ) not working for qemuarm virt machine Anand Ingale
@ 2018-05-31  7:58 ` Sangal, Apoorv
       [not found]   ` <CA+=TBV5Sx_p_0xa77b5FFb=swc68k49MzOj5ugHEthVNmY=bxA@mail.gmail.com>
  0 siblings, 1 reply; 7+ messages in thread
From: Sangal, Apoorv @ 2018-05-31  7:58 UTC (permalink / raw)
  To: Anand Ingale, poky


> -----Original Message-----
> From: poky-bounces@yoctoproject.org [mailto:poky-
> bounces@yoctoproject.org] On Behalf Of Anand Ingale
> Sent: Thursday, May 31, 2018 3:15 PM
> To: poky@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@qemuarm:~#
> root@qemuarm:~# uname -a
> Linux qemuarm 4.17.0-rc5-myker #1 SMP Sat May 19 17:25:41 UTC 2018 armv7l
> GNU/Linux
> root@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
> 


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: testimage feature ( automated tests for qemu images ) not working for qemuarm virt machine
       [not found]     ` <D4F5B5CFEF9DBB4A9DDB70CFEF737641029EE689@PGSMSX104.gar.corp.intel.com>
@ 2018-05-31  9:03       ` Anand Ingale
  2018-05-31  9:42         ` Anand Ingale
  0 siblings, 1 reply; 7+ messages in thread
From: Anand Ingale @ 2018-05-31  9:03 UTC (permalink / raw)
  To: apoorv.sangal, poky

[-- Attachment #1: Type: text/plain, Size: 15989 bytes --]

AIngale@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@swpfintbld03:~/Poky-1/poky-virt/build-2$


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

>
> > -----Original Message-----
> > From: Anand Ingale [mailto:anand.build1985@gmail.com]
> > Sent: Thursday, May 31, 2018 4:22 PM
> > To: Sangal, Apoorv <apoorv.sangal@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@qemuarm:~#
> > root@qemuarm:~#
> > root@qemuarm:~#
> >
> > root@qemuarm:~# uname -a
> > Linux qemuarm 4.17.0-rc5-myker #1 SMP Sat May 19 17:25:41 UTC 2018 armv7l
> > GNU/Linux
> > root@qemuarm:~#
> > root@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@intel.com
> > <mailto:apoorv.sangal@intel.com> > wrote:
> >
> >
> >
> >       > -----Original Message-----
> >       > From: poky-bounces@yoctoproject.org <mailto:poky-
> > bounces@yoctoproject.org>  [mailto:poky- <mailto:poky->
> >       > bounces@yoctoproject.org <mailto:bounces@yoctoproject.org> ] On
> > Behalf Of Anand Ingale
> >       > Sent: Thursday, May 31, 2018 3:15 PM
> >       > To: poky@yoctoproject.org <mailto:poky@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@qemuarm:~#
> >       > root@qemuarm:~# uname -a
> >       > Linux qemuarm 4.17.0-rc5-myker #1 SMP Sat May 19 17:25:41 UTC
> > 2018 armv7l
> >       > GNU/Linux
> >       > root@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
> >       >
> >
> >
>
>

[-- Attachment #2: Type: text/html, Size: 21376 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: testimage feature ( automated tests for qemu images ) not working for qemuarm virt machine
  2018-05-31  9:03       ` Anand Ingale
@ 2018-05-31  9:42         ` Anand Ingale
  2018-06-01  9:25           ` Sangal, Apoorv
  0 siblings, 1 reply; 7+ messages in thread
From: Anand Ingale @ 2018-05-31  9:42 UTC (permalink / raw)
  To: apoorv.sangal, poky


[-- Attachment #1.1: Type: text/plain, Size: 16671 bytes --]

Attaching  log.do_testimage

On Thu, May 31, 2018 at 2:33 PM Anand Ingale <anand.build1985@gmail.com>
wrote:

> AIngale@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@swpfintbld03:~/Poky-1/poky-virt/build-2$
>
>
> On Thu, May 31, 2018 at 1:58 PM Sangal, Apoorv <apoorv.sangal@intel.com>
> wrote:
>
>>
>> > -----Original Message-----
>> > From: Anand Ingale [mailto:anand.build1985@gmail.com]
>> > Sent: Thursday, May 31, 2018 4:22 PM
>> > To: Sangal, Apoorv <apoorv.sangal@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@qemuarm:~#
>> > root@qemuarm:~#
>> > root@qemuarm:~#
>> >
>> > root@qemuarm:~# uname -a
>> > Linux qemuarm 4.17.0-rc5-myker #1 SMP Sat May 19 17:25:41 UTC 2018
>> armv7l
>> > GNU/Linux
>> > root@qemuarm:~#
>> > root@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@intel.com
>> > <mailto:apoorv.sangal@intel.com> > wrote:
>> >
>> >
>> >
>> >       > -----Original Message-----
>> >       > From: poky-bounces@yoctoproject.org <mailto:poky-
>> > bounces@yoctoproject.org>  [mailto:poky- <mailto:poky->
>> >       > bounces@yoctoproject.org <mailto:bounces@yoctoproject.org> ] On
>> > Behalf Of Anand Ingale
>> >       > Sent: Thursday, May 31, 2018 3:15 PM
>> >       > To: poky@yoctoproject.org <mailto:poky@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@qemuarm:~#
>> >       > root@qemuarm:~# uname -a
>> >       > Linux qemuarm 4.17.0-rc5-myker #1 SMP Sat May 19 17:25:41 UTC
>> > 2018 armv7l
>> >       > GNU/Linux
>> >       > root@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
>> >       >
>> >
>> >
>>
>>

[-- Attachment #1.2: Type: text/html, Size: 21912 bytes --]

[-- Attachment #2: log.do_testimage --]
[-- Type: application/octet-stream, Size: 6884 bytes --]

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: testimage feature ( automated tests for qemu images ) not working for qemuarm virt machine
  2018-05-31  9:42         ` Anand Ingale
@ 2018-06-01  9:25           ` Sangal, Apoorv
  2018-06-01 10:50             ` Anand Ingale
  0 siblings, 1 reply; 7+ messages in thread
From: Sangal, Apoorv @ 2018-06-01  9:25 UTC (permalink / raw)
  To: Anand Ingale, poky

> -----Original Message-----
> From: Anand Ingale [mailto:anand.build1985@gmail.com]
> Sent: Thursday, May 31, 2018 5:42 PM
> To: Sangal, Apoorv <apoorv.sangal@intel.com>; poky@yoctoproject.org
> Subject: Re: [poky] testimage feature ( automated tests for qemu images ) not
> working for qemuarm virt machine
> 
> Attaching  log.do_testimage
> 
> On Thu, May 31, 2018 at 2:33 PM Anand Ingale <anand.build1985@gmail.com
> <mailto:anand.build1985@gmail.com> > wrote:
> 
> 
> 	AIngale@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.
Image was build on host distribution Ubuntu 14.04, there was a warning message indicate this during bitbake.
The highest Kernel Supported version for Ubuntu 14.04 Distribution is up to v4.4 (Ubuntu 14.04.5).
This can be source from https://wiki.ubuntu.com/Kernel/Support.
The kernel image recipe add as core-image-minimal was Kernel version 4.17.0-rc5 which was 3 weeks ago releases by kernel.org. Even the latest Distribution for 18.04 supports kernel up to v4.15 only.

    root@qemuarm:~# uname -a
>  Linux qemuarm 4.17.0-rc5-myker #1 SMP Sat May 19 17:25:41 UTC 2018 armv7lGNU/Linux
My recommendation would be to use Kernel Yocto supported and rebuild the core-image-minimal a version up (16.04) on Host Distribution

-Apoorv

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: testimage feature ( automated tests for qemu images ) not working for qemuarm virt machine
  2018-06-01  9:25           ` Sangal, Apoorv
@ 2018-06-01 10:50             ` Anand Ingale
  0 siblings, 0 replies; 7+ messages in thread
From: Anand Ingale @ 2018-06-01 10:50 UTC (permalink / raw)
  To: apoorv.sangal; +Cc: poky

[-- Attachment #1: Type: text/plain, Size: 2206 bytes --]

On Fri, Jun 1, 2018 at 2:55 PM Sangal, Apoorv <apoorv.sangal@intel.com>
wrote:

> > -----Original Message-----
> > From: Anand Ingale [mailto:anand.build1985@gmail.com]
> > Sent: Thursday, May 31, 2018 5:42 PM
> > To: Sangal, Apoorv <apoorv.sangal@intel.com>; poky@yoctoproject.org
> > Subject: Re: [poky] testimage feature ( automated tests for qemu images
> ) not
> > working for qemuarm virt machine
> >
> > Attaching  log.do_testimage
> >
> > On Thu, May 31, 2018 at 2:33 PM Anand Ingale <anand.build1985@gmail.com
> > <mailto:anand.build1985@gmail.com> > wrote:
> >
> >
> >       AIngale@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.
> Image was build on host distribution Ubuntu 14.04, there was a warning
> message indicate this during bitbake.
> The highest Kernel Supported version for Ubuntu 14.04 Distribution is up
> to v4.4 (Ubuntu 14.04.5).
> This can be source from https://wiki.ubuntu.com/Kernel/Support.
> The kernel image recipe add as core-image-minimal was Kernel version
> 4.17.0-rc5 which was 3 weeks ago releases by kernel.org. Even the latest
> Distribution for 18.04 supports kernel up to v4.15 only.
>
>     root@qemuarm:~# uname -a
> >  Linux qemuarm 4.17.0-rc5-myker #1 SMP Sat May 19 17:25:41 UTC 2018
> armv7lGNU/Linux
> My recommendation would be to use Kernel Yocto supported and rebuild the
> core-image-minimal a version up (16.04) on Host Distribution
>
> -Apoorv
>

Hi ,
     i want to achieve this task on internal kernel 4.1.15 used by my
organization , on host distribution 14.04 . so i cant change kernel and
cant change host distribution .
  Poky's (rocko branch )  default  versatilepb Kernel  4.12.20  works on
host distribution 14.04 without any issues . So i am confused what i need
to change in internal kernel  4.1.15 used by my organization for testimage
feature to work ??  . Only thing i am changing is kernel .. i  am stuck :(

Anand

[-- Attachment #2: Type: text/html, Size: 5184 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* testimage feature ( automated tests for qemu images ) not working for qemuarm virt machine
@ 2018-06-01  6:53 Anand Ingale
  0 siblings, 0 replies; 7+ messages in thread
From: Anand Ingale @ 2018-06-01  6:53 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1882 bytes --]

 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
"

}}}

i have created a defconfig file using multi_v7_defconfig
     # cloned git://
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@qemuarm:~#
root@qemuarm:~# uname -a
Linux qemuarm 4.17.0-rc5-myker #1 SMP Sat May 19 17:25:41 UTC 2018 armv7l
GNU/Linux
root@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 .

Best Regards

[-- Attachment #2: Type: text/html, Size: 21631 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-06-01 10:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-31  7:14 testimage feature ( automated tests for qemu images ) not working for qemuarm virt machine Anand Ingale
2018-05-31  7:58 ` Sangal, Apoorv
     [not found]   ` <CA+=TBV5Sx_p_0xa77b5FFb=swc68k49MzOj5ugHEthVNmY=bxA@mail.gmail.com>
     [not found]     ` <D4F5B5CFEF9DBB4A9DDB70CFEF737641029EE689@PGSMSX104.gar.corp.intel.com>
2018-05-31  9:03       ` Anand Ingale
2018-05-31  9:42         ` Anand Ingale
2018-06-01  9:25           ` Sangal, Apoorv
2018-06-01 10:50             ` Anand Ingale
2018-06-01  6:53 Anand Ingale

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.