depmod can not find the path

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

depmod can not find the path

4,333 Views
tomgao
Contributor III

depmod: ERROR: could not open directory /lib/modules/3.14.28-1.0.0_ga-mfgtool+g91cf351: No such file or directory

My modules path is /lib/modules/3.14.28-1.0.0_ga+g91cf351/kernel/drivers/ .

How can I change the path ?

0 Kudos
10 Replies

2,562 Views
jimmychan
NXP TechSupport
NXP TechSupport

depmod(8): make modules.dep/map files - Linux man page

depmod creates a list of module dependencies by reading each module under /lib/modules/version and determining what symbols it exports and what symbols it needs. By default, this list is written to modules.dep in the same directory.

0 Kudos

2,562 Views
tomgao
Contributor III

you mean I can check the modules.dep to make sure the moudlues that have been insert ?

0 Kudos

2,562 Views
tomgao
Contributor III

now ,I know .The depmod is just build the moudle dependencies . And the next is to use modporbe to insert the modul .

the g_mass_storage has been insert by the document 035-Loadable-Module-Test.txt .

But I have the same problem when I do next :

root@imx6qdlsolo:~# modprobe libcomposite 

libcomposite: version magic '3.14.28-1.0.0_ga+g91cf351 SMP preempt mod_unload modversions ARMv7 p2v8 ' should be '3.14.28-1.0.0_ga-mfgtool+g91cf351 SMP preempt mod_unload modversions ARMv6 p2v8 '

modprobe: ERROR: could not insert 'libcomposite': Exec format error

0 Kudos

2,562 Views
chandraevolute
Contributor V

I am also having the same issue. Did you resolve it? Can you post solution

0 Kudos

2,562 Views
jimmychan
NXP TechSupport
NXP TechSupport

To insert a module, you need to execute 'modprobe'.

0 Kudos

2,562 Views
tomgao
Contributor III

nothing to do . But I find that  it is 3.14.28-1.0.0_ga-mfgtool+g91cf351 when I use  uname -a . In another hand, my .ko file do in the /lib/modules/3.14.28-1.0.0_ga+g91cf351/kernel/drivers/ . It must be my project kernel config is wrong . I did not find which config to fix.

Could you tell me or provide the document how to fix ?

0 Kudos

2,562 Views
jimmychan
NXP TechSupport
NXP TechSupport

Could you tell me more details about what you want to do?

Anyway, we have BSP user's guide that you can download it from here​. Or you can create a symbolic link that link to the /kernel/drivers/ by using 'ln -s' command in the folder /lib/modules/3.14.28-1.0.0_ga-mfgtool+g91cf351.

0 Kudos

2,562 Views
tomgao
Contributor III

root@imx6qdlsolo:/lib/modules# uname -a

Linux imx6qdlsolo 3.14.28-1.0.0_ga-mfgtool+g91cf351 #1 SMP PREEMPT Fri Mar 20 22:38:57 CST 2015 armv7l GNU/Linux

root@imx6qdlsolo:/lib/modules# depmod

depmod: ERROR: could not open directory /lib/modules/3.14.28-1.0.0_ga-mfgtool+g91cf351: No such file or directory

depmod: FATAL: could not search modules: No such file or directory

root@imx6qdlsolo:/lib/modules#

0 Kudos

2,562 Views
tomgao
Contributor III

after I changed the fold name to 3.14.28-1.0.0_ga-mfgtool+g91cf351  then execute the next command :

root@imx6qdlsolo:/lib/modules# depmod

root@imx6qdlsolo:/lib/modules# lsmod

Module                  Size  Used by

root@imx6qdlsolo:/lib/modules#

it seem that the depmod command do nothing .

0 Kudos

2,561 Views
jimmychan
NXP TechSupport
NXP TechSupport

what commands you executed before this error come out?

0 Kudos