-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
72 lines (48 loc) · 1.51 KB
/
README
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
The funk kernel: a functional kernel
====================================
This kernel aims at being a working kernel with processes
and system calls, but the thing which makes it different
from other kernels is that it is mainly written using
the OCaml language, which is functional (by the way, it's
a micro-kernel, because monolithic kernels are just bad).
It's exclusively intended to be a bad joke which means that
you should not expect it to be:
- fast,
- secure,
- useful,
- etc.
Current status
==============
Only the i386 architecture is supported for now. Here is what's
currently working:
- a basic shell/console with keyboard input
- a RAM filesystem over a Virtual filesystem (VFS)
- kernel threads
- CPU detection
- PCI devices detection
Some of the x86_64 port has been done (notable PAE support), but is still
missing some initialization bits, so doesn't even build yet.
Prerequisities
==============
To compile the kernel you will need:
- OCaml 3.11
- findlib
- extlib
- mcopy
With Debian the required packages are therefore: ocaml-nox, ocaml-findlib,
libextlib-ocaml-dev and mtools.
With Gentoo the required packages are : dev-lang/ocaml, findlib, extlib and
mtools.
Testing the kernel
==================
To test the kernel you must
1. build the kernel (on an 32bit i386 system only, that can not work on a 64bit
x86_64 system for now).
make
2. launch the simulation
make qemu
(you need qemu for that)
2'. alternatively you can run a simulation with bochs
make bochs
2''. or in a console
make qemuconsole