Compiling the Minix3 Kernel Karthick Jayaraman. Compiling everything cd /usr/src. make world. ...

Post on 18-Dec-2015

220 views 0 download

Transcript of Compiling the Minix3 Kernel Karthick Jayaraman. Compiling everything cd /usr/src. make world. ...

Compiling the Minix3 Kernel

Karthick Jayaraman

Compiling everything

cd /usr/src. make world. “make world” automatically creates a boot

image. (What is a boot image ?). Note down the name of the boot image.

Compiling everything

Compiling everything

Booting up using the new kernel

After compiling, you may use the “shutdown”. After shutdown, you would see the Boot manager’s

prompt. At the prompt, you may issue “ls /boot/image” to

list all the images. You may set the new compiled image using the

command “image = /boot/image/3.1.2ar52”. Finally, you may issue “boot”.

Booting up using the new kernel

Compiling the FS Server

Compiling “world” is not required every time.

Changes often affect one directory in /usr/src/.

Compile only the affected component Build a boot-image.

Compiling the FS Server

Go to /usr/src/servers/ fs is part of servers. Changing any of the

servers requires compiling and installing servers.

fs source code is available at /usr/src/servers/fs.

Compiling FS Server

cd /usr/src/servers/ Issue “make build” Issue “make install” Cd /usr/src/tools/ Issue “make hdboot”

Compiling the Libraries

Source code at /usr/src/lib After making source code changes, issue

“make” in the /usr/src/lib directory. Go to /usr/src/ Issue “make libraries”. Go to /usr/src/tools Issue “make hdboot”

Boot Images

Always have one stable boot-image in the /boot/image directory.

You could use that boot-image, when you current changes throw a kernel-panic.