Message: 2 Date: Fri, 02 Jul 2004 13:19:57 -0500 From: Fritz Whittington <f.whittington@xxxxxxx> Subject: Re: Bulilding Kernel-2.4.22-1.2194.nptl error To: For users of Fedora Core releases <fedora-list@xxxxxxxxxx> Message-ID: <40E5A74D.6070908@xxxxxxx> Content-Type: text/plain; charset="us-ascii"
On or about 2004-07-02 08:50, Phil Schaffner whipped out a trusty #2 pencil and scribbled:
On Fri, 2004-07-02 at 08:43 -0400, ne... wrote:
On Jul 2, 2004 at 16:13, Parameshwara Bhat in a soothing rage wrote:
Hello friends,
I wanted to build kernel - for fun,for learning basically - and installed
...
You need to read the kernel compiling HOWTO so that you know the steps to take and it what order. You also need to understand what each step does. 'make mrproper' cleans out _all_ your configuration that you make in the build tree. So after running that step, you need to configure the kernel build. Then do a 'make dep clean bzImage modules'.
Here's a brief procedure/script that has worked many times:
#!/bin/bash # /root/bin/make_linux # Kernel build steps: # 1. Unpack the sources or install kernel-source<version>.i386.rpm # and cd to source directory (ex: "cd /usr/src/linux-2.6.5-1.358") # 2. make mrproper # 3. Recommended - copy the .config file from configs/ or from your # old linux kernel source tree to new kernel tree (may save time, # if you want to reuse the old settings). # (ex: "cp cp configs/kernel-2.6.5-i686.config .config") # then "make oldconfig" # 4. make xconfig (gconfig for 2.6, menuconfig if not in X) # 5. make dep (not required for 2.6 kernels) # 6. make # 7. make bzImage # 8. make modules # 9. make modules_install # 10. make install # 11. configure LILO or GRUB (install does this) # 12. Optional - make clean (If you want to free up disk space) # Alternative for 6-11 for 2.6: make all # This script implements steps 6-11 for FC2 (all one logical line) # May want to add make flag "-j N", N ~= 3...6 to run parallel jobs
(make && make bzImage && make modules && make modules_install \ && make install) >& /tmp/MakeKernel.log
# Check the log for errors, edit grub.conf as desired, reboot or repeat.
Thank you both. I built and am running the kernel.
I was following every step in right order, but making a mistake.At the stage of 'make xconfig', I copied a previously saved config file and thought thats equivalent to doing 'make xconfig'. Actually one needs to do a 'make oldconfig' which generates files required for 'make dep'
What about running mkinitrd?
Not required really. 'make install' comprises it.
Parameshwara Bhat
-- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/