LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Acid Guide to compiling Kernel 2.6.10 on Slack 10.1 (https://www.linuxquestions.org/questions/slackware-14/acid-guide-to-compiling-kernel-2-6-10-on-slack-10-1-a-293853/)

acidjuice 02-23-2005 11:35 AM

Quote:

Originally posted by egag
no, i don't mean it's a bad idea. it won't harm.
but it saves some steps in the whole.

also, people using this guide will get some prob's for sure, and need to check their steps.
leaving it out would also save time when they are trouble shooting.

egag

Point taken, guide has been edited to show this step as 'Optional'. thank you!

egag 02-23-2005 12:33 PM

still i wonder why you're keeping the " /usr/src/linux-symlink " myth alive ?
i know , even reading the howtos on the ati-site , they advice to check it.
but the build-script uses the " /lib/modules/2.6.10/build " link, which is used by everyone.

it's just a tip.
as any step you can skip is just one less to take.

egag

kodon 02-23-2005 04:50 PM

/usr/src/linux is a myth?
and nobody told me :[


actually, i had thought that it didn't have anything to do with
the kernel compilation...but that it was for easy linking to the
source for third party software compilations. oh well...

trey85stang 02-23-2005 06:25 PM

Quote:

Originally posted by egag
well...a quote from Linus Thorvalds:
---------

I would suggest that people who compile new kernels should:

- NOT do so in /usr/src. Leave whatever kernel (probably only the
header files) that the distribution came with there, but don't touch
it.

- compile the kernel in their own home directory, as their very own
selves. No need to be root to compile the kernel. You need to be root
to _install_ the kernel, but that's different.

- not have a single symbolic link in sight (except the one that the
kernel build itself sets up, namely the "linux/include/asm" symlink
that is only used for the internal kernel compile itself)
----------

from: http://uwsg.iu.edu/hypermail/linux/k...07.3/0587.html

and those symlinks in /boot are really just a lot of useless typing.

for the rest this guide is how i compile kernels ( i never edit make-files ),
and it's very good readable.( though i don't say the others are not )
but there are more ways to build a kernel.

i guess everybody will stick to the method that they thrust.

egag

I dont trust this guy any farther than i can throw him... not to mention his kernel compile proceadures... wait.. nvm disregard that I thought that was Bill Gates :D

either way.. I see no problem compiling a kernel in /usr/src... I also see no problem compiling it as root... maybe if you are hooked up to the net with no firewall.. but I still doubt anything bad can happen. Although it is what he recommends he doesnt provide any reason why you should not do it.

coffeedrinker 02-23-2005 06:54 PM

Quote:

Although it is what he recommends he doesnt provide any reason why you should not do it.
It has to do with the philosophy that if it doesn't have to be done as root it shouldn't be. Less chance for error and other such trouble.

egag 02-23-2005 07:07 PM

Quote:

Originally posted by trey85stang
I dont trust this guy any farther than i can throw him... not to mention his kernel compile proceadures... wait.. nvm disregard that I thought that was Bill Gates :D

either way.. I see no problem compiling a kernel in /usr/src... I also see no problem compiling it as root... maybe if you are hooked up to the net with no firewall.. but I still doubt anything bad can happen. Although it is what he recommends he doesnt provide any reason why you should not do it.

it's adviced in general not to run a Linux system as root.
that's reason enough..
but also , people following this howto will be ( nearly ) new to kernel compiling and maybe even Linux.
as root you can cause alot of prob's , so i wouldn't advice them to run as root.
( just use "su" when needed and "exit" to get out again )

and for the dir ( /usr/src or ~/ ): you'll have to copy a config file into the src-dir as a starting point and
users don't have wite permissions in /usr.


@acidjuice

there's a typo " Now let's start the operations. Let's move into the /usr/etc directory " , i think it has to be " /usr/src "
and as i read it, it's not clear when and how to copy the config file to the source-tree.
maybe add that command also.

egag

egag 02-23-2005 07:44 PM

oh , acidjuice, just one more thing,

-------------
The following are my recommended points to follow. Definitely not exhaustive. One last thing: this worked for me. It doesn't mean that it will work for you. Upgrading a kernel may result in the total mess up of your system.
--------------

i think that sound really scary......
if someone follows this guide, there's allways the old kernel to boot.
maybe a more general warning that being "root" you can harm the system or so....

just to make people trust this howto ( as they should... :) )

egag

vharishankar 02-23-2005 08:46 PM

The statutory warning is always necessary :)

acidjuice 02-25-2005 03:39 AM

Quote:

Originally posted by coffeedrinker
It has to do with the philosophy that if it doesn't have to be done as root it shouldn't be. Less chance for error and other such trouble.
this note has been added to the guide.

acidjuice 02-25-2005 03:51 AM

Quote:

Originally posted by egag
i think that sound really scary......
if someone follows this guide, there's allways the old kernel to boot.

absolutely. however i prefer a scared noob to an angry noob wanting to bang my head on a wall :)

i've added your remark to the guide :)

thank you.

acidjuice 02-25-2005 05:33 AM

Quote:

Originally posted by egag
there's a typo " Now let's start the operations. Let's move into the /usr/etc directory " , i think it has to be " /usr/src "
absolutely. corrected.

grx 02-26-2005 12:58 AM

I just used this guide to install the 2.6.10 kernel on my system, and it worked great! However, immediately after I tried to install the nvidia drivers and found out that they search for the file /usr/src/linux-2.6.10/.config. It might be appropriate to change the commands from mv to cp when moving the files to /boot to prevent these kinds of problems. The config files are small enough that duplicate copies wouldn't hurt.

auditek747 02-26-2005 02:23 AM

Heck of thing you guys are doing here.
I'll be building one of these kernels in a couple weeks.
I can't wait !

Thanks to all involved.

samac 02-26-2005 03:41 AM

Quote:

/boot# generate-modprobe.conf /etc/modprobe.conf
This is the first time I had seen this, my /etc/modprobe.conf now looks much less sparce.

Thanks

Samac

acidjuice 02-26-2005 06:35 AM

Quote:

Originally posted by grx
I just used this guide to install the 2.6.10 kernel on my system, and it worked great!
real glad to read it :)
Quote:

Originally posted by grx However, immediately after I tried to install the nvidia drivers and found out that they search for the file /usr/src/linux-2.6.10/.config. It might be appropriate to change the commands from mv to cp when moving the files to /boot to prevent these kinds of problems. The config files are small enough that duplicate copies wouldn't hurt.
you shouldn't leave the old .config as it points to the old kernel, and the driver might therefore not work. i think it actually points to /usr/src/.config. i personally have modified it to point at /usr/src/config instead (which is one of the symlinks in the optional part of the guide). not sure if this is the best way to go, though.

any input on this welcomed, so i can adjust this guide before final release.


All times are GMT -5. The time now is 04:37 PM.