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.

AM57x lsmod reports no modules



hello. 

i connected to cl-som-am57x and try to see modules but when i use lsmod command, report no modules.

root@cl-som-am57x:/# lsmod 

Modules              Sized          used by

root@cl-som-am57x:/#

  • If you don't see any modules. It is probably better to post to the Sitara E2E.

    Will move it there.

    BR,

    Eyal

  • What Linux version is this?
  • lsmod is a command on Linux systems which prints the contents of the /proc/modules file. It shows which loadable kernel modules are currently loaded. If all your modules are built into the kernel it will show nothing.
  • i know that . i load modules with this command : " sudo make ARCH=arm INSTALL_MOD_PATH=/home/azadi/rootfs-cl-som/ modules_install " but when i use lsmod command show nothings. by the way when i used modinfo command for example for wlcore module or cfg80211 module report information about this modules.

    for wlcore module i used modinfo command and report informations of this module such as address .

    /lib/modules/4.4.0-cl-som-am57x-3.0-dirty/kernel/drivers/net/wireless/ti/wlcore/wlcore.ko

  • my linux version is 4.4 .
    i load modules with this command : " sudo make ARCH=arm INSTALL_MOD_PATH=/home/azadi/rootfs-cl-som/ modules_install " but when i use lsmod command show nothings. by the way when i used modinfo command for example for wlcore module or cfg80211 module report information about this modules. for example address of this module . for wlcore module report " /lib/modules/4.4.0-cl-som-am57x-3.0-dirty/kernel/drivers/net/wireless/ti/wlcore/wlcore.ko"
  • With this command you install the modules in the filesystem. You must enable them with "insmod".
  • how to enable ?
    i use this command but dont work!
    root@cl-som-am57x: insmod wlcore
    insmod: ERROR: could not load module wlcore: No such file or directory
  • Hi,

    On your board, you need to navigate to the location of the .ko file and then insmod. For example, if your wlcore.ko is located in  /lib/modules/4.4.0-cl-som-am57x-3.0-dirty/kernel/drivers/net/wireless/ti/wlcore/, then you need to execute the following commands:

     cd  /lib/modules/4.4.0-cl-som-am57x-3.0-dirty/kernel/drivers/net/wireless/ti/wlcore/

     root@cl-som-am57x:/lib/modules/4.4.0-cl-som-am57x-3.0-dirty/kernel/drivers/net/wireless/ti/wlcore/# insmod wlcore.ko

    OR you can use modprobe:

     cd  /lib/modules/4.4.0-cl-som-am57x-3.0-dirty/kernel/drivers/net/wireless/ti/wlcore/

     root@cl-som-am57x:/lib/modules/4.4.0-cl-som-am57x-3.0-dirty/kernel/drivers/net/wireless/ti/wlcore/# modprobe wlcore

    Best Regards,

    Yordan

  • i navigate to this place but occur error:
    root@cl-som-am57x:cd /lib/modules/4.4.0-cl-som-am57x-3.0-dirty/kernel/net/wireless# cd /lib/modules/4.4.0-cl-som-am57x-3.0-dirty/kernel/net/wireless
    root@cl-som-am57x:/lib/modules/4.4.0-cl-som-am57x-3.0-dirty/kernel/net/wireless# ls
    cfg80211.ko
    root@cl-som-am57x:/lib/modules/4.4.0-cl-som-am57x-3.0-dirty/kernel/net/wireless# insmod cfg80211.ko
    insmod: ERROR: could not insert module cfg80211.ko: Invalid parameters
    root@cl-som-am57x:/lib/modules/4.4.0-cl-som-am57x-3.0-dirty/kernel/net/wireless#
  • Hi,

    Are the modules built against the kernel build tag? This can be one possibility for the mismatch between the .ko file & zImage.

    Best Regards,
    Yordan