Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] BLK_DEV_DM only as module, no option for built-in?
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
Tzuriel
Apprentice
Apprentice


Joined: 01 Jun 2004
Posts: 260

PostPosted: Sat Jun 11, 2022 11:08 pm    Post subject: [SOLVED] BLK_DEV_DM only as module, no option for built-in? Reply with quote

I'm working another issue trying to get touchpad support going, and somewhere's in the mix I believe some option changed my device mapper support so that when I try to include BLK_DEV_DM into the kernel, it's only allowed as a module and not built-in.

I believe this is causing my initramfs to fail when booting.

Code:

Cannot initialize device-mapper, Is dm_mod kernel module loaded?
Cannot use device gentoo, name is invalid or still in use.
WARNING: Failed to connect to lvmetad. Falling back to device scanning.
Reading all physical volumes. This may take a while...
/dev/mapper/control: open failed: No such device
Failure to communicate with kernel device-mapper driver.
Check that device-mapper is available in the kernel.
Incompatible libdevmapper 1.02.172 (2021-05-07) and kernel driver (unknown version).
...


Can anyone confirm that I should be able to make it build-in on a UEFI + LUKS + LVM + initramfs system, because I just don't remember what this was when I had it working.


Last edited by Tzuriel on Sun Jun 12, 2022 12:45 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Jun 11, 2022 11:25 pm    Post subject: Reply with quote

Tzuriel,

Both ways work. If BLK_DEV_DM is built in, its in the kernel binary.
If its a loadable module, it must be loaded by the initrd.

Since BLK_DEV_DM can only be selected an a module, one (or more) of its parent options will be a module.
_________________
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
Tzuriel
Apprentice
Apprentice


Joined: 01 Jun 2004
Posts: 260

PostPosted: Sat Jun 11, 2022 11:46 pm    Post subject: Reply with quote

Ok,well something changed because I didn't have to load it before, but I'll give that a try.

So, I have a custom initramfs and from reading a wiki page, I guess I need to make sure the utility that loads the module is also inclluded in the initramfs? So ... either modprobe or insmod needs to be in there? I'm familiar w/ either static or walking the dep tree to get everything in there.

And then I just place that command in my init file?

Is that the proper way to load dm_mod as a module inside an initramfs?
Back to top
View user's profile Send private message
Tzuriel
Apprentice
Apprentice


Joined: 01 Jun 2004
Posts: 260

PostPosted: Sun Jun 12, 2022 12:44 am    Post subject: Reply with quote

Ok, never mind, I found the problem.

I found that if
Code:

Device Drivers -> DAX: direct access to differentiated memory


Is a module, then it sets BLK_DEV_DM to being a module as well with no option of it being built-in. Setting DAX to built-in allowed me to make the device mapper built-in as well.

Thanks for your help on this.
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