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

11
Compiling the Minix3 Kernel Karthick Jayaraman

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

Page 1: Compiling the Minix3 Kernel Karthick Jayaraman. Compiling everything  cd /usr/src.  make world.  “make world” automatically creates a boot image. (What.

Compiling the Minix3 Kernel

Karthick Jayaraman

Page 2: Compiling the Minix3 Kernel Karthick Jayaraman. Compiling everything  cd /usr/src.  make world.  “make world” automatically creates a boot image. (What.

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.

Page 3: Compiling the Minix3 Kernel Karthick Jayaraman. Compiling everything  cd /usr/src.  make world.  “make world” automatically creates a boot image. (What.

Compiling everything

Page 4: Compiling the Minix3 Kernel Karthick Jayaraman. Compiling everything  cd /usr/src.  make world.  “make world” automatically creates a boot image. (What.

Compiling everything

Page 5: Compiling the Minix3 Kernel Karthick Jayaraman. Compiling everything  cd /usr/src.  make world.  “make world” automatically creates a boot image. (What.

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”.

Page 6: Compiling the Minix3 Kernel Karthick Jayaraman. Compiling everything  cd /usr/src.  make world.  “make world” automatically creates a boot image. (What.

Booting up using the new kernel

Page 7: Compiling the Minix3 Kernel Karthick Jayaraman. Compiling everything  cd /usr/src.  make world.  “make world” automatically creates a boot image. (What.

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.

Page 8: Compiling the Minix3 Kernel Karthick Jayaraman. Compiling everything  cd /usr/src.  make world.  “make world” automatically creates a boot image. (What.

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.

Page 9: Compiling the Minix3 Kernel Karthick Jayaraman. Compiling everything  cd /usr/src.  make world.  “make world” automatically creates a boot image. (What.

Compiling FS Server

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

Page 10: Compiling the Minix3 Kernel Karthick Jayaraman. Compiling everything  cd /usr/src.  make world.  “make world” automatically creates a boot image. (What.

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”

Page 11: Compiling the Minix3 Kernel Karthick Jayaraman. Compiling everything  cd /usr/src.  make world.  “make world” automatically creates a boot image. (What.

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.