Thursday, July 5, 2007

Reviews On Wella Straight

As

How to compile a kernel


The way I'm going to show you to configure a new kernel has the advantage of keeping the kernel you were using at the time, so it is a sure way to compile kernels, because if something goes wrong in compiling the new kernel, the worst thing that can happen is to be reconfigured. There are other ways to compile a kernel, but this is what I like. Before you start have to ensure they have libraries and programs. So you need the kernel to use. Usually if the change is not very large, they will not have any problem. Another little thing, to do whatever comes next, or compile the kernel, must be as root.

1) get the kernel source, and we assume they saved in / tmp and is the linux.2.2.9.tar.gz

2) cd / usr / src (in this directory then we will put we want
kernel compile)

3) rm linux

4) tar-zxvf / tmp/linux.2.2.9.tar.gz (this will unpack it)

5) ln-s linux-2.2.9 linux

6) make mrproper

Now it's time to configure the Kernel

To configure the kernel have several choices to make, I recommend or make xconfig or make menuconfig, since in these settings is more intuitive, is through windows, which have Helps. While sparing make config is also the first two allow us to go back to the configuration, while, as I know, make config does not allow it. Then determined by some type:

7a) 7b

make xconfig) make menuconfig

7c) make config


8) make dep

9)

make clean 10) make bzImage (takes time)

11) make modules (generated by the module system)

12) make modules_install (installs them in / lib/modules/2.2.9)

13) cp / usr/src/linux-2.2.9/arch/i386 / boot / bzImage / Boot/vmlinuz-2.2.9

14) cp / usr/src/linux-2.2.9/System.map / boot/System.map-2.2.9

15) cd / boot

16) rm System .
map
17) ln-s System.map-2.2.9 System.map

Change lilo.conf
Usually this file will have a standard configuration is:

boot = / dev / hda
map = / boot /
map install = / boot / prompt
boot.b

timeout = 50 image = / boot/vmlinuz-2.2.6

label = linux root = / dev/hda6

read-only other = / dev/hda1

label = dos table = / dev / hda

Well we must add the changes we made, what I recommend is that the new kernel the second stop to make sure it works fine.
lilo.conf Then that would be created would be:

boot = / dev / hda
map = / boot / map
install = / boot / prompt
boot.b

timeout = 50 image = / boot / vmlinuz -2.2.6

label = linux root = / dev/hda6 read-only

boot = / dev / hda
map = / boot / map
install = / boot / boot.b
prompt timeout = 50

image = / boot/vmlinuz-2.2.9
linux.nuevo
label = root = / dev/hda6

read-only other = / dev/hda1 label = dos

table = / dev / hda
once done
must run lilo for the changes are.

18) lilo-v

Well having done all this you have two kernels installed on your computer, and may decide which one to use at boot time. As we put things if enter or linux, linux bootearía usual, whereas if you put linux.nuevo bootearía just created. Then



19) shutdown-r now

0 comments:

Post a Comment