2. Kernel

The UNIX kernel is the base of the UNIX operating system. Processes do not happen in the kernel, rather they do things through the kernel (i.e. a process can’t write to the disk, it has to go through the kernel, because only the kernel has direct access to any hardware.) When a process needs the kernel, it will do it, then go to another process until the new process requires the kernel, or it’s “time slice” (amount of time allocated to processes) has run out.

The steps to booting up on UNIX:
(Hardware or PROM)

  1. Power On Self-Test

  2. Banner (from /etc/motd)

  3. Boot-devices:

    1. Loads bootblock

      1. Uses UFS (UNIX File System) (how to)

      2. Name of next file to run (/platform/sun44/ufsboot)

  4. Loads ufsboot (/platform/sun44/ufsboot)

    1. Shows name of kernel (/kernel/genunix – is generic UNIX)

  5. Load kernel

    1. Init kernel

    2. Mount / (root)

    3. Start init

      1. What is init - /etc/inittab tells how to do each run level

      2. What is init kernel - /platform (either Sun4m, Sunf4c, or Sun4u [4c = classic, 4u = ultrasparc) – tells about each separate piece of hardware and how it interacts (genunix is for all hardware)

The following is a list of directories that are located in the /kernel directory, and what they are for:

The following are some commands that apply to the kernel –

Note – a module is a program loaded in the kernel, similar to a TSR in DOS computers

Mods to kernels

  1. (cp * /kernel) load new mods – copy new on to /kernel and correct subdirectory

  2. change variable = vi /etc/system (edit it)

To get around having no /system file or a bad one do the following:

  1. Go to “ok>” prompt and type boot –a

  2. When in interactive mode, just hit defaults all the way until you get to “system file [etc/system]” and type “dev/null”

The roles of the kernel are to control processes, control I/O (input/output) devices, manage RAM, and run file systems. (processes are called by other processes)


  Go to Chapter 1       Go to Index        Go to Chapter 3