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.

cmemk.ko kernel problem

Hi

I am able to boot my dm 355 from sd card and my application needs to display to lcd. I copied a folder named dvsdk into opt directory of the fie system but when I run sh loadmodule.sh, it shows

                       cmemk: disagrees about version of symbol struct_module

I figured that the cmemk.ko that I am copying expects kernel version 2.6.10 but I have kernel version 2.6.19 hence the error.

So should I get newer dvsdk folder(from where?) or downgrade kernel version(how?). In any case I need some help.

 

thanks

 

--

Himanshu meenia

  • Look in your sdk. There should be sources of cmem available. You'll need the linux kernel source for you kernel too (or at least the headers I think).
    It should be possible to rebuild your kernel module then.

    If a newer version is adviceable I don't know.

    The cmem sources can be found in the linuxutils package, which can be downloaded from the website too, if you don't find it in your SDK.

    Regards Markus

  • cmeme drivers are loaded when you build the kernel.YOur problem is cmem driver version is not matching with the

    kernel version.You can also download the drivers and build the kernel again.

     

    Regards,

    Mayank

  • I looked into the folder "/home/innobo/DM355SDK840402/proprietary/dvsdk_2_00_00/build" on the host machine and it has files with same names as the /opt/dvsdk folder of the sd card which contains the file system.  I used ftpget and fetched cmemk.ko and dm350mmap.ko from host machine's build directory to the sd card. Is it correct to do that? After running loadmodule.sh(which I didn't update since their code is different.), it outputs :

             [ 1517.880000]   Reference Linux version 2.6.29
             [ 1517.900000]   File /home/innobo/DM355SDK840402/proprietary/dvsdk_2_00_00/dvsdk_2_00_00_22/linuxutils_2_23_01/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
             [ 1517.940000] ioremap_nocache(0x87500000, 11534336)=0xcb000000
             [ 1517.940000] allocated heap buffer 0xcb000000 of size 0x99000
             [ 1517.960000] cmem initialized 8 pools between 0x87500000 and 0x88000000

     

    Also, this error is relatively new, I wasn't getting this earlier. Then also, I was not able to figure out the correct bootargs for sending data to lcd for display. Can you help with that also? I now think that it was not displaying earlier due to not having the correct modules cmemk and dm350mmap(though it was not showing any error regarding that).

  • Hello,

    There is a DVSDK 3.10 which supports dm355, but it uses kernel version 2.6.32:

    http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/dvsdk/DVSDK_3_10/latest/index_FDS.html

    It should be an easier starting point.

    Regards, Niclas