Commit Graph

10 Commits

Author SHA1 Message Date
Naveen Saini
630783f77c zephyrtargetcontrol.py: fix testimage 'testimage_dump_monitor' argument issue
Error log:
Exception: TypeError: __init__() got an unexpected keyword argument 'testimage_dump_monitor'

Ref:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=3acbec85b00d693d2d731bc2b09cc40be1cc68e9

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-05-27 17:59:59 +08:00
Jon Mason
48c5116712 qemuzephyrrunner.py: use existing qemu conf file
Read the generated QEMU conf file, instead of using hard coded values.
This allows for machines not conforming to the hard coded values to work
with testimage.

Signed-off-by: Jon Mason <jon.mason@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-05-21 09:41:26 +08:00
Jon Mason
678600bee6 qemuzephyrrunner.py: add tmpfsdir support
OE-Core rev: fd1c26ab426c3699ffd8082b83d65a84c8eb8bff added an
additional parameter, tmpfsdir, to the API.  This caused testimage to no
longer work in meta-zephyr.  Add that parameter and everything is happy
now.

Signed-off-by: Jon Mason <jon.mason@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-04-27 10:46:58 +08:00
yockgenm
36e7d48141 zephyr: Yocto Image Tests Fix
Fix bug on Image Test, previously the Image Tests was not working
due to update on Yocto Image Test Framework.

The fix has rewritten and restructured existing Image Tests code
to latest Yocto testimage class requirement to make meta-zephyr
able to run Image Tests as expected.

Signed-off-by: yockgenm <yock.gen.mah@intel.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2020-11-09 12:27:14 +08:00
Juro Bystricky
6637130c74 zephyrtargetcontrol: new argument
An additional argument "target_modules_path" is needed in order
to work with the current master. The whole external controller code
handling will be changed in the near future, so this is most likely
only a temporary fix.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-03-06 09:49:30 -08:00
Juro Bystricky
32e3cf773e testimage: performance improvements
Refactored processing of QEMU logs.
The original code read QEMU logs every 30 seconds, which
resulted in each test taking at least 30 seconds to finish.
In reality, most tests take only a few seconds.
Although the tests run in parallel, on systems with only a few
CPUs this can make a very noticable difference.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-02-05 20:54:03 -08:00
Juro Bystricky
18d92a4e86 qemuzephyrrunner.py: support for qemu-nios2
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-23 15:45:09 -08:00
Juro Bystricky
dca66adbe0 qemu-cortex-m3: new MACHINE
Various changes to properly handle QEMU for Cortex M3.
This was solved by creating a new MACHINE qemu-cortex-m3.
Specifying MACHINE=qemu-cortex-m3 will select proper tuning
for the cross-compiler.

Typical usage:

    $ MACHINE=qemu-cortex-m3 bitbake zephyr-philosophers

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-10 16:24:04 -08:00
Juro Bystricky
97643716c2 meta-zephyr: basic upgrade
Numerous changes to allow building and running various
Zephyr tests using Zephyr release 1.6 and Yocto master distro
(commit 3676601335b4673e3572d5a9987a351f0bb44bcb and later)
Work in progress.

Notable changes:
1. Zephyr 1.6 does not support the concept of nano and micro kernel
   anymore.
2. Location of various tests have changed
3. Changes due to subtle python3/python2 differences
4. Zephyr Makefile changes (including renaming)
5. Improved failed test detection
6. Remove patch files no longer needed

With these changes, it is now possible to run Zephyr test suite and
Zephyr sample programs. Currently only x86 CPUs are supported, with
additional CPU support coming in the near future, in particular
support for ARM Cortex-M3 CPUs

Prerequisites:
Modify local conf by adding:
DISTRO="zephyr"
MACHINE?="qemux86"

Modify bblayers.conf by adding "meta-zephyr" to BBLAYERS

To build all Zephyr tests:
    $ bitbake zephyr-kernel-test-all

To test all built test images:
    $ bitbake zephyr-kernel-test-all -ctestimage

You can also build and test an individual test. This is done by appending
the actual test name to the "zephyr-kernel-test", for example:

    $ bitbake zephyr-kernel-test-test_sleep
    $ bitbake zephyr-kernel-test-test_sleep -ctestimage

It is also possible to build Zephyr sample programs. Included is a sample recipe
that builds the Zephyr "philosophers" sample:

    $ bitbake zephyr-philosophers

Once built, you can run the created "philosophers" image in qemu (at this point
the various paths have to be entered manually):

    $  ./tmp/sysroots/x86_64-linux/usr/bin/qemu-system-i386 \
         -kernel ./tmp/deploy/images/qemux86/philosophers.elf \
         -nographic -machine type=pc-0.14 -display none -clock dynticks \
         -no-acpi -balloon none

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-04 11:10:25 -08:00
Randy Witt
7a8d7eb97e Create the meta-zephyr layer with empty SRC_URI
Initial commit: original work by Randy Witt and Richard Purdie.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-04 11:09:57 -08:00