Re: kernel compilation : newbie doubt

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, Mar 30, 2007 at 03:53:09PM +0530, Rahul Ramasubramanian wrote:
> 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...

Almost. The reason you shouldn't use it is because the stuff in
/usr/src is maintained by the distribution package manager. If you
recompile glibc, it is indeed possible that the distribution compile
script uses /usr/src/linux , so yes, you shouldn't mess with it.

Oh, and you usually need to be root to create files in /usr/src, which
is unnecessary.

> where should i install my kernel if i want to make changes to it and try to
> hack it...

Note: to install a kernel means installing the compiled binary and
modules. The kernel binary usually lives in /boot and the modules in
/lib/modules. What you are talking about is the kernel *sources*. Those
are not installed, but unpacked.

> 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..

Just unpack the source in your homedir. For example, I have
~/git/linux-2.6/ and ~/git/linux-2.6-stable/ . The former is for
racking mainline 2.6 kernels, the latter for the stable series.

You can basically unpack the kernel sources anywhere as a *normal*
user, there is absolutely no need to compile them as root.


Erik

- -- 
They're all fools. Don't worry. Darwin may be slow, but he'll
eventually get them. -- Matthew Lammers in alt.sysadmin.recovery
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGDP43/PlVHJtIto0RAt+MAKCE5n13I8FJik5St9Wtd7owGOVFrgCfQFjR
ulETnAp+nW0jr15/UbNiV2M=
=2aus
-----END PGP SIGNATURE-----

--
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