Unix Technical Forum

problem compiling kernel

This is a discussion on problem compiling kernel within the Linux Operating System forums, part of the Unix Operating Systems category; --> I am having trouble compiling kernel 2.4.24 (kernel.org source code). I am starting with a fresh rh9 installation (kernel ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2008, 07:03 PM
PM
 
Posts: n/a
Default problem compiling kernel

I am having trouble compiling kernel 2.4.24 (kernel.org source code).
I am starting with a fresh rh9 installation (kernel 2.4.20-8).

from within /usr/src/linux-2.4.24, I run:
make menuconfig # this works and creates my .config file
make dep # this appears to work

then,
make bzimage # returns the following

make: *** No rule to make target `bzimage'. Stop.

any ideas as to why this is happening?

Peter
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 07:03 PM
Andy Fraser
 
Posts: n/a
Default Re: problem compiling kernel

PM uttered the immortal words:

> make: *** No rule to make target `bzimage'. Stop.


IIRC it's "make bzImage" with a capital I.

--
Andy.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-17-2008, 07:03 PM
David
 
Posts: n/a
Default Re: problem compiling kernel

PM wrote:
> I am having trouble compiling kernel 2.4.24 (kernel.org source code).
> I am starting with a fresh rh9 installation (kernel 2.4.20-8).
>
> from within /usr/src/linux-2.4.24, I run:
> make menuconfig # this works and creates my .config file
> make dep # this appears to work
>
> then,
> make bzimage # returns the following
>
> make: *** No rule to make target `bzimage'. Stop.
>
> any ideas as to why this is happening?


make mrproper
make menuconfig
make dep
make clean
make bzImage <<< Notice the capital letter "I"
make modules
make modules_install

--
Confucius: He who play in root, eventually kill tree.
Registered with The Linux Counter. http://counter.li.org/
Slackware 9.1.0 Kernel 2.4.24 SMP i686 (GCC) 3.3.2
Uptime: 41 days, 3:32, 3 users, load average: 0.72, 1.13, 0.9
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-17-2008, 07:04 PM
Nico Kadel-Garcia
 
Posts: n/a
Default Re: problem compiling kernel


"David" <thunderbolt01@netscape.net> wrote in message
news:NURXb.42924$uV3.79089@attbi_s51...
> PM wrote:
> > I am having trouble compiling kernel 2.4.24 (kernel.org source code).
> > I am starting with a fresh rh9 installation (kernel 2.4.20-8).
> >
> > from within /usr/src/linux-2.4.24, I run:
> > make menuconfig # this works and creates my .config file
> > make dep # this appears to work
> >
> > then,
> > make bzimage # returns the following
> >
> > make: *** No rule to make target `bzimage'. Stop.
> >
> > any ideas as to why this is happening?

>
> make mrproper
> make menuconfig
> make dep
> make clean
> make bzImage <<< Notice the capital letter "I"
> make modules
> make modules_install


Or stop trying to outsmart it and use "make all" and "make install", which
do it automatically for you. Remember to first edit your Makefile to give
your kernel a slightly different name to keep your old kernel around and
keep your modules distinct, though!


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-17-2008, 07:07 PM
PM
 
Posts: n/a
Default Re: problem compiling kernel

David <thunderbolt01@netscape.net> wrote in message news:<NURXb.42924$uV3.79089@attbi_s51>...
> PM wrote:
> > I am having trouble compiling kernel 2.4.24 (kernel.org source code).
> > I am starting with a fresh rh9 installation (kernel 2.4.20-8).
> >
> > from within /usr/src/linux-2.4.24, I run:
> > make menuconfig # this works and creates my .config file
> > make dep # this appears to work
> >
> > then,
> > make bzimage # returns the following
> >
> > make: *** No rule to make target `bzimage'. Stop.
> >
> > any ideas as to why this is happening?

>
> make mrproper
> make menuconfig
> make dep
> make clean
> make bzImage <<< Notice the capital letter "I"
> make modules
> make modules_install


I must be blind!
Thanks.
I have another question. When I compile the source that comes with my
distribution (rh9) everthing works fine. I have tried to compile
2.4.24 & 2.6.1 that I downloaded from kernel.org and:

make mrproper \
make menuconfig \
make dep \
make clean \ these all appear "o.k."
make bzImage /
make modules /
make modules_install /

but when I do make install I get the following:

No module 3w-xxxx found for kernel 2.4.24
mkinitrd failed
make[1]: ***[install] Error 1
make[1]: Leaving directory '/usr/src/linux-2.4.24/arch/i386/boot'
make: *** [install] Error 2

Some advice or direction as to where to find the info will be greatly
appreciated.

Pete
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-17-2008, 07:07 PM
haggeluring
 
Posts: n/a
Default Re: problem compiling kernel

PM wrote:
> David <thunderbolt01@netscape.net> wrote in message news:<NURXb.42924$uV3.79089@attbi_s51>...
>
>>PM wrote:
>>
>>>I am having trouble compiling kernel 2.4.24 (kernel.org source code).
>>>I am starting with a fresh rh9 installation (kernel 2.4.20-8).
>>>
>>>from within /usr/src/linux-2.4.24, I run:
>>>make menuconfig # this works and creates my .config file
>>>make dep # this appears to work
>>>
>>>then,
>>>make bzimage # returns the following
>>>
>>>make: *** No rule to make target `bzimage'. Stop.
>>>
>>>any ideas as to why this is happening?

>>
>>make mrproper
>>make menuconfig
>>make dep
>>make clean
>>make bzImage <<< Notice the capital letter "I"
>>make modules
>>make modules_install

>
>
> I must be blind!
> Thanks.
> I have another question. When I compile the source that comes with my
> distribution (rh9) everthing works fine. I have tried to compile
> 2.4.24 & 2.6.1 that I downloaded from kernel.org and:
>
> make mrproper \
> make menuconfig \
> make dep \
> make clean \ these all appear "o.k."
> make bzImage /
> make modules /
> make modules_install /
>
> but when I do make install I get the following:
>
> No module 3w-xxxx found for kernel 2.4.24
> mkinitrd failed
> make[1]: ***[install] Error 1
> make[1]: Leaving directory '/usr/src/linux-2.4.24/arch/i386/boot'
> make: *** [install] Error 2
>
> Some advice or direction as to where to find the info will be greatly
> appreciated.
>
> Pete

Why bother? Just type
cp arch/i386/boot/bzImage /boot/linux-2.4.24-2

--
copyright is copywrong
copyleft is copyright
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-17-2008, 07:07 PM
David
 
Posts: n/a
Default Re: problem compiling kernel

PM wrote:
>
> I must be blind!
> Thanks.
> I have another question. When I compile the source that comes with my
> distribution (rh9) everthing works fine. I have tried to compile
> 2.4.24 & 2.6.1 that I downloaded from kernel.org and:
>
> make mrproper \
> make menuconfig \
> make dep \
> make clean \ these all appear "o.k."
> make bzImage /
> make modules /
> make modules_install /
>
> but when I do make install I get the following:
>
> No module 3w-xxxx found for kernel 2.4.24
> mkinitrd failed
> make[1]: ***[install] Error 1
> make[1]: Leaving directory '/usr/src/linux-2.4.24/arch/i386/boot'
> make: *** [install] Error 2
>
> Some advice or direction as to where to find the info will be greatly
> appreciated.


Install the kernel manually. You have already installed the modules.

cp arch/i386/boot/bzImage /boot/vmlinuz-2.4.24
cp System.map /boot/System.map-2.4.24

Edit /etc/lilo.conf or grub.conf and add the new kernel to it.
DO NOT remove the old kernel until you know the new one works.
Especially if you don't know how to fix it if the new one fails
to boot.

--
Confucius: He who play in root, eventually kill tree.
Registered with The Linux Counter. http://counter.li.org/
Slackware 9.1.0 Kernel 2.4.25 SMP i686 (GCC) 3.3.3
Uptime: 22:28, 3 users, load average: 0.01, 0.07, 0.19
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-17-2008, 07:08 PM
PM
 
Posts: n/a
Default Re: problem compiling kernel

David <thunderbolt01@netscape.net> wrote in message news:<SzeZb.348316$I06.3676463@attbi_s01>...
> PM wrote:
> >
> > I must be blind!
> > Thanks.
> > I have another question. When I compile the source that comes with my
> > distribution (rh9) everthing works fine. I have tried to compile
> > 2.4.24 & 2.6.1 that I downloaded from kernel.org and:
> >
> > make mrproper \
> > make menuconfig \
> > make dep \
> > make clean \ these all appear "o.k."
> > make bzImage /
> > make modules /
> > make modules_install /
> >
> > but when I do make install I get the following:
> >
> > No module 3w-xxxx found for kernel 2.4.24
> > mkinitrd failed
> > make[1]: ***[install] Error 1
> > make[1]: Leaving directory '/usr/src/linux-2.4.24/arch/i386/boot'
> > make: *** [install] Error 2
> >
> > Some advice or direction as to where to find the info will be greatly
> > appreciated.

>
> Install the kernel manually. You have already installed the modules.
>
> cp arch/i386/boot/bzImage /boot/vmlinuz-2.4.24
> cp System.map /boot/System.map-2.4.24
>
> Edit /etc/lilo.conf or grub.conf and add the new kernel to it.
> DO NOT remove the old kernel until you know the new one works.
> Especially if you don't know how to fix it if the new one fails
> to boot.


I will definitely be keep old working kernel(s) even after the new
works (especially when I am testing a few things our).

I now get the following error message:
VFS: Cannot open root device "LABEL=/" or 00:00
Please append a correct "root=" boot option
Kernel panic. VFS: Unable to mount root fs on 00:00.


I am noticing a theme here...most of my docs suggests exactly what you
advised me to do but I see no mention of an initrd.img file. I have
found that if I remove the initrd line in grub.conf, I made a working
kernel have the exact same kernel panic.
Is there something in the kernel config that I can do to resolve this?
Is it as simple as setting the root= in grub.conf?
Should I look to rdev?
Am I even going in the right direction with this?
Thanks for your suggestions.

Pete
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-17-2008, 07:08 PM
PM
 
Posts: n/a
Default Re: problem compiling kernel

pmorfidis@yahoo.com (PM) wrote in message news:<849b291e.0402201135.4bb709ca@posting.google. com>...
> David <thunderbolt01@netscape.net> wrote in message news:<SzeZb.348316$I06.3676463@attbi_s01>...
> > PM wrote:
> > >
> > > I must be blind!
> > > Thanks.
> > > I have another question. When I compile the source that comes with my
> > > distribution (rh9) everthing works fine. I have tried to compile
> > > 2.4.24 & 2.6.1 that I downloaded from kernel.org and:
> > >
> > > make mrproper \
> > > make menuconfig \
> > > make dep \
> > > make clean \ these all appear "o.k."
> > > make bzImage /
> > > make modules /
> > > make modules_install /
> > >
> > > but when I do make install I get the following:
> > >
> > > No module 3w-xxxx found for kernel 2.4.24
> > > mkinitrd failed
> > > make[1]: ***[install] Error 1
> > > make[1]: Leaving directory '/usr/src/linux-2.4.24/arch/i386/boot'
> > > make: *** [install] Error 2
> > >
> > > Some advice or direction as to where to find the info will be greatly
> > > appreciated.

> >
> > Install the kernel manually. You have already installed the modules.
> >
> > cp arch/i386/boot/bzImage /boot/vmlinuz-2.4.24
> > cp System.map /boot/System.map-2.4.24
> >
> > Edit /etc/lilo.conf or grub.conf and add the new kernel to it.
> > DO NOT remove the old kernel until you know the new one works.
> > Especially if you don't know how to fix it if the new one fails
> > to boot.

>
> I will definitely be keep old working kernel(s) even after the new
> works (especially when I am testing a few things our).
>
> I now get the following error message:
> VFS: Cannot open root device "LABEL=/" or 00:00
> Please append a correct "root=" boot option
> Kernel panic. VFS: Unable to mount root fs on 00:00.
>
>
> I am noticing a theme here...most of my docs suggests exactly what you
> advised me to do but I see no mention of an initrd.img file. I have
> found that if I remove the initrd line in grub.conf, I made a working
> kernel have the exact same kernel panic.
> Is there something in the kernel config that I can do to resolve this?
> Is it as simple as setting the root= in grub.conf?
> Should I look to rdev?
> Am I even going in the right direction with this?
> Thanks for your suggestions.
>
> Pete


I got it working by setting root=/dev/sda2 and it works fine.

Thanks for all your help.

Pete
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-17-2008, 07:08 PM
David
 
Posts: n/a
Default Re: problem compiling kernel

PM wrote:
> David <thunderbolt01@netscape.net> wrote in message news:<SzeZb.348316$I06.3676463@attbi_s01>...
>
>>PM wrote:
>>
>>>I must be blind!
>>>Thanks.
>>>I have another question. When I compile the source that comes with my
>>>distribution (rh9) everthing works fine. I have tried to compile
>>>2.4.24 & 2.6.1 that I downloaded from kernel.org and:
>>>
>>>make mrproper \
>>>make menuconfig \
>>>make dep \
>>>make clean \ these all appear "o.k."
>>>make bzImage /
>>>make modules /
>>>make modules_install /
>>>
>>>but when I do make install I get the following:
>>>
>>>No module 3w-xxxx found for kernel 2.4.24
>>>mkinitrd failed
>>>make[1]: ***[install] Error 1
>>>make[1]: Leaving directory '/usr/src/linux-2.4.24/arch/i386/boot'
>>>make: *** [install] Error 2
>>>
>>>Some advice or direction as to where to find the info will be greatly
>>>appreciated.

>>
>>Install the kernel manually. You have already installed the modules.
>>
>>cp arch/i386/boot/bzImage /boot/vmlinuz-2.4.24
>>cp System.map /boot/System.map-2.4.24
>>
>>Edit /etc/lilo.conf or grub.conf and add the new kernel to it.
>>DO NOT remove the old kernel until you know the new one works.
>>Especially if you don't know how to fix it if the new one fails
>>to boot.

>
>
> I will definitely be keep old working kernel(s) even after the new
> works (especially when I am testing a few things our).
>
> I now get the following error message:
> VFS: Cannot open root device "LABEL=/" or 00:00
> Please append a correct "root=" boot option
> Kernel panic. VFS: Unable to mount root fs on 00:00.
>
>
> I am noticing a theme here...most of my docs suggests exactly what you
> advised me to do but I see no mention of an initrd.img file. I have
> found that if I remove the initrd line in grub.conf, I made a working
> kernel have the exact same kernel panic.
> Is there something in the kernel config that I can do to resolve this?
> Is it as simple as setting the root= in grub.conf?
> Should I look to rdev?
> Am I even going in the right direction with this?
> Thanks for your suggestions.


Just make a new initrd image in the /boot directory. It's been a
while since I used an initrd image but it is something like this.

mkinitrd 2.4.xx # using the correct kernel version of course.

Or if you get an error about raid modules then you add an option
to the command. It is listed in the man pages but I think it was
something like this.

mkinitrd --noraid 2.4.xx

--
Confucius: He who play in root, eventually kill tree.
Registered with The Linux Counter. http://counter.li.org/
Slackware 9.1.0 Kernel 2.4.25 SMP i686 (GCC) 3.3.3
Uptime: 2 days, 29 min, 3 users, load average: 1.00, 1.04, 1.0
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:39 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com