1 |
thelma@×××××××××××.com wrote: |
2 |
> On 11/25/2020 10:33 AM, Dale wrote: |
3 |
>> thelma@×××××××××××.com wrote: |
4 |
>>> On 11/25/2020 08:27 AM, thelma@×××××××××××.com wrote: |
5 |
>>>> On 11/25/2020 08:23 AM, thelma@×××××××××××.com wrote: |
6 |
>>>>> I compiled "genkernel all" instead of looking for the correct entry to |
7 |
>>>>> boot my M.2 drive. |
8 |
>>>>> |
9 |
>>>>> Not I compiled nvidia-drivers and got a message: |
10 |
>>>>> |
11 |
>>>>> * Messages for package x11-drivers/nvidia-drivers-455.28-r1: |
12 |
>>>>> |
13 |
>>>>> * CONFIG_I2C_NVIDIA_GPU: should not be set. But it is. |
14 |
>>>>> * Please check to make sure these options are set correctly. |
15 |
>>>>> * Failure to do so may cause unexpected problems. |
16 |
>>>>> * CONFIG_I2C_NVIDIA_GPU: should not be set. But it is. |
17 |
>>>>> |
18 |
>>>>> Genkernel all doesn't have any .config file. |
19 |
>>>>> How to remove them? Where to get .config for genkernel all? |
20 |
>>>>> |
21 |
>>>> found it in /etc/genkernel.conf |
22 |
>>> That was not it. I copied genkernel.conf to /usr/src/linux/.config but |
23 |
>>> this configuration file is different. |
24 |
>>> I was looking for CONFIG_I2C_NVIDIA_GPU in genkernel.conf I couldn't |
25 |
>>> find it. |
26 |
>>> |
27 |
>>> The reason I'm using "genkernel all" as there is some setting missing in |
28 |
>>> my old .config file that is stop booting my M.2 SSD (are there any |
29 |
>>> special option in kernel for it?). I'm getting an error: |
30 |
>>> kernel panic - not syncing: VFS: unable to mount root fs on |
31 |
>>> unknown-block (0, 0) |
32 |
>>> |
33 |
>>> |
34 |
>>> |
35 |
>> |
36 |
>> If you have a bootable media, CD, another distro or whatever that works, |
37 |
>> you can grab the config from it if it recognizes M.2 SSD. That will |
38 |
>> give you a starting point at least. Later on, you can remove things or |
39 |
>> make changes as needed. The command zcat /proc/config.gz should work |
40 |
>> and you can tell that to put it in a regular file and if mounted, even |
41 |
>> put it in your kernel source directory. |
42 |
>> |
43 |
>> Hope that helps. |
44 |
>> |
45 |
>> Dale |
46 |
>> |
47 |
>> :-) :-) |
48 |
> zcat /proc/config.gz |
49 |
> Very useful thank you. It will be handy. |
50 |
> |
51 |
> I've noticed that using: genkernel --menuconfig all |
52 |
> puts the .config in /usr/src/linux directory and copy kernel to /boot |
53 |
> after compiling when you exit. |
54 |
> In addition I've switch to "refind" instead of grub; much simpler and |
55 |
> user friendly. |
56 |
> |
57 |
|
58 |
That sounds good. I've always configured my own kernels but it can take |
59 |
a few tries to get a bootable one. Even tho you were trying to use |
60 |
genkernel, if it isn't working right, borrowing a config from a known |
61 |
working setup can allow you to build your own kernel manually. It may |
62 |
even be faster than using genkernel, which I've read works in most cases. |
63 |
|
64 |
Either way, whatever works and gets you going. |
65 |
|
66 |
Dale |
67 |
|
68 |
:-) :-) |