aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 6e87b055f995bf22392410d2897890126153def8 (plain) (blame)
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
# fases+linux

*A proof-of-concept software distribution using the fases coreutils and shell.*

![](./Screenshot.png)

## How to compile

* Acquire the linux or linux-libre kernel ;

* Configure the kernel, you have to do at least the following selections ;

```
Kernel Configuration
	[*] 64-bit kernel # Will change soon.
	General Setup --->
		Default init path
			/init
		[*] Initial RAM filesystem and RAM disk (initramfs/initrd) support
			Initramfs source file(s)
				../rootfs/
	Executable file formats --->
		[*] Kernel support for ELF binaries
		[*] Kernel supports for scripts starting with #!
	Device Drivers --->
		Character devices --->
			[*] Enable TTY
```

* Configure permissions ;

```
$ chmod +x rootfs/bin/*
```

* Build it ;

```
# Be sure that you're in the kernel directory.
$ make
```

* The image is located at `arch/x86/boot/bzImage`.

Note: The image is **not** a disk image, you can't boot it directly. Use 
a bootloader to load it. You can also use the following command to boot 
it in a QEMU Virtual Machine:

```
$ qemu-system-x86_64 -kernel arch/x86/boot/bzImage <QEMU arguments>
```

## Size

As of Saturday 10th of September 2022:

```
-rw-r--r-- 1 thelinuxmacbook thelinuxmacbook 1717488 Sep 10 15:45 linux/arch/x86/boot/bzImage
```

## Do not use this as your main OS!

This software distribution is a **proof-of-concept**, it isn't made to be 
usable as an Operating System but rather as a testing environnement.

Anyways, why would you use this as your main OS? Networking doesn't even work!