Re: [gentoo-user] genkernel all

2020-11-25 Thread Dale
the...@sys-concept.com wrote:
> On 11/25/2020 10:33 AM, Dale wrote:
>> the...@sys-concept.com wrote:
>>> On 11/25/2020 08:27 AM, the...@sys-concept.com wrote:
 On 11/25/2020 08:23 AM, the...@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

:-)  :-)



Re: [gentoo-user] genkernel all

2020-11-25 Thread thelma
On 11/25/2020 10:33 AM, Dale wrote:
> the...@sys-concept.com wrote:
>> On 11/25/2020 08:27 AM, the...@sys-concept.com wrote:
>>> On 11/25/2020 08:23 AM, the...@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.

> 



Re: [gentoo-user] genkernel all

2020-11-25 Thread Peter Humphrey
On Wednesday, 25 November 2020 17:11:30 GMT the...@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.






Re: [gentoo-user] genkernel all

2020-11-25 Thread Dale
the...@sys-concept.com wrote:
> On 11/25/2020 08:27 AM, the...@sys-concept.com wrote:
>> On 11/25/2020 08:23 AM, the...@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

:-)  :-) 



Re: [gentoo-user] genkernel all

2020-11-25 Thread Jack Morgan

Thelma,

On 11/25/20 9:11 AM, the...@sys-concept.com wrote:

On 11/25/2020 08:27 AM, the...@sys-concept.com wrote:

On 11/25/2020 08:23 AM, the...@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.








Re: [gentoo-user] genkernel all

2020-11-25 Thread thelma
On 11/25/2020 08:27 AM, the...@sys-concept.com wrote:
> On 11/25/2020 08:23 AM, the...@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)




Re: [gentoo-user] genkernel all

2020-11-25 Thread thelma
On 11/25/2020 08:23 AM, the...@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