2023-08-21 11:32 AM
To workaround path issue with depmod -a
/lib/modules# cp -r 5.15.67 5.15.67-g8d25ddcc4f56
# /sbin/depmod -a
depmod: ERROR: could not open directory /lib/modules/5.15.67-g8d25ddcc4f56: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
this error is because after compiling some kernel changes, mostly device tree changes, Makefile populates lib/modules/5.15.67 however, how to fix where the modules path is, or what the kernel version is ?
# uname -r
5.15.67-g8d25ddcc4f56
2023-09-04 06:46 AM
HI,
You can use the command (echo "" > .scmversion) which allows you to by-pass this auto-generation of kernel version number
Then you'll need to rebuild your kernel, and you should normally be on the same version
Regards,
Grégory