LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 05-29-2019, 04:01 PM   #1
drillsar
Member
 
Registered: Jan 2017
Posts: 144

Rep: Reputation: Disabled
Building kernel and recompile?


I understand how to build a kernel but lets say you forgot something in kernel that you need.

Best approach?

I was thinking of
make mrproper
cp /boot/config-version /usr/src/linux/.config

or this not necessary?

is this correct approach? what about modules? lets say you want to remove a module from kernel, do you need to delete it from /lib/modules/kernel-version first?
 
Old 05-30-2019, 12:49 PM   #2
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
To be honest, you are probably going to get a faster answer on the Gentoo forums. Not a lot of Gentoo users here. Just my observation.
 
Old 06-10-2019, 07:31 PM   #3
hosler
Member
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 184

Rep: Reputation: 30
you can just edit the existing config (via menuconfig or other) and then run make, make modules, make install, and make modules_install. it should only recompile the stuff that needs recompiling and not compile the whole kernel again. no need to start from scratch.
 
Old 06-14-2019, 08:45 AM   #4
MaitreyaG
LQ Newbie
 
Registered: Jun 2019
Posts: 1

Rep: Reputation: Disabled
If you are already booting a working kernel, have the CONFIG_IKCONFIG_PROC option set and don't want to change anything, you can:
cd /usr/src/linux
zcat /proc/config > .config
make oldconfig
etc
 
Old 04-02-2021, 12:15 AM   #5
finalturismo
Member
 
Registered: May 2019
Posts: 120

Rep: Reputation: Disabled
Here is a really good video on how to update the Linux kernel. This is a good universal method for both new and old-comers
https://www.youtube.com/watch?v=Tn8U...channel=FIXAPC
 
  


Reply



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
being able to recompile packages is important, pls fix all non building packages a4z Slackware 218 02-27-2018 12:38 AM
Kernel recompile, LILO warning and Kernel-panic Tux-Slack Slackware 26 02-26-2008 05:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 08:36 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
Open Source Consulting | Domain Registration