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.

[TDA4M] How to change memory map in Linux and QNX.



Hi,

In gen_linker_mem_map.py,  I can see c7x_1_ddr_size on the 191st line and 246th line as below.

c7x_1_ddr_size = 16*MB - (c7x_1_ddr_addr-c7x_1_ddr_ipc_addr);

c7x_1_ddr_scratch_size     = ddr_mem_size - 16*MB - (c7x_1_ddr_scratch_addr - ddr_mem_addr);

It's not enough for our app. I needed more ddr size than current. So I changed as below.

c7x_1_ddr_size = 32*MB - (c7x_1_ddr_addr-c7x_1_ddr_ipc_addr);

c7x_1_ddr_scratch_size     = ddr_mem_size - 32*MB - (c7x_1_ddr_scratch_addr - ddr_mem_addr);

After that, vision_apps build was OK. But running is failed with below message.

APP_LOG: ERROR: Unable to map memory @ 0xad040000 of size 33161216 bytes !!!
IPC: ERROR: Unable to mmap tiovx obj desc memory (0xad040000 of 33161216 bytes) !!!
IPC: Init ... Done !!!
APP: ERROR: IPC init failed !!!

I know I have to change dts using PSDKLA. 

Can I get some guide on how to make dts on Linux and QNX?

I used PSDK7.0

Best regards

Yongsig.

  • Yongsig,

    Have you taken a look at this developer note? There are some constraints to changing the memory map. Please take a look and let us know if you more information.

    Regards,
    Shyam

  • Hi, Shyam

    I changed  k3-j721e-common-proc-board.dtb and  k3-j721e-pcie-backplane.dtbo filese in boot directory to apply 32MB in C7x_1_DDR.

    After that, it was OK in Linux.

    I was wondering if I should change the c7x_1_ddr_scratch_size as below.

    c7x_1_ddr_scratch_size     = ddr_mem_size - 32*MB - (c7x_1_ddr_scratch_addr - ddr_mem_addr);
    
    

    When c7x_1_ddr_size is 32*MB - (c7x_1_ddr_addr-c7x_1_ddr_ipc_addr),

    I don't know if c7x_1_ddr_scratch_size has to subtract 32MB or 16MB.

    Best regards

    Yongsig.

  • Yongsig,

    I couldnt understand the question, can you please rephrase?

    I was wondering if I should change the c7x_1_ddr_scratch_size as below.

    1
    c7x_1_ddr_scratch_size     = ddr_mem_size - 32*MB - (c7x_1_ddr_scratch_addr - ddr_mem_addr);

    When c7x_1_ddr_size is 32*MB - (c7x_1_ddr_addr-c7x_1_ddr_ipc_addr),

    I don't know if c7x_1_ddr_scratch_size has to subtract 32MB or 16MB.

  • Hi Shyam.

    I've gotten the answer from Kb