Could someone show me EXACLTY how to compile a new kerne!?!?!?!?!
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Could someone show me EXACLTY how to compile a new kerne!?!?!?!?!
Ok, i've started a thread like a couple days ago, but it didn't lead me anywhere so heres another one. How the HELL do u install the linux2.6 kernel!!! that burst of anger is for a good reason too. cause i've been looking al over the internet on how to install a new kernel and NO ONE so far has givin me a good answer without knowing that i don't know what everything means in the linux world. The closet i got to installing a new kernel was using Techtv's HOW TO and it acutlly got me somewhere but i know for a fact that it has a few holes in it.('cause they want me to watch the show... and i didn't) After i tried to install the new kernel with that how-to I still couldn't get any sound (i thought the update would support my onboard sound)and my graphics card (Rad. 9600) only got like 86fps(?). Sry for being rude but im going insane trying to find a way to install the new kernel properly. So could someone give me a how-to install a kernel NEWB STYLE. and tell me every single part of installing it, and if u know somewhere that is good for a first try-er, then send me a link plz. thanx in advance!
lol, ok iv never compiled a 2.6.* but i have compiled 2.4.20 pleanty of times (im doing so again on my laptop cuse i dident get everyhting jsut right i guess lol), so here are teh comands to do it from a just unpacked tarball (if you dont know how to unpack it then its tar fzxv linux-2.6.whatever* --remember to have that star at the end cuse itll amke things easyer as it guesses that last aprt for you, just be sure you dont have an idenctile package in the same dirctoy with that start) now assuming that /usr/linux is a symlink to your new linux source tree
cd /usr/linux
make {mrproper,menuconfig}
now itll bring up a lot up stuff to comfigure, lucky for you theres a help for each option, i sugest at every option you get you read teh help just in case (on a 2.4.20 this takes about 2-3 hours) start from teh top down, and when your done scroll down to the save file option, enter in a naem that is easy for you to remember (this way if you need to recomile you can use the load alt config file and save a hour or so), next go to exit, whenit asks you if you want to save then say yes (this is not the same as the save file you did above, this tiem itll save it so it becomes the config file the kernel needs to comile), now i dono if they fixed this is 2.6 but in the 2.4 serires you had to have at least gcc 2.5 but not a gcc 2.3,
now run enter in
make {dep,bzImage,modules,modules_install}
remember that the comands are case sensative so e carful, if it errors out then make sure ur using the required gcc (see the doc / readme files to check what the recomened verosn is)
cp {System.map,arch/i386/boot/bzImage} /boot
if you have lilo as your bootlaoder run
lilo
now you can reboot and hope you set everyhitng up right (probly best to copy your existing kernel to a difrent directoy and get a boot disk like lnx-bbc so if theres a problem you can use the boot disk to boot up and copy you regualr kernel back to /boot and try all over again
you don't need any other discs or cd's to compile a new kernel. as long as you don't delete or overwrite any of your current configuration you will be perfectly safe, even if your new kernel is defective.
If you use Konqueror and a GUI, you can just drag and drop. Drag the file to you desktop then select copy. Rightclick on top of the file and select rename then rename the file. Then drag the file to /boot and select move here. OR drag it to /boot and when it says it already exists, type in a new name.
You can do that either way. Just make sure you save a bootable copy of 2.4 in case something is not right with 2.6.
cannot stat `/arch/i386/boot/bzImage', here it is IM A NUB so when you say some thing like this cp {System.map,arch/i386/boot/bzImage} /boot, xplain to me what u are trying to say. My left hand is getting tired of typing, and my right hand is on my windows 98 cd, im so getting ready to go back this is just to stupid to configure shit that the next person just starting linux doesn't understand! this is why every computer guy that i talk to says that linux is never going to take off. so tell me exactly what you are trying to say and if u think that what you are saying was difficult to understand when u learned it, THEN XPLAIN IT TO ME!
3. Download the Linux 2.6 kernel and save it to your /usr/src directory.
4. As root, run the following commands in the console. (Note: This assumes you've installed your Linux distribution with all the developer options. If you haven't, take a look at your distribution's website for more information on 2.6 kernel packages you can download.)
tar -xzvf linux-2.6.0.tar.gz
cd linux-2.6.0
make menuconfig
Make note of what device the /dev/cdrom links to, in this case it is /dev/hdc, which is common (hdc is the master device on the secondary IDE channel). Now let's look at the permissions for this device. I will use hdc in my examples but you should use whatever you found out in the prior step (what /dev/cdrom links to): ls -l /dev/hdc
brw------- 1 root disk 11, 0 Jan 1 1970 /dev/hdc
The output would look something like the above. It belongs to the user root and the group disk. We want to change the permissions so it is still owned by root but with the cdrom group and all users in the cdrom group should have all permissions for the device:
chown root.cdrom /dev/hdc - this changes the ownership to the root user and cdrom group
chmod g+rwx /dev/hdc - this gives the cdrom group members read, write and execute permissions on the device
Log out, log in again and try to play something
which pppd
/usr/bin/pppd
which chat
/usr/bin/chat
which minicom
/usr/bin/minicom
Originally posted by witeshark 2. Go to The Linux Kernel Archives.
3. Download the Linux 2.6 kernel and save it to your /usr/src directory.
4. As root, run the following commands in the console. (Note: This assumes you've installed your Linux distribution with all the developer options. If you haven't, take a look at your distribution's website for more information on 2.6 kernel packages you can download.)
tar -xzvf linux-2.6.0.tar.gz
cd linux-2.6.0
make menuconfig
5. after choosing your options, exit menuconfig. it will ask you if you want to save your new configuration. say "yes." (configuration is saved as /usr/src/linux-2.6.1/.config, so you can move it somewhere else later if you want to keep it).
6. type: make clean && make bzImage && make modules && make modules_install
wait while the kernel compiles
7. copy your new kernel image to the /boot directory:
cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.1
8. edit /etc/lilo.conf with your text editor of choice to add the new kernel.
9. run lilo as root:
# lilo
10. reboot and see if it works. if not, select new options in the menucofig to fix your problem/s, and redo the remaining steps.
p.s. that radeon is going to be a b!tch to get working -- don't blame it on the kernel or linux, it's ATIs fault for having weird drivers. i'm just warning you in advance, because unless you get really lucky, it's not going to work at high fps until you install the drivers. check LQ for a couple of threads that will help you though it. gl.
Last edited by synaptical; 01-28-2004 at 07:36 PM.
synaptical, I only do the following, make all and make modules_install and that is all. I never do make clean. It will then compile the next kernel in a matter of minutes. My kernels work, does he really need to do all those commands?
i always make clean with a new version of the kernel, just to clear out anything that might be left over from the old one. i'm not even totally sure what the "clean" part does, but i like the idea of cleaning things out anyway. from 2.6.0 you don't need make dep anymore, but i thought you still needed the other ones, make, make bzImage, make modules, and make modules_install. that method worked for me, at least, so that's what i recommended.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.