This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-AM62X: Kernel Dynamic Modules are not installed

Part Number: PROCESSOR-SDK-AM62X

Hi TI,

i have installed the loadable kernel modules using the command    

sudo make ARCH=arm64 INSTALL_MOD_PATH=/media/murali/root/ modules_install.

As per my understanding, this will install the kernel modules in the PATH : /lib/modules/kernel_version.
But I can't able to see any .ko files inside this path after installation.

When i try to probe the .ko file using
modprobe .ko, i am getting error modprobe: FATAL: Module .ko not found in directory /lib/modules/5.10.153-g3eee621d16.

Kindly can anyone tell me,whether my understanding is right about kernel module installation and also guide me to solve the issue.
Regards

Murali Chikkanna

  • sudo make ARCH=arm64 INSTALL_MOD_PATH=/media/murali/root/ modules_install.

    That command should be ok. Note that the kernel modules need to be built together with the same Kernel, as there binary dependencies between them. One of the ways the Linux  Kernel makes sure things don't get mixed up is by having a sub-folder inside /lib/modules that is named with the full version string of the Kernel itself to keep all the associated modules. For example, the below is from my AM62-SK system. You can see "5.10.153-g3eee621d16" is both the folder name and the full Linux Kernel version string in my system.

    root@am62xx-evm:/lib/modules# ls -al
    drwxr-xr-x    3 root     root          4096 Feb 28  2023 .
    drwxr-xr-x    7 root     root          4096 Feb 28  2023 ..
    drwxr-xr-x    4 root     root          4096 Feb 28  2023 5.10.153-g3eee621d16
    root@am62xx-evm:/lib/modules# uname -a
    Linux am62xx-evm 5.10.153-g3eee621d16 #1 SMP PREEMPT Mon Feb 27 17:29:40 UTC 2023 aarch64 GNU/Linux

    The best way to ensure things are consistent is you build the kernel together with your modules, and deploy them together. This way things wont' get out of sync.

    Regards, Andreas

  • Hi Andreas,

    Thanks for the reply.

    This is my system logs after installing the Built kernel modules and kernel image.

    I can't able to see any kernel modules inside the folder /lib/modules/5.10.153-g3eee621d16.

    The modprobe command fails.

    Regards,

    Murali Chikkanna