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.

TDA4VM: tda4vm

Part Number: TDA4VM


TDA4 CMA distribution failure, may I ask what is the possible problem, the board is made by ourselves.

The following is the startup log:

[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000080000000-0x000000009e7fffff]
[ 0.000000] node 0: [mem 0x000000009e800000-0x00000000aeffffff]
[ 0.000000] node 0: [mem 0x00000000af000000-0x00000000afffffff]
[ 0.000000] node 0: [mem 0x00000000b0000000-0x00000000b7ffffff]
[ 0.000000] node 0: [mem 0x00000000b8000000-0x00000000d7ffffff]
[ 0.000000] node 0: [mem 0x00000000d8000000-0x00000000fcffffff]
[ 0.000000] node 0: [mem 0x00000000fd000000-0x00000000ffffffff]
[ 0.000000] node 0: [mem 0x0000000880000000-0x000000088fffffff]
[ 0.000000] node 0: [mem 0x0000000890000000-0x00000008ffffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000008ffffffff]
[ 0.000000] On node 0 totalpages: 65536
[ 0.000000] DMA zone: 32 pages used for memmap
[ 0.000000] DMA zone: 0 pages reserved
[ 0.000000] DMA zone: 32768 pages, LIFO batch:3
[ 0.000000] Normal zone: 32 pages used for memmap
[ 0.000000] Normal zone: 32768 pages, LIFO batch:3
[ 0.000000] cma: Failed to reserve 512 MiB -- zhangwei
[ 0.000000] psci: probing for conduit method from DT.

  • cma: Failed to reserve 512 MiB -- zhangwei

  • 请参考下面帖子的回复。
    https://e2e.ti.com/support/processors-group/processors/f/processors-forum/930065/tda4vm-sdk-of-v7-0-linux-kernel-error

    "cma: Failed to reserve 512 MiB"

    Just above that we have 720 MiB success.




  • 1. My current version is 08_02_00_03

    2. My DDR is 4GB, below it is 2G, CMA = 0

    root@j7-evm:~# free -k
    total used free shared buff/cache available
    Mem: 2304704 179904 1846016 26432 278784 1793408
    Swap: 0 0 0
    root@j7-evm:~# cat /proc/meminfo
    MemTotal: 2304704 kB
    MemFree: 1846016 kB
    ...
    CmaTotal: 0 kB
    CmaFree: 0 kB

    3. The previous CMA assignment failed, causing the following run to fail, is this true?

    root@j7-evm:/opt/vision_apps# ./run_app_tidl_avp3.sh
    APP: Init ... !!!
    MEM: Init ... !!!
    MEM: Initialized DMA HEAP (fd=4) !!!
    MEM: Init ... Done !!!
    IPC: Init ... !!!
    IPC: Init ... Done !!!
    REMOTE_SERVICE: Init ... !!!
    REMOTE_SERVICE: Init ... Done !!!
    195.265809 s: GTC Frequency = 200 MHz
    APP: Init ... Done !!!
    195.278797 s: VX_ZONE_INIT:Enabled
    195.278808 s: VX_ZONE_ERROR:Enabled
    195.278822 s: VX_ZONE_WARNING:Enabled
    Target id: ---------- 320 --
    Target id: ---------- 321 --
    Target id: ---------- 322 --
    Target id: ---------- 323 --
    195.283080 s: VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!!
    195.283233 s: VX_ZONE_INIT:[tivxHostInitLocal:86] Initialization Done for HOST !!!
    Computing checksum at 0x0000FFFF76D2FC00, size = 794624
    Computing checksum at 0x0000FFFF76714F80, size = 1148048
    195.919771 s: VX_ZONE_ERROR:[ownContextSendCmd:815] Command ack message returned failure cmd_status: -1
    195.919797 s: VX_ZONE_ERROR:[ownContextSendCmd:851] tivxEventWait() failed.
    195.919821 s: VX_ZONE_ERROR:[ownNodeKernelInit:538] Target kernel, TIVX_CMD_NODE_CREATE failed for node ODTIDLNode
    195.919827 s: VX_ZONE_ERROR:[ownNodeKernelInit:539] Please be sure the target callbacks have been registered for this core
    195.919833 s: VX_ZONE_ERROR:[ownNodeKernelInit:540] If the target callbacks have been registered, please ensure no errors are occurring within the create callback of this kernel
    195.919992 s: VX_ZONE_ERROR:[ownGraphNodeKernelInit:583] kernel init for node 2, kernel com.ti.tidl ... failed !!!
    195.920011 s: VX_ZONE_ERROR:[vxVerifyGraph:2055] Node kernel init failed
    195.920017 s: VX_ZONE_ERROR:[vxVerifyGraph:2109] Graph verify failed
    [C7x_1 ] 195.919563 s: VX_ZONE_ERROR:[tivxKernelTIDLCreate:644] Network version - 0x20220823, Expected version - 0x20211201
    MSC: Node send command failed!
    196.363971 s: VX_ZONE_INIT:[tivxHostDeInitLocal:100] De-Initialization Done for HOST !!!
    196.368363 s: VX_ZONE_INIT:[tivxDeInitLocal:193] De-Initialization Done !!!
    APP: Deinit ... !!!
    REMOTE_SERVICE: Deinit ... !!!
    REMOTE_SERVICE: Deinit ... Done !!!
    IPC: Deinit ... !!!
    IPC: DeInit ... Done !!!
    MEM: Deinit ... !!!
    MEM: Alloc's: 241 alloc's of 105867921 bytes
    MEM: Free's : 241 free's of 105867921 bytes
    MEM: Open's : 0 allocs of 0 bytes
    MEM: Deinit ... Done !!!
    APP: Deinit ... Done !!!
    root@j7-evm:/opt/vision_apps#

    ...

  • 4. However,./ run_app_doof.sh works properly

  • 请看下面我们工程师的回复。

    [C7x_1 ] 195.919563 s: VX_ZONE_ERROR:[tivxKernelTIDLCreate:644] Network version - 0x20220823, Expected version - 0x20211201

    The above error means that the model has not been imported for the current SDK you are running (i.e., SDK 8.2). Here the model seems to be imported on SDK 8.4

    Please import the model based on the current SDK and please try running the application again (i.e., SDK 8.2).