I did manage to find the readme... but there are some rather unfathomable things such as the following...
INSTALLING the kernel:
- If you install the full sources, put the kernel tarball in a directory where you have permissions (eg. your home directory) and unpack it:
gzip -cd linux-2.6.XX.tar.gz | tar xvf -
Replace "XX" with the version number of the latest kernel.
Do NOT use the /usr/src/linux area! This area has a (usually incomplete) set of kernel headers that are used by the library header files. They should match the library, and not get messed up by whatever the kernel-du-jour happens to be.
but then it says:
BUILD directory for the kernel:
When compiling the kernel all output files will per default be
stored together with the kernel source code.
Using the option "make O=output/dir" allow you to specify an alternate
place for the output files (including .config).
Example:
kernel source code: /usr/src/linux-2.6.N
build directory: /home/name/build/kernelTo configure and build the kernel use: cd /usr/src/linux-2.6.N make O=/home/name/build/kernel menuconfig make O=/home/name/build/kernel sudo make O=/home/name/build/kernel install_modules install
Please note: If the 'O=output/dir' option is used then it must be used for all invocations of make.
So where do I extract it to? my Home? or /usr/src/? Where do I build it? Does it matter?
I am also going to try and compile with gcc 3.2.stg. I see that it is "better" to compile with 2.95.3 but have no idea how to install that alongside 3.2.stg and so will just chance it i suppose...
Thanks and any hints welcome.
Cheers
Anton
Christopher Sawtell wrote:
On Fri, 19 Dec 2003 20:53, you wrote:
Hey all,
I am going to try and step into the realm of the big boys (and girls)
and compile me a kernel. However, I have been googling for a bit and
there don't appear to be any nice wee howtos for 2.6.0 for newbies. In
fact, I can't actually find any proper howtos at all, for newbies or
other. the lovely chappies at the tldp have gone and removed their
kernel howto... Anyone got any idea where I could get a copy?
Cheers
Anton
ps why did they take it down?
It was very out of date and written by an author who has long since lost most of his sanity. ( Al Dev )
It's not really needed much now that the built-in doco and the presentation thereof is so good. You can also use the documentation which comes with the source archive.
Extract the kernel sources and browse to:- file:///usr/src/linux-2.6.0/README
Then assuming you are running the X-11 windowing system:-
cd /usr/src/linux-2.6.0 make xconfig make bzImage modules make modules_install cp arch/i386/boot/bzImage /boot adjust lilo or grub boot options reboot
Use your new kernel.
Select the options you need while reading the various help pages. Use the command:- cat /proc/cpuinfo to discover the flags and options your cpu offers, and the command:- lspci -v to discover what peripheral cards etc. you have installed.
You can't go wrong. Don't forget to click on the various section titles because they hide options.
best of luck.
Is it time for another OSTC kernel compiling lesson? All afternoon one day.
