LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-16-2004, 10:01 AM   #1
bmorgan98
LQ Newbie
 
Registered: Jul 2004
Location: ireland
Distribution: mandrake 10.2 LE 2005
Posts: 19

Rep: Reputation: 0
latest kernel builds


Heh sorry for posting a lot on the first day of joining the forums, but erm were do people get the latest kernel builds from??
 
Old 07-16-2004, 10:03 AM   #2
jkobrien
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Rep: Reputation: 30
Post away!

http://kernel.org/

John
 
Old 07-16-2004, 01:22 PM   #3
bmorgan98
LQ Newbie
 
Registered: Jul 2004
Location: ireland
Distribution: mandrake 10.2 LE 2005
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by jkobrien
Post away!

http://kernel.org/

John

heya another Q

sorry

can i compile the kernel inside a window manager such as kde? like opening a terminal?
 
Old 07-16-2004, 02:53 PM   #4
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
Yes, you can compile it in a console terminal.
Open a Konsole terminal, cd to the directory you untarred you kernel source and configure it with "make xconfig". After this, I suggest you edit the Makefile to put an extra version. Then, start the compilation:
Code:
make dep
make bzImage
make modules
If all goes well, the compilation is not interrupted with "error" message, you have to put the things in place:
Code:
make modules_install
cp -a arch/<architecture>/boot/bzImage /boot/vmlinuz-X.XX.XX-yyyy
cp -a System.map /boot/System.map-X.XX.XX-yyyy
where <architecture> is your platform. For our ubiquitous PCs, it is "i386"., X.XX.XX is the kernel version you are compiling, for example, 2.4.26 and -yyyy is you extra version.
I suggest you to never compile a new kernel with the same version you are using. If you run into problems you can go into an unbootable system. To differ your compilation you have to edit the master Makefile, changing the contents of the "EXTRAVERSION" variable. Don't forget to put the "-" (hifen) to separate the version from extra version. If you enter "mycomp" you will have a kernel "2.4.26mycomp". If you use "-mycomp", you will have "2.4.26-mycomp".

After this you have to edit your boot loader configuration. Here, you need to know if your distribution uses grub or lilo. If you use lilo, you need to edit /etc/lilo.conf to include an alternate kernel. After edit it, you have to run "lilo" to reinstall it. If you use grub. you need to edit "/boot/grub/grub.conf" or "/boot/grub/menu.lst". Basically, in both cases, all you have to do is to duplicate the specification for the system which is booting and change the kernel name to the kernel you copied "/boot/vmlinuz-X.XX.XX-yyyy".
After all this done, reboot your system and choose your kernel at the boot prompt. If it doesn't boot, choose the other kernel and go to the top of this post.

Good luck!
 
Old 07-17-2004, 06:18 PM   #5
bmorgan98
LQ Newbie
 
Registered: Jul 2004
Location: ireland
Distribution: mandrake 10.2 LE 2005
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by osvaldomarques
Yes, you can compile it in a console terminal.
Open a Konsole terminal, cd to the directory you untarred you kernel source and configure it with "make xconfig". After this, I suggest you edit the Makefile to put an extra version. Then, start the compilation:
Code:
make dep
make bzImage
make modules
If all goes well, the compilation is not interrupted with "error" message, you have to put the things in place:
Code:
make modules_install
cp -a arch/<architecture>/boot/bzImage /boot/vmlinuz-X.XX.XX-yyyy
cp -a System.map /boot/System.map-X.XX.XX-yyyy
where <architecture> is your platform. For our ubiquitous PCs, it is "i386"., X.XX.XX is the kernel version you are compiling, for example, 2.4.26 and -yyyy is you extra version.
I suggest you to never compile a new kernel with the same version you are using. If you run into problems you can go into an unbootable system. To differ your compilation you have to edit the master Makefile, changing the contents of the "EXTRAVERSION" variable. Don't forget to put the "-" (hifen) to separate the version from extra version. If you enter "mycomp" you will have a kernel "2.4.26mycomp". If you use "-mycomp", you will have "2.4.26-mycomp".

After this you have to edit your boot loader configuration. Here, you need to know if your distribution uses grub or lilo. If you use lilo, you need to edit /etc/lilo.conf to include an alternate kernel. After edit it, you have to run "lilo" to reinstall it. If you use grub. you need to edit "/boot/grub/grub.conf" or "/boot/grub/menu.lst". Basically, in both cases, all you have to do is to duplicate the specification for the system which is booting and change the kernel name to the kernel you copied "/boot/vmlinuz-X.XX.XX-yyyy".
After all this done, reboot your system and choose your kernel at the boot prompt. If it doesn't boot, choose the other kernel and go to the top of this post.

Good luck!
omg man you are a genius i have been running into make problems (errors even after make config, didnt know about Xconfig though.) all the time thank you i will try this method tonight when i get home and i will report back to you. i have default mandarke 10 official kernel build 2.6.3.7 . i plan to put this up to the latest 2.6.7 .


thank you osvald
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
latest kernel DS1 Debian 3 10-28-2005 02:11 PM
Finding latest kernel dgermann Ubuntu 5 09-20-2005 10:31 PM
latest kernel WITHOUT Kernel Panic issues??? timsch75 Linux - General 7 04-28-2004 05:15 PM
Latest Kernel for RH> dmoyer33 Linux - Software 0 08-06-2003 07:56 AM
Latest Stable Kernel N_A_J_M Linux - Software 2 08-20-2002 07:12 PM


All times are GMT -5. The time now is 09:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration