-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b6cb0f4
commit 9b832f5
Showing
1 changed file
with
68 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,89 @@ | ||
Hello World Setup with seL4 Tutorials | ||
1.1 Setup with seL4-Tutorials-Manifest and Environment | ||
Create a directory for the tutorials: | ||
bash | ||
mkdir sel4-tutorials-manifest | ||
cd sel4-tutorials-manifest | ||
|
||
Initialize the repository: | ||
bash | ||
# Hello World Tutorial Setup with seL4-tutorials-manifest | ||
|
||
## 1.1 Setup with seL4-tutorials-manifest and Virtual Environment | ||
|
||
### Setup: | ||
|
||
- Create a new directory for the tutorial manifest: | ||
|
||
```bash | ||
mkdir sel4-tutorials-manifest | ||
cd sel4-tutorials-manifest | ||
``` | ||
|
||
- Initialize and sync the repository: | ||
|
||
```bash | ||
repo init -u https://github.com/seL4/sel4-tutorials-manifest | ||
repo sync | ||
``` | ||
|
||
Create a virtual Python environment: | ||
bash | ||
python3 -m venv venv | ||
### you should see something like this 👀 👀 👀 | ||
======= | ||
- Create a virtual Python environment and activate the environment | ||
|
||
Activate the virtual environment: | ||
bash | ||
```bash | ||
python3 -m venv venv | ||
source venv/bin/activate | ||
|
||
Install required packages: | ||
bash | ||
``` | ||
|
||
### Dependencies: | ||
|
||
- Install setuptools | ||
|
||
```bash | ||
pip3 install setuptools | ||
``` | ||
|
||
- Install seL4 dependencies | ||
|
||
```bash | ||
pip3 install sel4-deps | ||
``` | ||
|
||
- Install CAmkES dependencies | ||
|
||
```bash | ||
pip3 install camkes-deps | ||
``` | ||
|
||
If only required, install additional packages: | ||
bash | ||
pip install aenum | ||
- If only required, install additional packages: | ||
|
||
```bash | ||
pip install aenum | ||
pip install sh | ||
``` | ||
|
||
## 1.2 Building Your First Program | ||
|
||
To deactivate the environment: | ||
bash | ||
deactivate | ||
- Build the project using ninja: | ||
|
||
Initialize the Hello World tutorial: | ||
bash | ||
```bash | ||
./init --tut hello-world | ||
``` | ||
|
||
- Navigate to the build directory: | ||
|
||
```bash | ||
cd hello-world_build | ||
``` | ||
|
||
- Build the project using ninja: | ||
|
||
1.2 Building Your First Program | ||
Build the program using Ninja: | ||
bash | ||
```bash | ||
ninja | ||
``` | ||
|
||
Clean the build if necessary: | ||
bash | ||
ninja clean | ||
- Clean the build using ninja: | ||
|
||
Run the simulation: | ||
bash | ||
./simulate | ||
```bash | ||
ninja clean | ||
``` | ||
|
||
Output: | ||
text | ||
Booting all finished, dropped to user space | ||
Hello, World! | ||
- Simulate the program: | ||
|
||
Terminate QEMU: Press Ctrl-A, then X. | ||
```bash | ||
ninja clean | ||
``` | ||
<img width="821" alt="Screenshot 2024-09-25 at 16 18 55" src="https://github.com/user-attachments/assets/04d420b4-217e-46e9-bc73-d04dc3a0f39f"> |