[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Compiling 2.6.11?!



--- Eric Scott <scottishbug@cwazy.co.uk> wrote:
> Hey;
> I downloaded the 2.6.11.6 Kernel source today to
> tinker with compiling.  
> I've never (successfully) compiled & run a Linux
> kernel before... so 
> bare with me...
> 
> I got through the kernel compile by doing 'make
> bzImage' ('make zImage' 
> gave some kindof "system to big" error and suggested
> I try make 
> bzImage... I have no clue what exactly the
> difference is... an 
> explanation would be helpful). 

from 
http://www.ibiblio.org/oswg/oswg-nightly/oswg/en_US.ISO_8859-1/articles/alessandro-rubini/boot/boot/zimage.html
 
The boot steps shown up to now rely on the assumption
that the compressed kernel can fit in half a meg of
space. While the assumption holds most of the times, a
system stuffed of device drivers might not fit any
more. ... new machinery is needed to fix the problem.
This something is called  bzImage, and has been
introduced in kernel version 1.3.73.

 
> They have patches there that should solve my
> problem.  I can see all the 
> code there, and understand that they need the
> changes need to be applied 
> to the code files as specified.  I assume there is
> an autimated way to 
> do this? 

use patch with patch file
see man patch

requires you have the right kernel source the patch
applies against
It is used 
patch -p0 < patchfile

man patch to read more about patch

>        Basically, I'm newbie to kernel compilation,
> the modules won't 
> compile, I have patches to fix the bug... what do I
> do

just a note you can build newer kernels slightly
differently see the README in the source directory

make O=/home/user/build/kernel menuconfig
make O=/home/user/build/kernel
sudo make O=/home/user/build/kernel modules
modules_install

The file you want to copy is
/home/user/build/kernel/arch/i386/boot/bzImage

put it somewhere like /boot/vmlinuz-2.6.11.6

Note:
reconfigure/reinstall your boot loader for the new
kernel or you will not be able to use it

I use LILO but there is also GRUB.
Read man pages/online docs first and test it out.


		
__________________________________ 
Yahoo! Messenger 
Show us what our next emoticon should look like. Join the fun. 
http://www.advision.webevents.yahoo.com/emoticontest



Reply to: