User Guide
FAQ
 
 
     USERGUIDE



>

Introduction
Quick Start
Installing
Compiling
Testing MOL
HFS Volumes
Starting MOL
Newworld ROM
Mouse
Video

Sound
Keyboard
Basic Networking
Advanced Networking
Oldworld Booting
Molrc Summary
Troubleshooting
External References



 
   COMPILING MOL

 

 

[ General | Kernel Module | User binary ]

Recompiling MOL is not particularly difficult. The main problem is making sure you have the right kernel headers at hand.

  Kernel Headers

MOL consists of two parts, a kernel module and a user binary. It is crucial the kernel module is compiled using kernel headers corresponding to the kernel.

(i) As a first step, check the version of the kernel, for instance by doing:

bash$ uname -a
Linux smac 2.4.18-ben0

In this particular example, the running kernel is a 2.4.18 kernel (with some modifications from BenH).

(ii) If the running a kernel was bundled with the Linux distribution, make sure any kernel-headers package is installed. (There should be a /usr/src/linux directory or symbolic link).

(iii) Verify that the symbolic links are setup correctly. Some distributions are sadly broken... It should look like this:

  /usr/include/linux
>
/usr/src/linux/include/linux
  /usr/include/asm
>
/usr/src/linux/include/asm

(iv) When you compile, the version of the kernel headers will be displayed. Verify that this version matches the kernel version.

Compiling the kernel module