Building my first kernel : Couple of Problems
Hi,
I am working on Slackware 10.0 The kernel version is 2.4.26 I downloaded the 2.6.14.2 kernel and tried to build and install it. The source tree I used for installation was kept in ~/insight/linux-2.6.14.2. This is what I did : Code:
koodoo@knapsacker:~/insight/linux-2.6.14.2$ make defconfig Code:
koodoo@knapsacker:~/insight/linux-2.6.14.2$ make Code:
root@knapsacker:/home/koodoo/insight/linux-2.6.14.2# make modules_install 1) Its taking a very long time at : Code:
Kjournald starting. Commit interval 5 seconds 2) Some modules don't load. For example, I get the following errors : Code:
FATAL: Module apm not found. Code:
Compiling new agpart module......... Code:
******************************************************* I know that I am doing something really stupid. I have so many things in mind as to what is happening, I am realy confused and am a n00b in this field. Maybe it has something to do with where I have put my kernel source tree Please help me. Thanks in anticipation. |
I would
make menuconfig This will build a few programs and then pop up a window. The window menu lets you change or setup kernel configuration. After you have made any necessary changes, save the configuration and follow these instructions--do a make dep; make clean The first of these commands builds the tree of interdependencies in the kernel sources. These dependencies may have been affected by the options you have choosen in the configure step. The make clean purges any now-unwanted files left from previous builds of the kernel. Then after it is done run this command: make zImage When this is complete do a: make modules This will not take as long. Installing a New Kernel Now installing the new kernel. On an Intel-based system the kernel is installed to the right place in /boot with the command cp /usr/Linux/src/arch/i386/boot/zImage /boot/newkernel then make modules_install This will install the modules in /lib/modules. Next, edit /etc/lilo.conf to add a section like this image = /boot/newkernel label = new read-only |
Thanks for your reply.
Okay, I have a few more questions. I am really a n00b at this so don't mind if I act stupid. I am studying this book Linux Kernel Development By Robert Love and it states : Quote:
Quote:
Quote:
Thanks again. |
did you get any errors during make modules_install? have you tried make modules before the make modules_install? The errors are caused b/c the modules aren't being installed or installed correctly. Another thing, you can boot multiple kernels. On one of my boxes I use both the 2.4 and 2.6 kernels(not at the same time for obvious reasons :) )
make modules <- This will not take long. Installing a New Kernel Now installing the new kernel. On an Intel-based system the kernel is installed to the right place in /boot with the command cp arch/i386/boot/bzImage to /boot/vmlinuz then make modules_install This will install the modules in /lib/modules. |
Thanks for replying
No, I did not get any errors during make modules_install. No, I had not tried make modules before make modules_install Ok, So I tried again. This time I did : Code:
koodoo@knapsacker:~$ make gconfig One thing that I would like to say here is that to me, the most irritating problem is that when I boot the new kernel it like hangs for about 5-7 minutes at this step. Code:
Kjournald starting. Commit interval 5 seconds Thanks in anticipation. |
Still no luck :(
|
All times are GMT -5. The time now is 02:14 PM. |