Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 651126 - Genkernel isn't shipped with critical objects enabled by default
Summary: Genkernel isn't shipped with critical objects enabled by default
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL: https://packages.gentoo.org/packages/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-21 23:53 UTC by Zakhar
Modified: 2019-03-07 21:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Notice the useless pata drivers with genkernel (lsmod-genkernel,9.12 KB, text/plain)
2018-03-22 00:24 UTC, Zakhar
Details
This is Ubuntus lsmod (lsmod,3.85 KB, text/plain)
2018-03-22 00:25 UTC, Zakhar
Details
lspci to show there are no pata devices (lspci,2.00 KB, text/plain)
2018-03-22 00:25 UTC, Zakhar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Zakhar 2018-03-21 23:53:37 UTC
After trying out genkernel (I normally configure the kernel myself) I found out that DRM, AMDGPU, Framebuffer drivers were NOT enabled by default. This is inexcusable because

$genkernel all

takes a while to finish and the average user would just quit when they find out their GPU doesn't have appropriate drivers. In reality genkernel also would not load appropriate firmware files for GPU found in /lib/firmware, I had to insert it into the .config. Genkernel is a tool for users who do not want to deal with configuring kernels, it is a broken tool and will leave its users without a properly working installation. I suggest porting over and merging genkernel to Ubuntus kernel system, this is because they obviously got it right. Booting their live cd renders my hardware more usable (led light on mute function keys light up and some others) were as they wouldn't on both genkernel AND my manual configed kernel. There is NOTHING to loose in doing this, only more users to gain.
Comment 1 Zakhar 2018-03-22 00:08:24 UTC
There are much more things which genkernel did not make work on my laptop were as Ubuntus livecd proved their kernel system is superior because the hardware worked.
Comment 2 Zakhar 2018-03-22 00:24:49 UTC
Created attachment 524762 [details]
Notice the useless pata drivers with genkernel
Comment 3 Brian Evans (RETIRED) gentoo-dev 2018-03-22 00:25:30 UTC
(In reply to Zakhar from comment #0)
> After trying out genkernel (I normally configure the kernel myself) I found
> out that DRM, AMDGPU, Framebuffer drivers were NOT enabled by default. This
> is inexcusable because
> 
> $genkernel all
> 
> takes a while to finish and the average user would just quit when they find
> out their GPU doesn't have appropriate drivers. In reality genkernel also
> would not load appropriate firmware files for GPU found in /lib/firmware, I
> had to insert it into the .config. Genkernel is a tool for users who do not
> want to deal with configuring kernels, it is a broken tool and will leave
> its users without a properly working installation. I suggest porting over
> and merging genkernel to Ubuntus kernel system, this is because they
> obviously got it right. Booting their live cd renders my hardware more
> usable (led light on mute function keys light up and some others) were as
> they wouldn't on both genkernel AND my manual configed kernel. There is
> NOTHING to loose in doing this, only more users to gain.

It is true that CONFIG_DRM_AMDGPU is not yet included in the default x86_64 config but should be.  Most other video drivers are enabled as modules with the default config.

Genkernel is a one-size-fits most tool but it occasionally needs to be tweaked by using the --menuconfig option.

As for the firmware, firmware files are not required to be part of the kernel.  They are included in the initramfs if the --firmware option is given or FIRMWARE="yes" in genkernel.conf is set.  Not everyone needs this.
Comment 4 Zakhar 2018-03-22 00:25:40 UTC
Created attachment 524764 [details]
This is Ubuntus lsmod
Comment 5 Zakhar 2018-03-22 00:25:57 UTC
Created attachment 524766 [details]
lspci to show there are no pata devices
Comment 6 Zakhar 2018-03-22 00:30:10 UTC
AMDGPU is only 1 example of MANY which do not work with kernel generated with genkernel with my laptop.
Comment 7 Brian Evans (RETIRED) gentoo-dev 2018-03-22 00:47:11 UTC
You are welcome to submit patches here or PRs to https://github.com/gentoo/genkernel

Ubuntu likely just does 'make allmodconfig' and not use a static config like genkernel does.  They may also include udev which genkernel does not do.
Comment 8 Zakhar 2018-03-23 02:04:46 UTC
They don't use that command because:

laptop /usr/src/linux # make allmodconfig
scripts/kconfig/conf  --allmodconfig Kconfig
#
# configuration written to .config
#
laptop /usr/src/linux # wc -l .config && wc -l ~/ubuntu-kernel-config 
11375 .config
8491 /root/ubuntu-kernel-config

ubuntu config taken from here:
https://gist.github.com/eeyrjmr/279a0930253831a34be53e74ae4311cb
Comment 9 Larry the Git Cow gentoo-dev 2019-03-07 21:31:11 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=803093e728262d03ae39b5acd30914f1a2f506ee

commit 803093e728262d03ae39b5acd30914f1a2f506ee
Author:     Ben Kohler <bkohler@gentoo.org>
AuthorDate: 2019-03-07 21:28:51 +0000
Commit:     Ben Kohler <bkohler@gentoo.org>
CommitDate: 2019-03-07 21:30:46 +0000

    x86{,_64}/kernel-config: add DRM_AMDGPU
    
    Closes: https://bugs.gentoo.org/651126
    
    Signed-off-by: Ben Kohler <bkohler@gentoo.org>

 arch/x86/kernel-config    | 1 +
 arch/x86_64/kernel-config | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)