LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-17-2013, 09:55 PM   #1
austinramsay
Member
 
Registered: Jul 2007
Distribution: Solaris 10/09
Posts: 260

Rep: Reputation: 31
How to upgrade to new kernel?


Im running gentoo with kernel 3.10.7-r1 currently and would like to upgrade to 3.11.5. I downloaded the kernel source, how would i do this? Do you mv the whole kernel into /usr/src/linux and compile it? Then edit grub.conf to boot off it or what? Can someone explain the process to me?
 
Old 10-17-2013, 10:01 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

I'm not a gentoo user, but I do know that gentoo has a reputation of providing pretty good documentation. Is there some reason you can't use the procedure documented at http://www.gentoo.org/doc/en/kernel-upgrade.xml?

Evo2.
 
1 members found this post helpful.
Old 10-19-2013, 12:03 AM   #3
Nuke'em
LQ Newbie
 
Registered: Oct 2013
Posts: 8

Rep: Reputation: Disabled
I agree with Evo2. Check the gentoo online documentation.

I also never used gentoo but I did compile a kernel from crux linux. I do have one tip for a new .config creation.

Configuring a kernel is complex. So I always use an existing .config file as a template. Use your existing .config file if you already have a working kernel. Or get one from a distro as close to the new kernel version if possible.

Next, run make oldconfig

this will read the existing .config file and will prompt you for options in the current kernel source that are not found in the file. This is useful when taking an existing configuration and moving it to a new kernel.

Last edited by Nuke'em; 10-19-2013 at 12:05 AM.
 
Old 10-19-2013, 02:43 PM   #4
austinramsay
Member
 
Registered: Jul 2007
Distribution: Solaris 10/09
Posts: 260

Original Poster
Rep: Reputation: 31
Okay so far i moved the 3.11.5 kernel into /usr/src and linked it to /usr/src/linux, i set added symlink to my USE flag and then copied my .config from the old kernel into the new one and tried doing make menuconfig but i got this:

Code:
/bin/sh: /usr/src/linux-3.11.5/scripts/kconfig/lxdialog/check-lxdialog.sh: No such file or directory
/bin/sh: /usr/src/linx-3.11.5/scripts/kconfig/lxdialog/check-lxdialog.sh: No such file or directory
make[1]: *** No rule to make target 'scripts/kconfig/lxdialog/checklist.c', needed by 'scripts/kconfig/lxdialog/checklist.o'. Stop. Make: *** [menuconfig] Error 2
 
Old 10-20-2013, 07:56 AM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,541
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Member Response

Hi,

Another Gentoo guide for configuring;
Hope this helps.
 
Old 10-20-2013, 09:07 AM   #6
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
Quote:
Originally Posted by austinramsay View Post
Okay so far i moved the 3.11.5 kernel into /usr/src and linked it to /usr/src/linux, i set added symlink to my USE flag and then copied my .config from the old kernel into the new one and tried doing make menuconfig but i got this:

Code:
/bin/sh: /usr/src/linux-3.11.5/scripts/kconfig/lxdialog/check-lxdialog.sh: No such file or directory
/bin/sh: /usr/src/linx-3.11.5/scripts/kconfig/lxdialog/check-lxdialog.sh: No such file or directory
make[1]: *** No rule to make target 'scripts/kconfig/lxdialog/checklist.c', needed by 'scripts/kconfig/lxdialog/checklist.o'. Stop. Make: *** [menuconfig] Error 2
You seem to be double posting here:
Quote:
Originally Posted by andrewthomas View Post
Code:
lxde@gentoo-asus ~ $ ls -al /usr/src/linux/scripts/kconfig/lxdialog/check-lxdialog.sh 
-rw-r--r-- 1 root root 1887 Sep  2 15:46 /usr/src/linux/scripts/kconfig/lxdialog/check-lxdialog.sh
Code:
lxde@gentoo-asus ~ $ ls -al /usr/src/linux-3.11.5-gentoo/scripts/kconfig/lxdialog/check-lxdialog.sh 
-rw-r--r-- 1 root root 1887 Sep  2 15:46 /usr/src/linux-3.11.5-gentoo/scripts/kconfig/lxdialog/check-lxdialog.sh
Does the file exist?
http://www.linuxquestions.org/questi...el-4175481432/

Just use the gen kernel if you can't figure it out.
 
Old 10-20-2013, 11:09 AM   #7
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 470

Rep: Reputation: Disabled
You need to run
Code:
make oldconfig
This will parse your old config file and bring it up to date. It may ask you some questions in regard to new features. Try to answer them, but if you aren't sure the default response will usually not break your system. Once it finishes, you should be able to run

Code:
make menuconfig
 
  


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
[SOLVED] Upgrade to Kernel 3.2.45 - upgrade initrd and reinstall LILO? qlands Slackware 1 07-03-2013 03:15 AM
How to upgrade kernel in rhel6/centos6 with internet. manually download and upgrade. Gil@LQ Linux - Kernel 3 03-12-2012 06:07 PM
how to upgrade the Debian 3 kernel 2.4.18 to kernel 2.6 or bigmem- kernel chandu.bezawada Debian 6 11-12-2010 10:33 AM
apt-get upgrade does not upgrade my kernel halfpower Debian 5 12-11-2005 10:53 AM
What first upgrade kernel or upgrade slack 10.0 to current Kelean Slackware 7 01-16-2005 07:54 PM


All times are GMT -5. The time now is 12:42 AM.

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