Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Super-clean kernel?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
The_Great_Sephiroth
Veteran
Veteran


Joined: 03 Oct 2014
Posts: 1602
Location: Fayetteville, NC, USA

PostPosted: Tue Feb 06, 2018 2:09 pm    Post subject: Super-clean kernel? Reply with quote

I'm curious. Could I get a very lean kernel by doing "make allnoconfig" followed by either "make localmodconfig" or "make localyesconfig"? I understand I'd have to configure a lot beyond that, such as filesystem support, firmware, etc, but would that give me a base kernel configuration with only my hardware drivers selected either as modules or built in?
_________________
Ever picture systemd as what runs "The Borg"?
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Tue Feb 06, 2018 4:54 pm    Post subject: Reply with quote

Remember it will only do that for loaded modules only, so make sure to load any you "may" use before doing that.
As example, forgetting to load "configs" and your kernel will set /proc/config.gz to N
Back to top
View user's profile Send private message
The_Great_Sephiroth
Veteran
Veteran


Joined: 03 Oct 2014
Posts: 1602
Location: Fayetteville, NC, USA

PostPosted: Tue Feb 06, 2018 5:18 pm    Post subject: Reply with quote

Right, but that is what I want. I want to start with a minimalist kernel with only my hardware drivers, and go from there. This was what I thought of and wanted to run it by some more experienced users prior to blowing a lot of time on it.
_________________
Ever picture systemd as what runs "The Borg"?
Back to top
View user's profile Send private message
The_Great_Sephiroth
Veteran
Veteran


Joined: 03 Oct 2014
Posts: 1602
Location: Fayetteville, NC, USA

PostPosted: Wed Feb 07, 2018 4:15 pm    Post subject: Reply with quote

I had an alternate idea. Assuming Sys Rescue CD detects your hardware correctly and loads the correct drivers, is there a way to get a list of all driver options in the kernel based on your hardware?
_________________
Ever picture systemd as what runs "The Borg"?
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Thu Feb 08, 2018 12:58 am    Post subject: Reply with quote

see https://forums.gentoo.org/viewtopic-p-8098938.html#8098938
Back to top
View user's profile Send private message
The_Great_Sephiroth
Veteran
Veteran


Joined: 03 Oct 2014
Posts: 1602
Location: Fayetteville, NC, USA

PostPosted: Thu Feb 08, 2018 5:36 am    Post subject: Reply with quote

Thanks, I'll try that after I check the OpenVPN stuff out.
_________________
Ever picture systemd as what runs "The Borg"?
Back to top
View user's profile Send private message
The_Great_Sephiroth
Veteran
Veteran


Joined: 03 Oct 2014
Posts: 1602
Location: Fayetteville, NC, USA

PostPosted: Sun Feb 11, 2018 7:45 pm    Post subject: Reply with quote

OK, goal number one was to create a basic kernel configuration with packet filtering, virtualization support, the basic mess. I have come up with the following configuration thus far, which should not have any specific drivers beyond virtio selected. What I am going for is a configuration I can easily copy to new installations, select the CPU type and related options, then select the drivers for that hardware, build and go. What do you think of this for a basic configuration?

Basic 4.9.76-gentoo-r1
_________________
Ever picture systemd as what runs "The Borg"?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum