You are not logged in.

#1 2016-09-05 18:58:40

coolguy21
Member
Registered: 2016-07-05
Posts: 87

[Solved] module not found after kernel build

compiled and patched my own kernel.. all went well having followed the wiki here https://wiki.archlinux.org/index.php/Ke … stallation

Problem faced when generating initramfs image using mkinitcpio -p linux{newkernelname}

It spits errors on a number of modules saying not found..

==> ERROR: module not found: 'dm_crypt'
==> ERROR: module not found: 'dm_cache'
==> ERROR: module not found: 'dm_cache_smq'
==> ERROR: module not found: 'dm_thin_pool
.
.
==> ERROR: module not found: 'zram'
==> ERROR: module not found: 'overlay'

Was I supposed to add these modules in manually into kernel. It's not all but only some of them like above..

EDIT: compiled grub-mkconfig -o /boot/grub/grub.cfg and tested new kernel it hangs on loading initramfs image..

Last edited by coolguy21 (2016-09-07 12:40:41)

Offline

#2 2016-09-05 19:06:02

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] module not found after kernel build

Did you enable those dm_* modules in the config?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-09-05 19:13:54

coolguy21
Member
Registered: 2016-07-05
Posts: 87

Re: [Solved] module not found after kernel build

jasonwryan wrote:

Did you enable those dm_* modules in the config?

sorry which config do you mean? I don't know where to find them..

Offline

#4 2016-09-05 20:26:59

loqs
Member
Registered: 2014-03-06
Posts: 19,184

Re: [Solved] module not found after kernel build

coolguy21 wrote:

sorry which config do you mean? I don't know where to find them..

Configuration

Offline

#5 2016-09-06 08:10:42

coolguy21
Member
Registered: 2016-07-05
Posts: 87

Re: [Solved] module not found after kernel build

loqs wrote:
coolguy21 wrote:

sorry which config do you mean? I don't know where to find them..

Configuration

have configured .config now mkinicpio seems ok but can't boot into new kernel - it freezes at loading initial ramdisk image.. no error messages..

EDIT: Have followed instructions: https://wiki.archlinux.org/index.php/Ke … l_RAM_disk

Last edited by coolguy21 (2016-09-06 08:14:11)

Offline

#6 2016-09-06 08:20:35

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] module not found after kernel build

Moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2016-09-06 09:28:41

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: [Solved] module not found after kernel build

Error free with the stock kernel?

Offline

#8 2016-09-06 13:51:25

coolguy21
Member
Registered: 2016-07-05
Posts: 87

Re: [Solved] module not found after kernel build

graysky wrote:

Error free with the stock kernel?

yes stock boots fine.

Offline

#9 2016-09-06 17:49:10

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: [Solved] module not found after kernel build

Not boots but img builds.  If it does, I can only assume that your custom kernel is lacking the needed modules in the corresponding kernel config as Jason asked.

Offline

#10 2016-09-07 12:39:54

coolguy21
Member
Registered: 2016-07-05
Posts: 87

Re: [Solved] module not found after kernel build

Yes it was the modules. All good now.

Offline

Board footer

Powered by FluxBB