source: mainline/README.md@ c222816

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since c222816 was 03bf4fc, checked in by Jakub Jermar <jakub@…>, 7 years ago

Mention the aim to adhere to C and C++ standards

  • Property mode set to 100644
File size: 3.7 KB
Line 
1# HelenOS
2
3HelenOS is a portable microkernel-based multiserver operating
4system designed and implemented from scratch. It decomposes key
5operating system functionality such as file systems, networking,
6device drivers and graphical user interface into a collection of
7fine-grained user space components that interact with each other
8via message passing. A failure or crash of one component does not
9directly harm others. HelenOS is therefore flexible, modular,
10extensible, fault tolerant and easy to understand.
11
12HelenOS aims to be compatible with the C11 and C++14 standards, but does not
13aspire to be a clone of any existing operating system and trades compatibility
14with legacy APIs for cleaner design. Most of HelenOS components have been made
15to order specifically for HelenOS so that its essential parts can stay free of
16adaptation layers, glue code, franken-components and the maintenance burden
17incurred by them.
18
19* [Website](http://helenos.org)
20* [Wiki](http://helenos.org/wiki)
21* [Tickets](http://www.helenos.org/report/1)
22* [How to contribute](http://www.helenos.org/wiki/HowToContribute)
23
24## Portability
25
26HelenOS runs on seven different processor architectures and machines ranging
27from embedded ARM devices and single-board computers through multicore 32-bit
28and 64-bit desktop PCs to 64-bit Itanium and SPARC rack-mount servers.
29
30## Building
31
32### Building the toolchain
33
34In order to build HelenOS, one must first build the cross-compiler toolchain
35(either as a root or by specifying the `CROSS_PREFIX` environment variable)
36by running (example for the amd64 architecture, further list of targets can be
37found in the `default` directory):
38
39```
40$ cd HelenOS/tools
41$ ./toolchain.sh amd64
42```
43
44The toolchain script will print a list of software packages that are required
45for the toolchain to correctly build. Make sure you install all the dependencies.
46Unfortunately, the script cannot install the required dependencies for you automatically
47since the host environments are very diverse. In case the compilation of the toolchain
48fails half way through, try to analyze the error message(s), add appropriate missing
49dependencies and try again.
50
51As an example, here are some of the packages you will need for Ubuntu 12.10 (may be out of date):
52
53```
54$ sudo apt-get install build-essential libgmp-dev libmpfr-dev ppl-dev libmpc-dev zlib1g-dev texinfo libtinfo-dev xutils-dev
55```
56
57Whereas for CentOS/Fedora, you will need:
58
59```
60# sudo dnf group install 'Development Tools'
61# sudo dnf install wget texinfo libmpc-devel mpfr-devel gmp-devel PyYAML genisoimage
62```
63In case the toolchain script won't work no matter how hard you try, let us know.
64Please supply as many relevant information (your OS and distribution, list of
65installed packages with version information, the output of the toolchain script, etc.) as
66possible.
67
68### Configuring the build
69
70Go back to the source root of HelenOS and start the build process:
71
72```
73$ cd ..
74$ make PROFILE=amd64
75```
76
77Now HelenOS should automatically start building.
78
79Note: If you installed the toolchain to a custom directory, make sure `CROSS_PREFIX`
80environment variable is correctly set.
81
82### Running the OS
83
84When you get the command line back, there should be an `image.iso` file in the source
85root directory. If you have QEMU, you should be able to start HelenOS by running:
86
87```
88$ ./tools/ew.py
89```
90
91For additional information about running HelenOS, see
92[UsersGuide/RunningInQEMU](http://www.helenos.org/wiki/UsersGuide/RunningInQEMU) or
93[UsersGuide/RunningInVirtualBox](http://www.helenos.org/wiki/UsersGuide/RunningInVirtualBox) or
94see the files in tools/conf.
95
96## License
97
98HelenOS is open source, free software. Its source code is available under
99the BSD license. Some third-party components are licensed under GPL.
Note: See TracBrowser for help on using the repository browser.