1 / 11

Compiling the Minix3 Kernel

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.

kadeem
Download Presentation

Compiling the Minix3 Kernel

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Compiling the Minix3 Kernel Karthick Jayaraman

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

  3. Compiling everything

  4. Compiling everything

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

  6. Booting up using the new kernel

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

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

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

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

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

More Related