LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   recompile kernel problem (https://www.linuxquestions.org/questions/linux-newbie-8/recompile-kernel-problem-108261/)

usr 10-25-2003 02:56 AM

recompile kernel problem
 
I tried to recompile kernel but when I "make bzimage" I received an error: module not found.
How could I fix this?
Thanks!

Bruce Hill 10-25-2003 04:22 AM

Which distribution are you using? However it works in your distro, you need to install the bzip2 package. You didn't list your distribution in your control panel, so we can only guess. :scratch:

If you are using Debian, you should do apt-get install bzip2. Do a search on LQ for kernel compile, and you will find some How-To's that will point you in the right direction. You may also go to the Distribution Forum and do that search under the forum for your distribution.

usr 10-25-2003 08:16 AM

I am using Red Hat 9.0
I have kernel 2.4.20 installed and I want to install the kernel 2.4.22 but it is a little bit harder than I thought.
the Commands(in folder /usr/src):
tar -xjf linux-2.4.22.tar.bz2
cd linux-2.4.22
make oldconfig
make dep
make clean
make bzimage

at "make oldconfig" I discovered a lots of thing I had no idea about so I just leave them with the default(recommended) setting.
everything was fine until "make bzimage" when I received this
make: *** No rule to make target `bzimage'. Stop.

what is the problem and how ca I fix this?
It is OK if I use make oldconfig (am a beginner and I understand just a few of many options I had to change, for example ntfs support and with the ones I didn't understood I leaved the recommended settings-for me this was the hardest part)

Excuse my newbies

Demonbane 10-25-2003 08:32 AM

the 'i' in bzImage has to be uppercase, it is case sensitive
try
make bzImage

also remember to create a proper initrd otherwise it wont boot.


All times are GMT -5. The time now is 09:56 PM.