aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuro Bystricky <juro.bystricky@intel.com>2017-04-10 15:25:13 -0700
committerJuro Bystricky <juro.bystricky@intel.com>2017-04-10 15:25:13 -0700
commitec70aa457d9084ef51b7110f4993c5932985bf2d (patch)
tree8e460bb02c3572e822108439eb083c0568abbf9c
parentbd4e0ee3e64063cdfaaaad48a109fba5325b75a3 (diff)
downloadmeta-zephyr-ec70aa457d9084ef51b7110f4993c5932985bf2d.tar.gz
meta-zephyr-ec70aa457d9084ef51b7110f4993c5932985bf2d.tar.bz2
meta-zephyr-ec70aa457d9084ef51b7110f4993c5932985bf2d.zip
README.txt: updated
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
-rw-r--r--README.txt59
1 files changed, 30 insertions, 29 deletions
diff --git a/README.txt b/README.txt
index ab9003b..208843b 100644
--- a/README.txt
+++ b/README.txt
@@ -1,17 +1,44 @@
Building Zephyr Images via bitbake recipes
==========================================
+More detailed and up-to-date information can be found here:
+
+https://wiki.yoctoproject.org/wiki/TipsAndTricks/BuildingZephyrImages
+
Prerequisites:
+==============
-Yocto distro "morty"
+Yocto distro (master)"
Modify local conf by adding:
DISTRO="zephyr"
Add "meta-zephyr" to BBLAYERS
+Building and Running Zephyr Samples
+===================================
+
+You can build Zephyr samples. There are several sample recipes.
+For example, to build the Zephyr "philosophers" sample:
+
+ $ MACHINE=qemu-x86 bitbake zephyr-philosophers
+
+You can then run the created "philosophers" image in qemu:
+
+ $ runqemu qemu-x86
+
+The same sample, for ARM image:
+
+ $ MACHINE=qemu-cortex-m3 bitbake zephyr-philosophers
+ $ runqemu qemu-cortex-m3
+
+The same sample, for Nios2 image:
+
+ $ MACHINE=qemu-nios2 bitbake zephyr-philosophers
+ $ runqemu qemu-nios2
+
-Building and Running Zephyr tests
+Building and Running Zephyr Tests
=================================
Presently only toolchains for ARM, x86, IAMCU and Nios2 are supported.
(For ARM we use CortexM3 toolchain)
@@ -25,6 +52,7 @@ for example:
You can also build and run all Zephyr existing tests (as listed in the file
zephyr-kernel-test.inc). For example:
+
$ MACHINE=qemu-x86 bitbake zephyr-kernel-test-all
$ MACHINE=qemu-x86 bitbake zephyr-kernel-test-all -ctestimage
or
@@ -36,30 +64,3 @@ or
-Building and Running Zephyr Samples
-===================================
-You can also build Zephyr samples. There is a sample recipe that builds
-Zephyr "philosophers" sample:
-
- $ MACHINE=qemu-x86 bitbake zephyr-philosophers
-
-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/qemu-x86/philosophers.elf \
- -nographic -machine type=pc-0.14 -display none -clock dynticks \
- -no-acpi -balloon none
-
-The same sample, for ARM image:
- $ MACHINE=qemu-cortex-m3 bitbake zephyr-philosophers
- $ ./tmp/sysroots/x86_64-linux/usr/bin/qemu-system-arm \
- -kernel ./tmp/deploy/images/qemu-cortex-m3/philosophers.elf \
- -cpu cortex-m3 -machine lm3s6965evb -nographic -vga none
-
-The same sample, for Nios2 image:
- $ MACHINE=qemu-nios2 bitbake zephyr-philosophers
- $ ./tmp/sysroots/x86_64-linux/usr/bin/qemu-system-nios2 \
- -kernel ./tmp/deploy/images/qemu-nios2/philosophers.elf \
- -cpu nios2 -machine altera_10m50_zephyr -nographic
-