diff options
author | Ola Redell <ola.redell@retotech.se> | 2017-12-15 15:39:29 +0100 |
---|---|---|
committer | Ola Redell <ola.redell@retotech.se> | 2017-12-15 15:39:29 +0100 |
commit | e0a1fea1252e26f95f5a6302f0079d4e7649ffc2 (patch) | |
tree | b9f45fb0e96a17d6e3257bba0e7c4f510ba335a0 /README.md | |
parent | dee3ee44ae32ffe92d1628b2ad52402bf491a692 (diff) | |
download | meta-jailhouse-e0a1fea1252e26f95f5a6302f0079d4e7649ffc2.tar.gz |
Added example cell recipe with freertos-cell
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 23 |
1 files changed, 20 insertions, 3 deletions
@@ -69,8 +69,8 @@ The jailhouse inmates and cells are by default | |||
69 | placed under `/usr/share/jailhouse/{inmates,cells}`. These locations | 69 | placed under `/usr/share/jailhouse/{inmates,cells}`. These locations |
70 | can be adjusted using the variables in **jailhouse-defs.inc**. | 70 | can be adjusted using the variables in **jailhouse-defs.inc**. |
71 | 71 | ||
72 | The jailhouse build system builds binary cell configuration (*.cell) files | 72 | The jailhouse build system builds binary cell configuration (.cell) files |
73 | from cell configuration sources (*.c). To allow cell configurations to be | 73 | from cell configuration sources (.c). To allow cell configurations to be |
74 | defined in cell recipes and imported into the jailhouse build, the jailhouse | 74 | defined in cell recipes and imported into the jailhouse build, the jailhouse |
75 | recipe defines a CELLS variable that lists all recipes that provide cells (and | 75 | recipe defines a CELLS variable that lists all recipes that provide cells (and |
76 | inmates) for the jailhouse build. Adapt the CELLS variable according to your | 76 | inmates) 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 | ||
81 | in `local.conf`. | ||
81 | With this declaration, freertos-cell entries will be added both to the | 82 | With this declaration, freertos-cell entries will be added both to the |
82 | DEPENDS and the RDEPENDS_jailhouse variables, and the jailhouse recipe will | 83 | DEPENDS and the RDEPENDS_jailhouse variables, and the jailhouse recipe will |
83 | pull cell descriptions from the staging directory before building. | 84 | pull cell descriptions from the staging directory before building. |
@@ -87,7 +88,7 @@ Packages produced by a jailhouse.inc based recipe | |||
87 | ------------------------------------------------- | 88 | ------------------------------------------------- |
88 | 89 | ||
89 | The Jailhouse recipes based on the file jailhouse.inc produce | 90 | The Jailhouse recipes based on the file jailhouse.inc produce |
90 | the follwing packages: | 91 | the following packages: |
91 | 92 | ||
92 | * **jailhouse**, with the `jailhouse.bin` firmware, the `jailhouse` user | 93 | * **jailhouse**, with the `jailhouse.bin` firmware, the `jailhouse` user |
93 | space application, along with all inmate binaries that come with the jailhouse | 94 | space 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 |
114 | a corresponding *.cell file is created. | 115 | a corresponding *.cell file is created. |
115 | 116 | ||
117 | Example cell | ||
118 | ------------ | ||
119 | |||
120 | An example cell recipe for the freertos-cell from Siemens is available | ||
121 | under `recipes-jailhouse/freertos-cell`. To use this, set the | ||
122 | `CELLS` variable accordingly as described above. | ||
123 | |||
124 | Test 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 | |||
132 | You should see output on the serial port used by the FreeRTOS inmate. | ||
116 | 133 | ||
117 | Important Variables | 134 | Important Variables |
118 | =================== | 135 | =================== |