summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorOla Redell <ola.redell@retotech.se>2017-12-15 15:39:29 +0100
committerOla Redell <ola.redell@retotech.se>2017-12-15 15:39:29 +0100
commite0a1fea1252e26f95f5a6302f0079d4e7649ffc2 (patch)
treeb9f45fb0e96a17d6e3257bba0e7c4f510ba335a0 /README.md
parentdee3ee44ae32ffe92d1628b2ad52402bf491a692 (diff)
downloadmeta-jailhouse-e0a1fea1252e26f95f5a6302f0079d4e7649ffc2.tar.gz
Added example cell recipe with freertos-cell
Diffstat (limited to 'README.md')
-rw-r--r--README.md23
1 files changed, 20 insertions, 3 deletions
diff --git a/README.md b/README.md
index e5d21a1..29a9edc 100644
--- a/README.md
+++ b/README.md
@@ -69,8 +69,8 @@ The jailhouse inmates and cells are by default
69placed under `/usr/share/jailhouse/{inmates,cells}`. These locations 69placed under `/usr/share/jailhouse/{inmates,cells}`. These locations
70can be adjusted using the variables in **jailhouse-defs.inc**. 70can be adjusted using the variables in **jailhouse-defs.inc**.
71 71
72The jailhouse build system builds binary cell configuration (*.cell) files 72The jailhouse build system builds binary cell configuration (.cell) files
73from cell configuration sources (*.c). To allow cell configurations to be 73from cell configuration sources (.c). To allow cell configurations to be
74defined in cell recipes and imported into the jailhouse build, the jailhouse 74defined in cell recipes and imported into the jailhouse build, the jailhouse
75recipe defines a CELLS variable that lists all recipes that provide cells (and 75recipe defines a CELLS variable that lists all recipes that provide cells (and
76inmates) for the jailhouse build. Adapt the CELLS variable according to your 76inmates) for the jailhouse build. Adapt the CELLS variable according to your
@@ -78,6 +78,7 @@ needs, e.g.
78 78
79 CELLS_append = " freertos-cell" 79 CELLS_append = " freertos-cell"
80 80
81in `local.conf`.
81With this declaration, freertos-cell entries will be added both to the 82With this declaration, freertos-cell entries will be added both to the
82DEPENDS and the RDEPENDS_jailhouse variables, and the jailhouse recipe will 83DEPENDS and the RDEPENDS_jailhouse variables, and the jailhouse recipe will
83pull cell descriptions from the staging directory before building. 84pull cell descriptions from the staging directory before building.
@@ -87,7 +88,7 @@ Packages produced by a jailhouse.inc based recipe
87------------------------------------------------- 88-------------------------------------------------
88 89
89The Jailhouse recipes based on the file jailhouse.inc produce 90The Jailhouse recipes based on the file jailhouse.inc produce
90the follwing packages: 91the following packages:
91 92
92* **jailhouse**, with the `jailhouse.bin` firmware, the `jailhouse` user 93* **jailhouse**, with the `jailhouse.bin` firmware, the `jailhouse` user
93space application, along with all inmate binaries that come with the jailhouse 94space application, along with all inmate binaries that come with the jailhouse
@@ -113,6 +114,22 @@ Using this class and variables ensures that the file designated by the
113`CELLCONFIG` variable is pulled into the jailhouse build such that 114`CELLCONFIG` variable is pulled into the jailhouse build such that
114a corresponding *.cell file is created. 115a corresponding *.cell file is created.
115 116
117Example cell
118------------
119
120An example cell recipe for the freertos-cell from Siemens is available
121under `recipes-jailhouse/freertos-cell`. To use this, set the
122`CELLS` variable accordingly as described above.
123
124Test the cell by executing the following sequence once booted.
125
126 export JAILHOUSE_DIR=/usr/share/jailhouse
127 jailhouse enable ${JAILHOUSE_DIR}/cells/plamics-bpi-root.cell
128 jailhouse cell create ${JAILHOUSE_DIR}/cells/freertos-cell.cell
129 jailhouse cell load FreeRTOS ${JAILHOUSE_DIR}/inmates/freertos-demo.bin
130 jailhouse cell start FreeRTOS
131
132You should see output on the serial port used by the FreeRTOS inmate.
116 133
117Important Variables 134Important Variables
118=================== 135===================