TI中文支持网
TI专业的中文技术问题搜集分享网站

8168 dvrrdk3.0 修改内存分配config_1G_256MLinux.bld文件后 ./run.sh运行不正常

因为我们需要在dsp侧加算法,加算法后dsp_data空间不够,所以修改config_1G_256Mllinux.bld文件重新分配内存,把DSP_CODE_ADDR 和DSP_DATA_ADDR 移到下半个512MB空间,增加DSP_DATA_SIZE 的大小,减少SR2_FRAME_BUFFER_SIZE。

 

修改后的config_1G_256MLinux.bld文件在附件里

 

但现在每次运行./run.sh后总是卡在

[m3video]  57828: DECODE: Creating CH11 of 704 x 576 [PROGRESSIVE] [TILED       [m3video] DECLINK_H264:HEAPID:0        USED:2368                                [m3video] DECLINK_H264:HEAPID:2        USED:4493312                             [m3video]  57856: DECODE: Creating CH12 of 704 x 576 [PROGRESSIVE] [TILED       [m3video] DECLINK_H264:HEAPID:0        USED:2368                                [m3video] DECLINK_H264:HEAPID:2        USED:4493312                             [m3video]  57884: DECODE: Creating CH13 of 704 x 576 [PROGRESSIVE] [TILED       [m3video] DECLINK_H264:HEAPID:0        USED:2368                                [m3video] DECLINK_H264:HEAPID:2        USED:4493312                             [m3video]  57912: DECODE: Creating CH14 of 704 x 576 [PROGRESSIVE] [TILED       [m3video] DECLINK_H264:HEAPID:0        USED:2368                                [m3video] DECLINK_H264:HEAPID:2        USED:4493312                             [m3video]  57939: DECODE: Creating CH15 of 704 x 576 [PROGRESSIVE] [TILED       [m3video]  57941: DECODE: All CH Create … DONE !!!                            [m3video] DECLINK:HEAPID:0     USED:38008                                       [m3video] DECLINK:HEAPID:2     USED:71892992                                    [m3video]  57944: DECODE: Create … DONE !!!                                   [m3video]  57944: IPC_OUT_M3   : Create in progress !!!                         [m3video]  57945: IPC_OUT_M3   : Create Done !!!                              

然后就运行不下去了,请问这是什么原因?

lipeng li:

 

附件添加加不上去,这是我修改后的config_1G_256Mllinux.bld文件

 

/*  *  ======== config.bld ========  *  Build configuration script for HDVPSS drivers  */

/* load the required modules for the configuration */

var M3 = xdc.useModule('ti.targets.arm.elf.M3'); var C674 = xdc.useModule('ti.targets.elf.C674');

var buildReleaseConfig = true;

/* configure  the options for the M3 targets     */

/* M3 compiler directory path                    */ M3.rootDir = java.lang.System.getenv("CGTOOLS");

/* linker options */

M3.lnkOpts.suffix += " –zero_init=off "; M3.lnkOpts.suffix += " –dynamic –retain=_Ipc_ResetVector";

/* compiler options                                */ M3.ccOpts.suffix += " –gcc -DTI_816X_BUILD -DPLATFORM_EVM_SI -DSYSLINK_BUILD_RTOS -DUSE_SYSLINK_NOTIFY=0 -DUTILS_ASSERT_ENABLE";

/* set default platform and list of all interested  * platforms for M3  */ M3.platforms = [                         "ti.platforms.evmTI816X:core0",                         "ti.platforms.evmTI816X:core1",                ];

/* Select the default platform  *  * Making core1 as defualt core configuration to be used  *  Core 0 ==    Ducati.M3.VIDEO  *  Core 1 ==    Ducati.M3.VPS  */ M3.platform = M3.platforms[1];

/* configure  the options for the C674 targets     */

/* C674 compiler directory path                    */ C674.rootDir = java.lang.System.getenv("CGTOOLS_DSP");

/* linker options */

C674.lnkOpts.suffix += " –zero_init=off "; C674.lnkOpts.suffix += " –dynamic –retain=_Ipc_ResetVector";

/* compiler options                                */ C674.ccOpts.suffix += " -DTI_816X_BUILD -DPLATFORM_EVM_SI -DSYSLINK_BUILD_RTOS -DUSE_SYSLINK_NOTIFY=0";

C674.platforms = ["ti.platforms.evmTI816X:plat"]; C674.platform = C674.platforms[0];

/* list interested targets in Build.targets array  */ Build.targets = [                     M3,                     C674,                 ];

 

print('1G_256M');

var KB=1024; var MB=KB*KB;

var DDR3_ADDR; var DDR3_SIZE;

var OCMC0_ADDR; var OCMC1_ADDR; var OCMC_SIZE;

var LINUX_ADDR; var LINUX_SIZE;

var SR0_ADDR; var SR0_SIZE;

var SR1_ADDR; var SR1_SIZE;

var SR3_INTRADUCATI_IPC_ADDR; var SR3_INTRADUCATI_IPC_SIZE;

var VIDEO_M3_CODE_ADDR; var VIDEO_M3_CODE_SIZE;

var VIDEO_M3_DATA_ADDR; var VIDEO_M3_DATA_SIZE;

var SR2_FRAME_BUFFER_ADDR; var SR2_FRAME_BUFFER_SIZE;

var DSS_M3_CODE_ADDR; var DSS_M3_CODE_SIZE;

var DSS_M3_DATA_ADDR; var DSS_M3_DATA_SIZE;

var DSP_CODE_ADDR; var DSP_CODE_SIZE;

var DSP_M3_DATA_ADDR; var DSP_M3_DATA_SIZE;

var TILER_ADDR; var TILER_SIZE;

var HDVPSS_DESC_ADDR; var HDVPSS_DESC_SIZE;

var HDVPSS_SHARED_ADDR; var HDVPSS_SHARED_SIZE;

var NOTIFY_SHARED_ADDR; var NOTIFY_SHARED_SIZE;

var REMOTE_DEBUG_ADDR; var REMOTE_DEBUG_SIZE;

DDR3_ADDR                  = 0x80000000; DDR3_SIZE                  = 1024*MB;

OCMC0_ADDR                 = 0x40300000; OCMC1_ADDR                 = 0x40400000; OCMC0_RUN_ADDR             = 0x00300000; OCMC1_RUN_ADDR             = 0x00400000; OCMC_SIZE                  = 256*KB;

L2_SRAM_ADDR               = 0x55024000; L2_SRAM_SIZE               = 128*KB; L2_SRAM_RUN_ADDR           = 0x20004000;

DUCATI_WB_WA_ADDR          = 0x20000000;

LINUX_SIZE                 = 256*MB; SR1_SIZE                   = 208*MB-0*MB; SR3_INTRADUCATI_IPC_SIZE   = 124*KB; VIDEO_M3_CODE_SIZE         = 2.5*MB; VIDEO_M3_BSS_SIZE          = 11.5*MB+900*KB+13.7*MB+0*MB; VIDEO_M3_DATA_SIZE         = 0.5*MB; DSS_M3_CODE_SIZE           = 1.5*MB; DSS_M3_BSS_SIZE            = 15.5*MB; DSS_M3_DATA_SIZE           = 1.8*MB;

 

/* second 512MB */ /* Tiler Buffers in the bottom 512MB */ TILER_SIZE                 = 256*MB; /* (128+128) – MUST be aligned on 128MB boundary */

SR2_FRAME_BUFFER_SIZE      = 234*MB – 256*KB-900*KB-13.7*MB-20*MB;

DSP_CODE_SIZE              = 900*KB; DSP_DATA_SIZE              = 13.7*MB+20*MB;

SR0_SIZE                   = 15*MB; VIDEO_M3_EXCEPTION_CTX_SIZE = 128*KB; VPSS_M3_EXCEPTION_CTX_SIZE = 128*KB; HDVPSS_DESC_SIZE           = 2*MB; HDVPSS_SHARED_SIZE         = 2*MB; NOTIFY_SHARED_SIZE         = 2*MB; REMOTE_DEBUG_SIZE          = 1*MB;

print ("Memory Map – 1GB DDR, upto 256MB Linux");

print ("  0x80000000     +——————-+"); print ("         ^       |                   |"); print ("         |       |  " + (LINUX_SIZE / MB) + " MB           | Linux"); print ("         |       |                   |"); print ("         |       +——————-+"); print ("         |       |  " + (SR1_SIZE / MB) + "MB            | (SR1) Bitstream buffer"); print ("         |       |                   | Cached on A8. Cached on M3, although access by DMAs"); print ("         |       +——————-+ "); print ("         |       |   " + (SR3_INTRADUCATI_IPC_SIZE / KB) + " KB          | (SR3)InterDucati IPC ListMP .Cached on M3 "); print ("         |       +——————-+  ");          print ("         +       |   " + (VIDEO_M3_CODE_SIZE / MB) + " MB          | Video M3 Code"); print ("       512 MB    +——————-+"); print ("         +       |   " + (VIDEO_M3_BSS_SIZE / MB) + " MB         | Video M3 BSS"); print ("         |       +——————-+"); print ("         |       |   " + (VIDEO_M3_DATA_SIZE / MB) + " MB          | Video  M3 Data"); print ("         |       +——————-+"); print ("         |       |   " + (DSS_M3_CODE_SIZE/ MB) + " MB          | VPSS  M3 Code"); print ("         |       +——————-+"); print ("         |       |   " + (DSS_M3_BSS_SIZE/ MB) + " MB         | VPSS  M3 BSS"); print ("         |       +——————-+"); print ("         |       |   " + (DSS_M3_DATA_SIZE/ MB) + " MB          | VPSS  M3 Data"); print ("         |       +——————-+"); print ("         |       |   " + ( DSP_CODE_SIZE / KB) + " KB          | DSP Code"); print ("         |       +——————-+"); print ("         v       |   " + (DSP_DATA_SIZE / MB) + " MB         | DSP Data"); print ("  0xA0000000     +——————-+"); print ("         ^       |   " + (TILER_SIZE / MB) + " MB          | Tiled 8-bit + 16-bit region"); print ("         |       +——————-+"); print ("         |       |  " + (SR2_FRAME_BUFFER_SIZE / MB) + " MB        | (SR2) Frame Buffer Region – <VPSS – Video M3 Frame Buf>"); print ("         |       +——————-+  "); print ("         +       |                   |"); print ("       512 MB    |  " + (SR0_SIZE / MB) + " MB            | (SR0) Syslink MsgQ/IPC List MP – <Non-cached on M3>"); print ("         +       +——————-+"); print ("         |       |  " + (VIDEO_M3_EXCEPTION_CTX_SIZE / KB) + " KB           | Video M3 exception context"); print ("         |       +——————-+  "); print ("         |       |  " + (VPSS_M3_EXCEPTION_CTX_SIZE / KB) + "KB            | Vpss M3 exception context"); print ("         |       +——————-+  "); print ("         |       |  " + (HDVPSS_DESC_SIZE / MB) + " MB             | VPSS M3 – VPDMA Descriptor"); print ("         |       +——————-+"); print ("         |       |  " + (HDVPSS_SHARED_SIZE / MB) + " MB             | VPSS M3 – FBDev Shared Memory"); print ("         |       +——————-+"); print ("         |       |  " + (NOTIFY_SHARED_SIZE / MB) + " MB             | Host – VPSS M3 Notify(For FBDev)"); print ("         |       +——————-+"); print ("         v       |  " + (REMOTE_DEBUG_SIZE / MB) + " MB             | Remote Debug Print"); print ("   0xBFFFFFFF    +——————-+");

 

 

/* first 512MB */ LINUX_ADDR                 = DDR3_ADDR; SR1_ADDR                   = LINUX_ADDR                 + LINUX_SIZE; SR3_INTRADUCATI_IPC_ADDR   = SR1_ADDR                   + SR1_SIZE; VIDEO_M3_CODE_ADDR         = SR3_INTRADUCATI_IPC_ADDR   + SR3_INTRADUCATI_IPC_SIZE; VIDEO_M3_DATA_ADDR         = VIDEO_M3_CODE_ADDR         + VIDEO_M3_CODE_SIZE; VIDEO_M3_BSS_ADDR          = VIDEO_M3_DATA_ADDR         + VIDEO_M3_DATA_SIZE; VIDEO_M3_BSS_MAPPED_ADDR  = (VIDEO_M3_BSS_ADDR – DDR3_ADDR) + DUCATI_WB_WA_ADDR; DSS_M3_CODE_ADDR           = VIDEO_M3_BSS_ADDR          + VIDEO_M3_BSS_SIZE; DSS_M3_DATA_ADDR           = DSS_M3_CODE_ADDR           + DSS_M3_CODE_SIZE; DSS_M3_BSS_ADDR            = DSS_M3_DATA_ADDR           + DSS_M3_DATA_SIZE; DSS_M3_BSS_MAPPED_ADDR     = (DSS_M3_BSS_ADDR – DDR3_ADDR) + DUCATI_WB_WA_ADDR;

/* second 512MB */ /* Tiler Buffers in the bottom 512MB */ TILER_ADDR                 = DSS_M3_BSS_ADDR              + DSS_M3_BSS_SIZE; SR2_FRAME_BUFFER_ADDR      = TILER_ADDR                 + TILER_SIZE;

DSP_CODE_ADDR              = SR2_FRAME_BUFFER_ADDR     +SR2_FRAME_BUFFER_SIZE; DSP_DATA_ADDR              = DSP_CODE_ADDR              + DSP_CODE_SIZE;

VIDEO_M3_EXCEPTION_CTX_ADDR = DSP_DATA_ADDR     + DSP_DATA_SIZE ; VPSS_M3_EXCEPTION_CTX_ADDR  = VIDEO_M3_EXCEPTION_CTX_ADDR + VIDEO_M3_EXCEPTION_CTX_SIZE; HDVPSS_DESC_ADDR           = VPSS_M3_EXCEPTION_CTX_ADDR   + VPSS_M3_EXCEPTION_CTX_SIZE; HDVPSS_SHARED_ADDR         = HDVPSS_DESC_ADDR           + HDVPSS_DESC_SIZE; NOTIFY_SHARED_ADDR         = HDVPSS_SHARED_ADDR         + HDVPSS_SHARED_SIZE; REMOTE_DEBUG_ADDR          = NOTIFY_SHARED_ADDR         + NOTIFY_SHARED_SIZE; SR0_ADDR                   =  REMOTE_DEBUG_ADDR         + REMOTE_DEBUG_SIZE;

Build.platformTable["ti.platforms.evmTI816X:core1"] = {     externalMemoryMap:     [         ["DDR3_RAM", {             comment: "DDR3_RAM",             name: "DDR3_RAM",             base: DDR3_ADDR,             len:  DDR3_SIZE         }],         ["OCMC1_RAM", {             comment: "OCMC1_RAM",             name: "OCMC1_RAM",             base: OCMC1_ADDR,             len:  OCMC_SIZE         }],         ["VIDEO_M3_BSS_MAPPED_MEM", {             comment : "VIDEO_M3_BSS_MAPPED_MEM",             name    : "VIDEO_M3_BSS_MAPPED_MEM",             base    : VIDEO_M3_BSS_MAPPED_ADDR,             len     : VIDEO_M3_BSS_SIZE         }],         ["DSS_M3_BSS_MAPPED_MEM", {             comment : "DSS_M3_BSS_MAPPED_MEM",             name    : "DSS_M3_BSS_MAPPED_MEM",             base    : DSS_M3_BSS_MAPPED_ADDR,             len     : DSS_M3_BSS_SIZE         }],     ],     customMemoryMap:     [         ["LINUX_MEM", {             comment : "LINUX_MEM",             name    : "LINUX_MEM",             base    : LINUX_ADDR,             len     : LINUX_SIZE         }],         ["SR1", {             comment : "SR1",             name    : "SR1",             base    : SR1_ADDR,             len     : SR1_SIZE         }],         ["SR3_INTRADUCATI_IPC", {             comment : "SR3_INTRADUCATI_IPC",             name    : "SR3_INTRADUCATI_IPC",             base    : SR3_INTRADUCATI_IPC_ADDR,             len     : SR3_INTRADUCATI_IPC_SIZE         }],         ["VIDEO_M3_CODE_MEM", {             comment : "VIDEO_M3_CODE_MEM",             name    : "VIDEO_M3_CODE_MEM",             base    : VIDEO_M3_CODE_ADDR,             len     : VIDEO_M3_CODE_SIZE         }],         ["VIDEO_M3_DATA_MEM", {             comment : "VIDEO_M3_DATA_MEM",             name    : "VIDEO_M3_DATA_MEM",             base    : VIDEO_M3_DATA_ADDR,             len     : VIDEO_M3_DATA_SIZE         }],         ["VIDEO_M3_BSS_MEM", {             comment : "VIDEO_M3_BSS_MEM",             name    : "VIDEO_M3_BSS_MEM",             base    : VIDEO_M3_BSS_ADDR,             len     : VIDEO_M3_BSS_SIZE         }],         ["VIDEO_M3_BSS_MAPPED_MEM", {             comment : "VIDEO_M3_BSS_MAPPED_MEM",             name    : "VIDEO_M3_BSS_MAPPED_MEM",             base    : VIDEO_M3_BSS_MAPPED_ADDR,             len     : VIDEO_M3_BSS_SIZE         }],         ["DSS_M3_CODE_MEM", {             comment : "DSS_M3_CODE_MEM",             name    : "DSS_M3_CODE_MEM",             base    : DSS_M3_CODE_ADDR,             len     : DSS_M3_CODE_SIZE         }],         ["DDR3_M3", {             comment : "DDR3_M3",             name    : "DDR3_M3",             base    : DSS_M3_DATA_ADDR,             len     : DSS_M3_DATA_SIZE         }],         ["DSS_M3_BSS_MEM", {             comment : "DSS_M3_BSS_MEM",             name    : "DSS_M3_BSS_MEM",             base    : DSS_M3_BSS_ADDR,             len     : DSS_M3_BSS_SIZE         }],         ["DSS_M3_BSS_MAPPED_MEM", {             comment : "DSS_M3_BSS_MAPPED_MEM",             name    : "DSS_M3_BSS_MAPPED_MEM",             base    : DSS_M3_BSS_MAPPED_ADDR,             len     : DSS_M3_BSS_SIZE         }],         ["DSP_CODE_MEM", {             comment : "DSP_CODE_MEM",             name    : "DSP_CODE_MEM",             base    : DSP_CODE_ADDR,             len     : DSP_CODE_SIZE         }],         ["DSP_DATA_MEM", {             comment : "DSP_DATA_MEM",             name    : "DSP_DATA_MEM",             base    : DSP_DATA_ADDR,             len     : DSP_DATA_SIZE         }],         ["TILER_MEM", {             comment : "TILER_MEM",             name    : "TILER_MEM",             base    : TILER_ADDR,             len     : TILER_SIZE         }],         ["SR2_FRAME_BUFFER_MEM", {             comment : "SR2_FRAME_BUFFER_MEM",             name    : "SR2_FRAME_BUFFER_MEM",             base    : SR2_FRAME_BUFFER_ADDR,             len     : SR2_FRAME_BUFFER_SIZE         }],         ["SR0", {             comment : "SR0",             name    : "SR0",             base    : SR0_ADDR,             len     : SR0_SIZE         }],         ["VIDEO_M3_EXCEPTION_CTX", {             comment : "VIDEO_M3_EXCEPTION_CTX",             name    : "VIDEO_M3_EXCEPTION_CTX",             base    : VIDEO_M3_EXCEPTION_CTX_ADDR,             len     : VIDEO_M3_EXCEPTION_CTX_SIZE         }],         ["VPSS_M3_EXCEPTION_CTX", {             comment : "VPSS_M3_EXCEPTION_CTX",             name    : "VPSS_M3_EXCEPTION_CTX",             base    : VPSS_M3_EXCEPTION_CTX_ADDR,             len     : VPSS_M3_EXCEPTION_CTX_SIZE         }],         ["HDVPSS_DESC_MEM", {             comment : "HDVPSS_DESC_MEM",             name    : "HDVPSS_DESC_MEM",             base    : HDVPSS_DESC_ADDR,             len     : HDVPSS_DESC_SIZE         }],         ["HDVPSS_SHARED_MEM", {             comment : "HDVPSS_SHARED_MEM",             name    : "HDVPSS_SHARED_MEM",             base    : HDVPSS_SHARED_ADDR,             len     : HDVPSS_SHARED_SIZE         }],         ["HOST_VPSS_NOTIFYMEM", {             comment : "HOST_VPSS_NOTIFYMEM",             name    : "HOST_VPSS_NOTIFYMEM",             base    : NOTIFY_SHARED_ADDR,             len     : NOTIFY_SHARED_SIZE         }],         ["REMOTE_DEBUG_MEM", {             comment : "REMOTE_DEBUG_MEM",             name    : "REMOTE_DEBUG_MEM",             base    : REMOTE_DEBUG_ADDR,             len     : REMOTE_DEBUG_SIZE         }],         ["L2_ROM", {             comment: "L2_ROM",             name: "L2_ROM",             base: 0x00000000,             len:  0x00004000         }],         ["OCMC1_RAM", {             comment: "OCMC1_RAM",             name: "OCMC1_RAM",             base: OCMC1_ADDR,             len:  OCMC_SIZE         }],         ["OCMC1_RAM_MAPPED", {             comment: "OCMC1_RAM",             name: "OCMC1_RAM_MAPPED",             base: OCMC1_RUN_ADDR,             len:  OCMC_SIZE         }],     ] };

Build.platformTable["ti.platforms.evmTI816X:core0"] = {     externalMemoryMap:     [         ["DDR3_RAM", {             comment: "DDR3_RAM",             name: "DDR3_RAM",             base: DDR3_ADDR,             len:  DDR3_SIZE         }],         ["OCMC0_RAM", {             comment: "OCMC0_RAM",             name: "OCMC0_RAM",             base: OCMC0_ADDR,             len:  OCMC_SIZE         }],         ["VIDEO_M3_BSS_MAPPED_MEM", {             comment : "VIDEO_M3_BSS_MAPPED_MEM",             name    : "VIDEO_M3_BSS_MAPPED_MEM",             base    : VIDEO_M3_BSS_MAPPED_ADDR,             len     : VIDEO_M3_BSS_SIZE         }],         ["DSS_M3_BSS_MAPPED_MEM", {             comment : "DSS_M3_BSS_MAPPED_MEM",             name    : "DSS_M3_BSS_MAPPED_MEM",             base    : DSS_M3_BSS_MAPPED_ADDR,             len     : DSS_M3_BSS_SIZE         }],         ["L2_SRAM", {             comment: "L2_SRAM",             name: "L2_SRAM",             base: L2_SRAM_ADDR,             len:  L2_SRAM_SIZE         }],         ["L2_SRAM_RUN", {             comment: "L2_SRAM_RUN",             name: "L2_SRAM_RUN",             base: L2_SRAM_RUN_ADDR,             len:  L2_SRAM_SIZE         }],     ],     customMemoryMap:     [         ["LINUX_MEM", {             comment : "LINUX_MEM",             name    : "LINUX_MEM",             base    : LINUX_ADDR,             len     : LINUX_SIZE         }],         ["SR1", {             comment : "SR1",             name    : "SR1",             base    : SR1_ADDR,             len     : SR1_SIZE         }],         ["SR3_INTRADUCATI_IPC", {             comment : "SR3_INTRADUCATI_IPC",             name    : "SR3_INTRADUCATI_IPC",             base    : SR3_INTRADUCATI_IPC_ADDR,             len     : SR3_INTRADUCATI_IPC_SIZE         }],         ["VIDEO_M3_CODE_MEM", {             comment : "VIDEO_M3_CODE_MEM",             name    : "VIDEO_M3_CODE_MEM",             base    : VIDEO_M3_CODE_ADDR,             len     : VIDEO_M3_CODE_SIZE         }],         ["DDR_M3", {             comment : "DDR3_M3",             name    : "DDR3_M3",             base    : VIDEO_M3_DATA_ADDR,             len     : VIDEO_M3_DATA_SIZE         }],         ["VIDEO_M3_BSS_MEM", {             comment : "VIDEO_M3_BSS_MEM",             name    : "VIDEO_M3_BSS_MEM",             base    : VIDEO_M3_BSS_ADDR,             len     : VIDEO_M3_BSS_SIZE         }],         ["VIDEO_M3_BSS_MAPPED_MEM", {             comment : "VIDEO_M3_BSS_MAPPED_MEM",             name    : "VIDEO_M3_BSS_MAPPED_MEM",             base    : VIDEO_M3_BSS_MAPPED_ADDR,             len     : VIDEO_M3_BSS_SIZE         }],         ["DSS_M3_CODE_MEM", {             comment : "DSS_M3_CODE_MEM",             name    : "DSS_M3_CODE_MEM",             base    : DSS_M3_CODE_ADDR,             len     : DSS_M3_CODE_SIZE         }],         ["DSS_M3_BSS_MEM", {             comment : "DSS_M3_BSS_MEM",             name    : "DSS_M3_BSS_MEM",             base    : DSS_M3_BSS_ADDR,             len     : DSS_M3_BSS_SIZE         }],         ["DSS_M3_BSS_MAPPED_MEM", {             comment : "DSS_M3_BSS_MAPPED_MEM",             name    : "DSS_M3_BSS_MAPPED_MEM",             base    : DSS_M3_BSS_MAPPED_ADDR,             len     : DSS_M3_BSS_SIZE         }],         ["DSS_M3_DATA_MEM", {             comment : "DSS_M3_DATA_MEM",             name    : "DSS_M3_DATA_MEM",             base    : DSS_M3_DATA_ADDR,             len     : DSS_M3_DATA_SIZE         }],         ["DSP_CODE_MEM", {             comment : "DSP_CODE_MEM",             name    : "DSP_CODE_MEM",             base    : DSP_CODE_ADDR,             len     : DSP_CODE_SIZE         }],         ["DSP_DATA_MEM", {             comment : "DSP_DATA_MEM",             name    : "DSP_DATA_MEM",             base    : DSP_DATA_ADDR,             len     : DSP_DATA_SIZE         }],         ["TILER_MEM", {             comment : "TILER_MEM",             name    : "TILER_MEM",             base    : TILER_ADDR,             len     : TILER_SIZE         }],         ["SR2_FRAME_BUFFER_MEM", {             comment : "SR2_FRAME_BUFFER_MEM",             name    : "SR2_FRAME_BUFFER_MEM",             base    : SR2_FRAME_BUFFER_ADDR,             len     : SR2_FRAME_BUFFER_SIZE         }],         ["SR0", {             comment : "SR0",             name    : "SR0",             base    : SR0_ADDR,             len     : SR0_SIZE         }],         ["VIDEO_M3_EXCEPTION_CTX", {             comment : "VIDEO_M3_EXCEPTION_CTX",             name    : "VIDEO_M3_EXCEPTION_CTX",             base    : VIDEO_M3_EXCEPTION_CTX_ADDR,             len     : VIDEO_M3_EXCEPTION_CTX_SIZE         }],         ["VPSS_M3_EXCEPTION_CTX", {             comment : "VPSS_M3_EXCEPTION_CTX",             name    : "VPSS_M3_EXCEPTION_CTX",             base    : VPSS_M3_EXCEPTION_CTX_ADDR,             len     : VPSS_M3_EXCEPTION_CTX_SIZE         }],         ["HDVPSS_DESC_MEM", {             comment : "HDVPSS_DESC_MEM",             name    : "HDVPSS_DESC_MEM",             base    : HDVPSS_DESC_ADDR,             len     : HDVPSS_DESC_SIZE         }],         ["HDVPSS_SHARED_MEM", {             comment : "HDVPSS_SHARED_MEM",             name    : "HDVPSS_SHARED_MEM",             base    : HDVPSS_SHARED_ADDR,             len     : HDVPSS_SHARED_SIZE         }],         ["HOST_VPSS_NOTIFYMEM", {             comment : "HOST_VPSS_NOTIFYMEM",             name    : "HOST_VPSS_NOTIFYMEM",             base    : NOTIFY_SHARED_ADDR,             len     : NOTIFY_SHARED_SIZE         }],         ["REMOTE_DEBUG_MEM", {             comment : "REMOTE_DEBUG_MEM",             name    : "REMOTE_DEBUG_MEM",             base    : REMOTE_DEBUG_ADDR,             len     : REMOTE_DEBUG_SIZE         }],         ["L2_SRAM", {             comment: "L2_SRAM",             name: "L2_SRAM",             base: L2_SRAM_ADDR,             len:  L2_SRAM_SIZE         }],         ["L2_SRAM_RUN", {             comment: "L2_SRAM_RUN",             name: "L2_SRAM_RUN",             base: L2_SRAM_RUN_ADDR,             len:  L2_SRAM_SIZE         }],         ["L2_ROM", {             comment: "L2_ROM",             name: "L2_ROM",             base: 0x00000000,             len:  0x00004000         }],         ["OCMC0_RAM", {             comment: "OCMC0_RAM",             name: "OCMC0_RAM",             base: OCMC0_ADDR,             len:  OCMC_SIZE         }],         ["OCMC0_RAM_MAPPED", {             comment: "OCMC0_RAM",             name: "OCMC0_RAM_MAPPED",             base: OCMC0_RUN_ADDR,             len:  OCMC_SIZE         }],     ] };

Build.platformTable["ti.platforms.evmTI816X:plat"] = {     externalMemoryMap:     [         ["DDR3_RAM", {             comment: "DDR3_RAM",             name: "DDR3_RAM",             base: DDR3_ADDR,             len:  DDR3_SIZE         }],         ["OCMC0_RAM", {             comment: "OCMC0_RAM",             name: "OCMC0_RAM",             base: OCMC0_ADDR,             len:  OCMC_SIZE         }],         ["OCMC1_RAM", {             comment: "OCMC1_RAM",             name: "OCMC1_RAM",             base: OCMC1_ADDR,             len:  OCMC_SIZE         }],     ],     customMemoryMap:     [         ["LINUX_MEM", {             comment : "LINUX_MEM",             name    : "LINUX_MEM",             base    : LINUX_ADDR,             len     : LINUX_SIZE         }],         ["SR1", {             comment : "SR1",             name    : "SR1",             base    : SR1_ADDR,             len     : SR1_SIZE         }],         ["SR3_INTRADUCATI_IPC", {             comment : "SR3_INTRADUCATI_IPC",             name    : "SR3_INTRADUCATI_IPC",             base    : SR3_INTRADUCATI_IPC_ADDR,             len     : SR3_INTRADUCATI_IPC_SIZE         }],         ["VIDEO_M3_CODE_MEM", {             comment : "VIDEO_M3_CODE_MEM",             name    : "VIDEO_M3_CODE_MEM",             base    : VIDEO_M3_CODE_ADDR,             len     : VIDEO_M3_CODE_SIZE         }],         ["VIDEO_M3_DATA_MEM", {             comment : "VIDEO_M3_DATA_MEM",             name    : "VIDEO_M3_DATA_MEM",             base    : VIDEO_M3_DATA_ADDR,             len     : VIDEO_M3_DATA_SIZE         }],         ["VIDEO_M3_BSS_MEM", {             comment : "VIDEO_M3_BSS_MEM",             name    : "VIDEO_M3_BSS_MEM",             base    : VIDEO_M3_BSS_ADDR,             len     : VIDEO_M3_BSS_SIZE         }],         ["DSS_M3_CODE_MEM", {             comment : "DSS_M3_CODE_MEM",             name    : "DSS_M3_CODE_MEM",             base    : DSS_M3_CODE_ADDR,             len     : DSS_M3_CODE_SIZE         }],         ["DSS_M3_DATA_MEM", {             comment : "DSS_M3_DATA_MEM",             name    : "DSS_M3_DATA_MEM",             base    : DSS_M3_DATA_ADDR,             len     : DSS_M3_DATA_SIZE         }],         ["DSS_M3_BSS_MEM", {             comment : "DSS_M3_BSS_MEM",             name    : "DSS_M3_BSS_MEM",             base    : DSS_M3_BSS_ADDR,             len     : DSS_M3_BSS_SIZE         }],         ["DSP_CODE_MEM", {             comment : "DSP_CODE_MEM",             name    : "DSP_CODE_MEM",             base    : DSP_CODE_ADDR,             len     : DSP_CODE_SIZE         }],         ["DSP_DATA_MEM", {             comment : "DDR3_DSP",             name    : "DDR3_DSP",             base    : DSP_DATA_ADDR,             len     : DSP_DATA_SIZE         }],         ["TILER_MEM", {             comment : "TILER_MEM",             name    : "TILER_MEM",             base    : TILER_ADDR,             len     : TILER_SIZE         }],         ["SR2_FRAME_BUFFER_MEM", {             comment : "SR2_FRAME_BUFFER_MEM",             name    : "SR2_FRAME_BUFFER_MEM",             base    : SR2_FRAME_BUFFER_ADDR,             len     : SR2_FRAME_BUFFER_SIZE         }],         ["SR0", {             comment : "SR0",             name    : "SR0",             base    : SR0_ADDR,             len     : SR0_SIZE         }],         ["VIDEO_M3_EXCEPTION_CTX", {             comment : "VIDEO_M3_EXCEPTION_CTX",             name    : "VIDEO_M3_EXCEPTION_CTX",             base    : VIDEO_M3_EXCEPTION_CTX_ADDR,             len     : VIDEO_M3_EXCEPTION_CTX_SIZE         }],         ["VPSS_M3_EXCEPTION_CTX", {             comment : "VPSS_M3_EXCEPTION_CTX",             name    : "VPSS_M3_EXCEPTION_CTX",             base    : VPSS_M3_EXCEPTION_CTX_ADDR,             len     : VPSS_M3_EXCEPTION_CTX_SIZE         }],         ["HDVPSS_DESC_MEM", {             comment : "HDVPSS_DESC_MEM",             name    : "HDVPSS_DESC_MEM",             base    : HDVPSS_DESC_ADDR,             len     : HDVPSS_DESC_SIZE         }],         ["HDVPSS_SHARED_MEM", {             comment : "HDVPSS_SHARED_MEM",             name    : "HDVPSS_SHARED_MEM",             base    : HDVPSS_SHARED_ADDR,             len     : HDVPSS_SHARED_SIZE         }],         ["HOST_VPSS_NOTIFYMEM", {             comment : "HOST_VPSS_NOTIFYMEM",             name    : "HOST_VPSS_NOTIFYMEM",             base    : NOTIFY_SHARED_ADDR,             len     : NOTIFY_SHARED_SIZE         }],         ["REMOTE_DEBUG_MEM", {             comment : "REMOTE_DEBUG_MEM",             name    : "REMOTE_DEBUG_MEM",             base    : REMOTE_DEBUG_ADDR,             len     : REMOTE_DEBUG_SIZE         }],         ["OCMC0_RAM", {             comment: "OCMC0_RAM",             name: "OCMC0_RAM",             base: OCMC0_ADDR,             len:  OCMC_SIZE         }],         ["OCMC1_RAM", {             comment: "OCMC1_RAM",             name: "OCMC1_RAM",             base: OCMC1_ADDR,             len:  OCMC_SIZE         }],         ["DSP_L2_RAM", {             comment: "DSP_L2_RAM",             name: "DSP_L2_RAM",             base: 0x10800000,             len:  0x00020000         }],     ],     l1PMode: "32k",     l1DMode: "32k",     l2Mode:  "128k" };

var addrFileGenerated = false; if (addrFileGenerated == false) {     xdc.loadCapsule("genaddrinfo.xs").GenAddrFile();     addrFileGenerated = true; }

 

lipeng li:

回复 lipeng li:

哪位大哥能不能帮忙看下

Robin Edson:

初步估计你是把dsp的空间加大,占用了后半部分的内存,导致后半部分的共享内存出现问题。你观察下内存分布是分成上半部分空间和下半部分,如下图所示:

lipeng li:

回复 Robin Edson:

谢谢你的回复,我是按照文档做的,把DSP_CODE_SIZE和DSP_DATA_SIZE移到下半个512MB空间,上半512MB增大SR1,这样保证TILER是下半个512MB空间的开始,下半个512, DSP_CODE_SIZE和DSP_DATA_SIZE的空间是从SR2中分出来的。

Robin Edson:

回复 lipeng li:

最好不要改变内存布局,你有没有尝试把SR1减小,拿一部分分给dsp?

Robin Edson:

回复 Robin Edson:

从你的错误来看,是在create 某个link的时候程序阻塞了, IPC_OUT_M3后面是什么link?

lipeng li:

回复 Robin Edson:

我这样改过,但是现象是一样的,还是在那里卡住了

lipeng li:

回复 Robin Edson:

IPC_OUT_M3后面的link是 IPC_IN_M3 应该是在vpss里的link

赞(0)
未经允许不得转载:TI中文支持网 » 8168 dvrrdk3.0 修改内存分配config_1G_256MLinux.bld文件后 ./run.sh运行不正常
分享到: 更多 (0)