]> rtime.felk.cvut.cz Git - hercules2020/jailhouse-build.git/blob - README.md
Update Jailhouse submodule (memguard test inmate)
[hercules2020/jailhouse-build.git] / README.md
1 Repository with Jailhouse build configuration for Jetson TX2
2
3 Building
4 ========
5
6
7     wget https://debian.pengutronix.de/debian/pool/main/o/oselas.toolchain/oselas.toolchain-2014.12.2-aarch64-v8a-linux-gnu-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized_2014.12.2_amd64.deb
8     sudo dpkg -i oselas.toolchain-2014.12.2-aarch64-v8a-linux-gnu-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized_2014.12.2_amd64.deb
9     git submodule update --init
10     cd build
11     make
12
13 The above cross-compiles the following: Linux kernel, Jailhouse and
14 simple root filesystem.
15
16 Building on TX2 (only Jailhouse and Linux)
17 ------------------------------------------
18
19     make jailhouse CROSS_COMPILE=
20
21 Booting
22 =======
23
24 Network boot
25 ------------
26
27 We use novaboot tool (https://github.com/wentasah/novaboot) to boot
28 the resulting images over network. Use the `build/boot` script to boot
29 Jailhouse or `build/boot-linux` to boot plain Linux without starting
30 Jailhouse.
31
32 Flash/SD card boot
33 ------------------
34
35 To boot Linux and Jailhouse without novaboot, create a Debian package
36 by running:
37
38         cd build
39     make deb
40
41 Copy the resulting .deb package to the board and install it with
42
43     dpkg -i jailhouse_*.deb
44
45 After rebooting, choose "prem kernel and jailhouse" entry from the
46 extlinux boot menu. Once the system boots, use `systemctl` command to
47 start/stop jailhouse:
48
49         systemctl {start|stop|status} jailhouse