[meta-xilinx] help with qemuzynq testimage.
Sipke Vriend
sipke.vriend at xilinx.com
Tue Dec 3 14:28:15 PST 2013
Hi Anup,
Thanks for including your build summary and a good description of your
setup.
The meta-xilinx dylan branch (which you are using) does not have a
qemuzynq target.
The meta-xilinx dora branch has the qemuzynq target, but the image
tests are not functional.
We are working on image testing for the meta-xilinx master branch. This
will likely involve some patches being sent to oe-core/poky.
To run qemuzynq on the command line (dora or master branch)
Set MACHINE ??= "qemuzynq" in local.conf.
Ensure TESTIMAGE is NOT set in your local.conf
Run: bitbake core-image-minimal
On build completion
Run: runqemu qemuzynq nographic
(If you don't have sudo access, include slirp as a command line option.)
Log into qemu as root.
Hopefully the command line qemuzynq is something that can help you.
Regards
Sipke
From: meta-xilinx-bounces at yoctoproject.org
[mailto:meta-xilinx-bounces at yoctoproject.org] On Behalf Of Anup Kini
Sent: Wednesday, 4 December 2013 5:44 AM
To: meta-xilinx at yoctoproject.org
Subject: [meta-xilinx] help with qemuzynq testimage.
Hi All,
I am trying to run sanity tests with qemuzynq and poky.
My current setup is as follows:
meta-yocto-bsp = "origin/dylan:e7a20238dc73bb449f15feaf0dead51daf796184"
meta-oe = "origin/dylan:8aafddccb03f54923927e9d1c8c80223baf581de"
meta-xilinx =
"remotes/origin/dylan:21c3cd3f058d736742ebc23a7a954f23456fbea5"
meta-java = "master:14d6ad1608c66b8970d4052dce4cd1fc64fb6ea2"
I have run scrips/runqemu-gen-tapdev to create one tap.
I have update the local.conf with MACHINE = "qemuzynq", TEST_IMAGE = "1" and
INHERITS += "testimage".
I am able to run qemu zynq successfully.
When i run bitbake -c testimage core-image-minimal i get the following error
messages:
ERROR: Error executing a python function in
/home/akini/poky/meta/recipes-core/images/core-image-minimal.bb:
The stack trace of python calls that resulted in this exception/failure was:
File: 'do_testimage', lineno: 6, function: <module>
0002:def do_testimage(d):
0003: testimage_main(d)
0004:
0005:
*** 0006:do_testimage(d)
0007:
File: 'do_testimage', lineno: 3, function: do_testimage
0001:
0002:def do_testimage(d):
*** 0003: testimage_main(d)
0004:
0005:
0006:do_testimage(d)
0007:
File: 'testimage.bbclass', lineno: 74, function: testimage_main
0070:
0071: pn = d.getVar("PN", True)
0072: #catch exceptions when loading or running tests (mostly our
own errors)
0073: try:
*** 0074: if qemu.launch():
0075:
0076: # set more context - ssh instance and qemu
0077: # we do these here because we needed qemu to boot and
get the ip
0078: tc.qemu = qemu
File: '/home/akini/poky/meta/lib/oeqa/utils/qemurunner.py', lineno: 100,
function: launch
0096:
0097: if self.is_alive():
0098: bb.note("qemu started - qemu procces pid is %s" %
self.qemupid)
0099: cmdline = open('/proc/%s/cmdline' % self.qemupid).read()
*** 0100: self.ip, _, self.host_ip =
cmdline.split('ip=')[1].split(' ')[0].split(':')[0:3]
0101: if not re.search("^((?:[0-9]{1,3}\.){3}[0-9]{1,3})$",
self.ip):
0102: bb.note("Couldn't get ip from qemu process
arguments, I got '%s'" % self.ip)
0103: bb.note("Here is the ps output:\n%s" % cmdline)
0104: self.kill()
Exception: IndexError: list index out of range
ERROR: Function failed: do_testimage
ERROR: Logfile of failure stored in:
/home/akini/poky/build/tmp/work/qemuzynq-poky-linux-gnueabi/core-image-minimal
/1.0-r0/temp/log.do_testimage.23889
ERROR: Task 0
(/home/akini/poky/meta/recipes-core/images/core-image-minimal.bb,
do_testimage) failed with exit code '1'
Kindly let me know if anyone has tried running sanity tests for qemuzynq.
--
Anup Kini
Systems Engineer
________________________________________
Synapticon | Cyber-Physical System Solutions
Mobile:
Direct: +49 151 / 638 646 73
+49 7335 / 186 999 21
Fax: +49 7335 / 186 999 1
synapticon.com | @synapticon_co
Synapticon GmbH | Hohlbachweg 2 | 73344 Gruibingen, DE
Secretary +49 7335 / 186 999 0 | General Manager: Nikolai Ensslen
Registry Court Ulm HRB 725114 | USt-ID DE271647127
This message and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
Please notify the sender immediately if you have received this e-mail by
mistake and delete it from your system.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-xilinx/attachments/20131203/02e39777/attachment.html>
More information about the meta-xilinx
mailing list