[yocto] [meta-zephyr][PATCH 4/4] README.txt: Updated for qemu-nios2

Juro Bystricky juro.bystricky at intel.com
Mon Jan 23 16:00:48 PST 2017


Also replaced all "qemux86" with "qemu-x86"

Signed-off-by: Juro Bystricky <juro.bystricky at intel.com>
---
 README.txt | 32 +++++++++++++++++++-------------
 1 file changed, 19 insertions(+), 13 deletions(-)

diff --git a/README.txt b/README.txt
index cb9a36a..230ad41 100644
--- a/README.txt
+++ b/README.txt
@@ -3,6 +3,8 @@ Building Zephyr Images via bitbake recipes
 
 Prerequisites:
 
+Yocto distro "morty"
+
 Modify local conf by adding:
     DISTRO="zephyr"
 
@@ -11,29 +13,27 @@ Add "meta-zephyr" to BBLAYERS
 
 Building and Running Zephyr tests
 =================================
-Presently only toolchains for ARM and x86 are supported.
+Presently only toolchains for ARM, x86, IAMCU and Nios2 are supported.
 (For ARM we use CortexM3 toolchain)
 
-Default Zephyr BOARD is selected as follows:
-
-BOARD_arm ?= "qemu_cortex_m3"
-BOARD_x86 ?= "qemu_x86"
-
 You can build and test an individual existing Zephyr test.
 This is done by appending the actual test name to the "zephyr-kernel-test",
 for example:
 
-    $ MACHINE=qemux86 bitbake zephyr-kernel-test-test_sleep
-    $ MACHINE=qemux86 bitbake zephyr-kernel-test-test_sleep -ctestimage
+    $ MACHINE=qemu-x86 bitbake zephyr-kernel-test-test_sleep
+    $ MACHINE=qemu-x86 bitbake zephyr-kernel-test-test_sleep -ctestimage
 
-You can also build and run all Zephyr existing tests (as slisted in the file
+You can also build and run all Zephyr existing tests (as listed in the file
 zephyr-kernel-test.inc). For example:
-    $ MACHINE=qemux86 bitbake zephyr-kernel-test-all
-    $ MACHINE=qemux86 bitbake zephyr-kernel-test-all -ctestimage
+    $ MACHINE=qemu-x86 bitbake zephyr-kernel-test-all
+    $ MACHINE=qemu-x86 bitbake zephyr-kernel-test-all -ctestimage
 or 
     $ MACHINE=qemu-cortex-m3 bitbake zephyr-kernel-test-all
     $ MACHINE=qemu-cortex-m3 bitbake zephyr-kernel-test-all -ctestimage
-    
+or 
+    $ MACHINE=qemu-nios2 bitbake zephyr-kernel-test-all
+    $ MACHINE=qemu-nios2 bitbake zephyr-kernel-test-all -ctestimage
+        
 
 
 Building and Running Zephyr Samples
@@ -41,7 +41,7 @@ Building and Running Zephyr Samples
 You can also build Zephyr samples. There is a sample recipe that builds
 Zephyr "philosophers" sample:
     
-    $ MACHINE=qemux86 bitbake zephyr-philosophers
+    $ 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):
@@ -57,3 +57,9 @@ The same sample, for ARM image:
            -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
+
-- 
2.7.4




More information about the yocto mailing list