Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED ] 4.19.44-gentoo, empty modules.dep
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
k547924
n00b
n00b


Joined: 17 Feb 2019
Posts: 17

PostPosted: Wed Jun 05, 2019 6:18 pm    Post subject: [SOLVED ] 4.19.44-gentoo, empty modules.dep Reply with quote

Hi,

I am trying to install 4.19.44-gentoo following the handbook.

Kernel is configured to use loadable modules when possible.

After command:
Code:
make modules_install


I get:
Code:
ls -lh /lib/modules/4.19.44-gentoo/
total 230K
lrwxrwxrwx  1 root root   29  5 juin  19:46 build -> /usr/src/linux-4.19.44-gentoo
drwxr-xr-x 12 root root 1,0K  5 juin  19:52 kernel
-rw-r--r--  1 root root   45  5 juin  19:52 modules.alias
-rw-r--r--  1 root root   12  5 juin  19:52 modules.alias.bin
-rw-r--r--  1 root root 5,2K  5 juin  19:46 modules.builtin
-rw-r--r--  1 root root 6,9K  5 juin  19:52 modules.builtin.bin
-rw-r--r--  1 root root    0  5 juin  19:52 modules.dep
-rw-r--r--  1 root root   12  5 juin  19:52 modules.dep.bin
-rw-r--r--  1 root root    0  5 juin  19:52 modules.devname
-rw-r--r--  1 root root 210K  5 juin  19:46 modules.order
-rw-r--r--  1 root root   55  5 juin  19:52 modules.softdep
-rw-r--r--  1 root root   49  5 juin  19:52 modules.symbols
-rw-r--r--  1 root root   12  5 juin  19:52 modules.symbols.bin
lrwxrwxrwx  1 root root   29  5 juin  19:46 source -> /usr/src/linux-4.19.44-gentoo


You can see that modules.dep is empty.

Consequently, when booting, initramfs-genkernel-x86_64-4.19.44-gentoo can't load modules because modprobe need modules.dep.

So, where does this problem come from ?


Last edited by k547924 on Thu Jun 06, 2019 7:47 am; edited 1 time in total
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6480

PostPosted: Wed Jun 05, 2019 7:27 pm    Post subject: Reply with quote

modules_install should have called depmod immediately after copying modules to that dir. Did it generate any errors? Are your modules compressed with something depmod wasn't built with support for?
Back to top
View user's profile Send private message
k547924
n00b
n00b


Joined: 17 Feb 2019
Posts: 17

PostPosted: Thu Jun 06, 2019 7:44 am    Post subject: [SOLVED] modules.dep empty Reply with quote

Thanks "Ant P." you led me to the solution.

It is explained in https://wiki.gentoo.org/wiki/Kernel/Gentoo_Kernel_Configuration_Guide#Compressed_kernel_modules

In my case I have enabled modules compression with XZ algorithm and depmod which is a symbolic link to kmod program must have lzma USE flag.

What disconcert me is that depmod does not output any error.

So after emerging kmod with correct USE flag, just do in the chroot environment:
Code:
cd /lib/modules/4.19.44-gentoo/
depmod 4.19.44-gentoo
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 15294

PostPosted: Fri Jun 07, 2019 1:50 am    Post subject: Reply with quote

From reading through the depmod source, it appears that it can only recognize files compressed with an algorithm it knows how to decompress. If xz support is disabled, it makes no attempt to differentiate xz-compressed files from random garbage, and treats both as regular uncompressed files. This is arguably undesirable. I could see the value of having it always able to identify that this is a valid file format, even if it cannot decompress it. Alternatively, I could see the value of reporting any unhandled files, whether they are unhandled because they are garbage data or because they are an unsupported compression algorithm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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