Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved]Kernel configuration messed up system
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
reikdas
Apprentice
Apprentice


Joined: 27 Nov 2018
Posts: 238

PostPosted: Sat Dec 22, 2018 2:48 pm    Post subject: [Solved]Kernel configuration messed up system Reply with quote

I had setup my kernel using genkernel.
I needed to enable Intel i915 driver so I started to manually configure my stem.
Question - I saw that some of the kernel modules were already configured. Is it because it retains the genkernel configuration?
I changed the M to Y for the modules that the Gentoo wiki suggested enabling.
I also enabled the i915 driver.

Now I am unable to boot into my system anymore. I get the error "Could not find the root block device". My root is ext4. ext4 is enabled in the kernel. Any thoughts?


Last edited by reikdas on Sat Dec 22, 2018 4:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 22018
Location: here

PostPosted: Sat Dec 22, 2018 3:01 pm    Post subject: Reply with quote

You can post your .config and lspci?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
reikdas
Apprentice
Apprentice


Joined: 27 Nov 2018
Posts: 238

PostPosted: Sat Dec 22, 2018 3:06 pm    Post subject: Reply with quote

fedeliallalinea wrote:
You can post your .config and lspci?


Is there a way to be able to get the .config without booting into the system? (Perhaps live boot?)

I have a picture of the lspci -k that I had taken before configuring the kernel. - https://photos.app.goo.gl/anMvk67rxjWfR2HA9

Question - How do I know which driver/module to mark with Y and which with M?
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 22018
Location: here

PostPosted: Sat Dec 22, 2018 3:25 pm    Post subject: Reply with quote

reikdas wrote:
Is there a way to be able to get the .config without booting into the system? (Perhaps live boot?)

I have a picture of the lspci -k that I had taken before configuring the kernel. - https://photos.app.goo.gl/anMvk67rxjWfR2HA9

Yes you can boot with a live and mount gentoo root partiton and get .config. You can also run lspci from live.

reikdas wrote:
Question - How do I know which driver/module to mark with Y and which with M?

If not use a initrd all settings needed before that root filesystem is mounted (like disk support, fs support,...) must be built-in 'Y' the rest can be set as module 'M'.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
reikdas
Apprentice
Apprentice


Joined: 27 Nov 2018
Posts: 238

PostPosted: Sat Dec 22, 2018 3:48 pm    Post subject: Logs Reply with quote

lspci -k -> https://paste.pound-python.org/show/wspucUQBjmXtDRzwszey/

.config -> https://paste.pound-python.org/show/Y68fcjz0AbqtzadqTCcn/
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7132
Location: Saint Amant, Acadiana

PostPosted: Sat Dec 22, 2018 4:07 pm    Post subject: Reply with quote

Code:
CONFIG_SATA_AHCI=m

This is a showstopper.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Dec 22, 2018 4:10 pm    Post subject: Reply with quote

reikdas,

Use genkernel still.

Run it as
Code:
genkernel --menuconfig all

This will let you select the i915 module before the kernel is built.
_________________
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
reikdas
Apprentice
Apprentice


Joined: 27 Nov 2018
Posts: 238

PostPosted: Sat Dec 22, 2018 4:10 pm    Post subject: Reply with quote

Jaglover wrote:
Code:
CONFIG_SATA_AHCI=m

This is a showstopper.


Should it be Y?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7132
Location: Saint Amant, Acadiana

PostPosted: Sat Dec 22, 2018 4:16 pm    Post subject: Reply with quote

Everything needed to mount the root filesystem must be <Y>.

Partition table support.
HDD controller support.
Root filesystem support.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
reikdas
Apprentice
Apprentice


Joined: 27 Nov 2018
Posts: 238

PostPosted: Sat Dec 22, 2018 4:46 pm    Post subject: Reply with quote

NeddySeagoon wrote:
reikdas,

Use genkernel still.

Run it as
Code:
genkernel --menuconfig all

This will let you select the i915 module before the kernel is built.


That worked. Thanks!
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