Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel configuration file
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
herkusPT
n00b
n00b


Joined: 15 Feb 2008
Posts: 17

PostPosted: Fri Dec 21, 2018 8:14 pm    Post subject: kernel configuration file Reply with quote

Hi,

Where I can download the default .config file to compile kernel linux-4.14.83-gentoo ?

Best Regards,

Herculano
_________________
HerkusPT
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Dec 21, 2018 8:20 pm    Post subject: Reply with quote

herkusPT,

Its built into the kernel. There is a choice. Look in /usr/src/linux/arch/x86/configs/
None will work though. They are not intended to be used as is.

If you like the kernel on the liveCD, its made with
Code:
genkernel all

Genkernel provides its own kernel config file.
_________________
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
herkusPT
n00b
n00b


Joined: 15 Feb 2008
Posts: 17

PostPosted: Sun Dec 23, 2018 2:07 pm    Post subject: Reply with quote

NeddySeagoon,

What is the best kernel configuration for desktop user, livedvd-amd64-multilib-20160704.iso or install-amd64-minimal-20181220T214503Z.iso ?

Thanks for your help
_________________
HerkusPT
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Dec 23, 2018 2:53 pm    Post subject: Reply with quote

herkusPT,

You need to define 'best'. There is no single answer.

The install-amd64-minimal.iso kernel is made with
Code:
genkernel all
genkernel provides its own default .config file.
The liveDVD kernel is made the same way but possibly with a different .config file.

Its gets more complex too. Different hardware setups need different, often conflicting, kernel options, so the install-amd64-minimal.iso kernel supports only very general (slow) run almost anywhere graphics. There are wiki pages for popular GPUs like Radeon, Intel, nVidia and so on, that all have their required kernel options.

A good start is Pappy's preconfigs!. That's Pappys take on a good minimal kernel .config without any hardware support.
That gets around the hardware config conflicts. You need to add all your own hardware support.
The method is here That site has been unmaintained for several years but the method is sound.

Find a seed/preconfig to match your kernel. Drop it into your kernel tree as .config
Run
Code:
make oldconfig
and answer the questions, if any.
Run
Code:
make menuconfig
and set the options for your hardware.
_________________
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
herkusPT
n00b
n00b


Joined: 15 Feb 2008
Posts: 17

PostPosted: Sun Dec 23, 2018 4:16 pm    Post subject: Reply with quote

Hi,

I'm going to use the preconfiguration that exists in the topic that refers

When I refere the best kernel configuration for desktop user, I refere for example, the kernel more compatible which more usual devices, like sabayon distro for example, similar to gentoo distro.

Thanks
_________________
HerkusPT
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Dec 23, 2018 4:29 pm    Post subject: Reply with quote

herkusPT,

Binary distros cheat.
They build the incompatible parts as modules then hope that the modules you don't need load, find nothing, then unload.
The backstop is to blacklist things you don't want.

The source based distro way is to build only what you need. That's probably harder, as at the start, you don't know everything you need and your kernel won't boot.
Be sure to not overwrite your genkernel kernel or its modules.

Be sure to set CONFIG_LOCALVERSION in your own kernel to stop that happening.
_________________
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
niku
n00b
n00b


Joined: 23 Dec 2018
Posts: 35

PostPosted: Mon Dec 24, 2018 5:03 am    Post subject: Reply with quote

You could start with sys-kernel/gentoo-sources, and apply all the required configuration mentioned in the Gentoo Handbook. (Most of these were correctly set already, when I first ran make menuconfig.)

Doing just the above got me a bootable system. All that I had to do on top of it (which I did later) was to add the required support for WiFi, Bluetooth, USB Tethering, Sound Card, and some Power Management and ACPI options. For these, I used the Gentoo (and ocassionally ArchLinux) wiki site.
Back to top
View user's profile Send private message
Muso
l33t
l33t


Joined: 22 Oct 2002
Posts: 986
Location: The Holy city of Honolulu

PostPosted: Mon Dec 24, 2018 6:26 am    Post subject: Reply with quote

The very idea of a default config is weird. Binary distros, as NeddySeagoon has pointed out, build gigantic, bloated, modular kernels which modprobe like a hail Mary. To understand what your computer's kernel needs, know the hardware. So try an lspci. Also check the .pdf file from the manufacturer if you didn't build it yourself. Know what you need, build it into your kernel.
_________________
Time is a great teacher, but unfortunately it kills all its pupils.
Back to top
View user's profile Send private message
herkusPT
n00b
n00b


Joined: 15 Feb 2008
Posts: 17

PostPosted: Mon Dec 24, 2018 12:31 pm    Post subject: Reply with quote

Hi,

Ok, let me try start to build my kernel configuration to my computer. It is a very long work but is the best idea, I forget the standard configuration, and build my configuration.

Thank
_________________
HerkusPT
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Dec 24, 2018 12:43 pm    Post subject: Reply with quote

herkusPT,

That will be this method.

The method is still valid but the kernel has grown a lot since I posted that.
Good use of the menus will save a lot of time. Setting and entire menu to off, sets its contents to off too.
e.g. If you don't have any TV cards, you can turn them all off.

There is no need to do it all in one sitting' if you save the config, you carry on from where you left off.
_________________
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
herkusPT
n00b
n00b


Joined: 15 Feb 2008
Posts: 17

PostPosted: Wed Dec 26, 2018 3:16 pm    Post subject: Reply with quote

Thanks so much for your help
_________________
HerkusPT
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