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.

omap3530 cmem 加载的问题

Other Parts Discussed in Thread: OMAP3530

root@DevKit8000:/media/mmcblk0p1/1# ./loadmodules.sh

CMEMK module: built on May  9 2012 at 10:27:43

 Reference Linux version 2.6.28

 File /home/lenovo/omap3530/dvsdk/dvsdk_3_00_02_44/linuxutils_2_24_02/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c

CMEMK Error: CMEM phys_start (0x85000000) overlaps kernel (0x80000000 -> 0x85800000)

insmod: cannot insert 'cmemk.ko': invalid parameters

insmod: cannot insert 'dsplinkk.ko': Cannot allocate memory

BusyBox v1.11.3 (2009-01-27 08:23:54 CST) multi-call binary

Usage: mknod [OPTIONS] NAME TYPE MAJOR MINOR

lpm_omap3530: Unknown symbol IPS_notify

lpm_omap3530: Unknown symbol IPS_register

lpm_omap3530: Unknown symbol IPS_unregister

lpm_omap3530: Unknown symbol LDRV_PROC_setState

lpm_omap3530: Unknown symbol LDRV_PROC_getState

lpm_omap3530: Unknown symbol PMGR_PROC_getSymbolAddress

insmod: cannot insert 'lpm_omap3530.ko': unknown symbol in module

BusyBox v1.11.3 (2009-01-27 08:23:54 CST) multi-call binary

Usage: mknod [OPTIONS] NAME TYPE MAJOR MINOR  

总是提示内存溢出还是什么地址范围的问题,怎么设置呢

  • 可以加载,但又有一个问题

    我的sh文件如下:

    # Default Memory Map

    #

    # Start Addr    Size    Description

    # -------------------------------------------

    # 0x40200000    60 KB   CMEM (internal memory, see comment below)

    # 0x80000000    80 MB   Linux

    # 0x85000000    16 MB   CMEM (external memory)

    # 0x86000000    24 MB   DDRALGHEAP

    # 0x87800000     6 MB   DDR2 (BIOS, Codecs, Applications)

    # 0x87E00000     1 MB   DSPLINK (MEM)

    # 0x87F00000     4 KB   DSPLINK (RESET)

    # 0x87F01000  1020 KB   unused

    # insert CMEM driver, using one block of memory

    #

    # Note: phys_end = (addr + 1)

    #

    # block 0: 0x85000000 - 0x85FFFFFF (16 MB), External Memory

    # pool:    80 KB, 20 x 4 KB buffers

    # pool:  1280 KB, 10 x 128 KB buffers

    # pool:  2048 KB, 2 x 1 MB buffers

    # heap: 12976 KB, (~12.67 MB)

    #

    insmod cmemk.ko phys_start=0x85000000 phys_end=0x85FFFFFF pools=20x4096,10x131072,2x1048576,1x153600,1x614400,1x2621440

    而且加载的时候,也加载成功了,

    运行 320x240 等小像素的图像处理,可以成功,但做到1280*1024,就说没有1208*1024*sizeof(char)*2=2621440,信息如下:

    root@DevKit8000:/media/mmcblk0p1/4# ./app_remote.xv5T -c -L -r 1x5 -s 1280x1024

    /dev/video0

    @0x00028b00:[T:0x4001d000] ti.sdo.ce.examples.apps.video_copy.singlecpu - main> ti.sdo.ce.examples.apps.video_copy.singlecpu

    @0x00028d25:[T:0x4001d000] ti.sdo.ce.examples.apps.video_copy.singlecpu - App-> Application started.

    CEapp-> Allocating contiguous buCMEMK Error: Failed to find a pool which fits 2621440

    ffer for 'input data' of size 26CMEMK Error: Failed to find a pool which fits 2621440

    21440...

    CEapp-> Allocating contiguous buffer for 'encoded data' of size 2621440...

    CMEM Error: getPool: Failed to get a pool fitting a size 2621440

    CEapp-> ERROR: Failed to allocate contiguous memory block.

    CEapp-> Allocating contiguous buffer for 'output data' of size 2621440...

    CMEM Error: getPool: Failed to get a pool fitting a size 2621440

    CEapp-> ERROR: Failed to allocate contiguous memory block.

    @0x0008839f:[T:0x4001d000] ti.sdo.ce.examples.apps.video_copy.singlecpu - app done.