-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathINSTALL_MAC
39 lines (26 loc) · 995 Bytes
/
INSTALL_MAC
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
CertiKOS
=========================
## 1. Make the CertiKOS kernel
### Mac
To compile the kernel code, the following tools needs to be installed:
- i686-elf-binutils
- i686-elf-gcc
If the [Homebrew package manager](https://brew.sh) is used, it is suggested to use the following script to install the above tools.
```
brew tap chrihop/gcc_cross_compilers
brew install i686-elf-binutils i686-elf-gcc
```
In addition, for the requirement of debugging the kernel, a cross-compiler version of `gdb` is also provided:
```
brew install i686-elf-gdb
```
## 2. Build QEMU (Raw) disk image
After the tools are successfully installed, please try:
```
make
```
to compile the kernel, and build the disk image.
## 3. Debug the code
### QEMU
Use command `make qemu` to launch the QEMU virtual machine, and start the CertiKOS OS.
To debug the kernel, use command `make qemu-gdb` to launch QEMU, and then `make gdb` to start gdb for current machine architecture in another terminal tab ('CMD + T').