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.

Linux/PROCESSOR-SDK-AM57X: CMEM module issues

Part Number: PROCESSOR-SDK-AM57X


Tool/software: Linux

Hi,

I am trying to insert cmem module to linux built AM572x-evm. I am using the latest SDK (version 5) and have run make cmem and make cmem_install. Cmem now seems to be installed on my system however running:

/sbin/insmod cmemk.ko pools=4x30000,2x500000 phys_start=0x0 phys_end=0x300000 

As is suggested by the guide, does not find cmem.ko. Pointing directly to it

/sbin/insmod /lib/modules/4.14.40-g4796173fc5/extra/cmemk.ko pools=4x30000,2x500000 phys_start=0x0 phys_end=0x300000   

gives this error:                     

[ 2596.766052] cmemk: disagrees about version of symbol module_layout           
insmod: ERROR: could not insert module /lib/modules/4.14.40-g4796173fc5/extra/cm
emk.ko: Invalid module format                                                   

As such i cannot install the module.

Thanks,

Max



                      


  • Hi, Maxim,

    I am not sure what you are trying to exercise, and which Guide did you follow?
    In the CMEM Guide, software-dl.ti.com/.../Foundational_Components_CMEM.html ,
    there are 2 ways to start CMEM, by dts or command line. The older releases before having DTS configuration use command line to configure CMEM. Since DTS configuration is implemented, the command line is not used. The CMEM module in Release 5.0 is installed and run by default which you can see from lsmod and proc file showing default CMEM configuration.

    am57xx-evm login: root
    root@am57xx-evm:~# lsmod | grep cmem
    cmemk 45056 2

    root@am57xx-evm:~# cat /proc/cmem

    Block 0: Pool 0: 1 bufs size 0xc000000 (0xc000000 requested)

    Pool 0 busy bufs:
    id 0: phys addr 0xa0000000 (cached)

    Pool 0 free bufs:
    root@am57xx-evm:~#