Re: kernel compilation : newbie doubt

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

 



hi,

El Fri, 30 Mar 2007 15:53:09 +0530
"Rahul Ramasubramanian" <ramasubramanian.rahul@xxxxxxxxx> ha escrit:

> hi
> i am trying to install the new kernel on my system..
> some one told me that one should not install the kernel
> in /usr/src/linux coz  kernel version that the  C library is compiled
> against is often linked to this tree... what does this mean ... and
> what is the difference between installation and compilation of the
> kernel... where should i install my kernel if i want to make changes
> to it and try to hack it...

(please use the ENTER key :)

in modern kernel (2.6.x) versions is not necessary to use /usr/src/linux
for compilation, but for previous versions was recommended to have a
symlink pointing /usr/src/linux to the kernel source tree

in short, compilation can be done in whatever location you want (local
filesystems) and installation comprises two phases:

 1) creating the kernel file, initrd file and copying into /boot
 2) installing modules into /lib/modules/<kernel-version>

[maybe i'm wrong, but this is the essential phases]

> and if i install it somewhere other than  /usr/src/linux... will
> there not be 2 kernels installed in my system... this thing is very
> confusing to me.. will greately appriciate if some one can demystify
> this thing to me.. thanks in advance

copying files into /boot is not a requirement, but is necessary that
the bootloader (grub has very few problems with this) can locate the
file where specified in the bootloader config file, so you can install
them wherever you want... by default /boot is used

[i think this could be in the Makefile of the kernel]


hope this helps,

topi

> kind regards
> rahul

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux