Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Building kernel witout some modules
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
kris27
n00b
n00b


Joined: 02 Jun 2010
Posts: 47
Location: Sydney

PostPosted: Fri May 06, 2016 3:03 pm    Post subject: Building kernel witout some modules Reply with quote

runing make nconfig or menuconfig as usual.
There are zilions of supported chips - I need just support for devices that are on my mother board.

Disabling (say <n>) does not make any difference on many or seems not having desired effects,
kernel compilation takes long time building modules that are not enabled or not needed.

Any idea how to modify Konfig or .config or what to do ??? please

Could not find answers on forum(s) ...
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1074
Location: EU or US

PostPosted: Fri May 06, 2016 3:12 pm    Post subject: Reply with quote

Try /usr/src/linux/README ... what you think why they called it README? Rolling your own kernel is great. Take your time to read the basics developers want you to know. Kernel is the most important part of your Linux after all, it pays off to know more about it.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43383
Location: 56N 3W

PostPosted: Fri May 06, 2016 4:55 pm    Post subject: Reply with quote

kris27,

There is a post from 2005 that gives the basics.
The method is still correct. 11 years on, you just need a bigger pot of coffee.

You only do this once per install, then you migrate your lean mean config from kernel to kernel.

My kernel seeds mirror has a much more detailed guide. Whiles its been unmaintained for a few years the method is still correct. There have been no new seeds since Pappy ran out of spare time due to real life.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1074
Location: EU or US

PostPosted: Fri May 06, 2016 5:26 pm    Post subject: Reply with quote

I had in mind make targets, these are not mentioned in your guide. Also there is make nconfig now, happens to be my favorite.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43383
Location: 56N 3W

PostPosted: Fri May 06, 2016 5:32 pm    Post subject: Reply with quote

Buffoon,

The make targets only change your starting point. You still need to review all the settings yourself.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1074
Location: EU or US

PostPosted: Fri May 06, 2016 5:39 pm    Post subject: Reply with quote

Correct, but OP was complaining about having too many modules. There are make targets that can cut off the bloat from defconfig.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43383
Location: 56N 3W

PostPosted: Fri May 06, 2016 6:29 pm    Post subject: Reply with quote

Buffoon,

I'll bet you a bacon buttie, the problem is building one kernel and booting another.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
kris27
n00b
n00b


Joined: 02 Jun 2010
Posts: 47
Location: Sydney

PostPosted: Sat May 07, 2016 5:10 am    Post subject: Reply with quote

Buffoon wrote:
Try /usr/src/linux/README ... what you think why they called it README? Rolling your own kernel is great. Take your time to read the basics developers want you to know. Kernel is the most important part of your Linux after all, it pays off to know more about it.


Since last century I build rebuild/kernel many times. New mobos and always problems after runig sync and -DNu @world.
Some times editing .config worked some at times not - just can not get rid of CONFIG_FB_RADEON, is always build in after build.

I build robots or control systems for my gadgets using of the shelf computers ( size of post stamp for example see: Vocore ) tiny machines.
The CPU(s) I prefer are MIPS or Sparc so this involves cross building - NetBSD kernel is great but at times Linux seems to be more convenient.

Thanks for your time
Back to top
View user's profile Send private message
kris27
n00b
n00b


Joined: 02 Jun 2010
Posts: 47
Location: Sydney

PostPosted: Sat May 07, 2016 5:14 am    Post subject: Reply with quote

NeddySeagoon wrote:
kris27,

There is a post from 2005 that gives the basics.
The method is still correct. 11 years on, you just need a bigger pot of coffee.

You only do this once per install, then you migrate your lean mean config from kernel to kernel.

My kernel seeds mirror has a much more detailed guide. Whiles its been unmaintained for a few years the method is still correct. There have been no new seeds since Pappy ran out of spare time due to real life.


Thanks for links - Once I remember seeing it, but was unable to find again.
Have to bookmark kernel-seeds ............

Thanks Regards Kris
Back to top
View user's profile Send private message
kris27
n00b
n00b


Joined: 02 Jun 2010
Posts: 47
Location: Sydney

PostPosted: Sat May 07, 2016 5:44 am    Post subject: Reply with quote

Buffoon wrote:
Correct, but OP was complaining about having too many modules. There are make targets that can cut off the bloat from defconfig.


Exactly ..... tried to get rid of pata/sata modules.
My mobo is ASYS Sabertooth AMD AM3 socket with AMD fx8750 8 core cpu.
lsmod shows only "pata_sis" -> "sata_sis" being used - so what is the point having bunch of others - long compile time and some modules for network chips that are not on mobo, and virtio and +++++

Regards Kris
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43383
Location: 56N 3W

PostPosted: Sat May 07, 2016 8:28 am    Post subject: Reply with quote

kris27,

In your example, you need to go through the SATA menu and turn each item off.
The alternative is to start from a mostly off configuration, and turn on everything that you need.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1751

PostPosted: Sat May 07, 2016 4:29 pm    Post subject: Reply with quote

I know there was some script that can analyse your system and prepare a .config file without stuff you don't use.
The downside it you must start with a bigger kernel. Good news is you can use one from liveCD or something like that and use it as the base.
Perhaps someone could remind us its name?

Well, you could also try hacking that config yourself: start with modular kernel and drop stuff that wasn't loaded. And try skipping modules used by 0 things (lsmod can show that).
Or try to get some information from /sys/.
If you happen to create an invalid config, you will find out early during build time. Make will complain and initiate the config wizzard.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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