[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mosix patched kernel not compiling



I just did all this, for the heck of it, and it all worked quite
wonderfully to the very end, so here goes the recipe:

To compile anything you need the development environment, which means at
least the following and whatever dependencies they have:

ii  bin86          0.16.0-2       16-bit assembler and loader
ii  gcc            2.95.4-14      The GNU C compiler.
ii  libc6          2.2.5-11.2     GNU C Library: Shared libraries and Timezone
ii  libc6-dev      2.2.5-11.2     GNU C Library: Development Libraries and Hea
ii  tcl8.3         8.3.3-7        The Tool Command Language (TCL) v8.3 - Run-T
ii  tk8.3          8.3.3-8        The Tk toolkit for TCL and X11 v8.3 - Run-Ti

1) Use mozilla to get a copy of the kernel sources from:
ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-2.4.20.tar.bz2

2) Use mozilla to get the OpenMosix patch from:
http://twtelecom.dl.sourceforge.net/sourceforge/openmosix/openMosix-2.4.20-2.gz

So now files linux-2.4.20.tar.bz2 and openMosix-2.4.20-2.gz are in your
home. Be there to continue this:

3) Open que kernel sources with:
___> tar -xjvf linux-2.4.20.tar.bz2
(a long listing of files geing extracted)

4) Decompress que patch with:
___> gunzip openMosix-2.4.20-2.gz

5) Apply the patch:
___> patch -p0 < openMosix-2.4.20-2
(a listing of successful patchings)

6) Get into the kernel sources:
___> cd linux-2.4.20/

7a) Create a kernel configuration, you can test with:
___> make oldconfig
(default all questions)

7b) Or you can use the X11 configurator:
___> make xconfig
A nice tk/tcl menu system appears. You can load your previous kernel
configuration and start from there. There is even an OpenMosix menu.
Of course you need to be using X11 for this to work.

8) Make the kernel and modules:
___> make dep
(long log listing)
___> make bzImage
(long log listing)
___> make modules
(long log listing)

All this can be done as a normal user, from here you have to be root in
order to install the kernel. The modules can be installed with:

___> make modules_install

The kernel has to be installed manually, tipically with:

___> cp -p System.map /boot/System.map
___> cp -p arch/i386/boot/bzImage /boot/vmlinuz

I assume you have the appropriate links in the fylesystem root and the
appropriate entries in /etc/lilo.conf, so you finish the whole thing with
a simple:

___> lilo

It is all quite simple and straightforward.
							Cheers,

----------------------------------------------------------------
        Jorge L. deLyra,  Associate Professor of Physics
            The University of Sao Paulo,  IFUSP-DFMA
       For more information: finger delyra@latt.if.usp.br
----------------------------------------------------------------



Reply to: