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.

CMEM Error

Hi all

i'm working on the DM37x EVM using the dvsdk-dm37x-evm pre-built image from the arago project.

I have a problem inserting the cmem module.

I think the problem is in my u-boot settings in the memory allocation part of the environment settings. I've tried changing them to get it to work without much success.

I printed a bunch of the errors if i'm wrong about the reason it's happening someone please point it out. 

My current printenv is printed below,if anyone has a working configuration it would help a lot.

Please advice me what to do.

Thank you in advance,

Lilach

 

 

my printenv:

mmcargs=setenv bootargs console=${console} root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait

nandargs=setenv bootargs console=${console} root=/dev/mtdblock4 rw rootfstype=jffs2


 

 

from dmesg right after boot

CMEMK module: built on Mar 24 2011 at 20:50:56

  Reference Linux version 2.6.32

  File /sdk/build/DVSDK_4_02/4_02_00_06/arago-install/arago-tmp/work/dm37x-evm-none-linux-gnueabi/ti-linuxutils-1_2_26_01_02-r94d/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c

no physical memory specified, continuing with no memory allocation capability...

cmemk initialized

 

when Im trying to run demos using the DSP from the dvsdk I get the following cmem error: 

root@dm37x-evm:/usr/share/ti/c6run-apps/examples/c6runapp/cio_example# ./cio_example_dsp                                                                        

CMEM Error: allocHeap: ioctl CMEM_IOCALLOCHEAPCACHED failed: -1                 

CMEM_alloc() failed!                                                            

Segmentation fault    

 

root@dm37x-evm:/usr/share/ti/c6run-apps/examples/c6runapp/hello_world# ./hello_world_dsp                                                                        

CMEM Error: allocHeap: ioctl CMEM_IOCALLOCHEAPCACHED failed: -1                 

CMEM_alloc() failed!                                                            

Segmentation fault  

(Im using the load modules script from the dvsdk (shown in blue below) before running the demos but i still get the cmem error) 

From my  loadmodules.sh:
modprobe cmemk phys_start=0x83700000 phys_end=0x85900000 allowOverlap=1 useHeapIfPoolUnavailable=1

 

 

 

  • It seems your CMEM kernel module is not being loaded with correct settings. I've never seen the "no physical memory specified" message, but I know you should not be getting that. The printenv output from u-boot may not reflect the actual boot arguments. Can you provide output of 'cat /proc/cmdline' under Linux?

    If you are not using a mem= argument to the Linux kernel, it may simply allocate all available memory and not leave anything for CMEM. We'll need to see the actual boot args to make that determination.

    Regards, Daniel

  • Dear Lilash:

    have you solved this problem?

    i came across this question too.

     

    root@dm37x-evm:/usr/share/ti/c6run-apps/examples/c6runapp/hello_world# cat /proc
    /cmd
    /cmdline
    console=ttyO2,115200n8 androidboot.console=ttyO2 mem=68M@0x80000000 mem=384M@0x8
    8000000 root=/dev/mmcblk0p2 rw rootfstype=ext3 rootdelay=1 init=/init ip=off oma
    p_vout.vid1_static_vrfb_alloc=y omapdss.def_disp=dvi vram=32M omapfb.mode=dvi:12
    80x720MR-16 omapfb.vram=0:16M mpurate=1000
    root@dm37x-evm:/usr/share/ti/c6run-apps/examples/c6runapp/hello_world#

     

    Dmesg:

    [   14.548828] CMEMK module: built on Nov 16 2012 at 19:50:47
    [   14.554534]   Reference Linux version 2.6.37
    [   14.558990]   File /home/luoyi/mtp3730/android/external/ti-dsp/ti-dvsdk_dm3730-evm_04_03_00_06/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
    [   14.574829] CMEM Range Overlaps Kernel Physical - allowing overlap
    [   14.581298] CMEM phys_start (0x84f00000) overlaps kernel (0x80000000 -> 0x9a400000)
    [   14.589691] allocated heap buffer 0xe3000000 of size 0xa00000
    [   14.595703] heap fallback enabled - will try heap if pool buffer is not available
    [   14.603515] cmemk initialized
    [   14.633941] DSPLINK Module (1.65.01.05_eng) created on Date: Oct  4 2012 Time: 14:24:17
    [   14.676940] SDMAK module: built on Nov 16 2012 at 19:50:48
    [   14.682708]   Reference Linux version 2.6.37
    [   14.687164]   File /home/luoyi/mtp3730/android/external/ti-dsp/ti-dvsdk_dm3730-evm_04_03_00_06/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/sdma/src/module/sdmak.c

    Bests Regards!

    Lawyee