* [gentoo-user] genkernel all
@ 2020-11-25 15:23 thelma
2020-11-25 15:27 ` thelma
0 siblings, 1 reply; 8+ messages in thread
From: thelma @ 2020-11-25 15:23 UTC (permalink / raw
To: Gentoo mailing list
I compiled "genkernel all" instead of looking for the correct entry to
boot my M.2 drive.
Not I compiled nvidia-drivers and got a message:
* Messages for package x11-drivers/nvidia-drivers-455.28-r1:
* CONFIG_I2C_NVIDIA_GPU: should not be set. But it is.
* Please check to make sure these options are set correctly.
* Failure to do so may cause unexpected problems.
* CONFIG_I2C_NVIDIA_GPU: should not be set. But it is.
Genkernel all doesn't have any .config file.
How to remove them? Where to get .config for genkernel all?
--
Thelma
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] genkernel all
2020-11-25 15:23 [gentoo-user] genkernel all thelma
@ 2020-11-25 15:27 ` thelma
2020-11-25 17:11 ` thelma
0 siblings, 1 reply; 8+ messages in thread
From: thelma @ 2020-11-25 15:27 UTC (permalink / raw
To: Gentoo mailing list
On 11/25/2020 08:23 AM, thelma@sys-concept.com wrote:
> I compiled "genkernel all" instead of looking for the correct entry to
> boot my M.2 drive.
>
> Not I compiled nvidia-drivers and got a message:
>
> * Messages for package x11-drivers/nvidia-drivers-455.28-r1:
>
> * CONFIG_I2C_NVIDIA_GPU: should not be set. But it is.
> * Please check to make sure these options are set correctly.
> * Failure to do so may cause unexpected problems.
> * CONFIG_I2C_NVIDIA_GPU: should not be set. But it is.
>
> Genkernel all doesn't have any .config file.
> How to remove them? Where to get .config for genkernel all?
>
found it in /etc/genkernel.conf
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] genkernel all
2020-11-25 15:27 ` thelma
@ 2020-11-25 17:11 ` thelma
2020-11-25 17:28 ` Jack Morgan
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: thelma @ 2020-11-25 17:11 UTC (permalink / raw
To: Gentoo mailing list
On 11/25/2020 08:27 AM, thelma@sys-concept.com wrote:
> On 11/25/2020 08:23 AM, thelma@sys-concept.com wrote:
>> I compiled "genkernel all" instead of looking for the correct entry to
>> boot my M.2 drive.
>>
>> Not I compiled nvidia-drivers and got a message:
>>
>> * Messages for package x11-drivers/nvidia-drivers-455.28-r1:
>>
>> * CONFIG_I2C_NVIDIA_GPU: should not be set. But it is.
>> * Please check to make sure these options are set correctly.
>> * Failure to do so may cause unexpected problems.
>> * CONFIG_I2C_NVIDIA_GPU: should not be set. But it is.
>>
>> Genkernel all doesn't have any .config file.
>> How to remove them? Where to get .config for genkernel all?
>>
> found it in /etc/genkernel.conf
That was not it. I copied genkernel.conf to /usr/src/linux/.config but
this configuration file is different.
I was looking for CONFIG_I2C_NVIDIA_GPU in genkernel.conf I couldn't
find it.
The reason I'm using "genkernel all" as there is some setting missing in
my old .config file that is stop booting my M.2 SSD (are there any
special option in kernel for it?). I'm getting an error:
kernel panic - not syncing: VFS: unable to mount root fs on
unknown-block (0, 0)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] genkernel all
2020-11-25 17:11 ` thelma
@ 2020-11-25 17:28 ` Jack Morgan
2020-11-25 17:33 ` Dale
2020-11-25 22:43 ` Peter Humphrey
2 siblings, 0 replies; 8+ messages in thread
From: Jack Morgan @ 2020-11-25 17:28 UTC (permalink / raw
To: gentoo-user
Thelma,
On 11/25/20 9:11 AM, thelma@sys-concept.com wrote:
> On 11/25/2020 08:27 AM, thelma@sys-concept.com wrote:
>> On 11/25/2020 08:23 AM, thelma@sys-concept.com wrote:
>>> I compiled "genkernel all" instead of looking for the correct entry to
>>> boot my M.2 drive.
>>>
>>> Not I compiled nvidia-drivers and got a message:
>>>
>>> * Messages for package x11-drivers/nvidia-drivers-455.28-r1:
>>>
>>> * CONFIG_I2C_NVIDIA_GPU: should not be set. But it is.
>>> * Please check to make sure these options are set correctly.
>>> * Failure to do so may cause unexpected problems.
>>> * CONFIG_I2C_NVIDIA_GPU: should not be set. But it is.
>>>
>>> Genkernel all doesn't have any .config file.
>>> How to remove them? Where to get .config for genkernel all?
>>>
>> found it in /etc/genkernel.conf
> That was not it. I copied genkernel.conf to /usr/src/linux/.config but
> this configuration file is different.
> I was looking for CONFIG_I2C_NVIDIA_GPU in genkernel.conf I couldn't
> find it.
genkernel.conf is a configuration file for genkernel not your kernel
configuration. Your mixing two separate things. You can edit
/etc/genkernel.conf and change SAVE_CONFIG="yes" to save your kernel
configuration files which is what I do. I same my kernel configuration
files in /etc/kernels/ and use the following script...
$ cat /root/bin/genkernel.sh
#!/bin/bash -x
## build kernel with genkernel
genkernel --kernel-config=/etc/kernels/kernel-config-x86_64-$(uname -r) all
## update grub.cfg file
grub-mkconfig -o /boot/grub/grub.cfg
I also have OLDCONFIG="no" and MENUCONFIG="yes" in /etc/genkernel.conf.
Once you invest 20 minutes editing your kernel config, you don't want to
have to do it again so saving a working kernel config is a good strategy.
You will find CONFIG_I2C_NVIDIA_GPU as a kernel config option (make
menuconfig for example).
> The reason I'm using "genkernel all" as there is some setting missing in
> my old .config file that is stop booting my M.2 SSD (are there any
> special option in kernel for it?). I'm getting an error:
> kernel panic - not syncing: VFS: unable to mount root fs on
> unknown-block (0, 0)
This means you are missing a kernel configuration option (most likely
the one for your disk controller). The fact that its an SSD is not
useful.. what the SSD is connected to is . Use lspci to find out what
hardware you have in your system.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] genkernel all
2020-11-25 17:11 ` thelma
2020-11-25 17:28 ` Jack Morgan
@ 2020-11-25 17:33 ` Dale
2020-11-26 1:38 ` thelma
2020-11-25 22:43 ` Peter Humphrey
2 siblings, 1 reply; 8+ messages in thread
From: Dale @ 2020-11-25 17:33 UTC (permalink / raw
To: gentoo-user
thelma@sys-concept.com wrote:
> On 11/25/2020 08:27 AM, thelma@sys-concept.com wrote:
>> On 11/25/2020 08:23 AM, thelma@sys-concept.com wrote:
>>> I compiled "genkernel all" instead of looking for the correct entry to
>>> boot my M.2 drive.
>>>
>>> Not I compiled nvidia-drivers and got a message:
>>>
>>> * Messages for package x11-drivers/nvidia-drivers-455.28-r1:
>>>
>>> * CONFIG_I2C_NVIDIA_GPU: should not be set. But it is.
>>> * Please check to make sure these options are set correctly.
>>> * Failure to do so may cause unexpected problems.
>>> * CONFIG_I2C_NVIDIA_GPU: should not be set. But it is.
>>>
>>> Genkernel all doesn't have any .config file.
>>> How to remove them? Where to get .config for genkernel all?
>>>
>> found it in /etc/genkernel.conf
> That was not it. I copied genkernel.conf to /usr/src/linux/.config but
> this configuration file is different.
> I was looking for CONFIG_I2C_NVIDIA_GPU in genkernel.conf I couldn't
> find it.
>
> The reason I'm using "genkernel all" as there is some setting missing in
> my old .config file that is stop booting my M.2 SSD (are there any
> special option in kernel for it?). I'm getting an error:
> kernel panic - not syncing: VFS: unable to mount root fs on
> unknown-block (0, 0)
>
>
>
If you have a bootable media, CD, another distro or whatever that works,
you can grab the config from it if it recognizes M.2 SSD. That will
give you a starting point at least. Later on, you can remove things or
make changes as needed. The command zcat /proc/config.gz should work
and you can tell that to put it in a regular file and if mounted, even
put it in your kernel source directory.
Hope that helps.
Dale
:-) :-)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] genkernel all
2020-11-25 17:11 ` thelma
2020-11-25 17:28 ` Jack Morgan
2020-11-25 17:33 ` Dale
@ 2020-11-25 22:43 ` Peter Humphrey
2 siblings, 0 replies; 8+ messages in thread
From: Peter Humphrey @ 2020-11-25 22:43 UTC (permalink / raw
To: gentoo-user
On Wednesday, 25 November 2020 17:11:30 GMT thelma@sys-concept.com wrote:
> The reason I'm using "genkernel all" as there is some setting missing in
> my old .config file that is stop booting my M.2 SSD (are there any
> special option in kernel for it?). I'm getting an error:
> kernel panic - not syncing: VFS: unable to mount root fs on
> unknown-block (0, 0)
This is what I have:
# grep -i nvm /usr/src/linux/.config
# NVME Support
CONFIG_NVME_CORE=y
CONFIG_BLK_DEV_NVME=y
# CONFIG_NVME_MULTIPATH is not set
# CONFIG_NVME_FC is not set
# CONFIG_NVME_TCP is not set
# end of NVME Support
CONFIG_NVM=y
# CONFIG_NVM_PBLK is not set
CONFIG_RTC_NVMEM=y
CONFIG_NVMEM=y
CONFIG_NVMEM_SYSFS=y
--
Regards,
Peter.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] genkernel all
2020-11-25 17:33 ` Dale
@ 2020-11-26 1:38 ` thelma
2020-11-26 2:01 ` Dale
0 siblings, 1 reply; 8+ messages in thread
From: thelma @ 2020-11-26 1:38 UTC (permalink / raw
To: gentoo-user
On 11/25/2020 10:33 AM, Dale wrote:
> thelma@sys-concept.com wrote:
>> On 11/25/2020 08:27 AM, thelma@sys-concept.com wrote:
>>> On 11/25/2020 08:23 AM, thelma@sys-concept.com wrote:
>>>> I compiled "genkernel all" instead of looking for the correct entry to
>>>> boot my M.2 drive.
>>>>
>>>> Not I compiled nvidia-drivers and got a message:
>>>>
>>>> * Messages for package x11-drivers/nvidia-drivers-455.28-r1:
>>>>
>>>> * CONFIG_I2C_NVIDIA_GPU: should not be set. But it is.
>>>> * Please check to make sure these options are set correctly.
>>>> * Failure to do so may cause unexpected problems.
>>>> * CONFIG_I2C_NVIDIA_GPU: should not be set. But it is.
>>>>
>>>> Genkernel all doesn't have any .config file.
>>>> How to remove them? Where to get .config for genkernel all?
>>>>
>>> found it in /etc/genkernel.conf
>> That was not it. I copied genkernel.conf to /usr/src/linux/.config but
>> this configuration file is different.
>> I was looking for CONFIG_I2C_NVIDIA_GPU in genkernel.conf I couldn't
>> find it.
>>
>> The reason I'm using "genkernel all" as there is some setting missing in
>> my old .config file that is stop booting my M.2 SSD (are there any
>> special option in kernel for it?). I'm getting an error:
>> kernel panic - not syncing: VFS: unable to mount root fs on
>> unknown-block (0, 0)
>>
>>
>>
>
>
> If you have a bootable media, CD, another distro or whatever that works,
> you can grab the config from it if it recognizes M.2 SSD. That will
> give you a starting point at least. Later on, you can remove things or
> make changes as needed. The command zcat /proc/config.gz should work
> and you can tell that to put it in a regular file and if mounted, even
> put it in your kernel source directory.
>
> Hope that helps.
>
> Dale
>
> :-) :-)
zcat /proc/config.gz
Very useful thank you. It will be handy.
I've noticed that using: genkernel --menuconfig all
puts the .config in /usr/src/linux directory and copy kernel to /boot
after compiling when you exit.
In addition I've switch to "refind" instead of grub; much simpler and
user friendly.
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] genkernel all
2020-11-26 1:38 ` thelma
@ 2020-11-26 2:01 ` Dale
0 siblings, 0 replies; 8+ messages in thread
From: Dale @ 2020-11-26 2:01 UTC (permalink / raw
To: gentoo-user
thelma@sys-concept.com wrote:
> On 11/25/2020 10:33 AM, Dale wrote:
>> thelma@sys-concept.com wrote:
>>> On 11/25/2020 08:27 AM, thelma@sys-concept.com wrote:
>>>> On 11/25/2020 08:23 AM, thelma@sys-concept.com wrote:
>>>>> I compiled "genkernel all" instead of looking for the correct entry to
>>>>> boot my M.2 drive.
>>>>>
>>>>> Not I compiled nvidia-drivers and got a message:
>>>>>
>>>>> * Messages for package x11-drivers/nvidia-drivers-455.28-r1:
>>>>>
>>>>> * CONFIG_I2C_NVIDIA_GPU: should not be set. But it is.
>>>>> * Please check to make sure these options are set correctly.
>>>>> * Failure to do so may cause unexpected problems.
>>>>> * CONFIG_I2C_NVIDIA_GPU: should not be set. But it is.
>>>>>
>>>>> Genkernel all doesn't have any .config file.
>>>>> How to remove them? Where to get .config for genkernel all?
>>>>>
>>>> found it in /etc/genkernel.conf
>>> That was not it. I copied genkernel.conf to /usr/src/linux/.config but
>>> this configuration file is different.
>>> I was looking for CONFIG_I2C_NVIDIA_GPU in genkernel.conf I couldn't
>>> find it.
>>>
>>> The reason I'm using "genkernel all" as there is some setting missing in
>>> my old .config file that is stop booting my M.2 SSD (are there any
>>> special option in kernel for it?). I'm getting an error:
>>> kernel panic - not syncing: VFS: unable to mount root fs on
>>> unknown-block (0, 0)
>>>
>>>
>>>
>>
>> If you have a bootable media, CD, another distro or whatever that works,
>> you can grab the config from it if it recognizes M.2 SSD. That will
>> give you a starting point at least. Later on, you can remove things or
>> make changes as needed. The command zcat /proc/config.gz should work
>> and you can tell that to put it in a regular file and if mounted, even
>> put it in your kernel source directory.
>>
>> Hope that helps.
>>
>> Dale
>>
>> :-) :-)
> zcat /proc/config.gz
> Very useful thank you. It will be handy.
>
> I've noticed that using: genkernel --menuconfig all
> puts the .config in /usr/src/linux directory and copy kernel to /boot
> after compiling when you exit.
> In addition I've switch to "refind" instead of grub; much simpler and
> user friendly.
>
That sounds good. I've always configured my own kernels but it can take
a few tries to get a bootable one. Even tho you were trying to use
genkernel, if it isn't working right, borrowing a config from a known
working setup can allow you to build your own kernel manually. It may
even be faster than using genkernel, which I've read works in most cases.
Either way, whatever works and gets you going.
Dale
:-) :-)
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2020-11-26 2:01 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-25 15:23 [gentoo-user] genkernel all thelma
2020-11-25 15:27 ` thelma
2020-11-25 17:11 ` thelma
2020-11-25 17:28 ` Jack Morgan
2020-11-25 17:33 ` Dale
2020-11-26 1:38 ` thelma
2020-11-26 2:01 ` Dale
2020-11-25 22:43 ` Peter Humphrey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox