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 ?
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.
you mean I can check the modules.dep to make sure the moudlues that have been insert ?
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
I am also having the same issue. Did you resolve it? Can you post solution
To insert a module, you need to execute 'modprobe'.
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 ?
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.
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#
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 .
what commands you executed before this error come out?