Compiling the Minix 3 Kernel Karthick Jayaraman Compiling

  • Slides: 11
Download presentation
Compiling the Minix 3 Kernel Karthick Jayaraman

Compiling the Minix 3 Kernel Karthick Jayaraman

Compiling everything w cd /usr/src. w make world. w “make world” automatically creates a

Compiling everything w cd /usr/src. w make world. w “make world” automatically creates a boot image. (What is a boot image ? ). w Note down the name of the boot image.

Compiling everything

Compiling everything

Compiling everything

Compiling everything

Booting up using the new kernel w After compiling, you may use the “shutdown”.

Booting up using the new kernel w After compiling, you may use the “shutdown”. w After shutdown, you would see the Boot manager’s prompt. w At the prompt, you may issue “ls /boot/image” to list all the images. w You may set the new compiled image using the command “image = /boot/image/3. 1. 2 ar 52”. w Finally, you may issue “boot”.

Booting up using the new kernel

Booting up using the new kernel

Compiling the FS Server w Compiling “world” is not required every time. w Changes

Compiling the FS Server w Compiling “world” is not required every time. w Changes often affect one directory in /usr/src/. w Compile only the affected component w Build a boot-image.

Compiling the FS Server w Go to /usr/src/servers/ w fs is part of servers.

Compiling the FS Server w Go to /usr/src/servers/ w fs is part of servers. Changing any of the servers requires compiling and installing servers. w fs source code is available at /usr/src/servers/fs.

Compiling FS Server w cd /usr/src/servers/ w Issue “make build” w Issue “make install”

Compiling FS Server w cd /usr/src/servers/ w Issue “make build” w Issue “make install” w Cd /usr/src/tools/ w Issue “make hdboot”

Compiling the Libraries w Source code at /usr/src/lib w After making source code changes,

Compiling the Libraries w Source code at /usr/src/lib w After making source code changes, issue “make” in the /usr/src/lib directory. w Go to /usr/src/ w Issue “make libraries”. w Go to /usr/src/tools w Issue “make hdboot”

Boot Images w Always have one stable boot-image in the /boot/image directory. w You

Boot Images w Always have one stable boot-image in the /boot/image directory. w You could use that boot-image, when you current changes throw a kernel-panic.