cancel
Showing results for 
Search instead for 
Did you mean: 

stLinux kernel version modules path

DYenEmbedded
Associate III

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

1 REPLY 1
Gregory PLANCHON
ST Employee

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

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.