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.

AM62A7: Query Regarding the Edge AI Demo Application

Part Number: AM62A7
Hi Team,
We are trying to modify the EdgeAI application to work with the Custom Board based on the AM62Ax SoC with 1GB DDR on SDK version 9.00.01.03.
We need to handle the EdgeAI application's reserved memory area.
Below is the reserved memory mapping for the EdgeAI application along with the core memory's reserved memory for the 4GB  DDR AM62Ax SK board. With the default values the EgdeAI application is working as expected for the object detection demo using the Ethernet Stream and we are using the Ethernet Boot mode for booting the SK.
 
+---------------------------------------+--------------------------+----------+
|          Memory Section                 |     Physical Address     |   Size   |               
+=======================+================+=====+
| C7x Pool                                      | 0x99800000                 | 1MB    |
+---------------------+---------------+-----+ | C7x Pool | 0x99900000 | 31MB |
----------------------+---------------+-----+ | R5F(mcu) Pool | 0x9b800000 | 1MB |
+---------------------+---------------+-----+ | R5F(mcu) Pool | 0x9b900000 | 15MB |
+---------------------+---------------+-----+ | R5F(wkup) Pool | 0x9c800000 | 1MB |
+---------------------+---------------+-----+ | R5F(wkup) Pool | 0x9c900000 | 30MB |
+---------------------+---------------+-----+ | edgeai rtos ipc memory region | 0xa0000000 | 16MB |
+---------------------+---------------+-----+ | edgeai memory region | 0xa1000000 | 32MB |
+---------------------+---------------+-----+ | edgeai shared region | 0xa3000000 | 176MB |
+---------------------+---------------+------+ | edgeai core heap | 0xae900000 | 288MB |
+---------------------+---------------+-----+ | linux,cma | 0xb0000000 | 576MB |
+---------------------+---------------+------+
Later I modified the AM62Ax SDK for 1 GB DDR and updated the reserved memory regions as shown below.
+---------------------------------------+--------------------------+----------+
|          Memory Section                 |     Physical Address     |   Size   |               
+=======================+================+=====+
| C7x Pool                                      | 0x99800000                 | 1MB    | 
+---------------------+---------------+-----+ | C7x Pool | 0x99900000 | 31MB |
+---------------------+---------------+-----+ | R5F(mcu) Pool | 0x9b800000 | 1MB |
+---------------------+---------------+-----+ | R5F(mcu) Pool | 0x9b900000 | 15MB |
+---------------------+---------------+-----+ | R5F(wkup) Pool | 0x9c800000 | 1MB |
+---------------------+---------------+-----+ | R5F(wkup) Pool | 0x9c900000 | 30MB |
+---------------------+---------------+-----+ | edgeai rtos ipc memory region | 0xa0000000 | 16MB |
+---------------------+---------------+-----+ | edgeai memory region | 0xa1000000 | 32MB |
+---------------------+---------------+-----+ | edgeai shared region | 0xa3000000 | 176MB |
+---------------------+---------------+-----+ | edgeai core heap | 0xae900000 | 32MB |
+---------------------+---------------+------+ | linux,cma | 0xb0000000 | 256MB |
+---------------------+---------------+------+
We need to boot the board in Ethernet boot mode. After modyfing the memory regions, the object detection demo application camera streaming with Ethernet does not work.
 
Is it because of the reduced memory for the "edgeai core heap" area in the reserved memory?
Could you please help to debug on how to assign the reserved memory areas for the EdgeAI appication regions. 


  • Hello,

    1 GB is quite small and will require some optimization work, but the fact that it's booting is a good step.

    Have you modified the firmware for the Device Manager/Wakeup R5 and the C7x firmware to reflect these DDR regions? These are shared between all cores, so they have to be aware of size and location of each region. It is not sufficient to only change Linux DTS files.

    Making these changes and rebuilding firmware requires access to the firmware-builder for AM62A, which is access-restricted and available on MySecure. The request link is on the main SDK page for AM62A. I will assume you have access already, but please mention if this assumption is wrong.

    That 32MB size for the edgeai-core-heap is quite small. It is likely too small to work well for AI pipelines. For a basic sanity test, we should try running a very simple application here, instead of a full-blown object detection network alongside other processing components.

    I would also recommend running `/opt/vx_app_arm_remote_log.out &` in the background to see messages from OpenVX, which is how the remote cores communicate.

    BR,
    Reese

  • Ann Rose, 

    I understand on a call today that you do not in fact have access as noted by Reese below.  

    Making these changes and rebuilding firmware requires access to the firmware-builder for AM62A, which is access-restricted and available on MySecure. The request link is on the main SDK page for AM62A. I will assume you have access already, but please mention if this assumption is wrong.

    Please request such access using the following link: https://www.ti.com/licreg/docs/swlicexportcontrol.tsp?form_id=337627&prod_no=FIRMWARE-BUILDER-AM62A&ref_url=EP-Proc-Sitara-MPU  

    If you still do not have access in the next 24-48 hours, please let us know.  

    John 

  • Hi John,

    I can access the firmware-builder for AM62A board. 

    I will look into the required changes for making the 1GB DDR in the AM62A Board and get back to you.

    Regards,

    Ann Rose Antony

  • Hi Reese,

    I have rebuilt the firmware and can boot the am62ax board with the below memory map

    Partition Start Address Size
    DDR_C7x_1_IPC 0x99800000 1024.00 KB
    DDR_C7x_1_RESOURCE_TABLE 0x99900000 1024.00 B
    DDR_C7X_1_IPC_TRACEBUF 0x99900400 1023.00 KB
    DDR_C7x_1_BOOT 0x99A00000 1024.00 B
    DDR_C7x_1_VECS 0x99C00000 16.00 KB
    DDR_C7x_1 0x99C10000 15.94 MB
    DDR_MCU_R5F_IPC 0x9AC00000 1024.00 KB
    DDR_MCU_R5F_RESOURCE_TABLE 0x9AD00000 1024.00 B
    DDR_MCU_R5F_IPC_TRACEBUF 0x9AD00400 1023.00 KB
    DDR_MCU_R5F 0x9AE00000 10.00 MB
    DDR_DM_R5F_IPC 0x9B800000 1024.00 KB
    DDR_DM_R5F_RESOURCE_TABLE 0x9B900000 1024 B
    DDR_DM_R5F_IPC_TRACEBUF 0x9B900400 1023.00 KB
    DDR_DM_R5F 0x9BA00000 13.00 MB
    TIFS_LPM_CTX 0x9C700000 512.00 KB
    ATF_MEM 0x9C780000 512.00 KB
    OPTEE_MEM 0x9C800000 24.00 MB
    IPC_VRING_MEM 0x9E000000 16.00 MB
    APP_LOG_MEM 0x9F000000 256.00 KB
    TIOVX_OBJ_DESC_MEM 0x9F040000 15.75 MB
    TIOVX_LOG_RT_MEM 0xA0000000 16.00 MB
    DDR_SHARED_MEM 0xA1000000 64.00 MB
    DDR_MCU_R5F_LOCAL_HEAP 0xA5000000 16.00 MB
    DDR_DM_R5F_LOCAL_HEAP 0xA6000000 16.00 MB
    DDR_C7X_1_LOCAL_HEAP_NON_CACHEABLE 0xA7000000 16.00 MB
    DDR_C7X_1_SCRATCH_NON_CACHEABLE 0xA8000000 16.00 MB
    DDR_C7X_1_LOCAL_HEAP 0xA9000000 64.00 MB
    DDR_C7X_1_SCRATCH 0xAD000000 48.00 MB

    But while running the demo application I observed the below error:

    root@am62axx-evm:/opt/edgeai-gst-apps/apps_python# ./app_edgeai.py ../configs/object_detection.yaml
    libtidl_onnxrt_EP loaded 0x6a26010
    Final number of subgraphs created are : 1, - Offloaded Nodes - 289, Total Nodes - 289
    APP: Init ... !!!
    APP_LOG: ERROR: Unable to map memory @ 0xa1000000 of size 262144[ 224.990024] audit: type=1701 audit(1651167961.120:28): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=1694 comm="app_edgeai.py" exe="/us1
    bytes !!!
    APP: ERROR: Log writer init failed !!!
    APP_LOG: ERROR: Unable to map memory @ 0xa2000000 of size 3288576 bytes !!!
    APP: ERROR: File IO writer init failed !!!
    APP: Init ... Done !!!
    [ 225.032600] audit: type=1334 audit(1651167961.164:29): prog-id=21 op=LOAD
    [ 225.039741] audit: type=1334 audit(1651167961.172:30): prog-id=22 op=LOAD
    Segmentation fault (core dumped)

    Also I used the gst-launch command and observed the similar error message:

    root@am62axx-evm:/opt/edgeai-gst-apps# gst-launch-1.0 videotestsrc ! image/x-raw, width=1280, height=720 ! tiovxmultiscaler ! video/x-raw,width=640,height=480 ! fakesink
    APP: Init ... !!!
    APP_LOG: ERROR: Unable to map memory @ 0xa1000000 of size 2621[ 87.736589] audit: type=1701 audit(1651167823.736:28): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=1230 comm="gst-launch-1.0" exe="/usr1
    44 bytes !!!
    APP: ERROR: Log writer init failed !!!
    APP_LOG: ERROR: Unable to map memory @ 0xa2000000 of size 3288576 bytes !!!
    APP: ERROR: File IO writer init failed !!!
    APP: Init ... Done !!!
    **
    ERROR:../git/gst-libs/gst/tiovx/gsttiovxcontext.c:146:gst_tiovx_context_init: assertion failed: (0 == ret)
    Bail out! ERROR:../git/gst-libs/gst/tiovx/gsttiovxcontext.c:146:gst_tiovx_context_init: assertion failed: (0 == ret)
    [ 87.811535] audit: type=1334 audit(1651167823.812:29): prog-id=21 op=LOAD
    [ 87.818421] audit: type=1334 audit(1651167823.820:30): prog-id=22 op=LOAD
    Aborted (core dumped)

    I have not used the address 0xa2000000 in the updated memory map table and am confused about whether I have missed any other files that need to be taken care of while doing the firmware builder.

    Below are the steps I have followed to build the firmware and boot the board.

    1) Updated the vision_apps/platform/am62a/rtos/gen_linker_mem_map.py file.

    2) Generated the memory map files with the steps mentioned in the https://software-dl.ti.com/secure/software/sitara-sec/FIRMWARE-BUILDER-AM62A/09_00_00_02/exports/docs/firmware_builder/docs/user_guide/getting_started_am62a.html?__gda__=1718793525_d9b749f4fff302df609b067f143000d4#generating-the-memory-map-files

    3) Updated the reserved memory nodes of the dts file in the SDK from the generated k3-am62a7-sk.dts in the firmware builder package.

    4) Created the dtb file from the updated dts file inside the sdk.

    5) Later updated the R5F MPU configurations in the file "vision_apps/platform/am62a/rtos/mcu1_0/am62a_mpu_cfg.c" with the values of the c7x_1/linker_mem_map.cmd and mcu1_0/linker_mem_map.cmd files.

    6) Build the firmware using the below steps:

         cd ${FIRMWARE_BUILDER_INSTALL_PATH}/sdk_builder

         BUILD_EDGEAI=yes make sdk -j`nproc`

    7) Then, I copied the c7x firmware and tispl.bin

         cp <c7x firmware> <sd-card-rootfs>/lib/firmware/pdk-ipc/ipc_echo_test_c7x_1_release_strip.xe71

         cp ${LINUX_INSTALL_PATH}/board-support/u-boot-2023.04+gitAUTOINC+756ba776d4-g756ba776d4/am62a-arm64-linux/tispl.bin <sd-card-boot>/tispl.bin

    8) Also copied the dtb file to the SD card and booted the board.

    Could you please guide me on why I am facing this issue?

    Also please let me know whether I am missing any file updates while updating the firmware builder

    Thanks and Regards,

    Ann Rose Antony

  • Hello,

    TIOVX_LOG_RT_MEM 0xA0000000 16.00 MB
    DDR_SHARED_MEM 0xA1000000 64.00 MB

    I would have expected the memory regions it's allocating to have shown as starting from the TIOVX_LOG_RT_MEM base, so there may have been a missed step here.

    After you updated the memory maps and linker files, I see you updated the C7x firmware. Did you do the equivalent for the DM R5 firmware? This would have required the bootloader be updated with the resulting binary from rebuilding DM R5 firmware. 

    Could you also attach a log printed from running /opt/vx_app_app_remote_log.out? 

    BR,
    Reese

  • Hi Reese,

    Thanks for the quick response.

    I have updated the DM R5 Firmware and rebuilt the A53 binaries. Later copied the tispl.bin and the u-boot.img files to the boot partition of the SD card and booted the board.

    Attached the complete log :

    U-Boot SPL 2023.04-00027-gfeee47292b (Jun 17 2024 - 17:05:31 +0530)
    SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.7--v09.00.07 (Kool Koala)')
    am62a_init: board_init_f done
    SPL initial stack usage: 17032 bytes
    am62a_init: spl_boot_device: devstat = 0x243 bootmedia = 0x8 bootindex = 0
    Trying to boot from MMC2
    am62a_init: spl_boot_device: devstat = 0x243 bootmedia = 0x8 bootindex = 0
    Authentication passed
    am62a_init: spl_boot_device: devstat = 0x243 bootmedia = 0x8 bootindex = 0
    Authentication passed
    am62a_init: spl_boot_device: devstat = 0x243 bootmedia = 0x8 bootindex = 0
    Authentication passed
    am62a_init: spl_boot_device: devstat = 0x243 bootmedia = 0x8 bootindex = 0
    Authentication passed
    am62a_init: spl_boot_device: devstat = 0x243 bootmedia = 0x8 bootindex = 0
    Authentication passed
    Starting ATF on ARM64 core...
    
    NOTICE:  BL31: v2.9(release):v2.9.0-dirty
    NOTICE:  BL31: Built : 14:12:59, May 22 2023
    
    U-Boot SPL 2023.04-00027-gfeee47292b (Jun 20 2024 - 10:56:09 +0530)
    SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.7--v09.00.07 (Kool Koala)')
    am62a_init: spl_boot_device: devstat = 0x243 bootmedia = 0x8 bootindex = 0
    am62a_init: board_init_f done
    am62a_init: spl_boot_device: devstat = 0x243 bootmedia = 0x8 bootindex = 0
    Trying to boot from MMC2
    am62a_init: spl_boot_device: devstat = 0x243 bootmedia = 0x8 bootindex = 0
    Authentication passed
    am62a_init: spl_boot_device: devstat = 0x243 bootmedia = 0x8 bootindex = 0
    Authentication passed
    
    
    U-Boot 2023.04-00027-gfeee47292b (Jun 20 2024 - 10:56:09 +0530)
    
    SoC:   AM62AX SR1.0 HS-FS
    Model: Texas Instruments AM62A7 SK
    DRAM:  2 GiB (effective 4 GiB)
    Core:  57 devices, 27 uclasses, devicetree: separate
    Flash: 0 Bytes
    MMC:   mmc@fa10000: 0, mmc@fa00000: 1
    Loading Environment from nowhere... OK
    In:    serial@2800000
    Out:   serial@2800000
    Err:   serial@2800000
    Net:   eth0: ethernet@8000000port@1
    Hit any key to stop autoboot:  2  1  0 
    switch to partitions #0, OK
    mmc1 is current device
    SD/MMC found on device 1
    Failed to load 'boot.scr'
    574 bytes read in 23 ms (23.4 KiB/s)
    Loaded env from uEnv.txt
    Importing environment from mmc1 ...
    ## Error: "main_cpsw0_qsgmii_phyinit" not defined
    38396416 bytes read in 1611 ms (22.7 MiB/s)
    55796 bytes read in 27 ms (2 MiB/s)
    Working FDT set to 88000000
    2064 bytes read in 25 ms (80.1 KiB/s)
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
    Working FDT set to 88000000
       Loading Device Tree to 000000008feef000, end 000000008fffffff ... OK
    Working FDT set to 8feef000
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
    [    0.000000] Linux version 6.1.46-00013-g782b18c7ca1f-dirty (ann@LAP872U) (aarch64-none-linux-gnu-gcc (Arm GNU Toolchain 11.3.Rel1) 11.3.1 20220712, GNU ld (Arm GNU Toolchain 11.3.Rel1) 2.38.20220708) #2 SMP PREEMPT Mon Jun 17 17:52:51 IST 2024
    [    0.000000] Machine model: Texas Instruments AM62A7 SK
    [    0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (options '')
    [    0.000000] printk: bootconsole [ns16550a0] enabled
    [    0.000000] efi: UEFI not found.
    [    0.000000] Reserved memory: created CMA memory pool at 0x00000000b0000000, size 256 MiB
    [    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x0000000099800000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node c7x-dma-memory@99800000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x0000000099900000, size 19 MiB
    [    0.000000] OF: reserved mem: initialized node c7x-memory@99900000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x000000009ac00000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@9ac00000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x000000009ad00000, size 11 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@9ad00000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x000000009b800000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@9b800000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x000000009b900000, size 14 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@9b900000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x000000009f000000, size 32 MiB
    [    0.000000] OF: reserved mem: initialized node edgeai-dma-memory@9f000000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: initialized node edgeai_shared-memories, compatible id dma-heap-carveout
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a5000000, size 176 MiB
    [    0.000000] OF: reserved mem: initialized node edgeai-core-heap-memory@a5000000, compatible id shared-dma-pool
    [    0.000000] NUMA: No NUMA configuration found
    [    0.000000] NUMA: Faking a node at [mem 0x0000000080000000-0x00000008ffffffff]
    [    0.000000] NUMA: NODE_DATA [mem 0x8ff842a00-0x8ff844fff]
    [    0.000000] Zone ranges:
    [    0.000000]   DMA      [mem 0x0000000080000000-0x00000000ffffffff]
    [    0.000000]   DMA32    empty
    [    0.000000]   Normal   [mem 0x0000000100000000-0x00000008ffffffff]
    [    0.000000] Movable zone start for each node
    [    0.000000] Early memory node ranges
    [    0.000000]   node   0: [mem 0x0000000080000000-0x00000000997fffff]
    [    0.000000]   node   0: [mem 0x0000000099800000-0x000000009c6fffff]
    [    0.000000]   node   0: [mem 0x000000009c700000-0x000000009c77ffff]
    [    0.000000]   node   0: [mem 0x000000009c780000-0x000000009ccfffff]
    [    0.000000]   node   0: [mem 0x000000009cd00000-0x000000009dffffff]
    [    0.000000]   node   0: [mem 0x000000009e000000-0x00000000a0ffffff]
    [    0.000000]   node   0: [mem 0x00000000a1000000-0x00000000a4ffffff]
    [    0.000000]   node   0: [mem 0x00000000a5000000-0x00000000afffffff]
    [    0.000000]   node   0: [mem 0x00000000b0000000-0x00000000ffffffff]
    [    0.000000]   node   0: [mem 0x0000000880000000-0x00000008ffffffff]
    [    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000008ffffffff]
    [    0.000000] psci: probing for conduit method from DT.
    [    0.000000] psci: PSCIv1.1 detected in firmware.
    [    0.000000] psci: Using standard PSCI v0.2 function IDs
    [    0.000000] psci: Trusted OS migration not required
    [    0.000000] psci: SMC Calling Convention v1.2
    [    0.000000] percpu: Embedded 20 pages/cpu s44968 r8192 d28760 u81920
    [    0.000000] Detected VIPT I-cache on CPU0
    [    0.000000] CPU features: detected: GIC system register CPU interface
    [    0.000000] CPU features: detected: ARM erratum 845719
    [    0.000000] alternatives: applying boot alternatives
    [    0.000000] Fallback order for Node 0: 0 
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1032192
    [    0.000000] Policy zone: Normal
    [    0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 mtdparts=fc40000.spi.0:512k(ospi_nor.tiboot3),2m(ospi_nor.tispl),4m(ospi_nor.u-boot),256k(ospi_nor.env),256k(ospi_nor.env.backup),256k(ospi.phypattern);spi-nand0:512k(ospi_nand.tiboot3),2m(ospi_nand.tispl),4m(ospi_nand.u-boot),256k(ospi_nand.env),256k(ospi_nand.dtb),256k(ospi_nand.dtbo),98048k@32m(ospi_nand.rootfs),256k@130816k(ospi_nand.phypattern) root=PARTUUID=0b75d9c4-02 rw rootfstype=ext4 rootwait
    [    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
    [    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
    [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
    [    0.000000] software IO TLB: area num 4.
    [    0.000000] software IO TLB: mapped [mem 0x00000000fbfff000-0x00000000fffff000] (64MB)
    [    0.000000] Memory: 3399052K/4194304K available (16384K kernel code, 3768K rwdata, 9584K rodata, 7616K init, 616K bss, 533108K reserved, 262144K cma-reserved)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
    [    0.000000] rcu: Preemptible hierarchical RCU implementation.
    [    0.000000] rcu: 	RCU event tracing is enabled.
    [    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
    [    0.000000] 	Trampoline variant of Tasks RCU enabled.
    [    0.000000] 	Tracing variant of Tasks RCU enabled.
    [    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
    [    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
    [    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
    [    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
    [    0.000000] GICv3: 256 SPIs implemented
    [    0.000000] GICv3: 0 Extended SPIs implemented
    [    0.000000] Root IRQ handler: gic_handle_irq
    [    0.000000] GICv3: GICv3 features: 16 PPIs
    [    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000001880000
    [    0.000000] ITS [mem 0x01820000-0x0182ffff]
    [    0.000000] GIC: enabling workaround for ITS: Socionext Synquacer pre-ITS
    [    0.000000] ITS@0x0000000001820000: Devices Table too large, reduce ids 20->19
    [    0.000000] ITS@0x0000000001820000: allocated 524288 Devices @880800000 (flat, esz 8, psz 64K, shr 0)
    [    0.000000] ITS: using cache flushing for cmd queue
    [    0.000000] GICv3: using LPI property table @0x0000000880040000
    [    0.000000] GIC: using cache flushing for LPI property table
    [    0.000000] GICv3: CPU0: using allocated LPI pending table @0x0000000880050000
    [    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
    [    0.000000] arch_timer: cp15 timer(s) running at 200.00MHz (phys).
    [    0.000000] clocksource: arch_sys_counter: mask: 0x3ffffffffffffff max_cycles: 0x2e2049d3e8, max_idle_ns: 440795210634 ns
    [    0.000001] sched_clock: 58 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
    [    0.009719] Console: colour dummy device 80x25
    [    0.014336] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000)
    [    0.025016] pid_max: default: 32768 minimum: 301
    [    0.029786] LSM: Security Framework initializing
    [    0.034594] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
    [    0.042173] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
    [    0.051653] cblist_init_generic: Setting adjustable number of callback queues.
    [    0.059085] cblist_init_generic: Setting shift to 2 and lim to 1.
    [    0.065374] cblist_init_generic: Setting adjustable number of callback queues.
    [    0.072768] cblist_init_generic: Setting shift to 2 and lim to 1.
    [    0.079154] rcu: Hierarchical SRCU implementation.
    [    0.084062] rcu: 	Max phase no-delay instances is 1000.
    [    0.089609] Platform MSI: msi-controller@1820000 domain created
    [    0.095861] PCI/MSI: /bus@f0000/interrupt-controller@1800000/msi-controller@1820000 domain created
    [    0.105129] fsl-mc MSI: msi-controller@1820000 domain created
    [    0.113190] EFI services will not be available.
    [    0.118065] smp: Bringing up secondary CPUs ...
    [    0.123267] Detected VIPT I-cache on CPU1
    [    0.123356] GICv3: CPU1: found redistributor 1 region 0:0x00000000018a0000
    [    0.123373] GICv3: CPU1: using allocated LPI pending table @0x0000000880060000
    [    0.123417] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
    [    0.124024] Detected VIPT I-cache on CPU2
    [    0.124091] GICv3: CPU2: found redistributor 2 region 0:0x00000000018c0000
    [    0.124105] GICv3: CPU2: using allocated LPI pending table @0x0000000880070000
    [    0.124136] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
    [    0.124675] Detected VIPT I-cache on CPU3
    [    0.124745] GICv3: CPU3: found redistributor 3 region 0:0x00000000018e0000
    [    0.124758] GICv3: CPU3: using allocated LPI pending table @0x0000000880080000
    [    0.124784] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
    [    0.124846] smp: Brought up 1 node, 4 CPUs
    [    0.204566] SMP: Total of 4 processors activated.
    [    0.209378] CPU features: detected: 32-bit EL0 Support
    [    0.214646] CPU features: detected: 32-bit EL1 Support
    [    0.219904] CPU features: detected: CRC32 instructions
    [    0.225221] CPU: All CPU(s) started at EL2
    [    0.229428] alternatives: applying system-wide alternatives
    [    0.236997] devtmpfs: initialized
    [    0.248516] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
    [    0.258504] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
    [    0.271672] pinctrl core: initialized pinctrl subsystem
    [    0.279148] DMI not present or invalid.
    [    0.283707] NET: Registered PF_NETLINK/PF_ROUTE protocol family
    [    0.290667] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
    [    0.298112] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
    [    0.306186] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
    [    0.314345] audit: initializing netlink subsys (disabled)
    [    0.319996] audit: type=2000 audit(0.204:1): state=initialized audit_enabled=0 res=1
    [    0.321194] thermal_sys: Registered thermal governor 'step_wise'
    [    0.327929] thermal_sys: Registered thermal governor 'power_allocator'
    [    0.334133] cpuidle: using governor menu
    [    0.345023] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
    [    0.352048] ASID allocator initialised with 65536 entries
    [    0.359225] Serial: AMBA PL011 UART driver
    [    0.382217] platform 30200000.dss: Fixed dependency cycle(s) with /bus@f0000/i2c@20010000/sii9022@3b
    [    0.395397] platform connector: Fixed dependency cycle(s) with /bus@f0000/i2c@20010000/sii9022@3b
    [    0.405062] KASLR disabled due to lack of seed
    [    0.417193] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
    [    0.424159] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
    [    0.430569] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
    [    0.437509] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
    [    0.443917] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
    [    0.450856] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
    [    0.457264] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
    [    0.464204] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
    [    0.472181] ACPI: Interpreter disabled.
    [    0.478084] k3-chipinfo 43000014.chipid: Family:AM62AX rev:SR1.0 JTAGID[0x0bb8d02f] Detected
    [    0.488408] iommu: Default domain type: Translated 
    [    0.493420] iommu: DMA domain TLB invalidation policy: strict mode 
    [    0.500101] SCSI subsystem initialized
    [    0.504271] usbcore: registered new interface driver usbfs
    [    0.509914] usbcore: registered new interface driver hub
    [    0.515366] usbcore: registered new device driver usb
    [    0.521769] pps_core: LinuxPPS API ver. 1 registered
    [    0.526850] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.536198] PTP clock support registered
    [    0.540331] EDAC MC: Ver: 3.0.0
    [    0.545100] omap-mailbox 29000000.mailbox: omap mailbox rev 0x66fca100
    [    0.551948] omap-mailbox 29010000.mailbox: omap mailbox rev 0x66fca100
    [    0.558747] omap-mailbox 29020000.mailbox: omap mailbox rev 0x66fca100
    [    0.565471] omap-mailbox 29030000.mailbox: no available mbox devices found
    [    0.573186] FPGA manager framework
    [    0.576754] Advanced Linux Sound Architecture Driver Initialized.
    [    0.583763] vgaarb: loaded
    [    0.586912] clocksource: Switched to clocksource arch_sys_counter
    [    0.593367] VFS: Disk quotas dquot_6.6.0
    [    0.597414] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
    [    0.604610] pnp: PnP ACPI: disabled
    [    0.613590] Carveout Heap: Exported 64 MiB at 0x00000000a1000000
    [    0.619841] NET: Registered PF_INET protocol family
    [    0.625016] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
    [    0.635354] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
    [    0.644161] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
    [    0.652100] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
    [    0.660399] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
    [    0.668748] TCP: Hash tables configured (established 32768 bind 32768)
    [    0.675594] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
    [    0.682546] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
    [    0.690062] NET: Registered PF_UNIX/PF_LOCAL protocol family
    [    0.696224] RPC: Registered named UNIX socket transport module.
    [    0.702299] RPC: Registered udp transport module.
    [    0.707109] RPC: Registered tcp transport module.
    [    0.711918] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.718507] NET: Registered PF_XDP protocol family
    [    0.723416] PCI: CLS 0 bytes, default 64
    [    0.728198] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
    [    0.737193] kvm [1]: IPA Size Limit: 40 bits
    [    0.743146] kvm [1]: vgic-v2@100010000
    [    0.746993] kvm [1]: GIC system register CPU interface enabled
    [    0.753051] kvm [1]: vgic interrupt IRQ9
    [    0.757140] kvm [1]: Hyp mode initialized successfully
    [    0.763640] Initialise system trusted keyrings
    [    0.768423] workingset: timestamp_bits=42 max_order=20 bucket_order=0
    [    0.780617] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.787184] NFS: Registering the id_resolver key type
    [    0.792391] Key type id_resolver registered
    [    0.796669] Key type id_legacy registered
    [    0.800830] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [    0.807685] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
    [    0.815409] 9p: Installing v9fs 9p2000 file system support
    [    0.855547] Key type asymmetric registered
    [    0.859747] Asymmetric key parser 'x509' registered
    [    0.864776] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
    [    0.872475] io scheduler mq-deadline registered
    [    0.877113] io scheduler kyber registered
    [    0.889930] pinctrl-single 4084000.pinctrl: 34 pins, size 136
    [    0.896241] pinctrl-single f4000.pinctrl: 171 pins, size 684
    [    0.902967] pinctrl-single a40000.pinctrl: 512 pins, size 2048
    [    0.917270] EINJ: ACPI disabled.
    [    0.945660] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    [    0.955465] SuperH (H)SCI(F) driver initialized
    [    0.960785] msm_serial: driver initialized
    [    0.972071] loop: module loaded
    [    0.977166] megasas: 07.719.03.00-rc1
    [    0.988261] tun: Universal TUN/TAP device driver, 1.6
    [    0.994625] thunder_xcv, ver 1.0
    [    0.997980] thunder_bgx, ver 1.0
    [    1.001316] nicpf, ver 1.0
    [    1.005640] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
    [    1.013036] hns3: Copyright (c) 2017 Huawei Corporation.
    [    1.018516] hclge is initializing
    [    1.021926] e1000: Intel(R) PRO/1000 Network Driver
    [    1.026916] e1000: Copyright (c) 1999-2006 Intel Corporation.
    [    1.032829] e1000e: Intel(R) PRO/1000 Network Driver
    [    1.037903] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
    [    1.043982] igb: Intel(R) Gigabit Ethernet Network Driver
    [    1.049522] igb: Copyright (c) 2007-2014 Intel Corporation.
    [    1.055259] igbvf: Intel(R) Gigabit Virtual Function Network Driver
    [    1.061669] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
    [    1.068260] sky2: driver version 1.30
    [    1.073606] VFIO - User Level meta-driver version: 0.3
    [    1.081436] usbcore: registered new interface driver usb-storage
    [    1.091009] i2c_dev: i2c /dev entries driver
    [    1.105644] sdhci: Secure Digital Host Controller Interface driver
    [    1.112011] sdhci: Copyright(c) Pierre Ossman
    [    1.117595] Synopsys Designware Multimedia Card Interface Driver
    [    1.125039] sdhci-pltfm: SDHCI platform and OF driver helper
    [    1.133471] ledtrig-cpu: registered to indicate activity on CPUs
    [    1.141393] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
    [    1.148778] usbcore: registered new interface driver usbhid
    [    1.154502] usbhid: USB HID core driver
    [    1.164289] optee: probing for conduit method.
    [    1.168874] optee: revision 3.20 (8e74d476)
    [    1.169162] optee: dynamic shared memory is enabled
    [    1.178789] optee: initialized driver
    [    1.186095] Initializing XFRM netlink socket
    [    1.190521] NET: Registered PF_PACKET protocol family
    [    1.195816] 9pnet: Installing 9P2000 support
    [    1.200241] Key type dns_resolver registered
    [    1.205005] registered taskstats version 1
    [    1.209228] Loading compiled-in X.509 certificates
    [    1.246138] ti-sci 44043000.system-controller: ABI: 3.1 (firmware rev 0x0009 '9.0.7--v09.00.07 (Kool Koala)')
    [    1.303408] omap_i2c 20000000.i2c: bus 0 rev0.12 at 400 kHz
    [    1.310852] pca953x 1-0023: supply vcc not found, using dummy regulator
    [    1.317746] pca953x 1-0023: using AI
    [    1.345491] omap_i2c 20010000.i2c: bus 1 rev0.12 at 100 kHz
    [    1.375173] i2c i2c-2: Added multiplexed i2c bus 3
    [    1.380343] i2c 4-0010: Fixed dependency cycle(s) with /bus@f0000/ticsi2rx@30102000/csi-bridge@30101000
    [    1.390128] i2c i2c-2: Added multiplexed i2c bus 4
    [    1.395040] pca954x 2-0071: registered 2 multiplexed busses for I2C switch pca9543
    [    1.402915] omap_i2c 20020000.i2c: bus 2 rev0.12 at 400 kHz
    [    1.409313] ti-sci-intr 4210000.interrupt-controller: Interrupt Router 5 domain created
    [    1.417960] ti-sci-intr bus@f0000:interrupt-controller@a00000: Interrupt Router 3 domain created
    [    1.427424] ti-sci-inta 48000000.interrupt-controller: Interrupt Aggregator domain 28 created
    [    1.436693] ti-sci-inta 4e0a0000.interrupt-controller: Interrupt Aggregator domain 200 created
    [    1.448516] ti-udma 485c0100.dma-controller: Number of rings: 82
    [    1.456527] ti-udma 485c0100.dma-controller: Channels: 48 (bchan: 18, tchan: 12, rchan: 18)
    [    1.468237] ti-udma 485c0000.dma-controller: Number of rings: 150
    [    1.477910] ti-udma 485c0000.dma-controller: Channels: 35 (tchan: 20, rchan: 15)
    [    1.488187] ti-udma 4e230000.dma-controller: Number of rings: 6
    [    1.494697] ti-udma 4e230000.dma-controller: Channels: 6 (bchan: 0, tchan: 0, rchan: 6)
    [    1.505165] printk: console [ttyS2] disabled
    [    1.509606] 2800000.serial: ttyS2 at MMIO 0x2800000 (irq = 252, base_baud = 3000000) is a 8250
    [    1.518485] printk: console [ttyS2] enabled
    [    1.518485] printk: console [ttyS2] enabled
    [    1.526941] printk: bootconsole [ns16550a0] disabled
    [    1.526941] printk: bootconsole [ns16550a0] disabled
    [    1.540404] spi-nand spi0.0: Winbond SPI NAND was found.
    [    1.545742] spi-nand spi0.0: 128 MiB, block size: 256 KiB, page size: 4096, OOB size: 128
    [    1.554086] 7 fixed-partitions partitions found on MTD device spi0.0
    [    1.560441] Creating 7 MTD partitions on "spi0.0":
    [    1.565226] 0x000000000000-0x000000080000 : "ospi_nand.tiboot3"
    [    1.572453] 0x000000080000-0x000000280000 : "ospi_nand.tispl"
    [    1.579994] 0x000000280000-0x000000680000 : "ospi_nand.u-boot"
    [    1.588366] 0x000000680000-0x0000006c0000 : "ospi_nand.env"
    [    1.595086] 0x0000006c0000-0x000000700000 : "ospi_nand.env.backup"
    [    1.602374] 0x000002000000-0x000007fc0000 : "ospi_nand.rootfs"
    [    1.646450] 0x000007fc0000-0x000008000000 : "ospi_nand.phypattern"
    [    1.694968] davinci_mdio 8000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    1.704067] davinci_mdio 8000f00.mdio: phy[0]: device 8000f00.mdio:00, driver TI DP83867
    [    1.712203] am65-cpsw-nuss 8000000.ethernet: initializing am65 cpsw nuss version 0x6BA01103, cpsw version 0x6BA81103 Ports: 3 quirks:00000006
    [    1.724973] am65-cpsw-nuss 8000000.ethernet: initialized cpsw ale version 1.5
    [    1.732100] am65-cpsw-nuss 8000000.ethernet: ALE Table size 512
    [    1.738452] pps pps0: new PPS source ptp0
    [    1.742714] am65-cpsw-nuss 8000000.ethernet: CPTS ver 0x4e8a010c, freq:500000000, add_val:1 pps:1
    [    1.752768] am65-cpsw-nuss 8000000.ethernet: set new flow-id-base 19
    [    1.875625] cpufreq: cpufreq_online: CPU0: Running at unlisted initial frequency: 1250000 KHz, changing to: 800000 KHz
    [    1.893018] mmc0: CQHCI version 5.10
    [    1.938164] mmc0: SDHCI controller on fa10000.mmc [fa10000.mmc] using ADMA 64-bit
    [    2.027119] mmc0: Command Queue Engine enabled
    [    2.031624] mmc0: new HS200 MMC card at address 0001
    [    2.037577] mmcblk0: mmc0:0001 G1M15L 29.6 GiB 
    [    2.043861]  mmcblk0: p1 p2
    [    2.047457] mmcblk0boot0: mmc0:0001 G1M15L 31.5 MiB 
    [    2.053773] mmcblk0boot1: mmc0:0001 G1M15L 31.5 MiB 
    [    2.059920] mmcblk0rpmb: mmc0:0001 G1M15L 4.00 MiB, chardev (511:0)
    [    2.238017] tps6594-rtc tps6594-rtc.4.auto: registered as rtc0
    [    2.244042] tps6594-rtc tps6594-rtc.4.auto: hctosys: unable to read the hardware clock
    [    2.252320] pca953x 1-0022: supply vcc not found, using dummy regulator
    [    2.259093] pca953x 1-0022: using AI
    [    2.277687] debugfs: Directory 'pd:182' with parent 'pm_genpd' already present!
    [    2.280583] mmc1: CQHCI version 5.10
    [    2.286491] debugfs: Directory 'pd:182' with parent 'pm_genpd' already present!
    [    2.295998] debugfs: Directory 'pd:182' with parent 'pm_genpd' already present!
    [    2.310246] ALSA device list:
    [    2.313265]   No soundcards found.
    [    2.330108] mmc1: SDHCI controller on fa00000.mmc [fa00000.mmc] using ADMA 64-bit
    [    2.337831] Waiting for root device PARTUUID=0b75d9c4-02...
    [    2.397062] mmc1: new ultra high speed SDR104 SDHC card at address aaaa
    [    2.405076] mmcblk1: mmc1:aaaa SC16G 14.8 GiB 
    [    2.415099]  mmcblk1: p1 p2
    [    2.835824] EXT4-fs (mmcblk1p2): recovery complete
    [    2.843592] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Quota mode: none.
    [    2.852220] VFS: Mounted root (ext4 filesystem) on device 179:98.
    [    2.858496] devtmpfs: mounted
    [    2.865301] Freeing unused kernel memory: 7616K
    [    2.870060] Run /sbin/init as init process
    [    3.027316] systemd[1]: System time before build time, advancing clock.
    [    3.148382] NET: Registered PF_INET6 protocol family
    [    3.155467] Segment Routing with IPv6
    [    3.159213] In-situ OAM (IOAM) with IPv6
    [    3.201763] systemd[1]: systemd 250.5+ running in system mode (+PAM -AUDIT -SELINUX -APPARMOR +IMA -SMACK +SECCOMP -GCRYPT -GNUTLS -OPENSSL +ACL +BLKID -CURL -ELFUTILS -FIDO2 -IDN2 -IDN -IPTC +KMOD -LIBCRYPTSETUP +LIBFDISK -PCRE2 -PWQUALITY -P11KIT -QRENCODE -BZIP2 -LZ4 -XZ -ZLIB +ZSTD -BPF_FRAMEWORK +XKBCOMMON +UTMP +SYSVINIT default-hierarchy=hybrid)
    [    3.234105] systemd[1]: Detected architecture arm64.
    
    Welcome to Arago 2023.04!
    
    [    3.314683] systemd[1]: Hostname set to <am62axx-evm>.
    [    3.463053] systemd-sysv-generator[154]: SysV service '/etc/init.d/sysrepo' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
    [    3.490502] systemd-sysv-generator[154]: SysV service '/etc/init.d/thermal-zone-init' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
    [    3.516818] systemd-sysv-generator[154]: SysV service '/etc/init.d/edgeai-launcher.sh' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
    [    3.542168] systemd-sysv-generator[154]: SysV service '/etc/init.d/netopeer2-server' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
    [    3.566993] systemd-sysv-generator[154]: SysV service '/etc/init.d/telnetd' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
    [    4.022431] systemd[1]: /lib/systemd/system/bt-enable.service:9: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
    [    4.115660] systemd[1]: /etc/systemd/system/sync-clocks.service:11: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
    [    4.217327] systemd[1]: Queued start job for default target Graphical Interface.
    [    4.309493] systemd[1]: Created slice Slice /system/getty.
    [  OK  ] Created slice Slice /system/getty.
    [    4.334844] systemd[1]: Created slice Slice /system/modprobe.
    [  OK  ] Created slice Slice /system/modprobe.
    [    4.359905] systemd[1]: Created slice Slice /system/serial-getty.
    [  OK  ] Created slice Slice /system/serial-getty.
    [    4.386058] systemd[1]: Created slice User and Session Slice.
    [  OK  ] Created slice User and Session Slice.
    [    4.407587] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Started Dispatch Password �ts to Console Directory Watch.
    [    4.431719] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [  OK  ] Started Forward Password R�uests to Wall Directory Watch.
    [    4.456019] systemd[1]: Reached target Path Units.
    [  OK  ] Reached target Path Units.
    [    4.471442] systemd[1]: Reached target Remote File Systems.
    [  OK  ] Reached target Remote File Systems.
    [    4.491249] systemd[1]: Reached target Slice Units.
    [  OK  ] Reached target Slice Units.
    [    4.507364] systemd[1]: Reached target Swaps.
    [  OK  ] Reached target Swaps.
    [    4.591044] systemd[1]: Listening on RPCbind Server Activation Socket.
    [  OK  ] Listening on RPCbind Server Activation Socket.
    [    4.615933] systemd[1]: Reached target RPC Port Mapper.
    [  OK  ] Reached target RPC Port Mapper.
    [    4.671092] systemd[1]: Listening on Process Core Dump Socket.
    [  OK  ] Listening on Process Core Dump Socket.
    [    4.696274] systemd[1]: Listening on initctl Compatibility Named Pipe.
    [  OK  ] Listening on initctl Compatibility Named Pipe.
    [    4.725020] systemd[1]: Listening on Journal Audit Socket.
    [  OK  ] Listening on Journal Audit Socket.
    [    4.749817] systemd[1]: Listening on Journal Socket (/dev/log).
    [  OK  ] Listening on Journal Socket (/dev/log).
    [    4.773717] systemd[1]: Listening on Journal Socket.
    [  OK  ] Listening on Journal Socket.
    [    4.794727] systemd[1]: Listening on Network Service Netlink Socket.
    [  OK  ] Listening on Network Service Netlink Socket.
    [    4.821960] systemd[1]: Listening on udev Control Socket.
    [  OK  ] Listening on udev Control Socket.
    [    4.845156] systemd[1]: Listening on udev Kernel Socket.
    [  OK  ] Listening on udev Kernel Socket.
    [    4.869509] systemd[1]: Listening on User Database Manager Socket.
    [  OK  ] Listening on User Database Manager Socket.
    [    4.931822] systemd[1]: Mounting Huge Pages File System...
             Mounting Huge Pages File System...
    [    4.957566] systemd[1]: Mounting POSIX Message Queue File System...
             Mounting POSIX Message Queue File System...
    [    4.993736] systemd[1]: Mounting Kernel Debug File System...
             Mounting Kernel Debug File System...
    [    5.012394] systemd[1]: Kernel Trace File System was skipped because of a failed condition check (ConditionPathExists=/sys/kernel/tracing).
    [    5.063662] systemd[1]: Mounting Temporary Directory /tmp...
             Mounting Temporary Directory /tmp...
    [    5.092918] systemd[1]: Starting Create List of Static Device Nodes...
             Starting Create List of Static Device Nodes...
    [    5.125559] systemd[1]: Starting Load Kernel Module configfs...
             Starting Load Kernel Module configfs...
    [    5.153328] systemd[1]: Starting Load Kernel Module drm...
             Starting Load Kernel Module drm...
    [    5.178713] systemd[1]: Starting Load Kernel Module fuse...
             Starting Load Kernel Module fuse...
    [    5.235091] fuse: init (API version 7.37)
    [    5.248505] systemd[1]: Starting Start psplash boot splash screen...
             Starting Start psplash boot splash screen...
    [    5.283481] systemd[1]: Starting RPC Bind...
             Starting RPC Bind...
    [    5.299562] systemd[1]: File System Check on Root Device was skipped because of a failed condition check (ConditionPathIsReadWrite=!/).
    [    5.324363] systemd[1]: Starting Journal Service...
             Starting Journal Service...
    [    5.351823] systemd[1]: Starting Load Kernel Modules...
             Starting Load Kernel Modules...
    [    5.374648] systemd[1]: Starting Generate network units from Kernel command line...
             Starting Generate network �ts from Kernel command line...
    [    5.406264] systemd[1]: Starting Remount Root and Kernel File Systems...
             Starting Remount Root and Kernel File Systems...
    [    5.432560] EXT4-fs (mmcblk1p2): re-mounted. Quota mode: none.
    [    5.438623] systemd[1]: Starting Coldplug All udev Devices...
             Starting Coldplug All udev Devices...
    [    5.481743] systemd[1]: Started RPC Bind.
    [  OK  ] Started RPC Bind.
    [    5.503923] systemd[1]: Mounted Huge Pages File System.
    [  OK  ] Mounted Huge Pages File System.
    [    5.527802] systemd[1]: Started Journal Service.
    [  OK  ] Started Journal Service.
    [  OK  ] Mounted POSIX Message Queue File System.
    [  OK  ] Mounted Kernel Debug File System.
    [  OK  ] Mounted Temporary Directory /tmp.
    [  OK  ] Finished Create List of Static Device Nodes.
    [  OK  ] Finished Load Kernel Module configfs.
    [  OK  ] Finished Load Kernel Module drm.
    [  OK  ] Finished Load Kernel Module fuse.
    [FAILED] Failed to start Start psplash boot splash screen.
    See 'systemctl status psplash-start.service' for details.
    [DEPEND] Dependency failed for Star�progress communication helper.
    [  OK  ] Finished Load Kernel Modules.
    [  OK  ] Finished Generate network units from Kernel command line.
    [  OK  ] Finished Remount Root and Kernel File Systems.
             Mounting FUSE Control File System...
             Mounting Kernel Configuration File System...
             Starting Flush Journal to Persistent Storage...
             Starting Apply Kernel Variables...
    [    5.945735] systemd-journald[169]: Received client request to flush runtime journal.
             Starting Create System Users...
    [  OK  ] Mounted FUSE Control File System.
    [  OK  ] Mounted Kernel Configuration File System.
    [  OK  ] Finished Flush Journal to Persistent Storage.
    [  OK  ] Finished Apply Kernel Variables.
    [  OK  ] Finished Create System Users.
             Starting Create Static Device Nodes in /dev...
    [  OK  ] Finished Create Static Device Nodes in /dev.
    [  OK  ] Reached target Preparation for Local File Systems.
             Mounting /media/ram...
             Mounting /var/volatile...
    [    6.269656] audit: type=1334 audit(1651167748.240:2): prog-id=5 op=LOAD
    [    6.276441] audit: type=1334 audit(1651167748.248:3): prog-id=6 op=LOAD
             Starting Rule-based Manage�for Device Events and Files...
    [  OK  ] Mounted /media/ram.
    [  OK  ] Mounted /var/volatile.
             Starting Load/Save Random Seed...
    [  OK  ] Reached target Local File Systems.
             Starting Rebuild Dynamic Linker Cache...
             Starting Create Volatile Files and Directories...
    [  OK  ] Finished Coldplug All udev Devices.
    [  OK  ] Finished Create Volatile Files and Directories.
             Starting Rebuild Journal Catalog...
             Starting Network Time Synchronization...
             Starting Record System Boot/Shutdown in UTMP...
    [  OK  ] Finished Record System Boot/Shutdown in UTMP.
    [  OK  ] Started Rule-based Manager for Device Events and Files.
    [  OK  ] Finished Rebuild Journal Catalog.
    [  OK  ] Finished Rebuild Dynamic Linker Cache.
             Starting Update is Completed...
    [  OK  ] Finished Update is Completed.
    [    7.102956] random: crng init done
    [  OK  ] Started Network Time Synchronization.
    [  OK  ] Finished Load/Save Random Seed.
    [  OK  ] Reached target System Initialization.
    [  OK  ] Started Daily Cleanup of Temporary Directories.
    [  OK  ] Reached target System Time Set.
    [  OK  ] Started Daily rotation of log files.
    [  OK  ] Reached target Timer Units.
    [  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
    [  OK  ] Listening on D-Bus System Message Bus Socket.
             Starting Docker Socket for the API...
    [  OK  ] Listening on dropbear.socket.
             Starting Weston socket...
             Starting Console System Startup Logging...
             Starting D-Bus System Message Bus...
             Starting Reboot and dump vmcore via kexec...
    [  OK  ] Listening on Docker Socket for the API.
    [  OK  ] Listening on Weston socket.
    [  OK  ] Finished Console System Startup Logging.
    [  OK  ] Finished Reboot and dump vmcore via kexec.
    [  OK  ] Reached target Socket Units.
    [  OK  ] Started D-Bus System Message Bus.
    [  OK  ] Reached target Basic System.
    [  OK  ] Started Job spooling tools.
    [  OK  ] Started Periodic Command Scheduler.
             Starting Print notice about GPLv3 packages...
             Starting IPv6 Packet Filtering Framework...
             Starting IPv4 Packet Filtering Framework...
    [  OK  ] Started irqbalance daemon.
             Starting Telephony service...
             Starting Expand the rootfs�ll size of the boot device....
    [  OK  ] Started strongSwan IPsec I�IKEv2 daemon using ipsec.conf.
    [    7.907531] audit: type=1334 audit(1651171933.868:4): prog-id=7 op=LOAD
    [    7.918239] audit: type=1334 audit(1651171933.876:5): prog-id=8 op=LOAD
             Starting User Login Management...
    [  OK  ] Started TEE Supplicant.
    [FAILED] Failed to start Print notice about GPLv3 packages.
    See 'systemctl status gplv3-notice.service' for details.
    [  OK  ] Finished IPv6 Packet Filtering Framework.
    [  OK  ] Finished IPv4 Packet Filtering Framework.
    [  OK  ] Found device /dev/ttyS2.
    [  OK  ] Reached target Preparation for Network.
    [    8.083525] Bluetooth: Core ver 2.22
    [    8.089063] NET: Registered PF_BLUETOOTH protocol family
    [    8.098034] Bluetooth: HCI device and connection manager initialized
    [    8.108776] Bluetooth: HCI socket layer initialized
    [    8.125871] Bluetooth: L2CAP socket layer initialized
    [    8.134471] Bluetooth: SCO socket layer initialized
             Starting Network Configuration...
    [  OK  ] Started Telephony service.
    [    8.319247] mc: Linux media interface: v0.10
    [    8.326849] platform 31000000.usb: Fixed dependency cycle(s) with /bus@f0000/i2c@20000000/usb-power-controller@3f/connector
    [    8.419674] videodev: Linux video capture interface: v2.00
    [    8.448257] sii902x 1-003b: supply iovcc not found, using dummy regulator
    [    8.463089] sii902x 1-003b: supply cvcc12 not found, using dummy regulator
    [    8.471297] tlv320aic3x 1-001b: supply DVDD not found, using dummy regulator
    [    8.558850] i2c i2c-1: Added multiplexed i2c bus 5
    [    8.567213] k3-dsp-rproc 7e000000.dsp: assigned reserved memory node c7x-dma-memory@99800000
    [    8.574124] platform 79000000.r5f: configured R5F for remoteproc mode
    [    8.576896] k3-dsp-rproc 7e000000.dsp: configured DSP for remoteproc mode
    [    8.583250] platform 79000000.r5f: assigned reserved memory node r5f-dma-memory@9ac00000
    [    8.604090] remoteproc remoteproc1: 79000000.r5f is available
    [    8.615755] remoteproc remoteproc0: 7e000000.dsp is available
    [    8.631696] [drm] Initialized tidss 1.0.0 20180215 for 30200000.dss on minor 0
    [    8.639643] tidss 30200000.dss: [drm] Cannot find any crtc or sizes
    [    8.643374]  ox03f10_probe 
    [    8.649151] ox03f10 4-0010: ox03f10_probe 
    [    8.653514] platform 78000000.r5f: R5F core may have been powered on by a different host, programmed state (0) != actual state (1)
    [    8.661793] remoteproc remoteproc1: powering up 79000000.r5f
    [    8.665639] tidss 30200000.dss: [drm] Cannot find any crtc or sizes
    [    8.671419] remoteproc remoteproc1: Booting fw image am62a-mcu-r5f0_0-fw, size 53556
    [    8.678672] platform 78000000.r5f: configured R5F for IPC-only mode
    [    8.688072] ox03f10 4-0010: bus_type 5
    [    8.692401] platform 78000000.r5f: assigned reserved memory node r5f-dma-memory@9b800000
    [    8.697947] ox03f10 4-0010: num_data_lanes 4
    [    8.708960] ox03f10 4-0010: lanes [0] 1
    [    8.708980] ox03f10 4-0010: lanes [1] 2
    [    8.708987] ox03f10 4-0010: lanes [2] 3
    [    8.708994] ox03f10 4-0010: lanes [3] 4
    [    8.709000] ox03f10 4-0010: nr_of_link_frequencies 1 in DT 
    [    8.709008] ox03f10 4-0010: Link frequency supported: 640000000
    [    8.709042] ox03f10 4-0010: ox03f10_probe: clk_rate 24000000
    [    8.715383] remoteproc remoteproc1: bad phdr da 0x9b900000 mem 0x400
    [  OK  ] Finished Expand the rootfs�full s[    8.749954] remoteproc remoteproc1: Failed to load program segments: -22
    ize of the boot device..
    [    8.753593] remoteproc remoteproc2: 78000000.r5f is available
    [    8.771347] remoteproc remoteproc2: attaching to 78000000.r5f
    [    8.788270] ox03f10 4-0010: ox03f10_detect: detected chip ID 0x58034600
    [    8.808830] remoteproc remoteproc0: powering up 7e000000.dsp
    [    8.814861] remoteproc remoteproc0: Booting fw image am62a-c71_0-fw, size 6897744
    [    8.825516] ox03f10 4-0010: ox03f10 probed
    [    8.857174] platform 78000000.r5f: R5F core initialized in IPC-only mode
    [    8.865222] rproc-virtio rproc-virtio.7.auto: assigned reserved memory node r5f-dma-memory@9b800000
    [    8.881874] remoteproc remoteproc0: bad phdr da 0x9a7f0000 mem 0x413b80
    [    8.888750] remoteproc remoteproc0: Failed to load program segments: -22
    [    8.941769] virtio_rpmsg_bus virtio0: rpmsg host is online
    [    8.948688] rproc-virtio rproc-virtio.7.auto: registered virtio0 (type 7)
    [    8.955948] remoteproc remoteproc2: remote processor 78000000.r5f is now attached
    [    8.983214] vdec 30210000.video-codec: error -ENXIO: IRQ index 0 not found
    [    8.983243] vdec 30210000.video-codec: failed to get irq resource, falling back to polling
    [  OK  ] Started User Login Management.[    9.209026] e5010 fd20000.e5010: Device registered as /dev/video2
    
    [    9.399766] mtdblock: MTD device 'ospi_nand.tiboot3' is NAND, please consider using UBI block devices instead.
    [    9.416385] mtdblock: MTD device 'ospi_nand.tispl' is NAND, please consider using UBI block devices instead.
    [    9.430169] mtdblock: MTD device 'ospi_nand.u-boot' is NAND, please consider using UBI block devices instead.
    [    9.523443] mtdblock: MTD device 'ospi_nand.env' is NAND, please consider using UBI block devices instead.
    [    9.536046] mtdblock: MTD device 'ospi_nand.rootfs' is NAND, please consider using UBI block devices instead.
    [    9.541565] mtdblock: MTD device 'ospi_nand.env.backup' is NAND, please consider using UBI block devices instead.
    [    9.548232] mtdblock: MTD device 'ospi_nand.phypattern' is NAND, please consider using UBI block devices instead.
    [    9.556766] cfg80211: Loading compiled-in X.509 certificates for regulatory database
    [    9.608387] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
    [  OK  ] Started Network Configuration.
    [    9.742557] am65-cpsw-nuss 8000000.ethernet eth0: PHY [8000f00.mdio:00] driver [TI DP83867] (irq=POLL)
    [    9.752794] am65-cpsw-nuss 8000000.ethernet eth0: configuring for phy/rgmii-rxid link mode
             Starting Network Name Resolution...
    [  OK  ] Listening on Load/Save RF �itch Status /dev/rfkill Watch.
    [   10.203179] tps6598x 0-003f: Unable to find the interrupt, switching to polling
    [   10.442841] ox03f10 4-0010: Consider updating driver ox03f10 to match on endpoints
    [  OK  ] Reached target Hardware activated U[   10.455889] mtdblock: MTD device 'ospi_nand.phypattern' is NAND, please consider using UBI block devices instead.
    SB gadget.
    [   10.471915] xhci-hcd xhci-hcd.6.auto: xHCI Host Controller
    [   10.487099] xhci-hcd xhci-hcd.6.auto: new USB bus registered, assigned bus number 1
    [   10.495261] xhci-hcd xhci-hcd.6.auto: USB3 root hub has no ports
    [   10.501433] xhci-hcd xhci-hcd.6.auto: hcc params 0x0258fe6d hci version 0x110 quirks 0x0000000000010010
    [   10.511163] xhci-hcd xhci-hcd.6.auto: irq 549, io mem 0x31100000
    [   10.516508] cdns-csi2rx 30101000.csi-bridge: Probed CSI2RX with 4/4 lanes, 4 streams, external D-PHY
    [   10.518681] hub 1-0:1.0: USB hub found
    [   10.530394] hub 1-0:1.0: 1 port detected
    [   10.553105] mtdblock: MTD device 'ospi_nand.env.backup' is NAND, please consider using UBI block devices instead.
             Starting Save/Restore Sound Card State...
    [  OK  ] Finished Save/Restore Sound Card St[   10.664736] mtdblock: MTD device 'ospi_nand.u-boot' is NAND, please consider using UBI block devices instead.
    ate.
    [  OK  ] Reached target Sound Card.
    [  OK  ] Started Network Name Resolution[   10.750402] mtdblock: MTD device 'ospi_nand.tiboot3' is NAND, please consider using UBI block devices instead.
    .
    [  OK  ] Reached target Network.
    [  OK  ] Reached target Host and Network Nam[   10.786386] mtdblock: MTD device 'ospi_nand.rootfs' is NAND, please consider using UBI block devices instead.
    e Lookups.
             Starting Avahi mDNS/DNS-SD Stack...
             Starting Enable and configure wl18xx bluetooth stack...
             Starting containerd container runtime...
    [  OK  ] Started Netperf Benchmark Server.
    [  OK  ] Started NFS status monitor for NFSv2/3 locking..
             Starting Permit User Sessions...
    [FAILED] Failed to start Enable and�figure wl18xx bluetooth stack.
    See 'systemctl status bt-enable.service' for details.
    [  OK  ] Finished Permit User Sessions.
    [  OK  ] Started Avahi mDNS/DNS-SD Stack.
    [  OK  ] Started Getty on tty1.
    [  OK  ] Started Serial Getty on ttyS2.
    [  OK  ] Reached target Login Prompts.
             Starting Synchronize System and HW clocks...
             Starting Weston, a Wayland�ositor, as a system service...
    [   11.347964] audit: type=1334 audit(1651171937.308:6): prog-id=9 op=LOAD
    [   11.354682] audit: type=1334 audit(1651171937.312:7): prog-id=10 op=LOAD
             Starting User Database Manager...
    [   11.407108] mtdblock: MTD device 'ospi_nand.env' is NAND, please consider using UBI block devices instead.
    [   11.441314] mtdblock: MTD device 'ospi_nand.tispl' is NAND, please consider using UBI block devices instead.
    [  OK  ] Started User Database Manager.
    [  OK  ] Created slice Slice /system/systemd-fsck.
    [  OK  ] Created slice User Slice of UID 1000.
             Starting User Runtime Directory /run/user/1000...
    [  OK  ] Finished User Runtime Directory /run/user/1000.
    [  OK  ] Found device /dev/mmcblk0p1.
             Starting File System Check on /dev/mmcblk0p1...
             Starting User Manager for UID 1000...
    [  OK  ] Finished Synchronize System and HW [   12.067677] audit: type=1006 audit(1651171938.028:8): pid=667 uid=0 old-auid=4294967295 auid=1000 tty=(none) old-ses=4294967295 ses=1 res=1
    clocks.
    [   12.087089] audit: type=1300 audit(1651171938.028:8): arch=c00000b7 syscall=64 success=yes exit=4 a0=8 a1=fffffec18c38 a2=4 a3=ffff888cb020 items=0 ppid=1 pid=667 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm="(systemd)" exe="/lib/systemd/systemd" key=(null)
    [   12.113713] audit: type=1327 audit(1651171938.028:8): proctitle="(systemd)"
    [  OK  ] Finished File System Check on /dev/mmcblk0p1.
             Mounting /run/media/mmcblk0p1...
    [  OK  ] Mounted /run/media/mmcblk0p1.
    [  OK  ] Found device /dev/mmcblk1p1.
             Starting File System Check on /dev/mmcblk1p1...
    [  OK  ] Finished File System Check on /dev/mmcblk1p1.
             Mounting /run/media/boot-mmcblk1p1...
    [  OK  ] Mounted /run/media/boot-mmcblk1p1.
    [  OK  ] Started containerd container runtime.
    [  OK  ] Started User Manager for UID 1000.
    [  OK  ] Started Session c1 of User weston.
    [   13.049381] audit: type=1006 audit(1651171939.008:9): pid=597 uid=0 old-auid=4294967295 auid=1000 tty=tty7 old-ses=4294967295 ses=2 res=1
    [   13.061872] audit: type=1300 audit(1651171939.008:9): arch=c00000b7 syscall=64 success=yes exit=4 a0=8 a1=fffffec18c38 a2=4 a3=ffff888cb020 items=0 ppid=1 pid=597 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=tty7 ses=2 comm="(weston)" exe="/lib/systemd/systemd" key=(null)
    [   13.088152] audit: type=1327 audit(1651171939.008:9): proctitle="(weston)"
    [  OK  ] Started Weston, a Wayland �mpositor, as a system service.
             Starting EdgeAI OOB demos...
    
     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            
    
    Arago Project am62axx-evm -
    
    Arago 2023.04 am62axx-evm -
    
    am62axx-evm login: [   21.236639] audit: type=1701 audit(1651171947.196:10): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=876 comm="edgeai-gui-app" exe="/usr/bin/edgeai-gui-app" sig=6 res=1
    [   21.282566] audit: type=1334 audit(1651171947.240:11): prog-id=11 op=LOAD
    [   21.289433] audit: type=1334 audit(1651171947.248:12): prog-id=12 op=LOAD
    ro[   22.475132] audit: type=1334 audit(1651171948.436:13): prog-id=12 op=UNLOAD
    [   22.482191] audit: type=1334 audit(1651171948.436:14): prog-id=11 op=UNLOAD
    ot
    [   24.176425] audit: type=1006 audit(1651171950.136:15): pid=1018 uid=0 old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=3 res=1
    [   24.189100] audit: type=1300 audit(1651171950.136:15): arch=c00000b7 syscall=64 success=yes exit=1 a0=8 a1=fffffec18c38 a2=1 a3=0 items=0 ppid=1 pid=1018 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=3 comm="(systemd)" exe="/lib/systemd/systemd" key=(null)
    [   24.214732] audit: type=1327 audit(1651171950.136:15): proctitle="(systemd)"
    [   24.221941] audit: type=1334 audit(1651171950.164:16): prog-id=13 op=LOAD
    [   24.228890] audit: type=1300 audit(1651171950.164:16): arch=c00000b7 syscall=280 success=yes exit=8 a0=5 a1=ffffcee47ea0 a2=78 a3=0 items=0 ppid=1 pid=1018 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=3 comm="systemd" exe="/lib/systemd/systemd" key=(null)
    root@am62axx-evm:/opt/edgeai-gst-apps# /opt/vx_app_arm_remote_log.out 
    APP_LOG: ERROR: Unable to map memory @ 0xa1000000 of size 262144 bytes !!!
    APP_LOG: ERROR: Unable to map memory @ 0xa2000000 of size 3288576 bytes !!!
    
    
    ^C
    root@am62axx-evm:/opt/edgeai-gst-apps# 

    The file named /opt/vx_app_app_remote_log.out is not available instead we have the file /opt/vx_app_arm_remote_log.out

    Also observed the error while running the command /opt/vx_app_arm_remote_log.out

    root@am62axx-evm:/opt/edgeai-gst-apps# /opt/vx_app_arm_remote_log.out
    APP_LOG: ERROR: Unable to map memory @ 0xa1000000 of size 262144 bytes !!!
    APP_LOG: ERROR: Unable to map memory @ 0xa2000000 of size 3288576 bytes !!!

    Please have a look and let me know if any more changes are required.

  • Hi Ann, 

    The file named /opt/vx_app_app_remote_log.out is not available instead we have the file /opt/vx_app_arm_remote_log.out

    My apologies, I made a typo in the previous message. 

    So seems that OpenVX isn't able to start up. I also see references in the boot logs (TY for including these, very helpful) that mention that the remote cores had issues starting up, which is certainly due to this memory mapping issue. 

    I see that the some of the early log messages that show memory address ranges are different from the standard EVM boot logs, so at least part of this process has been detected. 

    Would you please share the modified python script and resulting linker files from the previous steps? It looks rasonable from what Linux prints, so I'd like to look more into what the remote cores are configured for

    BR,
    Reese

  • HI Reese,

    Would you please share the modified python script and resulting linker files from the previous steps?

    Sure. 

    Attaching the modified python script which has been renamed to a text file since I am facing an issue while uploading the Python file. 

    #!/usr/bin/env python3
    #
    # Copyright (c) 2018 Texas Instruments Incorporated
    #
    # All rights reserved not granted herein.
    #
    # Limited License.
    #
    # Texas Instruments Incorporated grants a world-wide, royalty-free, non-exclusive
    # license under copyrights and patents it now or hereafter owns or controls to make,
    # have made, use, import, offer to sell and sell ("Utilize") this software subject to the
    # terms herein.  With respect to the foregoing patent license, such license is granted
    # solely to the extent that any such patent is necessary to Utilize the software alone.
    # The patent license shall not apply to any combinations which include this software,
    # other than combinations with devices manufactured by or for TI ("TI Devices").
    # No hardware patent is licensed hereunder.
    #
    # Redistributions must preserve existing copyright notices and reproduce this license
    # (including the above copyright notice and the disclaimer and (if applicable) source
    # code license limitations below) in the documentation and/or other materials provided
    # with the distribution
    #
    # Redistribution and use in binary form, without modification, are permitted provided
    # that the following conditions are met:
    #
    #       No reverse engineering, decompilation, or disassembly of this software is
    # permitted with respect to any software provided in binary form.
    #
    #       any redistribution and use are licensed by TI for use only with TI Devices.
    #
    #       Nothing shall obligate TI to provide you with source code for the software
    # licensed and provided to you in object code.
    #
    # If software source code is provided to you, modification and redistribution of the
    # source code are permitted provided that the following conditions are met:
    #
    #       any redistribution and use of the source code, including any resulting derivative
    # works, are licensed by TI for use only with TI Devices.
    #
    #       any redistribution and use of any object code compiled from the source code
    # and any resulting derivative works, are licensed by TI for use only with TI Devices.
    #
    # Neither the name of Texas Instruments Incorporated nor the names of its suppliers
    #
    # may be used to endorse or promote products derived from this software without
    # specific prior written permission.
    #
    # DISCLAIMER.
    #
    # THIS SOFTWARE IS PROVIDED BY TI AND TI'S LICENSORS "AS IS" AND ANY EXPRESS
    # OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
    # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    # IN NO EVENT SHALL TI AND TI'S LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT,
    # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
    # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
    # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
    # OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
    # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
    # OF THE POSSIBILITY OF SUCH DAMAGE.
    #
    #
    
    #
    # This script is used to generate 'MEMORY' section for multiple CPUs
    # in different CPU specific linker command files.
    #
    # This helps to define the memory map in one file vs having to manually
    # keep the system memory map consistant across multiple CPUs
    # in different linker commnd files.
    #
    # Make sure PyTI_PSDK_RTOS module is installed before running this script.
    # See vision_apps/tools/PyTI_PSDK_RTOS/README.txt to install PyTI_PSDK_RTOS module.
    #
    # Edit this file to change the memory map
    #
    # Run this script by doing below,
    # ./gen_linker_mem_map.py
    #
    # This will generate linker command file at below folders
    # ./<cpu name>/linker_mem_map.cmd
    #
    # Here CPU name is mpu1, c7x_1, mcu1_0
    #
    #
    from ti_psdk_rtos_tools import *
    import math
    
    def roundUp(x,y):
            return int(math.ceil(x / y)) * y
    
    KB = 1024;
    MB = KB*KB;
    GB = KB*MB;
    
    #
    # Notes,
    # - recommend to keep all memory segment sizes in units of KB at least
    #
    
    #
    # On AM62A, there is a total of 2GB
    # but here a memory map of just 1GB is considered
    #
    # Linux Kernel address starts at 0x8000_0000 of size 512MB
    # RTOS carveout address starts at 0xA000_0000 of size 384MB
    # Linux user space address starts at 0xB800_0000 of size 128MB
    #
    
    ddr_mem_addr_1  = 0x99800000;
    ddr_mem_size_1  = 48*MB
    
    ddr_mem_addr_2 = 0x9E000000;
    ddr_mem_size_2 = 292*MB
    
    #
    # Other constant sizes
    #
    linux_ddr_ipc_size = 1*MB;
    linux_ddr_resource_table_size = 1*KB;
    linux_ddr_ipc_tracebuf_size = 1*MB - linux_ddr_resource_table_size;
    
    #
    # MSMC memory allocation for various CPUs
    #
    #dmsc_msmc_size   = 64*KB;
    #mpu1_msmc_size   = 128*KB;
    
    #
    # C7x L1, L2 memory allocation
    #
    # L2 main - 1MB SRAM
    # L2 aux  - 256KB SRAM
    c7x_1_l2_main_addr  = 0x7e000000;
    c7x_1_l2_main_size  = 1*MB;
    c7x_1_l2_aux_addr  = 0x7f000000;
    c7x_1_l2_aux_size  = 240*KB;
    c7x_1_l2_aux_as_l1_addr  = c7x_1_l2_aux_addr + c7x_1_l2_aux_size;
    c7x_1_l2_aux_as_l1_size  = 16*KB;
    
    #
    # DDR memory allocation for various CPUs
    #
    c7x_1_ddr_ipc_addr = ddr_mem_addr_1;
    c7x_1_ddr_resource_table_addr = c7x_1_ddr_ipc_addr + linux_ddr_ipc_size;
    c7x_1_ddr_ipc_tracebuf_addr = c7x_1_ddr_resource_table_addr + linux_ddr_resource_table_size
    c7x_1_ddr_boot_addr = c7x_1_ddr_ipc_tracebuf_addr + linux_ddr_ipc_tracebuf_size;
    c7x_1_ddr_boot_addr = roundUp(c7x_1_ddr_boot_addr, 1*MB);
    c7x_1_ddr_boot_size = 1*KB;
    c7x_1_ddr_vecs_addr = c7x_1_ddr_ipc_tracebuf_addr + 2*MB;
    c7x_1_ddr_vecs_addr = roundUp(c7x_1_ddr_vecs_addr, 2*MB);
    c7x_1_ddr_vecs_size = 16*KB;
    c7x_1_ddr_addr = c7x_1_ddr_vecs_addr + c7x_1_ddr_vecs_size;
    c7x_1_ddr_addr = roundUp(c7x_1_ddr_addr, 64*KB);
    c7x_1_ddr_size = 20*MB - (c7x_1_ddr_addr-c7x_1_ddr_ipc_addr);
    
    
    mcu_r5f_ddr_ipc_addr = c7x_1_ddr_addr + c7x_1_ddr_size ;
    mcu_r5f_ddr_resource_table_addr = mcu_r5f_ddr_ipc_addr + linux_ddr_ipc_size;
    mcu_r5f_ddr_ipc_tracebuf_addr = mcu_r5f_ddr_resource_table_addr + linux_ddr_resource_table_size
    mcu_r5f_ddr_addr = mcu_r5f_ddr_ipc_tracebuf_addr + linux_ddr_ipc_tracebuf_size;
    mcu_r5f_ddr_size = 12*MB - (mcu_r5f_ddr_addr-mcu_r5f_ddr_ipc_addr);
    
    dm_r5f_ddr_ipc_addr = mcu_r5f_ddr_addr + mcu_r5f_ddr_size;
    dm_r5f_ddr_resource_table_addr = dm_r5f_ddr_ipc_addr + linux_ddr_ipc_size;
    dm_r5f_ddr_ipc_tracebuf_addr = dm_r5f_ddr_resource_table_addr + linux_ddr_resource_table_size
    dm_r5f_ddr_addr = dm_r5f_ddr_ipc_tracebuf_addr + linux_ddr_ipc_tracebuf_size;
    dm_r5f_ddr_size = 15*MB - (dm_r5f_ddr_addr-dm_r5f_ddr_ipc_addr);
    
    tifs_lpm_ctx_addr = dm_r5f_ddr_addr + dm_r5f_ddr_size;
    tifs_lpm_ctx_size = 512*KB;
    atf_addr = tifs_lpm_ctx_addr + tifs_lpm_ctx_size;
    atf_size = 512*KB;
    optee_addr = atf_addr + atf_size;
    optee_size = 24*MB;
    
    #
    # DDR memory allocation for various shared memories
    #
    carveout_size = 0
    # Keeping 16MB additional for VRING start, so that IPC Shared memory starts
    # exactly at 0xAA000000 offset. This gap of 16MB is not currently used and
    # can be used for Linux..
    ipc_vring_mem_addr      = ddr_mem_addr_2;
    ipc_vring_mem_size      = 16*MB;
    carveout_size += ipc_vring_mem_size
    
    app_log_mem_addr        = ipc_vring_mem_addr + ipc_vring_mem_size;
    app_log_mem_size        = 256*KB;
    carveout_size += app_log_mem_size
    
    tiovx_obj_desc_mem_addr = app_log_mem_addr + app_log_mem_size;
    tiovx_obj_desc_mem_size = 16*MB - app_log_mem_size;
    carveout_size += tiovx_obj_desc_mem_size
    
    app_fileio_mem_addr        = tiovx_obj_desc_mem_addr + tiovx_obj_desc_mem_size;
    app_fileio_mem_size        = 4*MB;
    carveout_size += app_fileio_mem_size
    
    tiovx_log_rt_mem_addr   = app_fileio_mem_addr + app_fileio_mem_size;
    tiovx_log_rt_mem_size   = 16*MB - app_fileio_mem_size;
    carveout_size += tiovx_log_rt_mem_size
    
    # Shared memory for Buffers/ION allocator
    ddr_shared_mem_addr     = tiovx_log_rt_mem_addr + tiovx_log_rt_mem_size;
    ddr_shared_mem_size     = 64*MB;
    carveout_size += ddr_shared_mem_size
    
    mcu_r5f_ddr_local_heap_addr  = ddr_shared_mem_addr + ddr_shared_mem_size;
    mcu_r5f_ddr_local_heap_size  = 16*MB;
    carveout_size += mcu_r5f_ddr_local_heap_size
    
    dm_r5f_ddr_local_heap_addr  = mcu_r5f_ddr_local_heap_addr + mcu_r5f_ddr_local_heap_size;
    dm_r5f_ddr_local_heap_size  = 16*MB;
    carveout_size += dm_r5f_ddr_local_heap_size
    
    c7x_1_ddr_local_heap_non_cacheable_addr  = dm_r5f_ddr_local_heap_addr + dm_r5f_ddr_local_heap_size;
    c7x_1_ddr_local_heap_non_cacheable_size  = 16*MB;
    carveout_size += c7x_1_ddr_local_heap_non_cacheable_size
    
    c7x_1_ddr_scratch_non_cacheable_addr     = c7x_1_ddr_local_heap_non_cacheable_addr + c7x_1_ddr_local_heap_non_cacheable_size;
    c7x_1_ddr_scratch_non_cacheable_size     = 16*MB;
    carveout_size += c7x_1_ddr_scratch_non_cacheable_size
    
    c7x_1_ddr_local_heap_addr  = c7x_1_ddr_scratch_non_cacheable_addr + c7x_1_ddr_scratch_non_cacheable_size;
    c7x_1_ddr_local_heap_size  = 64*MB;
    carveout_size += c7x_1_ddr_local_heap_size
    
    c7x_1_ddr_scratch_addr     = c7x_1_ddr_local_heap_addr + c7x_1_ddr_local_heap_size;
    c7x_1_ddr_scratch_size     = 48*MB;
    carveout_size += c7x_1_ddr_scratch_size
    
    assert carveout_size <= ddr_mem_size_2
    
    #
    # Create memory section based on addr and size defined above, including
    # any CPU specific internal memories
    #
    
    # r5f local memory sections
    mcu_r5f_tcma_vecs  = MemSection("R5F_TCMA_VECS" , "X"   , 0x00000000, (KB >> 4));
    mcu_r5f_tcma       = MemSection("R5F_TCMA" , "X"   , 0x00000040, (32*KB) - (KB >> 4));
    
    r5f_tcmb0      = MemSection("R5F_TCMB0", "RWIX", 0x41010000, 32*KB);
    mcu_r5f_tcmb0_vecs   = MemSection("R5F_TCMB0_VECS", "RWIX", 0x41010000, (KB >> 4));
    mcu_r5f_tcmb0        = MemSection("R5F_TCMB0", "RWIX", 0x41010040, (32*KB) - (KB >> 4));
    
    # C7x L1/L2/L3 memory sections
    c7x_1_l3   = MemSection("L2RAM_C7x_1_MAIN", "RWIX", c7x_1_l2_main_addr  , c7x_1_l2_main_size  , "L3 for C7x_1");
    c7x_1_l2   = MemSection("L2RAM_C7x_1_AUX", "RWIX", c7x_1_l2_aux_addr  , c7x_1_l2_aux_size  , "L2 for C7x_1");
    c7x_1_l1   = MemSection("L2RAM_C7x_1_AUX_AS_L1", "RWIX", c7x_1_l2_aux_as_l1_addr  , c7x_1_l2_aux_as_l1_size  , "L1 for C7x_1");
    
    # CPU code/data memory sections in DDR
    mcu_r5f_ddr_ipc             = MemSection("DDR_MCU_R5F_IPC", "RWIX", mcu_r5f_ddr_ipc_addr, linux_ddr_ipc_size, "DDR for MCU R5F for Linux IPC");
    mcu_r5f_ddr_ipc.setDtsName("edgeai_mcu_r5fss0_core0_dma_memory_region", "edgeai-dm-r5f-dma-memory");
    mcu_r5f_ddr_resource_table  = MemSection("DDR_MCU_R5F_RESOURCE_TABLE", "RWIX", mcu_r5f_ddr_resource_table_addr, linux_ddr_resource_table_size, "DDR for MCU R5F for Linux resource table");
    mcu_r5f_ddr_ipc_tracebuf    = MemSection("DDR_MCU_R5F_IPC_TRACEBUF", "RWIX", mcu_r5f_ddr_ipc_tracebuf_addr, linux_ddr_ipc_tracebuf_size, "DDR for MCU R5F for Linux IPC tracebuffer");
    mcu_r5f_ddr                 = MemSection("DDR_MCU_R5F", "RWIX", mcu_r5f_ddr_addr, mcu_r5f_ddr_size, "DDR for MCU R5F for code/data");
    mcu_r5f_ddr_local_heap      = MemSection("DDR_MCU_R5F_LOCAL_HEAP", "RWIX", mcu_r5f_ddr_local_heap_addr, mcu_r5f_ddr_local_heap_size, "DDR for MCU R5F for local heap");
    mcu_r5f_ddr_total           = MemSection("DDR_MCU_R5F_DTS", "", 0, 0, "DDR for MCU R5F for all sections, used for reserving memory in DTS file");
    mcu_r5f_ddr_total.concat(mcu_r5f_ddr_resource_table);
    mcu_r5f_ddr_total.concat(mcu_r5f_ddr_ipc_tracebuf);
    mcu_r5f_ddr_total.concat(mcu_r5f_ddr);
    mcu_r5f_ddr_total.setDtsName("edgeai_mcu_r5fss0_core0_memory_region", "edgeai-r5f-memory");
    
    dm_r5f_ddr_ipc             = MemSection("DDR_DM_R5F_IPC", "RWIX", dm_r5f_ddr_ipc_addr, linux_ddr_ipc_size, "DDR for DM R5F for Linux IPC");
    dm_r5f_ddr_ipc.setDtsName("edgeai_dm_r5fss0_core0_dma_memory_region", "edgeai-dm-r5f-dma-memory");
    dm_r5f_ddr_resource_table  = MemSection("DDR_DM_R5F_RESOURCE_TABLE", "RWIX", dm_r5f_ddr_resource_table_addr, linux_ddr_resource_table_size, "DDR for DM R5F for Linux resource table");
    dm_r5f_ddr_ipc_tracebuf    = MemSection("DDR_DM_R5F_IPC_TRACEBUF", "RWIX", dm_r5f_ddr_ipc_tracebuf_addr, linux_ddr_ipc_tracebuf_size, "DDR for DM R5F for Linux IPC tracebuffer");
    dm_r5f_ddr                 = MemSection("DDR_DM_R5F", "RWIX", dm_r5f_ddr_addr, dm_r5f_ddr_size, "DDR for DM R5F for code/data");
    dm_r5f_ddr_local_heap      = MemSection("DDR_DM_R5F_LOCAL_HEAP", "RWIX", dm_r5f_ddr_local_heap_addr, dm_r5f_ddr_local_heap_size, "DDR for DM R5F for local heap");
    dm_r5f_ddr_total           = MemSection("DDR_DM_R5F_DTS", "", 0, 0, "DDR for DM R5F for all sections, used for reserving memory in DTS file");
    dm_r5f_ddr_total.concat(dm_r5f_ddr_resource_table);
    dm_r5f_ddr_total.concat(dm_r5f_ddr_ipc_tracebuf);
    dm_r5f_ddr_total.concat(dm_r5f_ddr);
    dm_r5f_ddr_total.setDtsName("edgeai_dm_r5fss0_core0_memory_region", "edgeai-r5f-memory");
    
    c7x_1_ddr_ipc             = MemSection("DDR_C7x_1_IPC", "RWIX", c7x_1_ddr_ipc_addr, linux_ddr_ipc_size, "DDR for C7x_1 for Linux IPC");
    c7x_1_ddr_ipc.setDtsName("edgeai_c71_0_dma_memory_region", "edgeai-c71-dma-memory");
    c7x_1_ddr_resource_table  = MemSection("DDR_C7x_1_RESOURCE_TABLE", "RWIX", c7x_1_ddr_resource_table_addr, linux_ddr_resource_table_size, "DDR for C7x_1 for Linux resource table");
    c7x_1_ddr_ipc_tracebuf    = MemSection("DDR_C7X_1_IPC_TRACEBUF", "RWIX", c7x_1_ddr_ipc_tracebuf_addr, linux_ddr_ipc_tracebuf_size, "DDR for C7X_1 for Linux IPC tracebuffer");
    c7x_1_ddr_boot            = MemSection("DDR_C7x_1_BOOT", "RWIX", c7x_1_ddr_boot_addr, c7x_1_ddr_boot_size, "DDR for C7x_1 for boot section");
    c7x_1_ddr_vecs            = MemSection("DDR_C7x_1_VECS", "RWIX", c7x_1_ddr_vecs_addr, c7x_1_ddr_vecs_size, "DDR for C7x_1 for vecs section");
    c7x_1_ddr                 = MemSection("DDR_C7x_1", "RWIX", c7x_1_ddr_addr, c7x_1_ddr_size, "DDR for C7x_1 for code/data");
    c7x_1_ddr_local_heap_non_cacheable      = MemSection("DDR_C7X_1_LOCAL_HEAP_NON_CACHEABLE", "RWIX", c7x_1_ddr_local_heap_non_cacheable_addr, c7x_1_ddr_local_heap_non_cacheable_size, "DDR for c7x_1 for non cacheable local heap");
    c7x_1_ddr_scratch_non_cacheable         = MemSection("DDR_C7X_1_SCRATCH_NON_CACHEABLE", "RWIX", c7x_1_ddr_scratch_non_cacheable_addr, c7x_1_ddr_scratch_non_cacheable_size, "DDR for c7x_1 for non cacheable scratch Memory");
    c7x_1_ddr_local_heap      = MemSection("DDR_C7X_1_LOCAL_HEAP", "RWIX", c7x_1_ddr_local_heap_addr, c7x_1_ddr_local_heap_size, "DDR for c7x_1 for local heap");
    c7x_1_ddr_scratch         = MemSection("DDR_C7X_1_SCRATCH", "RWIX", c7x_1_ddr_scratch_addr, c7x_1_ddr_scratch_size, "DDR for c7x_1 for Scratch Memory");
    c7x_1_ddr_total           = MemSection("DDR_C7x_1_DTS", "", 0, 0, "DDR for C7x_1 for all sections, used for reserving memory in DTS file");
    c7x_1_ddr_total.concat(c7x_1_ddr_resource_table);
    c7x_1_ddr_total.concat(c7x_1_ddr_ipc_tracebuf);
    c7x_1_ddr_total.concat(c7x_1_ddr_boot);
    c7x_1_ddr_total.concat(c7x_1_ddr_vecs);
    c7x_1_ddr_total.concat(c7x_1_ddr);
    c7x_1_ddr_total.setDtsName("edgeai_c71_0_memory_region", "edgeai-c71-memory");
    
    tifs_lpm_mem       = MemSection("TIFS_LPM_CTX"        , "", tifs_lpm_ctx_addr       , tifs_lpm_ctx_size       , "TIFS LPM context save memory");
    atf_mem            = MemSection("ATF_MEM"        , "", atf_addr       , atf_size       , "ARM Trusted Firmware");
    optee_mem          = MemSection("OPTEE_MEM"        , "", optee_addr       , optee_size       , "Open Portable Trusted Execution Environment");
    
    # Shared memory memory sections in DDR
    app_log_mem            = MemSection("APP_LOG_MEM"        , "", app_log_mem_addr       , app_log_mem_size       , "Memory for remote core logging");
    tiovx_obj_desc_mem     = MemSection("TIOVX_OBJ_DESC_MEM" , "", tiovx_obj_desc_mem_addr, tiovx_obj_desc_mem_size, "Memory for TI OpenVX shared memory. MUST be non-cached or cache-coherent");
    app_fileio_mem        = MemSection("APP_FILEIO_MEM"        , "", app_fileio_mem_addr       , app_fileio_mem_size       , "Memory for remote core file operations");
    tiovx_log_rt_mem     = MemSection("TIOVX_LOG_RT_MEM" , "", tiovx_log_rt_mem_addr, tiovx_log_rt_mem_size, "Memory for TI OpenVX shared memory for Run-time logging. MUST be non-cached or cache-coherent");
    
    ipc_vring_mem      = MemSection("IPC_VRING_MEM"     , "", ipc_vring_mem_addr     , ipc_vring_mem_size     , "Memory for IPC Vring's. MUST be non-cached or cache-coherent");
    ipc_vring_mem.setDtsName("edgeai_rtos_ipc_memory_region", "edgeai-rtos-ipc-memory-region");
    ipc_vring_mem.setAlignment(True)
    ipc_vring_mem.setPrintCompatibility(False)
    ipc_vring_mem.setOriginTag(False);
    
    edgeai_ddr_total  = MemSection("DDR_EDGEAI_DTS", "", 0                      , 0                      , "DDR for EdgeAI for all sections, used for reserving memory in DTS file");
    edgeai_ddr_total.concat(app_log_mem);
    edgeai_ddr_total.concat(tiovx_obj_desc_mem);
    edgeai_ddr_total.concat(app_fileio_mem);
    edgeai_ddr_total.concat(tiovx_log_rt_mem);
    edgeai_ddr_total.setDtsName("edgeai_memory_region", "edgeai-dma-memory");
    
    # this region should NOT have the "no-map" flag since we want ION to map this memory and do cache ops on it as needed
    ddr_shared_mem     = MemSection("DDR_SHARED_MEM"    , "", ddr_shared_mem_addr    , ddr_shared_mem_size    , "Memory for shared memory buffers in DDR");
    ddr_shared_mem.setDtsName("edgeai_shared_region", "edgeai_shared-memories");
    ddr_shared_mem.setCompatibility("dma-heap-carveout");
    ddr_shared_mem.setNoMap(False);
    ddr_shared_mem.setOriginTag(False);
    
    edgeai_core_heaps = MemSection("DDR_EDGEAI_CORE_HEAPS_DTS", "", 0, 0, "EdgeAI Core Heaps in 32bit address range of DDR");
    edgeai_core_heaps.concat(mcu_r5f_ddr_local_heap);
    edgeai_core_heaps.concat(dm_r5f_ddr_local_heap);
    edgeai_core_heaps.concat(c7x_1_ddr_local_heap);
    edgeai_core_heaps.concat(c7x_1_ddr_scratch);
    edgeai_core_heaps.setDtsName("edgeai_core_heaps", "edgeai-core-heap-memory");
    
    #
    # Create CPU specific memory maps using memory sections created above
    #
    
    mcu_r5f_mmap = MemoryMap("mcu_r5f");
    mcu_r5f_mmap.addMemSection( mcu_r5f_tcma_vecs );
    mcu_r5f_mmap.addMemSection( mcu_r5f_tcma      );
    mcu_r5f_mmap.addMemSection( mcu_r5f_tcmb0_vecs   );
    mcu_r5f_mmap.addMemSection( mcu_r5f_tcmb0        );
    mcu_r5f_mmap.addMemSection( mcu_r5f_ddr_ipc       );
    mcu_r5f_mmap.addMemSection( mcu_r5f_ddr_resource_table  );
    mcu_r5f_mmap.addMemSection( mcu_r5f_ddr_ipc_tracebuf  );
    mcu_r5f_mmap.addMemSection( mcu_r5f_ddr           );
    mcu_r5f_mmap.addMemSection( app_log_mem          );
    mcu_r5f_mmap.addMemSection( tiovx_obj_desc_mem   );
    mcu_r5f_mmap.addMemSection( app_fileio_mem          );
    mcu_r5f_mmap.addMemSection( ipc_vring_mem        );
    mcu_r5f_mmap.addMemSection( mcu_r5f_ddr_local_heap  );
    mcu_r5f_mmap.addMemSection( ddr_shared_mem       );
    mcu_r5f_mmap.checkOverlap();
    
    dm_r5f_mmap = MemoryMap("dm_r5f");
    dm_r5f_mmap.addMemSection( mcu_r5f_tcma_vecs );
    dm_r5f_mmap.addMemSection( mcu_r5f_tcma      );
    dm_r5f_mmap.addMemSection( mcu_r5f_tcmb0_vecs   );
    dm_r5f_mmap.addMemSection( mcu_r5f_tcmb0        );
    dm_r5f_mmap.addMemSection( dm_r5f_ddr_ipc       );
    dm_r5f_mmap.addMemSection( dm_r5f_ddr_resource_table  );
    dm_r5f_mmap.addMemSection( dm_r5f_ddr_ipc_tracebuf  );
    dm_r5f_mmap.addMemSection( dm_r5f_ddr           );
    dm_r5f_mmap.addMemSection( app_log_mem          );
    dm_r5f_mmap.addMemSection( tiovx_obj_desc_mem   );
    dm_r5f_mmap.addMemSection( app_fileio_mem          );
    dm_r5f_mmap.addMemSection( ipc_vring_mem        );
    dm_r5f_mmap.addMemSection( dm_r5f_ddr_local_heap  );
    dm_r5f_mmap.addMemSection( ddr_shared_mem       );
    dm_r5f_mmap.checkOverlap();
    
    c7x_1_mmap = MemoryMap("c7x_1");
    c7x_1_mmap.addMemSection( c7x_1_l3           );
    c7x_1_mmap.addMemSection( c7x_1_l2           );
    c7x_1_mmap.addMemSection( c7x_1_l1           );
    c7x_1_mmap.addMemSection( c7x_1_ddr_ipc      );
    c7x_1_mmap.addMemSection( c7x_1_ddr_resource_table      );
    c7x_1_mmap.addMemSection( c7x_1_ddr_ipc_tracebuf        );
    c7x_1_mmap.addMemSection( c7x_1_ddr_boot     );
    c7x_1_mmap.addMemSection( c7x_1_ddr_vecs     );
    c7x_1_mmap.addMemSection( c7x_1_ddr          );
    c7x_1_mmap.addMemSection( app_log_mem        );
    c7x_1_mmap.addMemSection( tiovx_obj_desc_mem );
    c7x_1_mmap.addMemSection( app_fileio_mem        );
    c7x_1_mmap.addMemSection( ipc_vring_mem      );
    c7x_1_mmap.addMemSection( c7x_1_ddr_local_heap_non_cacheable  );
    c7x_1_mmap.addMemSection( c7x_1_ddr_scratch_non_cacheable  );
    c7x_1_mmap.addMemSection( c7x_1_ddr_local_heap  );
    c7x_1_mmap.addMemSection( c7x_1_ddr_scratch  );
    c7x_1_mmap.addMemSection( ddr_shared_mem     );
    c7x_1_mmap.checkOverlap();
    
    html_mmap = MemoryMap("System Memory Map for Linux+RTOS mode");
    
    html_mmap.addMemSection( c7x_1_l3           );
    html_mmap.addMemSection( c7x_1_l2           );
    html_mmap.addMemSection( c7x_1_l1           );
    html_mmap.addMemSection( mcu_r5f_ddr_ipc     );
    html_mmap.addMemSection( mcu_r5f_ddr_resource_table      );
    html_mmap.addMemSection( mcu_r5f_ddr_ipc_tracebuf      );
    html_mmap.addMemSection( mcu_r5f_ddr         );
    html_mmap.addMemSection( mcu_r5f_ddr_local_heap );
    html_mmap.addMemSection( dm_r5f_ddr_ipc     );
    html_mmap.addMemSection( dm_r5f_ddr_resource_table      );
    html_mmap.addMemSection( dm_r5f_ddr_ipc_tracebuf      );
    html_mmap.addMemSection( dm_r5f_ddr         );
    html_mmap.addMemSection( dm_r5f_ddr_local_heap );
    html_mmap.addMemSection( c7x_1_ddr_ipc     );
    html_mmap.addMemSection( c7x_1_ddr_resource_table     );
    html_mmap.addMemSection( c7x_1_ddr_ipc_tracebuf     );
    html_mmap.addMemSection( c7x_1_ddr_boot    );
    html_mmap.addMemSection( c7x_1_ddr_vecs    );
    html_mmap.addMemSection( c7x_1_ddr_local_heap_non_cacheable );
    html_mmap.addMemSection( c7x_1_ddr_scratch_non_cacheable );
    html_mmap.addMemSection( c7x_1_ddr_local_heap         );
    html_mmap.addMemSection( c7x_1_ddr_scratch );
    html_mmap.addMemSection( c7x_1_ddr         );
    html_mmap.addMemSection( tifs_lpm_mem      );
    html_mmap.addMemSection( atf_mem      );
    html_mmap.addMemSection( optee_mem      );
    html_mmap.addMemSection( app_log_mem        );
    html_mmap.addMemSection( tiovx_obj_desc_mem );
    html_mmap.addMemSection( app_fileio_mem        );
    html_mmap.addMemSection( ipc_vring_mem      );
    html_mmap.addMemSection( ddr_shared_mem     );
    html_mmap.addMemSection( tiovx_log_rt_mem );
    html_mmap.checkOverlap();
    
    c_header_mmap = MemoryMap("Memory Map for C header file");
    c_header_mmap.addMemSection( c7x_1_l3           );
    c_header_mmap.addMemSection( c7x_1_l2           );
    c_header_mmap.addMemSection( c7x_1_l1           );
    c_header_mmap.addMemSection( mcu_r5f_ddr_ipc     );
    c_header_mmap.addMemSection( dm_r5f_ddr_ipc     );
    c_header_mmap.addMemSection( c7x_1_ddr_ipc     );
    c_header_mmap.addMemSection( mcu_r5f_ddr_total     );
    c_header_mmap.addMemSection( dm_r5f_ddr_total     );
    c_header_mmap.addMemSection( c7x_1_ddr_total     );
    
    c_header_mmap.addMemSection( mcu_r5f_ddr_local_heap);
    c_header_mmap.addMemSection( dm_r5f_ddr_local_heap);
    c_header_mmap.addMemSection( c7x_1_ddr_local_heap_non_cacheable);
    c_header_mmap.addMemSection( c7x_1_ddr_scratch_non_cacheable);
    c_header_mmap.addMemSection( c7x_1_ddr_local_heap);
    c_header_mmap.addMemSection( c7x_1_ddr_scratch);
    c_header_mmap.addMemSection( tiovx_log_rt_mem );
    c_header_mmap.addMemSection( app_log_mem        );
    c_header_mmap.addMemSection( tiovx_obj_desc_mem );
    c_header_mmap.addMemSection( app_fileio_mem        );
    c_header_mmap.addMemSection( ipc_vring_mem      );
    c_header_mmap.addMemSection( ddr_shared_mem     );
    c_header_mmap.checkOverlap();
    
    dts_mmap = MemoryMap("Memory Map for Linux kernel dts/dtsi file");
    dts_mmap.addMemSection( mcu_r5f_ddr_ipc     );
    dts_mmap.addMemSection( mcu_r5f_ddr_total   );
    dts_mmap.addMemSection( dm_r5f_ddr_ipc     );
    dts_mmap.addMemSection( dm_r5f_ddr_total   );
    dts_mmap.addMemSection( c7x_1_ddr_ipc      );
    dts_mmap.addMemSection( c7x_1_ddr_total    );
    dts_mmap.addMemSection( edgeai_ddr_total );
    dts_mmap.addMemSection( ipc_vring_mem      );
    dts_mmap.addMemSection( ddr_shared_mem     );
    dts_mmap.addMemSection( edgeai_core_heaps );
    dts_mmap.checkOverlap();
    
    #
    # Generate linker command files containing "MEMORY" definitions
    #
    LinkerCmdFile(c7x_1_mmap , "./c7x_1/linker_mem_map.cmd" ).export();
    LinkerCmdFile(dm_r5f_mmap, "./mcu1_0/linker_mem_map.cmd").export();
    
    HtmlMmapTable(html_mmap, "./system_memory_map.html").export();
    
    CHeaderFile(c_header_mmap, 0,0, "./app_mem_map.h").export();
    
    DtsFile(dts_mmap, "./k3-am62a7-sk.dts").export();
    

    Also changed the name of the generated linker files as shown below

    The generated linker file for the c7x core : 

    /* 
     * This file is AUTO GENERATED by PyTI_PSDK_RTOS tool. 
     * It is NOT recommended to manually edit this file 
     */ 
    /* 
     * 
     * Copyright (c) 2018 Texas Instruments Incorporated 
     * 
     * All rights reserved not granted herein. 
     * 
     * Limited License. 
     * 
     * Texas Instruments Incorporated grants a world-wide, royalty-free, non-exclusive 
     * license under copyrights and patents it now or hereafter owns or controls to make, 
     * have made, use, import, offer to sell and sell ("Utilize") this software subject to the 
     * terms herein.  With respect to the foregoing patent license, such license is granted 
     * solely to the extent that any such patent is necessary to Utilize the software alone. 
     * The patent license shall not apply to any combinations which include this software, 
     * other than combinations with devices manufactured by or for TI ("TI Devices"). 
     * No hardware patent is licensed hereunder. 
     * 
     * Redistributions must preserve existing copyright notices and reproduce this license 
     * (including the above copyright notice and the disclaimer and (if applicable) source 
     * code license limitations below) in the documentation and/or other materials provided 
     * with the distribution 
     * 
     * Redistribution and use in binary form, without modification, are permitted provided 
     * that the following conditions are met: 
     * 
     *        No reverse engineering, decompilation, or disassembly of this software is 
     * permitted with respect to any software provided in binary form. 
     * 
     *        any redistribution and use are licensed by TI for use only with TI Devices. 
     * 
     *        Nothing shall obligate TI to provide you with source code for the software 
     * licensed and provided to you in object code. 
     * 
     * If software source code is provided to you, modification and redistribution of the 
     * source code are permitted provided that the following conditions are met: 
     * 
     *        any redistribution and use of the source code, including any resulting derivative 
     * works, are licensed by TI for use only with TI Devices. 
     * 
     *        any redistribution and use of any object code compiled from the source code 
     * and any resulting derivative works, are licensed by TI for use only with TI Devices. 
     * 
     * Neither the name of Texas Instruments Incorporated nor the names of its suppliers 
     * 
     * may be used to endorse or promote products derived from this software without 
     * specific prior written permission. 
     * 
     * DISCLAIMER. 
     * 
     * THIS SOFTWARE IS PROVIDED BY TI AND TI'S LICENSORS "AS IS" AND ANY EXPRESS 
     * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 
     * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
     * IN NO EVENT SHALL TI AND TI'S LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT, 
     * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
     * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
     * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
     * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 
     * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
     * OF THE POSSIBILITY OF SUCH DAMAGE. 
     * 
     */ 
    
    MEMORY
    {
        /* L3 for C7x_1 [ size 1024.00 KB ] */
        L2RAM_C7x_1_MAIN         ( RWIX ) : ORIGIN = 0x7E000000 , LENGTH = 0x00100000
        /* L2 for C7x_1 [ size 240.00 KB ] */
        L2RAM_C7x_1_AUX          ( RWIX ) : ORIGIN = 0x7F000000 , LENGTH = 0x0003C000
        /* L1 for C7x_1 [ size 16.00 KB ] */
        L2RAM_C7x_1_AUX_AS_L1    ( RWIX ) : ORIGIN = 0x7F03C000 , LENGTH = 0x00004000
        /* DDR for C7x_1 for Linux IPC [ size 1024.00 KB ] */
        DDR_C7x_1_IPC            ( RWIX ) : ORIGIN = 0x99800000 , LENGTH = 0x00100000
        /* DDR for C7x_1 for Linux resource table [ size 1024 B ] */
        DDR_C7x_1_RESOURCE_TABLE ( RWIX ) : ORIGIN = 0x99900000 , LENGTH = 0x00000400
        /* DDR for C7X_1 for Linux IPC tracebuffer [ size 1023.00 KB ] */
        DDR_C7X_1_IPC_TRACEBUF   ( RWIX ) : ORIGIN = 0x99900400 , LENGTH = 0x000FFC00
        /* DDR for C7x_1 for boot section [ size 1024 B ] */
        DDR_C7x_1_BOOT           ( RWIX ) : ORIGIN = 0x99A00000 , LENGTH = 0x00000400
        /* DDR for C7x_1 for vecs section [ size 16.00 KB ] */
        DDR_C7x_1_VECS           ( RWIX ) : ORIGIN = 0x99C00000 , LENGTH = 0x00004000
        /* DDR for C7x_1 for code/data [ size 15.94 MB ] */
        DDR_C7x_1                ( RWIX ) : ORIGIN = 0x99C10000 , LENGTH = 0x00FF0000
        /* Memory for IPC Vring's. MUST be non-cached or cache-coherent [ size 16.00 MB ] */
        IPC_VRING_MEM                     : ORIGIN = 0x9E000000 , LENGTH = 0x01000000
        /* Memory for remote core logging [ size 256.00 KB ] */
        APP_LOG_MEM                       : ORIGIN = 0x9F000000 , LENGTH = 0x00040000
        /* Memory for TI OpenVX shared memory. MUST be non-cached or cache-coherent [ size 15.75 MB ] */
        TIOVX_OBJ_DESC_MEM                : ORIGIN = 0x9F040000 , LENGTH = 0x00FC0000
        /* Memory for remote core file operations [ size  4.00 MB ] */
        APP_FILEIO_MEM                    : ORIGIN = 0xA0000000 , LENGTH = 0x00400000
        /* Memory for shared memory buffers in DDR [ size 64.00 MB ] */
        DDR_SHARED_MEM                    : ORIGIN = 0xA1000000 , LENGTH = 0x04000000
        /* DDR for c7x_1 for non cacheable local heap [ size 16.00 MB ] */
        DDR_C7X_1_LOCAL_HEAP_NON_CACHEABLE ( RWIX ) : ORIGIN = 0xA7000000 , LENGTH = 0x01000000
        /* DDR for c7x_1 for non cacheable scratch Memory [ size 16.00 MB ] */
        DDR_C7X_1_SCRATCH_NON_CACHEABLE ( RWIX ) : ORIGIN = 0xA8000000 , LENGTH = 0x01000000
        /* DDR for c7x_1 for local heap [ size 64.00 MB ] */
        DDR_C7X_1_LOCAL_HEAP     ( RWIX ) : ORIGIN = 0xA9000000 , LENGTH = 0x04000000
        /* DDR for c7x_1 for Scratch Memory [ size 48.00 MB ] */
        DDR_C7X_1_SCRATCH        ( RWIX ) : ORIGIN = 0xAD000000 , LENGTH = 0x03000000
    }
    

    Linker file for the mcu core: 

    /* 
     * This file is AUTO GENERATED by PyTI_PSDK_RTOS tool. 
     * It is NOT recommended to manually edit this file 
     */ 
    /* 
     * 
     * Copyright (c) 2018 Texas Instruments Incorporated 
     * 
     * All rights reserved not granted herein. 
     * 
     * Limited License. 
     * 
     * Texas Instruments Incorporated grants a world-wide, royalty-free, non-exclusive 
     * license under copyrights and patents it now or hereafter owns or controls to make, 
     * have made, use, import, offer to sell and sell ("Utilize") this software subject to the 
     * terms herein.  With respect to the foregoing patent license, such license is granted 
     * solely to the extent that any such patent is necessary to Utilize the software alone. 
     * The patent license shall not apply to any combinations which include this software, 
     * other than combinations with devices manufactured by or for TI ("TI Devices"). 
     * No hardware patent is licensed hereunder. 
     * 
     * Redistributions must preserve existing copyright notices and reproduce this license 
     * (including the above copyright notice and the disclaimer and (if applicable) source 
     * code license limitations below) in the documentation and/or other materials provided 
     * with the distribution 
     * 
     * Redistribution and use in binary form, without modification, are permitted provided 
     * that the following conditions are met: 
     * 
     *        No reverse engineering, decompilation, or disassembly of this software is 
     * permitted with respect to any software provided in binary form. 
     * 
     *        any redistribution and use are licensed by TI for use only with TI Devices. 
     * 
     *        Nothing shall obligate TI to provide you with source code for the software 
     * licensed and provided to you in object code. 
     * 
     * If software source code is provided to you, modification and redistribution of the 
     * source code are permitted provided that the following conditions are met: 
     * 
     *        any redistribution and use of the source code, including any resulting derivative 
     * works, are licensed by TI for use only with TI Devices. 
     * 
     *        any redistribution and use of any object code compiled from the source code 
     * and any resulting derivative works, are licensed by TI for use only with TI Devices. 
     * 
     * Neither the name of Texas Instruments Incorporated nor the names of its suppliers 
     * 
     * may be used to endorse or promote products derived from this software without 
     * specific prior written permission. 
     * 
     * DISCLAIMER. 
     * 
     * THIS SOFTWARE IS PROVIDED BY TI AND TI'S LICENSORS "AS IS" AND ANY EXPRESS 
     * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 
     * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
     * IN NO EVENT SHALL TI AND TI'S LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT, 
     * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
     * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
     * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
     * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 
     * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
     * OF THE POSSIBILITY OF SUCH DAMAGE. 
     * 
     */ 
    
    MEMORY
    {
        /* R5F_TCMA_VECS [ size 64 B ] */
        R5F_TCMA_VECS            (    X ) : ORIGIN = 0x00000000 , LENGTH = 0x00000040
        /* R5F_TCMA [ size 31.94 KB ] */
        R5F_TCMA                 (    X ) : ORIGIN = 0x00000040 , LENGTH = 0x00007FC0
        /* R5F_TCMB0_VECS [ size 64 B ] */
        R5F_TCMB0_VECS           ( RWIX ) : ORIGIN = 0x41010000 , LENGTH = 0x00000040
        /* R5F_TCMB0 [ size 31.94 KB ] */
        R5F_TCMB0                ( RWIX ) : ORIGIN = 0x41010040 , LENGTH = 0x00007FC0
        /* DDR for DM R5F for Linux IPC [ size 1024.00 KB ] */
        DDR_DM_R5F_IPC           ( RWIX ) : ORIGIN = 0x9B800000 , LENGTH = 0x00100000
        /* DDR for DM R5F for Linux resource table [ size 1024 B ] */
        DDR_DM_R5F_RESOURCE_TABLE ( RWIX ) : ORIGIN = 0x9B900000 , LENGTH = 0x00000400
        /* DDR for DM R5F for Linux IPC tracebuffer [ size 1023.00 KB ] */
        DDR_DM_R5F_IPC_TRACEBUF  ( RWIX ) : ORIGIN = 0x9B900400 , LENGTH = 0x000FFC00
        /* DDR for DM R5F for code/data [ size 13.00 MB ] */
        DDR_DM_R5F               ( RWIX ) : ORIGIN = 0x9BA00000 , LENGTH = 0x00D00000
        /* Memory for IPC Vring's. MUST be non-cached or cache-coherent [ size 16.00 MB ] */
        IPC_VRING_MEM                     : ORIGIN = 0x9E000000 , LENGTH = 0x01000000
        /* Memory for remote core logging [ size 256.00 KB ] */
        APP_LOG_MEM                       : ORIGIN = 0x9F000000 , LENGTH = 0x00040000
        /* Memory for TI OpenVX shared memory. MUST be non-cached or cache-coherent [ size 15.75 MB ] */
        TIOVX_OBJ_DESC_MEM                : ORIGIN = 0x9F040000 , LENGTH = 0x00FC0000
        /* Memory for remote core file operations [ size  4.00 MB ] */
        APP_FILEIO_MEM                    : ORIGIN = 0xA0000000 , LENGTH = 0x00400000
        /* Memory for shared memory buffers in DDR [ size 64.00 MB ] */
        DDR_SHARED_MEM                    : ORIGIN = 0xA1000000 , LENGTH = 0x04000000
        /* DDR for DM R5F for local heap [ size 16.00 MB ] */
        DDR_DM_R5F_LOCAL_HEAP    ( RWIX ) : ORIGIN = 0xA6000000 , LENGTH = 0x01000000
    }
    

    Thanks and Regards,

    Ann Rose Antony

  • Hi Ann,

    Did you rebuild the u-boot image as well? The R5 firmware should be used to replace the ti-dm firmware with the result of the 'make sdk' R5 firmware. I see that you copied the tispl.bin, but we need to be sure that firmware was rebuilt using the firmware-builder's R5 firmware image. 

    I have been working with limited access to development resources due to business travel, but I know that there is also an R5 u-boot DTS file. I'm not sure right now if that was updated by the memory-map generation scripts (if one wasn't produced, then it doesn't need to be updated). 

    I believe that the ti-dm prebuilt firmware image would need to be replaced before rebuilding the u-boot binaries. This complete image must include the R5 firmware that launches after the boot flow completes

    BR,
    Reese

  • Hi Reese,

    I have updated the R5 firmware after doing the "make sdk" command and build the u-boot and updated the tispl and u-boot.img file in the sd card. 

    I have cross-verified in the firmware builder after issuing the memory-map generation scripts no R5 u-boot dts file related changes are generated. Still, I updated the reserved memory regions in the R5 dts files and ran the "make u-boot" command. It generated the tiboot3.bin, tispl.bin and u-boot.img. Copied and booted the board. The same issue persists.

    Thanks and Regards,

    Ann Rose Antony

  • Hi Ann,

    It's clear that some of the changes took on the A53 side given dmesg logs. Unsure about the remote core side. I'm looking for other ways to debug what the R5 is seeing. One option is to modify a few lines in the R5 code to set more logging messages (debug zones); see tiovx/source/platform/psdk_j7/common/tivx_init.c

    We should also look at the .map files within vision_apps/out/AM62A/$CORENAME/$OS/release/*.out.map. Are the memory regions here consistent with what you expect? e.g. excerpt from R5F .out.map file resulting from 9.0 fw-builder: 

    a0000000  g_ipc_vring_mem                                                                 
    a1000000  g_app_log_shared_mem                                                            
    a1040000  g_tiovx_obj_desc_mem                                                            
    a2000000  g_app_fileio_shared_mem                                                         
    af000000  g_ddr_local_mem    

    I do note that in the linker scripts, the carveouts sizes at 0xA0000000 are 4 MiB instead of 16 MiB, as the table you posted earlier would have suggested. This doesn't resolve the fact that it's trying to allocate from the wrong base-address, though.

    BR,
    Reese

  • Hi Reese,

    I need some clarifications which are mentioned below:

    One option is to modify a few lines in the R5 code to set more logging messages (debug zones); see tiovx/source/platform/psdk_j7/common/tivx_init.c

    I checked on the tiovx/source/platform/psdk_j7/common/tivx_init.c file, which is already having the tivx_set_debug_zone inside the tivxInitLocal function. Is this what you have mentioned by adding the extra prints?

    the carveouts sizes at 0xA0000000 are 4 MiB instead of 16 MiB, as the table you posted earlier would have suggested. This doesn't resolve the fact that it's trying to allocate from the wrong base-address, though

    I did not understand the carveouts size issue that you mentioned. As per the table, the size at 0xA0000000 is 16MB similar to the SDK change.

    We should also look at the .map files within vision_apps/out/AM62A/$CORENAME/$OS/release/*.out.map

    I have looked in the *.out.map files in the $CORENAME folders of R5 and C7504. I can map those file values with the memory map values. But for the A53 core, I am not seeing the address values as you have mentioned. Is this an expected output?

     

    Regards,

    Ann Rose Antony

  • Hi Ann,

    I checked on the tiovx/source/platform/psdk_j7/common/tivx_init.c file, which is already having the tivx_set_debug_zone inside the tivxInitLocal function. Is this what you have mentioned by adding the extra prints?

    Yes, there are some already set like ERROR and WARNING. You can add more zones like VX_ZONE_INFO, VX_ZONE_INIT, and VX_ZONE_LOG. That will enable further logging messages. It would be worth enabling all 3 of these for the time-being.

    I did not understand the carveouts size issue that you mentioned. As per the table, the size at 0xA0000000 is 16MB similar to the SDK change.

    Your table makes sense and looks good. My comment was based on the APP_FILEIO_MEM having a length of 4MiB when I had expected 16 MiB. Actually I think this is a non-issue. My apologies for the confusion. The linker files in the SDK has the same size for these regions as you have, so this is probably not going to cause errors. The APP_LOG_MEM (name in linker file) region is where the difference in memory configurations is first showing errors, and I mixed up a similar name (TIOVX_LOG_RT_MEM).

    I can map those file values with the memory map values

    I will assume these match the expectations, then.

    Please confirm, but I assume you did the update for app_mem_map.h as well in this process

    Can you also please post your DTS/DTB files? We haven't looked at those yet. The memory sections for A53 may not be shown in the .map files; I estimate it's pulling that information from DTB in LInux

  • Hi Reese,

    Please confirm, but I assume you did the update for app_mem_map.h as well in this process

    Yes, I have updated the memory map in the location vision_apps/platform/am62a/rtos/app_mem_map.h 

    Attached is the same file here: 4452.app_mem_map.h

    Can you also please post your DTS/DTB files?

    The updated dts file for the am62a7-sk is as shown here: 

    // SPDX-License-Identifier: GPL-2.0
    /*
     * AM62A SK: https://www.ti.com/lit/zip/sprr459
     *
     * Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/
     */
    
    /dts-v1/;
    
    #include <dt-bindings/leds/common.h>
    #include <dt-bindings/gpio/gpio.h>
    #include <dt-bindings/net/ti-dp83867.h>
    #include "k3-am62a7.dtsi"
    
    / {
    	compatible =  "ti,am62a7-sk", "ti,am62a7";
    	model = "Texas Instruments AM62A7 SK";
    
    	aliases {
    		serial2 = &main_uart0;
    		mmc0 = &sdhci0;
    		mmc1 = &sdhci1;
    		ethernet0 = &cpsw_port1;
    		spi0 = &ospi0;
    	};
    
    	chosen {
    		stdout-path = "serial2:115200n8";
    	};
    
    	memory@80000000 {
    		device_type = "memory";
    		/* 4G RAM */
    		reg = <0x00000000 0x80000000 0x00000000 0x80000000>,
    		      <0x00000008 0x80000000 0x00000000 0x80000000>;
    	};
    
    	dma_buf_phys {
    		compatible = "ti,dma-buf-phys";
    	};
    
    	reserved-memory {
    		#address-cells = <2>;
    		#size-cells = <2>;
    		ranges;
    
    		/* global cma region */
    		linux,cma {
    			compatible = "shared-dma-pool";
    			reusable;
    			size = <0x00 0x10000000>;
                            alloc-ranges = <0x00 0xB0000000 0x00 0x10000000>;
    			/*size = <0x00 0x24000000>;
    			alloc-ranges = <0x00 0xc0000000 0x00 0x24000000>;*/
    			linux,cma-default;
    		};
    
    		secure_tfa_ddr: tfa@9c780000 {
    			reg = <0x00 0x9C780000 0x00 0x80000>;
    			alignment = <0x1000>;
    			no-map;
    		};
    
    		secure_ddr: optee@9c800000 {
    			reg = <0x00 0x9C800000 0x00 0x0500000>; /* for OP-TEE */
    			alignment = <0x1000>;
    			no-map;
    		};
    		wkup_r5fss0_core0_dma_memory_region: r5f-dma-memory@9b800000 {
                    compatible = "shared-dma-pool";
                    reg = <0x00 0x9b800000 0x00 0x00100000>;
                    no-map;
            };
            wkup_r5fss0_core0_memory_region: r5f-dma-memory@9b900000 {
                    compatible = "shared-dma-pool";
                    reg = <0x00 0x9b900000 0x00 0x00e00000>;
                    no-map;
            };
    	mcu_r5fss0_core0_dma_memory_region: r5f-dma-memory@9ac00000 {
                    compatible = "shared-dma-pool";
                    reg = <0x00 0x9ac00000 0x00 0x00100000>;
                    no-map;
            };
            mcu_r5fss0_core0_memory_region: r5f-dma-memory@9ad00000 {
                    compatible = "shared-dma-pool";
                    reg = <0x00 0x9ad00000 0x00 0x00b00000>;
                    no-map;
            };
    		c7x_0_dma_memory_region: c7x-dma-memory@99800000 {
                    compatible = "shared-dma-pool";
                    reg = <0x00 0x99800000 0x00 0x00100000>;
                    no-map;
            };
            c7x_0_memory_region: c7x-memory@99900000 {
                    compatible = "shared-dma-pool";
                    reg = <0x00 0x99900000 0x00 0x01300000>;
                    no-map;
            };
            edgeai_rtos_ipc_memory_region: edgeai-rtos-ipc-memory-region {
                    reg = <0x00 0x9e000000 0x00 0x01000000>;
                    no-map;
            };
            edgeai_memory_region: edgeai-dma-memory@9f000000 {
                    compatible = "shared-dma-pool";
                    reg = <0x00 0x9f000000 0x00 0x02000000>;
                    no-map;
            };
            edgeai_shared_region: edgeai_shared-memories {
                    compatible = "dma-heap-carveout";
                    reg = <0x00 0xa1000000 0x00 0x04000000>;
            };
            edgeai_core_heaps: edgeai-core-heap-memory@a5000000 {
                    compatible = "shared-dma-pool";
                    reg = <0x00 0xa5000000 0x00 0x0b000000>;
                    no-map;
            };
    
    /*		wkup_r5fss0_core0_dma_memory_region: r5f-dma-memory@9ac00000 {
    			compatible = "shared-dma-pool";
    			reg = <0x00 0x9ac00000 0x00 0x100000>;
    			no-map;
    		};
    
    		wkup_r5fss0_core0_memory_region: r5f-dma-memory@9ad00000 {
    			compatible = "shared-dma-pool";
    			reg = <0x00 0x9ad00000 0x00 0x0600000>;
    			no-map;
    		};
    
    		mcu_r5fss0_core0_dma_memory_region: r5f-dma-memory@9a500000 {
    			compatible = "shared-dma-pool";
    			reg = <0x00 0x9a500000 0x00 0x100000>;
    			no-map;
    		};
    
    		mcu_r5fss0_core0_memory_region: r5f-dma-memory@9a600000 {
    			compatible = "shared-dma-pool";
    			reg = <0x00 0x9a600000 0x00 0x0600000>;
    			no-map;
    		};
    
    		c7x_0_dma_memory_region: c7x-dma-memory@99800000 {
    			compatible = "shared-dma-pool";
    			reg = <0x00 0x99800000 0x00 0x100000>;
    			no-map;
    		};
    
    		c7x_0_memory_region: c7x-memory@99900000 {
    			compatible = "shared-dma-pool";
    			reg = <0x00 0x99900000 0x00 0x7FFFFF>;
    			no-map;
    		};
    
    		edgeai_rtos_ipc_memory_region: edgeai-rtos-ipc-memory-region {
    			reg = <0x00 0x9b900000 0x00 0x01000000>;
    			no-map;
    		};
    
    		edgeai_memory_region: edgeai-dma-memory@9c900000 {
    			compatible = "shared-dma-pool";
    			reg = <0x00 0x9c900000 0x00 0x01A00000>;
    			no-map;
    		};
    
    		edgeai_shared_region: edgeai_shared-memories {
    			compatible = "dma-heap-carveout";
    			reg = <0x00 0x9e300000 0x00 0x4c00000>;
    		};
    
    		edgeai_core_heaps: edgeai-core-heap-memory@ae000000 {
    			compatible = "shared-dma-pool";
    			reg = <0x00 0xa2f00000 0x00 0xD100000>;
    			no-map;
    		};*/
    	};
    
    	vmain_pd: regulator-0 {
    		/* TPS25750 PD CONTROLLER OUTPUT */
    		compatible = "regulator-fixed";
    		regulator-name = "vmain_pd";
    		regulator-min-microvolt = <5000000>;
    		regulator-max-microvolt = <5000000>;
    		regulator-always-on;
    		regulator-boot-on;
    	};
    
    	vcc_5v0: regulator-1 {
    		/* Output of TPS63070 */
    		compatible = "regulator-fixed";
    		regulator-name = "vcc_5v0";
    		regulator-min-microvolt = <5000000>;
    		regulator-max-microvolt = <5000000>;
    		vin-supply = <&vmain_pd>;
    		regulator-always-on;
    		regulator-boot-on;
    	};
    
    	vcc_3v3_main: regulator-2 {
    		/* output of LM5141-Q1 */
    		compatible = "regulator-fixed";
    		regulator-name = "vcc_3v3_main";
    		regulator-min-microvolt = <3300000>;
    		regulator-max-microvolt = <3300000>;
    		vin-supply = <&vmain_pd>;
    		regulator-always-on;
    		regulator-boot-on;
    	};
    
    	vdd_mmc1: regulator-3 {
    		/* TPS22918DBVR */
    		compatible = "regulator-fixed";
    		regulator-name = "vdd_mmc1";
    		regulator-min-microvolt = <3300000>;
    		regulator-max-microvolt = <3300000>;
    		regulator-boot-on;
    		enable-active-high;
    		gpio = <&exp1 3 GPIO_ACTIVE_HIGH>;
    	};
    
    	vcc_3v3_sys: regulator-4 {
    		/* output of TPS222965DSGT */
    		compatible = "regulator-fixed";
    		regulator-name = "vcc_3v3_sys";
    		regulator-min-microvolt = <3300000>;
    		regulator-max-microvolt = <3300000>;
    		vin-supply = <&vcc_3v3_main>;
    		regulator-always-on;
    		regulator-boot-on;
    	};
    
    	vddshv_sdio: regulator-5 {
    		compatible = "regulator-gpio";
    		regulator-name = "vddshv_sdio";
    		pinctrl-names = "default";
    		pinctrl-0 = <&vddshv_sdio_pins_default>;
    		regulator-min-microvolt = <1800000>;
    		regulator-max-microvolt = <3300000>;
    		regulator-boot-on;
    		vin-supply = <&ldo1>;
    		gpios = <&main_gpio0 31 GPIO_ACTIVE_HIGH>;
    		states = <1800000 0x0>,
    			 <3300000 0x1>;
    	};
    
    	leds {
    		compatible = "gpio-leds";
    		pinctrl-names = "default";
    		pinctrl-0 = <&usr_led_pins_default>;
    
    		led-0 {
    			label = "am62a-sk:green:heartbeat";
    			gpios = <&main_gpio1 49 GPIO_ACTIVE_HIGH>;
    			linux,default-trigger = "heartbeat";
    			function = LED_FUNCTION_HEARTBEAT;
    			default-state = "off";
    		};
    	};
    
    	tlv320_mclk: clk-0 {
    		#clock-cells = <0>;
    		compatible = "fixed-clock";
    		clock-frequency = <12288000>;
    	};
    
    	codec_audio: sound {
    		compatible = "simple-audio-card";
    		simple-audio-card,name = "AM62Ax-SKEVM";
    		simple-audio-card,widgets =
    			"Headphone",	"Headphone Jack",
    			"Line",		"Line In",
    			"Microphone",	"Microphone Jack";
    		simple-audio-card,routing =
    			"Headphone Jack",	"HPLOUT",
    			"Headphone Jack",	"HPROUT",
    			"LINE1L",		"Line In",
    			"LINE1R",		"Line In",
    			"MIC3R",		"Microphone Jack",
    			"Microphone Jack",	"Mic Bias";
    		simple-audio-card,format = "dsp_b";
    		simple-audio-card,bitclock-master = <&sound_master>;
    		simple-audio-card,frame-master = <&sound_master>;
    		simple-audio-card,bitclock-inversion;
    
    		simple-audio-card,cpu {
    			sound-dai = <&mcasp1>;
    		};
    
    		sound_master: simple-audio-card,codec {
    			sound-dai = <&tlv320aic3106>;
    			clocks = <&tlv320_mclk>;
    		};
    	};
    
    	hdmi: connector {
    		compatible = "hdmi-connector";
    		label = "hdmi";
    		type = "a";
    		port {
    			hdmi_connector_in: endpoint {
    				remote-endpoint = <&sii9022_out>;
    			};
    		};
    	};
    };
    
    &main_pmx0 {
    	main_uart0_pins_default: main-uart0-pins-default {
    		pinctrl-single,pins = <
    			AM62AX_IOPAD(0x1c8, PIN_INPUT, 0) /* (D14) UART0_RXD */
    			AM62AX_IOPAD(0x1cc, PIN_OUTPUT, 0) /* (E14) UART0_TXD */
    		>;
    	};
    
    	main_i2c0_pins_default: main-i2c0-pins-default {
    		pinctrl-single,pins = <
    			AM62AX_IOPAD(0x1e0, PIN_INPUT_PULLUP, 0) /* (B16) I2C0_SCL */
    			AM62AX_IOPAD(0x1e4, PIN_INPUT_PULLUP, 0) /* (A16) I2C0_SDA */
    		>;
    	};
    
    	main_i2c1_pins_default: main-i2c1-pins-default {
    		pinctrl-single,pins = <
    			AM62AX_IOPAD(0x1e8, PIN_INPUT_PULLUP, 0) /* (B17) I2C1_SCL */
    			AM62AX_IOPAD(0x1ec, PIN_INPUT_PULLUP, 0) /* (A17) I2C1_SDA */
    		>;
    	};
    
    	main_i2c2_pins_default: main-i2c2-pins-default {
    		pinctrl-single,pins = <
    			AM62AX_IOPAD(0x0b0, PIN_INPUT_PULLUP, 1) /* (K22) GPMC0_CSn2.I2C2_SCL */
    			AM62AX_IOPAD(0x0b4, PIN_INPUT_PULLUP, 1) /* (K24) GPMC0_CSn3.I2C2_SDA */
    		>;
    	};
    
    	main_mmc1_pins_default: main-mmc1-pins-default {
    		pinctrl-single,pins = <
    			AM62AX_IOPAD(0x23c, PIN_INPUT, 0) /* (A21) MMC1_CMD */
    			AM62AX_IOPAD(0x234, PIN_INPUT, 0) /* (B22) MMC1_CLK */
    			AM62AX_IOPAD(0x230, PIN_INPUT, 0) /* (A22) MMC1_DAT0 */
    			AM62AX_IOPAD(0x22c, PIN_INPUT, 0) /* (B21) MMC1_DAT1 */
    			AM62AX_IOPAD(0x228, PIN_INPUT, 0) /* (C21) MMC1_DAT2 */
    			AM62AX_IOPAD(0x224, PIN_INPUT, 0) /* (D22) MMC1_DAT3 */
    			AM62AX_IOPAD(0x240, PIN_INPUT, 0) /* (D17) MMC1_SDCD */
    		>;
    	};
    
    	usr_led_pins_default: usr-led-pins-default {
    		pinctrl-single,pins = <
    			AM62AX_IOPAD(0x244, PIN_OUTPUT, 7) /* (D18) MMC1_SDWP.GPIO1_49 */
    		>;
    	};
    
    	main_usb1_pins_default: main-usb1-pins-default {
    		pinctrl-single,pins = <
    			AM62AX_IOPAD(0x0258, PIN_OUTPUT, 0) /* (F18) USB1_DRVVBUS */
    		>;
    	};
    
    	main_mdio1_pins_default: main-mdio1-pins-default {
    		pinctrl-single,pins = <
    			AM62AX_IOPAD(0x160, PIN_OUTPUT, 0) /* (V12) MDIO0_MDC */
    			AM62AX_IOPAD(0x15c, PIN_INPUT, 0) /* (V13) MDIO0_MDIO */
    		>;
    	};
    
    	main_rgmii1_pins_default: main-rgmii1-pins-default {
    		pinctrl-single,pins = <
    			AM62AX_IOPAD(0x14c, PIN_INPUT, 0) /* (AB16) RGMII1_RD0 */
    			AM62AX_IOPAD(0x150, PIN_INPUT, 0) /* (V15) RGMII1_RD1 */
    			AM62AX_IOPAD(0x154, PIN_INPUT, 0) /* (W15) RGMII1_RD2 */
    			AM62AX_IOPAD(0x158, PIN_INPUT, 0) /* (V14) RGMII1_RD3 */
    			AM62AX_IOPAD(0x148, PIN_INPUT, 0) /* (AA16) RGMII1_RXC */
    			AM62AX_IOPAD(0x144, PIN_INPUT, 0) /* (AA15) RGMII1_RX_CTL */
    			AM62AX_IOPAD(0x134, PIN_INPUT, 0) /* (Y17) RGMII1_TD0 */
    			AM62AX_IOPAD(0x138, PIN_INPUT, 0) /* (V16) RGMII1_TD1 */
    			AM62AX_IOPAD(0x13c, PIN_INPUT, 0) /* (Y16) RGMII1_TD2 */
    			AM62AX_IOPAD(0x140, PIN_INPUT, 0) /* (AA17) RGMII1_TD3 */
    			AM62AX_IOPAD(0x130, PIN_INPUT, 0) /* (AB17) RGMII1_TXC */
    			AM62AX_IOPAD(0x12c, PIN_INPUT, 0) /* (W16) RGMII1_TX_CTL */
    		>;
    	};
    
    	main_mcasp1_pins_default: main-mcasp1-pins-default {
    		pinctrl-single,pins = <
    			AM62AX_IOPAD(0x090, PIN_INPUT, 2) /* (L19) GPMC0_BE0n_CLE.MCASP1_ACLKX */
    			AM62AX_IOPAD(0x098, PIN_INPUT, 2) /* (R18) GPMC0_WAIT0.MCASP1_AFSX */
    			AM62AX_IOPAD(0x08c, PIN_OUTPUT, 2) /* (K19) GPMC0_WEn.MCASP1_AXR0 */
    			AM62AX_IOPAD(0x084, PIN_INPUT, 2) /* (L18) GPMC0_ADVn_ALE.MCASP1_AXR2 */
    		>;
    	};
    
    	main_gpio1_ioexp_intr_pins_default: main-gpio1-ioexp-intr-pins-default {
    		pinctrl-single,pins = <
    			AM62AX_IOPAD(0x01d4, PIN_INPUT, 7) /* (C15) UART0_RTSn.GPIO1_23 */
    
    		>;
    	};
    
    	main_dss0_pins_default: main-dss0-pins-default {
    		pinctrl-single,pins = <
    			AM62AX_IOPAD(0x100, PIN_OUTPUT, 0) /* (V17) VOUT0_VSYNC */
    			AM62AX_IOPAD(0x0f8, PIN_OUTPUT, 0) /* (T18) VOUT0_HSYNC */
    			AM62AX_IOPAD(0x104, PIN_OUTPUT, 0) /* (AA22) VOUT0_PCLK */
    			AM62AX_IOPAD(0x0fc, PIN_OUTPUT, 0) /* (U17) VOUT0_DE */
    			AM62AX_IOPAD(0x0b8, PIN_OUTPUT, 0) /* (U22) VOUT0_DATA0 */
    			AM62AX_IOPAD(0x0bc, PIN_OUTPUT, 0) /* (U21) VOUT0_DATA1 */
    			AM62AX_IOPAD(0x0c0, PIN_OUTPUT, 0) /* (U20) VOUT0_DATA2 */
    			AM62AX_IOPAD(0x0c4, PIN_OUTPUT, 0) /* (U19) VOUT0_DATA3 */
    			AM62AX_IOPAD(0x0c8, PIN_OUTPUT, 0) /* (T19) VOUT0_DATA4 */
    			AM62AX_IOPAD(0x0cc, PIN_OUTPUT, 0) /* (U18) VOUT0_DATA5 */
    			AM62AX_IOPAD(0x0d0, PIN_OUTPUT, 0) /* (V22) VOUT0_DATA6 */
    			AM62AX_IOPAD(0x0d4, PIN_OUTPUT, 0) /* (V21) VOUT0_DATA7 */
    			AM62AX_IOPAD(0x0d8, PIN_OUTPUT, 0) /* (V19) VOUT0_DATA8 */
    			AM62AX_IOPAD(0x0dc, PIN_OUTPUT, 0) /* (V18) VOUT0_DATA9 */
    			AM62AX_IOPAD(0x0e0, PIN_OUTPUT, 0) /* (W22) VOUT0_DATA10 */
    			AM62AX_IOPAD(0x0e4, PIN_OUTPUT, 0) /* (W21) VOUT0_DATA11 */
    			AM62AX_IOPAD(0x0e8, PIN_OUTPUT, 0) /* (W20) VOUT0_DATA12 */
    			AM62AX_IOPAD(0x0ec, PIN_OUTPUT, 0) /* (W19) VOUT0_DATA13 */
    			AM62AX_IOPAD(0x0f0, PIN_OUTPUT, 0) /* (Y21) VOUT0_DATA14 */
    			AM62AX_IOPAD(0x0f4, PIN_OUTPUT, 0) /* (Y22) VOUT0_DATA15 */
    			AM62AX_IOPAD(0x05c, PIN_OUTPUT, 1) /* (P22) GPMC0_AD8.VOUT0_DATA16 */
    			AM62AX_IOPAD(0x060, PIN_OUTPUT, 1) /* (R19) GPMC0_AD9.VOUT0_DATA17 */
    			AM62AX_IOPAD(0x064, PIN_OUTPUT, 1) /* (R20) GPMC0_AD10.VOUT0_DATA18 */
    			AM62AX_IOPAD(0x068, PIN_OUTPUT, 1) /* (R22) GPMC0_AD11.VOUT0_DATA19 */
    			AM62AX_IOPAD(0x06c, PIN_OUTPUT, 1) /* (T22) GPMC0_AD12.VOUT0_DATA20 */
    			AM62AX_IOPAD(0x070, PIN_OUTPUT, 1) /* (R21) GPMC0_AD13.VOUT0_DATA21 */
    			AM62AX_IOPAD(0x074, PIN_OUTPUT, 1) /* (T20) GPMC0_AD14.VOUT0_DATA22 */
    			AM62AX_IOPAD(0x078, PIN_OUTPUT, 1) /* (T21) GPMC0_AD15.VOUT0_DATA23 */
    		>;
    	};
    
    	main_mmc0_pins_default: main-mmc0-pins-default {
    		pinctrl-single,pins = <
    			AM62AX_IOPAD(0x220, PIN_INPUT, 0) /* (Y3) MMC0_CMD */
    			AM62AX_IOPAD(0x218, PIN_INPUT, 0) /* (AB1) MMC0_CLKLB */
    			AM62AX_IOPAD(0x21c, PIN_INPUT, 0) /* (AB1) MMC0_CLK */
    			AM62AX_IOPAD(0x214, PIN_INPUT, 0) /* (AA2) MMC0_DAT0 */
    			AM62AX_IOPAD(0x210, PIN_INPUT_PULLUP, 0) /* (AA1) MMC0_DAT1 */
    			AM62AX_IOPAD(0x20c, PIN_INPUT_PULLUP, 0) /* (AA3) MMC0_DAT2 */
    			AM62AX_IOPAD(0x208, PIN_INPUT_PULLUP, 0) /* (Y4) MMC0_DAT3 */
    			AM62AX_IOPAD(0x204, PIN_INPUT_PULLUP, 0) /* (AB2) MMC0_DAT4 */
    			AM62AX_IOPAD(0x200, PIN_INPUT_PULLUP, 0) /* (AC1) MMC0_DAT5 */
    			AM62AX_IOPAD(0x1fc, PIN_INPUT_PULLUP, 0) /* (AD2) MMC0_DAT6 */
    			AM62AX_IOPAD(0x1f8, PIN_INPUT_PULLUP, 0) /* (AC2) MMC0_DAT7 */
    		>;
    	};
    
    	vddshv_sdio_pins_default: vddshv-sdio-pins-default {
    		pinctrl-single,pins = <
    			AM62AX_IOPAD(0x07c, PIN_OUTPUT, 7) /* (M19) GPMC0_CLK.GPIO0_31 */
    		>;
    	};
    
    	ospi0_pins_default: ospi0-pins-default {
    		pinctrl-single,pins = <
    			AM62AX_IOPAD(0x000, PIN_OUTPUT, 0) /* (H24) OSPI0_CLK */
    			AM62AX_IOPAD(0x02c, PIN_OUTPUT, 0) /* (F23) OSPI0_CSn0 */
    			AM62AX_IOPAD(0x00c, PIN_INPUT, 0) /* (E25) OSPI0_D0 */
    			AM62AX_IOPAD(0x010, PIN_INPUT, 0) /* (G24) OSPI0_D1 */
    			AM62AX_IOPAD(0x014, PIN_INPUT, 0) /* (F25) OSPI0_D2 */
    			AM62AX_IOPAD(0x018, PIN_INPUT, 0) /* (F24) OSPI0_D3 */
    			AM62AX_IOPAD(0x01c, PIN_INPUT, 0) /* (J23) OSPI0_D4 */
    			AM62AX_IOPAD(0x020, PIN_INPUT, 0) /* (J25) OSPI0_D5 */
    			AM62AX_IOPAD(0x024, PIN_INPUT, 0) /* (H25) OSPI0_D6 */
    			AM62AX_IOPAD(0x028, PIN_INPUT, 0) /* (J22) OSPI0_D7 */
    			AM62AX_IOPAD(0x008, PIN_INPUT, 0) /* (J24) OSPI0_DQS */
    		>;
    	};
    };
    
    &mcu_pmx0 {
    	status = "okay";
    
    	pmic_irq_pins_default: pmic-irq-pins-default {
    		pinctrl-single,pins = <
    			AM62AX_MCU_IOPAD(0x000, PIN_INPUT, 7) /* (E11) MCU_GPIO0_0 */
    		>;
    	};
    };
    
    &mcu_gpio0 {
    	status = "okay";
    };
    
    &main_i2c0 {
    	status = "okay";
    	pinctrl-names = "default";
    	pinctrl-0 = <&main_i2c0_pins_default>;
    	clock-frequency = <400000>;
    
    	typec_pd0: usb-power-controller@3f {
    		compatible = "ti,tps6598x";
    		reg = <0x3f>;
    
    		connector {
    			compatible = "usb-c-connector";
    			label = "USB-C";
    			self-powered;
    			data-role = "dual";
    			power-role = "sink";
    			port {
    				usb_con_hs: endpoint {
    					remote-endpoint = <&usb0_hs_ep>;
    				};
    			};
    		};
    	};
    
    	tps659312: pmic@48 {
    		compatible = "ti,tps6593-q1";
    		reg = <0x48>;
    		ti,primary-pmic;
    		system-power-controller;
    
    		gpio-controller;
    		#gpio-cells = <2>;
    
    		pinctrl-names = "default";
    		pinctrl-0 = <&pmic_irq_pins_default>;
    		interrupt-parent = <&mcu_gpio0>;
    		interrupts = <0 IRQ_TYPE_EDGE_FALLING>;
    
    		buck123-supply = <&vcc_3v3_sys>;
    		buck4-supply = <&vcc_3v3_sys>;
    		buck5-supply = <&vcc_3v3_sys>;
    		ldo1-supply = <&vcc_3v3_sys>;
    		ldo2-supply = <&vcc_3v3_sys>;
    		ldo3-supply = <&buck5>;
    		ldo4-supply = <&vcc_3v3_sys>;
    
    		regulators {
    			buck123: buck123 {
    				regulator-name = "vcc_core";
    				regulator-min-microvolt = <715000>;
    				regulator-max-microvolt = <895000>;
    				regulator-boot-on;
    				regulator-always-on;
    			};
    
    			buck4: buck4 {
    				regulator-name = "vcc_1v1";
    				regulator-min-microvolt = <1100000>;
    				regulator-max-microvolt = <1100000>;
    				regulator-boot-on;
    				regulator-always-on;
    			};
    
    			buck5: buck5 {
    				regulator-name = "vcc_1v8_sys";
    				regulator-min-microvolt = <1800000>;
    				regulator-max-microvolt = <1800000>;
    				regulator-boot-on;
    				regulator-always-on;
    			};
    
    			ldo1: ldo1 {
    				regulator-name = "vddshv5_sdio";
    				regulator-min-microvolt = <3300000>;
    				regulator-max-microvolt = <3300000>;
    				regulator-boot-on;
    				regulator-always-on;
    			};
    
    			ldo2: ldo2 {
    				regulator-name = "vpp_1v8";
    				regulator-min-microvolt = <1800000>;
    				regulator-max-microvolt = <1800000>;
    				regulator-boot-on;
    				regulator-always-on;
    			};
    
    			ldo3: ldo3 {
    				regulator-name = "vcc_0v85";
    				regulator-min-microvolt = <850000>;
    				regulator-max-microvolt = <850000>;
    				regulator-boot-on;
    				regulator-always-on;
    			};
    
    			ldo4: ldo4 {
    				regulator-name = "vdda_1v8";
    				regulator-min-microvolt = <1800000>;
    				regulator-max-microvolt = <1800000>;
    				regulator-boot-on;
    				regulator-always-on;
    			};
    		};
    	};
    };
    
    &main_i2c1 {
    	status = "okay";
    	pinctrl-names = "default";
    	pinctrl-0 = <&main_i2c1_pins_default>;
    	clock-frequency = <100000>;
    
    	exp1: gpio@22 {
    		compatible = "ti,tca6424";
    		reg = <0x22>;
    		gpio-controller;
    		#gpio-cells = <2>;
    
    		interrupt-parent = <&main_gpio1>;
    		interrupts = <23 IRQ_TYPE_EDGE_FALLING>;
    		interrupt-controller;
    		#interrupt-cells = <2>;
    
    		gpio-line-names = "GPIO_CPSW2_RST", "GPIO_CPSW1_RST",
    				   "BT_EN_SOC", "MMC1_SD_EN",
    				   "VPP_EN", "EXP_PS_3V3_En",
    				   "EXP_PS_5V0_En", "EXP_HAT_DETECT",
    				   "GPIO_AUD_RSTn", "GPIO_eMMC_RSTn",
    				   "UART1_FET_BUF_EN", "BT_UART_WAKE_SOC",
    				   "GPIO_HDMI_RSTn", "CSI_GPIO0",
    				   "CSI_GPIO1", "WLAN_ALERTn",
    				   "HDMI_INTn", "TEST_GPIO2",
    				   "MCASP1_FET_EN", "MCASP1_BUF_BT_EN",
    				   "MCASP1_FET_SEL", "UART1_FET_SEL",
    				   "PD_I2C_IRQ", "IO_EXP_TEST_LED";
    
    		pinctrl-names = "default";
    		pinctrl-0 = <&main_gpio1_ioexp_intr_pins_default>;
    
    		exp1 {
    			sen_resetb_gpio {
    			/* CSI_GPIO0 */
    				gpio-hog;
    				output-high;
    				gpios = <13 GPIO_ACTIVE_HIGH>;
    				label = "sen-resetb-gpio";
    				status = "okay";
    			};
    		};
    	};
    
    	exp2: gpio@23 {
    		compatible = "ti,tca6424";
    		reg = <0x23>;
    		gpio-controller;
    		#gpio-cells = <2>;
    
    		gpio-line-names = "", "",
    				  "", "",
    				  "", "",
    				  "", "",
    				  "WL_LT_EN", "CSI_RSTz",
    				  "", "",
    				  "", "",
    				  "", "",
    				  "SPI0_FET_SEL", "SPI0_FET_OE",
    				  "RGMII2_BRD_CONN_DET", "CSI_SEL2",
    				  "CSI_EN", "AUTO_100M_1000M_CONFIG",
    				  "CSI_VLDO_SEL", "SoC_WLAN_SDIO_RST";
    	};
    
    	tlv320aic3106: audio-codec@1b {
    		#sound-dai-cells = <0>;
    		compatible = "ti,tlv320aic3106";
    		reg = <0x1b>;
    		ai3x-micbias-vg = <1>;	/* 2.0V */
    		ai3x-ocmv = <1>;	/* 1.5V */
    
    		/* Regulators */
    		AVDD-supply = <&vcc_3v3_sys>;
    		IOVDD-supply = <&vcc_3v3_sys>;
    		DRVDD-supply = <&vcc_3v3_sys>;
    	};
    
    	sii9022: sii9022@3b {
    		#sound-dai-cells = <0>;
    		compatible = "sil,sii9022";
    		reg = <0x3b>;
    
    		interrupt-parent = <&exp1>;
    		interrupts = <16 IRQ_TYPE_EDGE_FALLING>;
    
    		sil,i2s-data-lanes = < 0 >;
    
    		ports {
    			#address-cells = <1>;
    			#size-cells = <0>;
    
    			port@0 {
    				reg = <0>;
    
    				sii9022_in: endpoint {
    					remote-endpoint = <&dpi1_out>;
    				};
    			};
    
    			port@1 {
    				reg = <1>;
    
    				sii9022_out: endpoint {
    					remote-endpoint = <&hdmi_connector_in>;
    				};
    			};
    		};
    	};
    
    };
    
    &main_i2c2 {
    	status = "okay";
    	pinctrl-names = "default";
    	pinctrl-0 = <&main_i2c2_pins_default>;
    	clock-frequency = <400000>;
    };
    
    &sdhci1 {
    	/* SD/MMC */
    	status = "okay";
    	vmmc-supply = <&vdd_mmc1>;
    	vqmmc-supply = <&vddshv_sdio>;
    	pinctrl-names = "default";
    	pinctrl-0 = <&main_mmc1_pins_default>;
    	ti,driver-strength-ohm = <50>;
    	disable-wp;
    };
    
    &main_gpio0 {
    	status = "okay";
    };
    
    &main_gpio1 {
    	status = "okay";
    };
    
    &main_gpio_intr {
    	status = "okay";
    };
    
    &main_uart0 {
    	status = "okay";
    	pinctrl-names = "default";
    	pinctrl-0 = <&main_uart0_pins_default>;
    };
    
    &usbss0 {
    	status = "okay";
    	ti,vbus-divider;
    };
    
    &usb0 {
    	usb-role-switch;
    
    	port {
    		usb0_hs_ep: endpoint {
    			remote-endpoint = <&usb_con_hs>;
    		};
    	};
    };
    
    &usbss1 {
    	status = "okay";
    };
    
    &usb1 {
    	dr_mode = "host";
    	pinctrl-names = "default";
    	pinctrl-0 = <&main_usb1_pins_default>;
    };
    
    &cpsw3g {
    	status = "okay";
    	pinctrl-names = "default";
    	pinctrl-0 = <&main_rgmii1_pins_default>;
    
    	cpts@3d000 {
    		/* MAP HW3_TS_PUSH to GENF1 */
    		ti,pps = <2 1>;
    	};
    };
    
    &cpsw_port1 {
    	status = "okay";
    	phy-mode = "rgmii-rxid";
    	phy-handle = <&cpsw3g_phy0>;
    };
    
    &cpsw_port2 {
    	status = "disabled";
    };
    
    &cpsw3g_mdio {
    	status = "okay";
    	pinctrl-names = "default";
    	pinctrl-0 = <&main_mdio1_pins_default>;
    
    	cpsw3g_phy0: ethernet-phy@0 {
    		reg = <0>;
    		ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
    		ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
    		ti,min-output-impedance;
    	};
    };
    
    &mcasp1 {
    	status = "okay";
    	#sound-dai-cells = <0>;
    
    	pinctrl-names = "default";
    	pinctrl-0 = <&main_mcasp1_pins_default>;
    
    	op-mode = <0>;          /* MCASP_IIS_MODE */
    	tdm-slots = <2>;
    
    	serial-dir = <  /* 0: INACTIVE, 1: TX, 2: RX */
    	       1 0 2 0
    	       0 0 0 0
    	       0 0 0 0
    	       0 0 0 0
    	>;
    	tx-num-evt = <32>;
    	rx-num-evt = <32>;
    };
    
    &ti_csi2rx0 {
    	status = "okay";
    };
    
    &dphy0 {
    	status = "okay";
    };
    
    &dss {
    	pinctrl-names = "default";
    	pinctrl-0 = <&main_dss0_pins_default>;
    };
    
    &dss_ports {
    	/* VP2: DPI Output */
    	port@0 {
    		reg = <0>;
    
    		dpi1_out: endpoint {
    			remote-endpoint = <&sii9022_in>;
    		};
    	};
    };
    
    &fss {
    	status = "okay";
    };
    
    &ospi0 {
    	pinctrl-names = "default";
    	pinctrl-0 = <&ospi0_pins_default>;
    
    	flash@0{
    		compatible = "spi-nand";
    		reg = <0x0>;
    		spi-tx-bus-width = <8>;
    		spi-rx-bus-width = <8>;
    		spi-max-frequency = <25000000>;
    		cdns,tshsl-ns = <60>;
    		cdns,tsd2d-ns = <60>;
    		cdns,tchsh-ns = <60>;
    		cdns,tslch-ns = <60>;
    		cdns,read-delay = <2>;
    		cdns,phy-mode;
    
    		partitions {
    			compatible = "fixed-partitions";
    			#address-cells = <1>;
    			#size-cells = <1>;
    
    			partition@0 {
    				label = "ospi_nand.tiboot3";
    				reg = <0x0 0x80000>;
    			};
    
    			partition@80000 {
    				label = "ospi_nand.tispl";
    				reg = <0x80000 0x200000>;
    			};
    
    			partition@280000 {
    				label = "ospi_nand.u-boot";
    				reg = <0x280000 0x400000>;
    			};
    
    			partition@680000 {
    				label = "ospi_nand.env";
    				reg = <0x680000 0x40000>;
    			};
    
    			partition@6c0000 {
    				label = "ospi_nand.env.backup";
    				reg = <0x6c0000 0x40000>;
    			};
    
    			partition@2000000 {
    				label = "ospi_nand.rootfs";
    				reg = <0x2000000 0x5fc0000>;
    			};
    
    			partition@7fc0000 {
    				label = "ospi_nand.phypattern";
    				reg = <0x7fc0000 0x40000>;
    			};
    		};
    	};
    };
    
    &mailbox0_cluster0 {
    	mbox_r5_0: mbox-r5-0 {
    		ti,mbox-rx = <0 0 0>;
    		ti,mbox-tx = <1 0 0>;
    	};
    };
    
    &mailbox0_cluster1 {
    	mbox_c7x_0: mbox-c7x-0 {
    		ti,mbox-rx = <0 0 0>;
    		ti,mbox-tx = <1 0 0>;
    	};
    };
    
    &mailbox0_cluster2 {
    	mbox_mcu_r5_0: mbox-mcu_r5-0 {
    		ti,mbox-rx = <0 0 0>;
    		ti,mbox-tx = <1 0 0>;
    	};
    };
    
    &c7x_0 {
    	mboxes = <&mailbox0_cluster1 &mbox_c7x_0>;
    	memory-region = <&c7x_0_dma_memory_region>,
    			<&c7x_0_memory_region>;
    };
    
    &wkup_r5fss0_core0 {
    	mboxes = <&mailbox0_cluster0 &mbox_r5_0>;
    	memory-region = <&wkup_r5fss0_core0_dma_memory_region>,
    		<&wkup_r5fss0_core0_memory_region>;
    };
    
    &mcu_r5fss0_core0 {
    	mboxes = <&mailbox0_cluster2 &mbox_mcu_r5_0>;
    	memory-region = <&mcu_r5fss0_core0_dma_memory_region>,
    			<&mcu_r5fss0_core0_memory_region>;
    };
    
    #define K3_TS_OFFSET(pa, val)	(0x4+(pa)*4) (0x10000 | val)
    
    &timesync_router {
    	status = "okay";
    	pinctrl-names = "default";
    	pinctrl-0 = <&cpsw_cpts>;
    
    	/* Use Time Sync Router to map GENF1 input to HW3_TS_PUSH output */
    	cpsw_cpts: cpsw-cpts {
    		pinctrl-single,pins = <
    			/* pps [cpsw cpts genf1] in17 -> out12 [cpsw cpts hw3_push] */
    			K3_TS_OFFSET(12, 17)
    			>;
    	};
    };
    
    &sdhci0 {
    	status = "okay";
    	pinctrl-names = "default";
    	pinctrl-0 = <&main_mmc0_pins_default>;
    	ti,driver-strength-ohm = <50>;
    	disable-wp;
    };
    

    Regards,

    Ann Rose Antony

  • Hello,

    Okay, this DTS looks correct and I can see where it deviates from the original DTS in the SDK.

    Naming conventions are inconsistent across these tools, but I see that the APP_LOG_MEM maps against the "edgeai_memory_region", at least for the base address. There are several other regions that are included here, based on the size of the region. In your case, the allocations throwing errors should be mapped starting from 0x9f000000

    I checked on the tiovx/source/platform/psdk_j7/common/tivx_init.c file, which is already having the tivx_set_debug_zone inside the tivxInitLocal function. Is this what you have mentioned by adding the extra prints?

    Yes, there are some already set like ERROR and WARNING. You can add more zones like VX_ZONE_INFO, VX_ZONE_INIT, and VX_ZONE_LOG. That will enable further logging messages. It would be worth enabling all 3 of these for the time-being.

    More logging would still be helpful here I think. We may need to add more as well to diagnose what is happening here. 

    For starters, let's consider vision_apps/platform/am62a/linux/app_init.c. The Errors in your log (as below) originate from this file. 

    APP: ERROR: Log writer init failed !!!

    It's here (Line 150) that the APP_LOG_MEM_ADDR is provided and memory is mapped inside an appLogWrInit call. We can add some prints here to check.

    In typing the above, I realize one thing that we may not have tried yet: replacing the .SO libraries for tiovx and vision_apps. The vision_apps project would consume this app_mem_map.h file. It seems that this APP_LOG_MEM_ADDR is set at compile time and not read from Linux memory regions at runtime, as I originally suspected.

    In addition to recompiling firmware binaries, there should be an .SO file under vision_apps/out/AM62A/A53/LINUX/release/libtivision_apps.so. Have you replaced this library in the linux filesystem? This may have been done automatically if you used some of the 'install'  make targets (linux_fs_install,  I believe) in the firmware builder, it should handle this. However, I am seeing that this step is missing in the instructions. 

    Can you please trying updating this libtivision_apps.SO file? You can also try the linux_fs_install or linux_fs_install_sd make targets under sdk_builder/makefules/makefile_linux_arm.mk. I've noted this commands can be tripped up by permissions on the SD card rootfs partition but that partly depends on how your linux host is configured.

    BR,
    Reese

  • Hi Reese,

    I am getting the following errors after enabling the log variables.

    REMOTE_SERVICE: Init ... Done !!!
    230.644154 s: GTC Frequency = 200 MHz
    APP: Init ... Done !!!
    230.650144 s: VX_ZONE_INIT:Enabled
    230.650204 s: VX_ZONE_ERROR:Enabled
    230.650219 s: VX_ZONE_WARNING:Enabled
    230.653269 s: VX_ZONE_INIT:[tivxInitLocal:131] Initialization Done !!!
    230.654647 s: VX_ZONE_INIT:[tivxHostInitLocal:101] Initialization Done for HOST !!!
    230.655362 s: VX_ZONE_ERROR:[ownContextCreateCmdObj:151] context object descriptor [0] allocation failed
    230.655388 s: VX_ZONE_ERROR:[ownContextCreateCmdObj:154] context object descriptor [0] allocation failed
    230.655405 s: VX_ZONE_ERROR:[ownContextCreateCmdObj:155] Exceeded max object descriptors available. Increase TIVX_PLATFORM_MAX_OBJ_DESC_SHM_INST value
    230.655424 s: VX_ZONE_ERROR:[ownContextCreateCmdObj:156] Increase TIVX_PLATFORM_MAX_OBJ_DESC_SHM_INST value in source/platform/psdk_j7/common/soc/tivx_platform_psdk_<soc>.h
    230.655447 s: VX_ZONE_ERROR:[vxCreateContext:970] context objection creation failed
    230.655499 s: VX_ZONE_ERROR:[vxGetStatus:700] Reference is NULL
    230.655523 s: VX_ZONE_ERROR:[tivxAddKernelTIDL:243] Unable to allocate user kernel ID
    230.655540 s: VX_ZONE_ERROR:[vxGetStatus:700] Reference is NULL
    230.655555 s: VX_ZONE_ERROR:[vxGetStatus:700] Reference is NULL
    230.655571 s: VX_ZONE_ERROR:[vxGetStatus:700] Reference is NULL
    230.986557 s: VX_ZONE_ERROR:[vxGetStatus:700] Reference is NULL
    230.986739 s: VX_ZONE_ERROR:[vxSetReferenceName:646] Invalid reference
    230.986786 s: VX_ZONE_ERROR:[vxQueryKernel:137] Invalid kernel reference
    230.986826 s: VX_ZONE_ERROR:[vxMapUserDataObject:456] Invalid user data object reference
    230.986844 s: VX_ZONE_ERROR:[vxUnmapUserDataObject:541] Invalid user data object reference
    230.986861 s: VX_ZONE_ERROR:[tivxTIDLNode:113] Exceeded max parameters for a kernel
    230.986879 s: VX_ZONE_ERROR:[vxSetReferenceName:646] Invalid reference
    230.986894 s: VX_ZONE_ERROR:[vxSetReferenceName:646] Invalid reference
    230.986910 s: VX_ZONE_ERROR:[vxSetReferenceName:646] Invalid reference
    230.986925 s: VX_ZONE_ERROR:[vxSetReferenceName:646] Invalid reference
    230.986940 s: VX_ZONE_ERROR:[vxSetReferenceName:646] Invalid reference
    230.986956 s: VX_ZONE_ERROR:[vxSetReferenceName:646] Invalid reference
    230.986971 s: VX_ZONE_ERROR:[vxSetReferenceName:646] Invalid reference
    230.986989 s: VX_ZONE_ERROR:[vxVerifyGraph:1865] Invalid graph reference
    230.987005 s: VX_ZONE_ERROR:[vxVerifyGraph:2120] Invalid graph reference
    TIDL_RT_OVX: ERROR: Verifying TIDL graph ... Failed !!!
    TIDL_RT_OVX: ERROR: Verify OpenVX graph failed

    I suspect the memory map caused the error. Is it true? Or Could you please guide me to resolve these issues.

    Regards,

    Ann Rose Antony

  • Hi Ann,

    First could you confirm if you've updated the libtivision_apps library? Have we gotten past the issue with APP_LOG complaining about memory-allocation failures?

    It's likely the memory map changes led to this, but first help me understand where we are vs. the previous bug. 

    You can of course try increasing the number of descriptors as stated for tiovx/source/platform/psdk_j7/common/soc/tivx_platform_psdk_am62a.h within the TIOVX directory of firmware-builder, but I wonder if that's actually the issue here. For a simple demo, it shouldn't actually be at risk of exceeding this number of objects.

    Adding TIOVX_LOG_INFO and TIOVX_LOG_DEBUG may also be worthwhile, because this error isn't telling me enough to provide further recommendation

    Perhaps we can also try an even simpler application / pipeline. 

    gst-launch-1.0 videotestsrc ! video/x-raw,width=640,heigh=840,format=NV12 ! tiovxmultiscaler ! video/x-raw,width=480,height=360 ! fakesink

    I suggest this because the object detection OOB demo is probably more strenuous on DDR and may exceed capacity with these new regions. Let's get a working proof of concept that using edge ai / TIOVX components before trying to run something too large for the DDR allocation.

  • Hi Reese,

    First could you confirm if you've updated the libtivision_apps library? Have we gotten past the issue with APP_LOG complaining about memory-allocation failures?

    After updating the libtivision_apps library APP_LOG error was resolved.

    Adding TIOVX_LOG_INFO and TIOVX_LOG_DEBUG may also be worthwhile,

    I have added the TIOVX_LOG_INFO and TIOVX_LOG_DEBUG as suggested. Also, issue the simpler pipeline which you have mentioned.

    Below is the log for the same,

    root@am62axx-evm:/opt/edgeai-gst-apps# gst-launch-1.0 videotestsrc ! video/x-raw,width=640,heigh=840,format=NV12 ! tiovxmultiscaler ! video/x-raw,width=480,height=360 ! fakesink
    APP: Init ... !!!
    MEM: Init ... !!!
    MEM: Initialized DMA HEAP (fd=5) !!!
    MEM: Init ... Done !!!
    IPC: Init ... !!!
    file_deref_link: readlink failed for /sys/bus/platform/devices/78000000.r5f
    _rpmsg_char_find_rproc: 78000000.r5f device is mostly yet to be created!
    IPC: ERROR: Unable to create TX channels for CPU [mcu1_0] !!!
    IPC: Init ... Done !!!
    APP: ERROR: IPC init failed !!!
    REMOTE_SERVICE: Init ... !!!
    file_deref_link: readlink failed for /sys/bus/platform/devices/78000000.r5f
    _rpmsg_char_find_rproc: 78000000.r5f device is mostly yet to be created!
    _rpmsg_char_find_ctrldev: could not find the matching rpmsg_ctrl device for virtio1.rpmsg_chrdev.-1.21
    REMOTE_SERVICE: Init ... Done !!!
       478.665312 s: GTC Frequency = 200 MHz
    APP: Init ... Done !!!
       478.665448 s:  VX_ZONE_INIT:Enabled
       478.665459 s:  VX_ZONE_ERROR:Enabled
       478.665468 s:  VX_ZONE_WARNING:Enabled
       478.665476 s:  VX_ZONE_INFO:Enabled
       478.665485 s:  VX_ZONE_LOG:Enabled
       478.667052 s:  VX_ZONE_INIT:[tivxInitLocal:131] Initialization Done !!!
       478.667167 s:  VX_ZONE_INIT:[tivxHostInitLocal:101] Initialization Done for HOST !!!
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 137: i=0
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 140: i=0
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 137: i=1
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 140: i=1
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 137: i=2
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 140: i=2
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 137: i=3
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 140: i=3
       478.669167 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.img.hist on target MPU-0
       478.669273 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.pre.proc.armv8 on target MPU-0
       478.669292 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.pre.proc.armv8 on target MPU-1
       478.669307 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.pre.proc.armv8 on target MPU-2
       478.669322 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.pre.proc.armv8 on target MPU-3
       478.669337 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.post.proc on target MPU-0
       478.669353 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.color.convert.armv8 on target MPU-0
       478.669368 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.color.convert.armv8 on target MPU-1
       478.669383 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.color.convert.armv8 on target MPU-2
       478.669397 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.color.convert.armv8 on target MPU-3
    Setting pipeline to PAUSED ...
    Pipeline is PREROLLING ...
       478.679767 s:  VX_ZONE_INFO:[ownIsValidReference:122] Reference was NULL
       478.679814 s:  VX_ZONE_INFO:[ownIsValidReference:122] Reference was NULL
       478.679838 s:  VX_ZONE_INFO:[ownIsValidReference:122] Reference was NULL
       478.679861 s:  VX_ZONE_INFO:[ownIsValidReference:122] Reference was NULL
       478.680375 s:  VX_ZONE_INFO:[ownNodeKernelValidate:229] Validating kernel com.ti.hwa.vpac_msc_multi_scale
       478.680863 s:  VX_ZONE_INFO:[ownNodeKernelInit:512] Calling create callback for node scaler_node
       478.680885 s:  VX_ZONE_ERROR:[ownIpcSendMsg:131] OpenVX send notification failed
       478.680897 s:  VX_ZONE_ERROR:[ownObjDescSend:271] ownIpcSendMsg failed
       479.012647 s:  VX_ZONE_INFO:[ownNodeKernelInit:518] Create callback for node scaler_node completed
       479.012666 s:  VX_ZONE_ERROR:[ownNodeKernelInit:527] Target kernel, TIVX_CMD_NODE_CREATE failed for node scaler_node
       479.012677 s:  VX_ZONE_ERROR:[ownNodeKernelInit:528] Please be sure the target callbacks have been registered for this core
       479.012689 s:  VX_ZONE_ERROR:[ownNodeKernelInit:529] If the target callbacks have been registered, please ensure no errors are occurring within the create callback of this kernel
       479.012702 s:  VX_ZONE_INFO:[ownGraphNodeKernelInit:578] kernel init for node 0, kernel com.ti.hwa.vpac_msc_multi_scale ...
       479.012714 s:  VX_ZONE_ERROR:[ownGraphNodeKernelInit:583] kernel init for node 0, kernel com.ti.hwa.vpac_msc_multi_scale ... failed !!!
       479.012732 s:  VX_ZONE_ERROR:[vxVerifyGraph:2055] Node kernel init failed
       479.012743 s:  VX_ZONE_ERROR:[vxVerifyGraph:2109] Graph verify failed
       479.013098 s:  VX_ZONE_INFO:[tivxQueueDelete:182] if this hangs, please ensure all application threads have been destroyed
       479.013118 s:  VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
       479.014212 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       479.014242 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       479.024590 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       479.024630 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       479.024644 s:  VX_ZONE_INFO:[ownIsValidReference:122] Reference was NULL
       479.024656 s:  VX_ZONE_ERROR:[vxGetStatus:700] Reference is NULL
    
    ** (gst-launch-1.0:1273): CRITICAL **: 17:49:39.079: gst_tiovx_simo_process_graph: assertion 'VX_SUCCESS == vxGetStatus ((vx_reference) priv->graph)' failed
    ERROR: from element /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0: Internal data stream error.
    Additional debug info:
    ../gstreamer-1.20.6/libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0:
    streaming stopped, reason not-linked (-1)
    ERROR: pipeline doesn't want to preroll.
    Setting pipeline to NULL ...
       479.025775 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       479.025797 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       479.025981 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       479.025995 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
    Freeing pipeline ...
       479.026620 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       479.026637 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       479.026768 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       479.026782 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       479.026888 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       479.026901 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       479.027061 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       479.027076 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       479.027159 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.hwa.vpac_ldc destructor called (removed from context)
       479.027182 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.hwa.vpac_msc_multi_scale destructor called (removed from context)
       479.027201 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.hwa.vpac_msc_pyramid destructor called (removed from context)
       479.027220 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.hwa.vpac_viss destructor called (removed from context)
       479.356914 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.img.preprocess destructor called (removed from context)
       479.356944 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.oc.pre.proc destructor called (removed from context)
       479.356964 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.oc.post.proc destructor called (removed from context)
       479.356982 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.od.postprocess destructor called (removed from context)
       479.357000 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.dof.plane.seperation destructor called (removed from context)
       479.357018 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.pose.visualization destructor called (removed from context)
       479.357037 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.visual.localization destructor called (removed from context)
       479.357055 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.od.draw.keypoint.detections destructor called (removed from context)
       479.357073 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.od.draw.box.detections destructor called (removed from context)
       479.357091 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.img.hist destructor called (removed from context)
       479.357109 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.sfm destructor called (removed from context)
       479.357127 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.dl.pre.proc destructor called (removed from context)
       479.357146 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.dl.color.blend destructor called (removed from context)
       479.357164 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.dl.draw.box destructor called (removed from context)
       479.357182 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.dl.color.convert destructor called (removed from context)
       479.357208 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.dl.pre.proc.armv8 destructor called (removed from context)
       479.357227 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.dl.color.convert.armv8 destructor called (removed from context)
       479.357269 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.absdiff destructor called (removed from context)
       479.357286 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.accumulate destructor called (removed from context)
       479.357304 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.accumulate_square destructor called (removed from context)
       479.357322 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.accumulate_weighted destructor called (removed from context)
       479.357340 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.add destructor called (removed from context)
       479.357357 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.and destructor called (removed from context)
       479.357374 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.box_3x3 destructor called (removed from context)
       479.357392 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.canny_edge_detector destructor called (removed from context)
       479.357410 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.channel_combine destructor called (removed from context)
       479.357427 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.channel_extract destructor called (removed from context)
       479.357445 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.color_convert destructor called (removed from context)
       479.690048 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.convertdepth destructor called (removed from context)
       479.690079 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.custom_convolution destructor called (removed from context)
       479.690099 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.dilate_3x3 destructor called (removed from context)
       479.690117 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.equalize_histogram destructor called (removed from context)
       479.690135 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.erode_3x3 destructor called (removed from context)
       479.690154 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.fast_corners destructor called (removed from context)
       479.690172 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.gaussian_pyramid destructor called (removed from context)
       479.690189 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.gaussian_3x3 destructor called (removed from context)
       479.690208 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.harris_corners destructor called (removed from context)
       479.690225 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.halfscale_gaussian destructor called (removed from context)
       479.690243 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.histogram destructor called (removed from context)
       479.690261 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.integral_image destructor called (removed from context)
       479.690279 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.laplacian_pyramid destructor called (removed from context)
       479.690296 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.laplacian_reconstruct destructor called (removed from context)
       479.690314 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.table_lookup destructor called (removed from context)
       479.690333 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.magnitude destructor called (removed from context)
       479.690350 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.mean_stddev destructor called (removed from context)
       479.690368 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.median_3x3 destructor called (removed from context)
       479.690386 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.minmaxloc destructor called (removed from context)
       479.690404 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.multiply destructor called (removed from context)
       479.690422 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.non_linear_filter destructor called (removed from context)
       479.690440 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.not destructor called (removed from context)
       479.690457 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.optical_flow_pyr_lk destructor called (removed from context)
       479.690476 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.or destructor called (removed from context)
       479.690494 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.phase destructor called (removed from context)
       479.690512 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.remap destructor called (removed from context)
       479.690529 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.scale_image destructor called (removed from context)
       479.690547 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.sobel_3x3 destructor called (removed from context)
       479.690565 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.subtract destructor called (removed from context)
       480.023149 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.threshold destructor called (removed from context)
       480.023172 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.warp_affine destructor called (removed from context)
       480.023191 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.warp_perspective destructor called (removed from context)
       480.023210 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.xor destructor called (removed from context)
       480.023228 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.supernode destructor called (removed from context)
       480.023345 s:  VX_ZONE_WARNING:[vxReleaseContext:1090] Found a reference 0xffffb6d05150 of type 00000816 at external count 1, internal count 0, releasing it
       480.023358 s:  VX_ZONE_WARNING:[vxReleaseContext:1092] Releasing reference (name=multi_scaler_node_coeff_obj) now as a part of garbage collection
       480.023491 s:  VX_ZONE_WARNING:[vxReleaseContext:1090] Found a reference 0xffffb6d05370 of type 00000816 at external count 1, internal count 0, releasing it
       480.023506 s:  VX_ZONE_WARNING:[vxReleaseContext:1092] Releasing reference (name=user_data_object_92) now as a part of garbage collection
       480.023564 s:  VX_ZONE_WARNING:[vxReleaseContext:1090] Found a reference 0xffffb6da43f8 of type 00000813 at external count 1, internal count 0, releasing it
       480.023578 s:  VX_ZONE_WARNING:[vxReleaseContext:1092] Releasing reference (name=object_array_93) now as a part of garbage collection
       480.023602 s:  VX_ZONE_WARNING:[vxReleaseContext:1090] Found a reference 0xffffb6d37508 of type 0000080f at external count 1, internal count 0, releasing it
       480.023615 s:  VX_ZONE_WARNING:[vxReleaseContext:1092] Releasing reference (name=image_94) now as a part of garbage collection
       480.023634 s:  VX_ZONE_WARNING:[vxReleaseContext:1090] Found a reference 0xffffb6da4598 of type 00000813 at external count 1, internal count 0, releasing it
       480.023647 s:  VX_ZONE_WARNING:[vxReleaseContext:1092] Releasing reference (name=scaler_node_output_arr0_buf0) now as a part of garbage collection
       480.023666 s:  VX_ZONE_WARNING:[vxReleaseContext:1090] Found a reference 0xffffb6d377c0 of type 0000080f at external count 1, internal count 0, releasing it
       480.023679 s:  VX_ZONE_WARNING:[vxReleaseContext:1092] Releasing reference (name=image_96) now as a part of garbage collection
       480.023744 s:  VX_ZONE_INFO:[tivxQueueDelete:182] if this hangs, please ensure all application threads have been destroyed
       480.023757 s:  VX_ZONE_INFO:[tivxQueueDelete:182] if this hangs, please ensure all application threads have been destroyed
       480.023770 s:  VX_ZONE_INFO:[tivxQueueDelete:182] if this hangs, please ensure all application threads have been destroyed
       480.023781 s:  VX_ZONE_INFO:[tivxQueueDelete:182] if this hangs, please ensure all application threads have been destroyed
       480.023829 s:  VX_ZONE_INIT:[tivxHostDeInitLocal:115] De-Initialization Done for HOST !!!
       480.024960 s:  VX_ZONE_INFO:[tivxQueueDelete:182] if this hangs, please ensure all application threads have been destroyed
       480.026048 s:  VX_ZONE_INFO:[tivxQueueDelete:182] if this hangs, please ensure all application threads have been destroyed
       480.027134 s:  VX_ZONE_INFO:[tivxQueueDelete:182] if this hangs, please ensure all application threads have been destroyed
       480.028219 s:  VX_ZONE_INFO:[tivxQueueDelete:182] if this hangs, please ensure all application threads have been destroyed
       480.028345 s:  VX_ZONE_INIT:[tivxDeInitLocal:194] De-Initialization Done !!!
    APP: Deinit ... !!!
    REMOTE_SERVICE: Deinit ... !!!
    REMOTE_SERVICE: Deinit ... Done !!!
    IPC: Deinit ... !!!
    Caught SIGSEGV
    #0  0x0000ffffb73d91d8 in wait4 () from /lib/libc.so.6
    #1  0x0000ffffb7574358 in g_on_error_stack_trace ()
    #2  0x00000000004053a4 in ?? ()
    #3  <signal handler called>
    #4  0x0000ffffb73a1ae4 in ?? () from /lib/libc.so.6
    #5  0x0000ffffb5c6e3a8 in appIpcDeleteRpmsgRxTask ()
    #6  0x0000ffffb5c6d94c in appIpcDeInit ()
    #7  0x0000ffffb5c742e0 in appCommonDeInit ()
    #8  0x0000ffffb6f094ec in ?? () from /usr/lib/libgsttiovx-1.0.so.1
    #9  0x0000ffffb74ed120 in g_object_unref () from /usr/lib/libgobject-2.0.so.0
    #10 0x0000ffffb6f12eac in ?? () from /usr/lib/libgsttiovx-1.0.so.1
    #11 0x0000ffffb74ed120 in g_object_unref () from /usr/lib/libgobject-2.0.so.0
    #12 0x0000ffffb76e6f1c in ?? () from /usr/lib/libgstreamer-1.0.so.0
    #13 0x0000ffffb76e5f68 in gst_bin_remove () from /usr/lib/libgstreamer-1.0.so.0
    #14 0x0000ffffb76e62bc in ?? () from /usr/lib/libgstreamer-1.0.so.0
    #15 0x0000ffffb74ed01c in g_object_unref () from /usr/lib/libgobject-2.0.so.0
    #16 0x0000000000404244 in ?? ()
    #17 0x0000ffffb734b230 in ?? () from /lib/libc.so.6
    #18 0x0000ffffb734b30c in __libc_start_main () from /lib/libc.so.6
    #19 0x00000000004045f0 in _start ()
    Spinning.  Please run 'gdb gst-launch-1.0 1273' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.
    

    Please have a look at the same and let me know if you can find the issue from the logs.

    Regards,

    Ann Rose Antony

  • After updating the libtivision_apps library APP_LOG error was resolved.

    Thanks for confirming, Ann. I'll make sure this missing step gets resolved in the documentation.

    But looks like the cores didn't attach correctly, still. Could you share a boot log?

    Further, could you run /opt/vision_apps/vision_apps_init.sh and share the log from that as well?

    BR,
    Reese

  • Also, have you been viewing the firmware-builder user-guide section 2.3.3 (Steps to update memory map) as standalone, such that the following steps are not done for 'build instructions' and 'creation of SD card'? I understand you are using Ethernet boot, so perhaps the SD card portion is not valid.

    The instructions direct users to make an SD card from the base SDK, and copy firmware for C7x and u-boot image. This is missing out on complied libraries like libtivision_apps.so.

    I see this doc does not have an instruction to run any of the 'linux_fs_...' targets. The linux_fs_stage and linux_fs_install make targets ensure that compiled libraries are being updated in the linux rootfs. The former puts files into a staging area under /tmp and the latter copies those into the FIRMWARE_BUILDER_PATH/targetfs. That targetfs needs to be what the SoC uses for its root filesystem.

    These make targets are kept under FIRMWARE_BUILDER_PATH/sdk_builder/makerules/makefile_linux_arm.mak

    Would you please try some of these linux_fs_  make targets as would best apply to your boot flow?

    BR,
    Reese

  • Hi Reese,

    I planned to work with the SD Boot mode itself if you suspect the binaries are not copied properly. Will use the linux_fs_install_sd command for copying the files to the SD Card.

    I am facing an issue in accessing the secure resources for getting the documentation for the same. Could you please verify that it is a glitch in the website that defers access to the secured resources or my login alon is having that issue

    Regards,

    Ann Rose ANtony

  • Hi Ann,

    There was a glitch recently with ti.com for some of the SDK pages, but that should have been resolved last week. Are you able to access the firmware builder at all with your login?

    https://www.ti.com/secureresources/FIRMWARE-BUILDER-AM62A?

    There is a user-guide tarball there with directions. I'm able to load this on my side.

    I'll note that I had some challenges doing the direct SD card install in the past. My preferred message is to untar the targetfs tarball directly onto the SD card partition created for the rootfs (assuming the SDK was already flashed onto the SD card such that appropriate partitions already exist). Some of the make targets for installing to SD card will run into permissions errors. If you prepend 'sudo' to circumvent this, include the "-E" tag to ensure it passes along environment variables like SOC

    BR,
    Reese

  • Hi Reese

    https://www.ti.com/secureresources/FIRMWARE-BUILDER-AM62A?

    There is a user-guide tarball there with directions. I'm able to load this on my side.

    When I click on the link you shared, it opens a Request Form to request access. Issuing the same issue now.

    If you prepend 'sudo' to circumvent this, include the "-E" tag to ensure it passes along environment variables like SOC

    Also, I have updated the SD card and used the below command to update the SD card. Could you please confirm whether the command is proper or not?

    sudo -E make linux_fs_install_sd -j`nproc`

    After updating the same I used the SD card to boot the board and issued the command. Later I observed a crash log as shown below:

    root@am62axx-evm:/opt/edgeai-gst-apps# gst-launch-1.0 videotestsrc ! video/x-raw,width=640,heigh=840,format=NV12 ! tiovxmultiscaler ! video/x-raw,width=480,height=360 ! fakesink
    [   39.228784] usb 1-1: reset high-speed USB device number 2 using xhci-hcd
    
    APP: Init ... !!!
    MEM: Init ... !!!
    MEM: Initialized DMA HEAP (fd=5) !!!
    MEM: Init ... Done !!!
    IPC: Init ... !!!
    _rpmsg_char_find_ctrldev: could not find the matching rpmsg_ctrl device for virtio0.rpmsg_chrdev.-1.13
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux_rpmsg_char.c map_vision_apps_cpu_id_to_rpmsg_char_cpu_id 80/home/ann/projects/I1
    _rpmsg_char_find_rproc: 7e000000.dsp does not have any virtio devices!
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux_rpmsg_char.c appIpcCreateTxCh 339 fd=-1
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux.c appIpcInit 294 tx_fds[i]=-1
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux.c appIpcGetCpuName 449 app_cpu_id=1
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux.c appIpcGetCpuName 452
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux.c appIpcGetCpuName 454 name=mcu1_0
    IPC: ERROR: Unable to create TX channels for CPU [mcu1_0] !!!
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux.c appIpcInit 294 tx_fds[i]=-1
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux.c appIpcGetCpuName 449 app_cpu_id=2
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux.c appIpcGetCpuName 452
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux.c appIpcGetCpuName 454 name=c7x_1
    IPC: ERROR: Unable to create TX channels for CPU [c7x_1] !!!
    IPC: Init ... Done !!!
    APP: ERROR: IPC init failed !!!
    REMOTE_SERVICE: Init ... !!!
    _rpmsg_char_find_ctrldev: could not find the matching rpmsg_ctrl device for virtio0.rpmsg_chrdev.-1.21
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux_rpmsg_char.c map_vision_apps_cpu_id_to_rpmsg_char_cpu_id 80/home/ann/projects/I1
    _rpmsg_char_find_rproc: 7e000000.dsp does not have any virtio devices!
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux_rpmsg_char.c appIpcCreateTxCh 339 fd=-1
    REMOTE_SERVICE: Init ... Done !!!
        48.234603 s: GTC Frequency = 200 MHz
    APP: Init ... Done !!!
        48.236840 s:  VX_ZONE_INIT:Enabled
        48.236870 s:  VX_ZONE_ERROR:Enabled
        48.236888 s:  VX_ZONE_WARNING:Enabled
        48.236904 s:  VX_ZONE_INFO:Enabled
        48.236921 s:  VX_ZONE_LOG:Enabled
        48.239292 s:  VX_ZONE_INIT:[tivxInitLocal:131] Initialization Done !!!
        48.241441 s:  VX_ZONE_INIT:[tivxHostInitLocal:101] Initialization Done for HOST !!!
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 137: i=0
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 140: i=0
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 137: i=1
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 140: i=1
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 137: i=2
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 140: i=2
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 137: i=3
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 140: i=3
        48.587003 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.img.hist on target MPU-0
        48.587622 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.pre.proc.armv8 on target MPU-0
        48.587724 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.pre.proc.armv8 on target MPU-1
        48.587813 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.pre.proc.armv8 on target MPU-2
        48.587901 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.pre.proc.armv8 on target MPU-3
        48.587990 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.post.proc on target MPU-0
        48.588078 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.color.convert.armv8 on target MPU-0
        48.588166 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.color.convert.armv8 on target MPU-1
        48.588252 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.color.convert.armv8 on target MPU-2
        48.588339 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.color.convert.armv8 on target MPU-3
    Setting pipeline to PAUSED ...
    Pipeline is PREROLLING ...
        48.619062 s:  VX_ZONE_INFO:[ownIsValidReference:122] Reference was NULL
        48.619190 s:  VX_ZONE_INFO:[ownIsValidReference:122] Reference was NULL
        48.619239 s:  VX_ZONE_INFO:[ownIsValidReference:122] Reference was NULL
        48.619285 s:  VX_ZONE_INFO:[ownIsValidReference:122] Reference was NULL
        48.620342 s:  VX_ZONE_INFO:[ownNodeKernelValidate:229] Validating kernel com.ti.hwa.vpac_msc_multi_scale
        48.621104 s:  VX_ZONE_INFO:[ownNodeKernelInit:512] Calling create callback for node scaler_node
        48.621144 s:  VX_ZONE_ERROR:[ownIpcSendMsg:131] OpenVX send notification failed
        48.621166 s:  VX_ZONE_ERROR:[ownObjDescSend:271] ownIpcSendMsg failed
        48.621188 s:  VX_ZONE_INFO:[ownNodeKernelInit:518] Create callback for node scaler_node completed
        48.621209 s:  VX_ZONE_ERROR:[ownNodeKernelInit:527] Target kernel, TIVX_CMD_NODE_CREATE failed for node scaler_node
        48.621231 s:  VX_ZONE_ERROR:[ownNodeKernelInit:528] Please be sure the target callbacks have been registered for this core
        48.621252 s:  VX_ZONE_ERROR:[ownNodeKernelInit:529] If the target callbacks have been registered, please ensure no errors are occurring within the create callback of this kernel
        48.621278 s:  VX_ZONE_INFO:[ownGraphNodeKernelInit:578] kernel init for node 0, kernel com.ti.hwa.vpac_msc_multi_scale ...
        48.621301 s:  VX_ZONE_ERROR:[ownGraphNodeKernelInit:583] kernel init for node 0, kernel com.ti.hwa.vpac_msc_multi_scale ... failed !!!
        48.621327 s:  VX_ZONE_ERROR:[vxVerifyGraph:2055] Node kernel init failed
        48.621348 s:  VX_ZONE_ERROR:[vxVerifyGraph:2109] Graph verify failed
        48.622023 s:  VX_ZONE_INFO:[tivxQueueDelete:182] if this hangs, please ensure all application threads have been destroyed
        48.622058 s:  VX_ZONE_ERROR:[ownReleaseReferenceInt:294] Invalid reference
        48.623993 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
        48.624040 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
        48.643247 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
        48.643293 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
        48.643314 s:  VX_ZONE_INFO:[ownIsValidReference:122] Reference was NULL
        48.643331 s:  VX_ZONE_ERROR:[vxGetStatus:700] Reference is NULL
    
    ** (gst-launch-1.0:1115): CRITICAL **: 18:11:18.023: gst_tiovx_simo_process_graph: assertion 'VX_SUCCESS == vxGetStatus ((vx_reference) priv->graph)' failed
    ERROR: from element /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0: Internal data stream error.
    Additional debug info:
    ../gstreamer-1.20.6/libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0:
    streaming stopped, reason not-linked (-1)
    ERROR: pipeline doesn't want to preroll.
    Setting pipeline to NULL ...
        48.975485 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
        48.975595 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
        48.976317 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
        48.976402 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
    Freeing pipeline ...
        48.979615 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
        48.979712 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
        48.980324 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
        48.980406 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
        48.980914 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
        48.980994 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
        48.981447 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
        48.981527 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
        48.981908 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.hwa.vpac_ldc destructor called (removed from context)
        48.982033 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.hwa.vpac_msc_multi_scale destructor called (removed from context)
        48.982143 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.hwa.vpac_msc_pyramid destructor called (removed from context)
        48.982249 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.hwa.vpac_viss destructor called (removed from context)
        48.982362 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.img.preprocess destructor called (removed from context)
        48.982467 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.oc.pre.proc destructor called (removed from context)
        48.982571 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.oc.post.proc destructor called (removed from context)
        48.982674 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.od.postprocess destructor called (removed from context)
        48.982779 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.dof.plane.seperation destructor called (removed from context)
        48.982883 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.pose.visualization destructor called (removed from context)
        48.982989 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.visual.localization destructor called (removed from context)
        48.983218 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.od.draw.keypoint.detections destructor called (removed from context)
        48.983338 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.od.draw.box.detections destructor called (removed from context)
        48.983446 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.img.hist destructor called (removed from context)
        48.983550 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.sfm destructor called (removed from context)
        48.983653 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.dl.pre.proc destructor called (removed from context)
        48.983757 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.dl.color.blend destructor called (removed from context)
        48.983861 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.dl.draw.box destructor called (removed from context)
        48.983965 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.dl.color.convert destructor called (removed from context)
        48.984099 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.dl.pre.proc.armv8 destructor called (removed from context)
        49.312485 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.dl.color.convert.armv8 destructor called (removed from context)
        49.312748 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.absdiff destructor called (removed from context)
        49.312858 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.accumulate destructor called (removed from context)
        49.312963 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.accumulate_square destructor called (removed from context)
        49.313067 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.accumulate_weighted destructor called (removed from context)
        49.313169 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.add destructor called (removed from context)
        49.313270 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.and destructor called (removed from context)
        49.313370 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.box_3x3 destructor called (removed from context)
        49.313472 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.canny_edge_detector destructor called (removed from context)
        49.313575 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.channel_combine destructor called (removed from context)
        49.313677 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.channel_extract destructor called (removed from context)
        49.313780 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.color_convert destructor called (removed from context)
        49.313881 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.convertdepth destructor called (removed from context)
        49.313984 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.custom_convolution destructor called (removed from context)
        49.314087 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.dilate_3x3 destructor called (removed from context)
        49.314190 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.equalize_histogram destructor called (removed from context)
        49.314291 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.erode_3x3 destructor called (removed from context)
        49.314392 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.fast_corners destructor called (removed from context)
        49.314494 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.gaussian_pyramid destructor called (removed from context)
        49.314597 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.gaussian_3x3 destructor called (removed from context)
        49.314701 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.harris_corners destructor called (removed from context)
        49.314804 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.halfscale_gaussian destructor called (removed from context)
        49.314906 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.histogram destructor called (removed from context)
        49.315009 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.integral_image destructor called (removed from context)
        49.315241 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.laplacian_pyramid destructor called (removed from context)
        49.315357 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.laplacian_reconstruct destructor called (removed from context)
        49.315464 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.table_lookup destructor called (removed from context)
        49.315567 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.magnitude destructor called (removed from context)
        49.646145 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.mean_stddev destructor called (removed from context)
        49.646265 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.median_3x3 destructor called (removed from context)
        49.646371 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.minmaxloc destructor called (removed from context)
        49.646475 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.multiply destructor called (removed from context)
        49.646578 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.non_linear_filter destructor called (removed from context)
        49.646681 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.not destructor called (removed from context)
        49.646783 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.optical_flow_pyr_lk destructor called (removed from context)
        49.646886 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.or destructor called (removed from context)
        49.646990 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.phase destructor called (removed from context)
        49.647236 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.remap destructor called (removed from context)
        49.647354 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.scale_image destructor called (removed from context)
        49.647463 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.sobel_3x3 destructor called (removed from context)
        49.647567 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.subtract destructor called (removed from context)
        49.647671 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.threshold destructor called (removed from context)
        49.647774 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.warp_affine destructor called (removed from context)
        49.647878 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.warp_perspective destructor called (removed from context)
        49.647982 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.xor destructor called (removed from context)
        49.648084 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.supernode destructor called (removed from context)
        49.648792 s:  VX_ZONE_WARNING:[vxReleaseContext:1090] Found a reference 0xffff8a195150 of type 00000816 at external count 1, internal count 0, releasing it
        49.648864 s:  VX_ZONE_WARNING:[vxReleaseContext:1092] Releasing reference (name=multi_scaler_node_coeff_obj) now as a part of garbage collection
        49.649290 s:  VX_ZONE_WARNING:[vxReleaseContext:1090] Found a reference 0xffff8a195370 of type 00000816 at external count 1, internal count 0, releasing it
        49.649377 s:  VX_ZONE_WARNING:[vxReleaseContext:1092] Releasing reference (name=user_data_object_92) now as a part of garbage collection
        49.649667 s:  VX_ZONE_WARNING:[vxReleaseContext:1090] Found a reference 0xffff8a2343f8 of type 00000813 at external count 1, internal count 0, releasing it
        49.649750 s:  VX_ZONE_WARNING:[vxReleaseContext:1092] Releasing reference (name=object_array_93) now as a part of garbage collection
        49.649873 s:  VX_ZONE_WARNING:[vxReleaseContext:1090] Found a reference 0xffff8a1c7508 of type 0000080f at external count 1, internal count 0, releasing it
        49.649946 s:  VX_ZONE_WARNING:[vxReleaseContext:1092] Releasing reference (name=ima+-----------------------------+ collection
        49.650055 s:  VX_ZONE_WARNING:[vxReleaseContext:1090] Found a reference 0xffff8a234|                             |l count 1, internal count 0, releasing it
        49.650126 s:  VX_ZONE_WARNING:[vxReleaseContext:1092] Releasing reference (name=sca|  Cannot open /dev/ttyUSB0!  |as a part of garbage collection
        49.979929 s:  VX_ZONE_WARNING:[vxReleaseContext:1090] Found a reference 0xffff8a1c7|                             |l count 1, internal count 0, releasing it
        49.980027 s:  VX_ZONE_WARNING:[vxReleaseContext:1092] Releasing reference (name=ima+-----------------------------+ collection
        49.980357 s:  VX_ZONE_INFO:[tivxQueueDelete:182] if this hangs, please ensure all application threads have been destroyed
        49.980433 s:  VX_ZONE_INFO:[tivxQueueDelete:182] if this hangs, please ensure all application threads have been destroyed
        49.980503 s:  VX_ZONE_INFO:[tivxQueueDelete:182] if this hangs, please ensure all application threads have been destroyed
        49.980574 s:  VX_ZONE_INFO:[tivxQueueDelete:182] if this hangs, please ensure all application threads have been destroyed
        49.980764 s:  VX_ZONE_INIT:[tivxHostDeInitLocal:115] De-Initialization Done for HOST !!!
        49.982078 s:  VX_ZONE_INFO:[tivxQueueDelete:182] if this hangs, please ensure all application threads have been destroyed
        49.983205 s:  VX_ZONE_INFO:[tivxQueueDelete:182] if this hangs, please ensure all application threads have been destroyed
        49.984323 s:  VX_ZONE_INFO:[tivxQueueDelete:182] if this hangs, please ensure all application threads have been destroyed
        49.985439 s:  VX_ZONE_INFO:[tivxQueueDelete:182] if this hangs, please ensure all application threads have been destroyed
        49.985673 s:  VX_ZONE_INIT:[tivxDeInitLocal:194] De-Initialization Done !!!
    APP: Deinit ... !!!
    REMOTE_SERVICE: Deinit ... !!!
    REMOTE_SERVICE: Deinit ... Done !!!
    IPC: Deinit ... !!!
    Caught SIGSEGV
    #0  0x0000ffff8a8691d8 in wait4 () from /lib/libc.so.6
    #1  0x0000ffff8aa04358 in g_on_error_stack_trace ()
    #2  0x00000000004053a4 in ?? ()
    #3  <signal handler called>
    #4  0x0000ffff8a831ae4 in ?? () from /lib/libc.so.6
    #5  0x0000ffff890fe558 in appIpcDeleteRpmsgRxTask ()
    #6  0x0000ffff890fd94c in appIpcDeInit ()
    #7  0x0000ffff89104490 in appCommonDeInit ()
    #8  0x0000ffff8a3994ec in ?? () from /usr/lib/libgsttiovx-1.0.so.1
    #9  0x0000ffff8a97d120 in g_object_unref () from /usr/lib/libgobject-2.0.so.0
    #10 0x0000ffff8a3a2eac in ?? () from /usr/lib/libgsttiovx-1.0.so.1
    #11 0x0000ffff8a97d120 in g_object_unref () from /usr/lib/libgobject-2.0.so.0
    #12 0x0000ffff8ab76f1c in ?? () from /usr/lib/libgstreamer-1.0.so.0
    #13 0x0000ffff8ab75f68 in gst_bin_remove () from /usr/lib/libgstreamer-1.0.so.0
    #14 0x0000ffff8ab762bc in ?? () from /usr/lib/libgstreamer-1.0.so.0
    #15 0x0000ffff8a97d01c in g_object_unref () from /usr/lib/libgobject-2.0.so.0
    #16 0x0000000000404244 in ?? ()
    #17 0x0000ffff8a7db230 in ?? () from /lib/libc.so.6
    #18 0x0000ffff8a7db30c in __libc_start_main () from /lib/libc.so.6
    #19 0x00000000004045f0 in _start ()
    Spinning.  Please run 'gdb gst-launch-1.0 1115' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.

    Could you please let me know what other things I need to take care?

    Regards,

    Ann Rose Antony

  • Hi Ann,

    Hmm, you should have already had access to that page, since you have firmware-builder in the first place. It should show for you under your Secure Resources

    https://www.ti.com/securesoftware/docs/securesoftware

    Is this not the case?

    That log definitely looks like we've moved a step backward. The remote cores did not seem to start/attach correctly. I think we've lost consistency somewhere. How did you initially setup the SD card?

    My recommended flow would have be:

    1. Take .wic.xz image for 9.0.0 Edge AI SDK for AM62A.
    2. Use tool like Balena Etcher to flash to an SD card. Leave the SD card in
    3. Rebuild the firmware-builder (make sdk_clean sdk -j`nproc`)
      1. in your case, double check on the instructions for updating the memory map and that everything still matches what you would have modified.
        1. You may still need to manually update the DTS if you didn't replace the one in the Linux SDK. I think other changes should be applied automatically
    4. Run the SD-install command as you did. I see no issue with how the command is created/formatted
      1. alternatively, run as linux_fs_stage_tar, and then untar the resulting bootfs and targetfs tarballs into the existing boot and rootfs partitions, respectively
    5. `sync` command to let SD card finish writing
    6. plug into EVM and boot

    If it still fails, please share the commands you had run, a boot log, and log from /opt/vx_app_arm_remote_log.out

    BR,
    Reese

  • Hi Reese,

    Hmm, you should have already had access to that page, since you have firmware-builder in the first place. It should show for you under your Secure Resources

    https://www.ti.com/securesoftware/docs/securesoftware

    Is this not the case?

    I am still facing the same issue with the secure resources.

    I have modified some changes in the memory map, later the remote core is attached properly.

    The updated memory map is as shown below:

    Partition Start Address Size
    DDR_C7x_1_IPC 0x99800000 1024.00 KB
    DDR_C7x_1_RESOURCE_TABLE 0x99900000 1024.00 B
    DDR_C7X_1_IPC_TRACEBUF 0x99900400 1023.00 KB
    DDR_C7x_1_BOOT 0x99A00000 1024.00 B
    DDR_C7x_1_VECS 0x99C00000 16.00 KB
    DDR_C7x_1 0x99C10000 27.94 MB
    DDR_MCU_R5F_IPC 0x9B800000 1024.00 KB
    DDR_MCU_R5F_RESOURCE_TABLE 0x9B900000 1024.00 B
    DDR_MCU_R5F_IPC_TRACEBUF 0x9B900400 1023.00 KB
    DDR_MCU_R5F 0x9BA00000 14.00 MB
    DDR_DM_R5F_IPC 0x9C800000 1024.00 KB
    DDR_DM_R5F_RESOURCE_TABLE 0x9C900000 1024 B
    DDR_DM_R5F_IPC_TRACEBUF 0x9C900400 1023.00 KB
    DDR_DM_R5F 0x9CA00000 13.00 MB
    TIFS_LPM_CTX 9D700000 512.00 KB
    ATF_MEM 9D780000 512.00 KB
    OPTEE_MEM 9D800000 24.00 MB
    IPC_VRING_MEM 9F000000 16.00 MB
    APP_LOG_MEM A0000000 256.00 KB
    TIOVX_OBJ_DESC_MEM A0040000 15.75 MB
    TIOVX_LOG_RT_MEM A1000000 16.00 MB
    DDR_SHARED_MEM A2000000 64.00 MB
    DDR_MCU_R5F_LOCAL_HEAP A6000000 16.00 MB
    DDR_DM_R5F_LOCAL_HEAP A7000000 16.00 MB
    DDR_C7X_1_LOCAL_HEAP_NON_CACHEABLE A8000000 16.00 MB
    DDR_C7X_1_SCRATCH_NON_CACHEABLE A9000000 16.00 MB
    DDR_C7X_1_LOCAL_HEAP AA000000 48.00 MB
    DDR_C7X_1_SCRATCH 0xAD000000 48.00 MB

    Attaching the complete boot log

    U-Boot SPL 2023.04-gbd74e615a6 (Sep 06 2023 - 10:09:25 +0000)
    SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.7--v09.00.07 (Kool Koala)')
    am62a_init: board_init_f done
    SPL initial stack usage: 17032 bytes
    am62a_init: spl_boot_device: devstat = 0x243 bootmedia = 0x8 bootindex = 0
    Trying to boot from MMC2
    am62a_init: spl_boot_device: devstat = 0x243 bootmedia = 0x8 bootindex = 0
    Authentication passed
    am62a_init: spl_boot_device: devstat = 0x243 bootmedia = 0x8 bootindex = 0
    Authentication passed
    am62a_init: spl_boot_device: devstat = 0x243 bootmedia = 0x8 bootindex = 0
    Authentication passed
    am62a_init: spl_boot_device: devstat = 0x243 bootmedia = 0x8 bootindex = 0
    Authentication passed
    am62a_init: spl_boot_device: devstat = 0x243 bootmedia = 0x8 bootindex = 0
    Authentication passed
    Starting ATF on ARM64 core...
    
    NOTICE:  BL31: v2.9(release):v2.9.0-dirty
    NOTICE:  BL31: Built : 14:12:59, May 22 2023
    
    U-Boot SPL 2023.04-00027-gfeee47292b-dirty (Jul 19 2024 - 16:48:49 +0530)
    SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.7--v09.00.07 (Kool Koala)')
    am62a_init: spl_boot_device: devstat = 0x243 bootmedia = 0x8 bootindex = 0
    am62a_init: board_init_f done
    am62a_init: spl_boot_device: devstat = 0x243 bootmedia = 0x8 bootindex = 0
    Trying to boot from MMC2
    am62a_init: spl_boot_device: devstat = 0x243 bootmedia = 0x8 bootindex = 0
    Authentication passed
    am62a_init: spl_boot_device: devstat = 0x243 bootmedia = 0x8 bootindex = 0
    Authentication passed
    
    
    U-Boot 2023.04-00027-gfeee47292b-dirty (Jul 17 2024 - 12:21:43 +0530)
    
    SoC:   AM62AX SR1.0 HS-FS
    Model: Texas Instruments AM62A7 SK
    DRAM:  2 GiB (effective 4 GiB)
    Core:  57 devices, 27 uclasses, devicetree: separate
    Flash: 0 Bytes
    MMC:   mmc@fa10000: 0, mmc@fa00000: 1
    Loading Environment from nowhere... OK
    In:    serial@2800000
    Out:   serial@2800000
    Err:   serial@2800000
    Net:   eth0: ethernet@8000000port@1
    Hit any key to stop autoboot:  0 
    switch to partitions #0, OK
    mmc1 is current device
    SD/MMC found on device 1
    Failed to load 'boot.scr'
    574 bytes read in 22 ms (25.4 KiB/s)
    Loaded env from uEnv.txt
    Importing environment from mmc1 ...
    ## Error: "main_cpsw0_qsgmii_phyinit" not defined
    20920832 bytes read in 890 ms (22.4 MiB/s)
    55780 bytes read in 27 ms (2 MiB/s)
    Working FDT set to 88000000
    Failed to load '/boot/dtb/ti/k3-am62a7-sk-csi2-ox03f10.dtbo'
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
    Working FDT set to 88000000
       Loading Device Tree to 000000008feef000, end 000000008fffffff ... OK
    Working FDT set to 8feef000
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
    [    0.000000] Linux version 6.1.46-gf8110d9ce8 (oe-user@oe-host) (aarch64-oe-linux-gcc (GCC) 11.3.0, GNU ld (GNU Binutils) 2.38.20220708) #1 SMP PREEMPT Mon Sep  4 04:45:34 UTC 2023
    [    0.000000] Machine model: Texas Instruments AM62A7 SK
    [    0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (options '')
    [    0.000000] printk: bootconsole [ns16550a0] enabled
    [    0.000000] efi: UEFI not found.
    [    0.000000] Reserved memory: created CMA memory pool at 0x00000000b0000000, size 256 MiB
    [    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x0000000099800000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node c7x-dma-memory@99800000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x0000000099900000, size 31 MiB
    [    0.000000] OF: reserved mem: initialized node c7x-memory@99900000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x000000009b800000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@9b800000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x000000009b900000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@9b900000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x000000009c800000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@9c800000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x000000009c900000, size 14 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@9c900000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a0000000, size 32 MiB
    [    0.000000] OF: reserved mem: initialized node edgeai-dma-memory@a0000000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: initialized node edgeai_shared-memories, compatible id dma-heap-carveout
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a6000000, size 160 MiB
    [    0.000000] OF: reserved mem: initialized node edgeai-core-heap-memory@a5000000, compatible id shared-dma-pool
    [    0.000000] Zone ranges:
    [    0.000000]   DMA      [mem 0x0000000080000000-0x00000000ffffffff]
    [    0.000000]   DMA32    empty
    [    0.000000]   Normal   [mem 0x0000000100000000-0x00000008ffffffff]
    [    0.000000] Movable zone start for each node
    [    0.000000] Early memory node ranges
    [    0.000000]   node   0: [mem 0x0000000080000000-0x00000000997fffff]
    [    0.000000]   node   0: [mem 0x0000000099800000-0x000000009d6fffff]
    [    0.000000]   node   0: [mem 0x000000009d700000-0x000000009d77ffff]
    [    0.000000]   node   0: [mem 0x000000009d780000-0x000000009dcfffff]
    [    0.000000]   node   0: [mem 0x000000009dd00000-0x000000009dffffff]
    [    0.000000]   node   0: [mem 0x000000009e000000-0x000000009effffff]
    [    0.000000]   node   0: [mem 0x000000009f000000-0x000000009fffffff]
    [    0.000000]   node   0: [mem 0x00000000a0000000-0x00000000a1ffffff]
    [    0.000000]   node   0: [mem 0x00000000a2000000-0x00000000a5ffffff]
    [    0.000000]   node   0: [mem 0x00000000a6000000-0x00000000afffffff]
    [    0.000000]   node   0: [mem 0x00000000b0000000-0x00000000ffffffff]
    [    0.000000]   node   0: [mem 0x0000000880000000-0x00000008ffffffff]
    [    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000008ffffffff]
    [    0.000000] psci: probing for conduit method from DT.
    [    0.000000] psci: PSCIv1.1 detected in firmware.
    [    0.000000] psci: Using standard PSCI v0.2 function IDs
    [    0.000000] psci: Trusted OS migration not required
    [    0.000000] psci: SMC Calling Convention v1.2
    [    0.000000] percpu: Embedded 19 pages/cpu s38376 r8192 d31256 u77824
    [    0.000000] Detected VIPT I-cache on CPU0
    [    0.000000] CPU features: detected: GIC system register CPU interface
    [    0.000000] CPU features: detected: ARM erratum 845719
    [    0.000000] alternatives: applying boot alternatives
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1032192
    [    0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 mtdparts=fc40000.spi.0:512k(ospi_nor.tiboot3),2m(ospi_nor.tispl),4m(ospi_nor.u-boot),256k(ospi_nor.env),256kt
    [    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
    [    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
    [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
    [    0.000000] software IO TLB: area num 4.
    [    0.000000] software IO TLB: mapped [mem 0x00000000fbfff000-0x00000000fffff000] (64MB)
    [    0.000000] Memory: 3416224K/4194304K available (12480K kernel code, 1294K rwdata, 4360K rodata, 2176K init, 498K bss, 515936K reserved, 262144K cma-reserved)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
    [    0.000000] rcu: Preemptible hierarchical RCU implementation.
    [    0.000000] rcu:     RCU event tracing is enabled.
    [    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
    [    0.000000]  Trampoline variant of Tasks RCU enabled.
    [    0.000000]  Tracing variant of Tasks RCU enabled.
    [    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
    [    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
    [    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
    [    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
    [    0.000000] GICv3: 256 SPIs implemented
    [    0.000000] GICv3: 0 Extended SPIs implemented
    [    0.000000] Root IRQ handler: gic_handle_irq
    [    0.000000] GICv3: GICv3 features: 16 PPIs
    [    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000001880000
    [    0.000000] ITS [mem 0x01820000-0x0182ffff]
    [    0.000000] GIC: enabling workaround for ITS: Socionext Synquacer pre-ITS
    [    0.000000] ITS@0x0000000001820000: Devices Table too large, reduce ids 20->19
    [    0.000000] ITS@0x0000000001820000: allocated 524288 Devices @880800000 (flat, esz 8, psz 64K, shr 0)
    [    0.000000] ITS: using cache flushing for cmd queue
    [    0.000000] GICv3: using LPI property table @0x0000000880040000
    [    0.000000] GIC: using cache flushing for LPI property table
    [    0.000000] GICv3: CPU0: using allocated LPI pending table @0x0000000880050000
    [    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
    [    0.000000] arch_timer: cp15 timer(s) running at 200.00MHz (phys).
    [    0.000000] clocksource: arch_sys_counter: mask: 0x3ffffffffffffff max_cycles: 0x2e2049d3e8, max_idle_ns: 440795210634 ns
    [    0.000000] sched_clock: 58 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
    [    0.008487] Console: colour dummy device 80x25
    [    0.013069] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000)
    [    0.023750] pid_max: default: 32768 minimum: 301
    [    0.028516] LSM: Security Framework initializing
    [    0.033336] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
    [    0.040914] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
    [    0.050331] cblist_init_generic: Setting adjustable number of callback queues.
    [    0.057765] cblist_init_generic: Setting shift to 2 and lim to 1.
    [    0.064056] cblist_init_generic: Setting adjustable number of callback queues.
    [    0.071450] cblist_init_generic: Setting shift to 2 and lim to 1.
    [    0.077816] rcu: Hierarchical SRCU implementation.
    [    0.082720] rcu:     Max phase no-delay instances is 1000.
    [    0.088276] Platform MSI: msi-controller@1820000 domain created
    [    0.094526] PCI/MSI: /bus@f0000/interrupt-controller@1800000/msi-controller@1820000 domain created
    [    0.104387] EFI services will not be available.
    [    0.109240] smp: Bringing up secondary CPUs ...
    [    0.114429] Detected VIPT I-cache on CPU1
    [    0.114519] GICv3: CPU1: found redistributor 1 region 0:0x00000000018a0000
    [    0.114534] GICv3: CPU1: using allocated LPI pending table @0x0000000880060000
    [    0.114578] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
    [    0.115168] Detected VIPT I-cache on CPU2
    [    0.115233] GICv3: CPU2: found redistributor 2 region 0:0x00000000018c0000
    [    0.115247] GICv3: CPU2: using allocated LPI pending table @0x0000000880070000
    [    0.115279] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
    [    0.115819] Detected VIPT I-cache on CPU3
    [    0.115890] GICv3: CPU3: found redistributor 3 region 0:0x00000000018e0000
    [    0.115904] GICv3: CPU3: using allocated LPI pending table @0x0000000880080000
    [    0.115931] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
    [    0.115995] smp: Brought up 1 node, 4 CPUs
    [    0.195711] SMP: Total of 4 processors activated.
    [    0.200523] CPU features: detected: 32-bit EL0 Support
    [    0.205790] CPU features: detected: CRC32 instructions
    [    0.211102] CPU: All CPU(s) started at EL2
    [    0.215299] alternatives: applying system-wide alternatives
    [    0.222497] devtmpfs: initialized
    [    0.233638] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
    [    0.243644] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
    [    0.256643] pinctrl core: initialized pinctrl subsystem
    [    0.262503] DMI not present or invalid.
    [    0.266974] NET: Registered PF_NETLINK/PF_ROUTE protocol family
    [    0.273901] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
    [    0.281329] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
    [    0.289406] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
    [    0.297566] audit: initializing netlink subsys (disabled)
    [    0.303211] audit: type=2000 audit(0.192:1): state=initialized audit_enabled=0 res=1
    [    0.303607] thermal_sys: Registered thermal governor 'step_wise'
    [    0.311138] thermal_sys: Registered thermal governor 'power_allocator'
    [    0.317315] cpuidle: using governor menu
    [    0.328147] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
    [    0.335162] ASID allocator initialised with 65536 entries
    [    0.351247] platform 30200000.dss: Fixed dependency cycle(s) with /bus@f0000/i2c@20010000/sii9022@3b
    [    0.362455] platform connector: Fixed dependency cycle(s) with /bus@f0000/i2c@20010000/sii9022@3b
    [    0.371924] KASLR disabled due to lack of seed
    [    0.382961] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
    [    0.389925] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
    [    0.396334] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
    [    0.403274] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
    [    0.409681] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
    [    0.416620] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
    [    0.423027] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
    [    0.429966] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
    [    0.437809] k3-chipinfo 43000014.chipid: Family:AM62AX rev:SR1.0 JTAGID[0x0bb8d02f] Detected
    [    0.447732] iommu: Default domain type: Translated 
    [    0.452742] iommu: DMA domain TLB invalidation policy: strict mode 
    [    0.459415] SCSI subsystem initialized
    [    0.463550] usbcore: registered new interface driver usbfs
    [    0.469191] usbcore: registered new interface driver hub
    [    0.474646] usbcore: registered new device driver usb
    [    0.480266] pps_core: LinuxPPS API ver. 1 registered
    [    0.485344] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.494694] PTP clock support registered
    [    0.498813] EDAC MC: Ver: 3.0.0
    [    0.502782] omap-mailbox 29000000.mailbox: omap mailbox rev 0x66fca100
    [    0.509597] omap-mailbox 29010000.mailbox: omap mailbox rev 0x66fca100
    [    0.516398] omap-mailbox 29020000.mailbox: omap mailbox rev 0x66fca100
    [    0.523126] omap-mailbox 29030000.mailbox: no available mbox devices found
    [    0.530511] FPGA manager framework
    [    0.534051] Advanced Linux Sound Architecture Driver Initialized.
    [    0.541110] clocksource: Switched to clocksource arch_sys_counter
    [    0.547550] VFS: Disk quotas dquot_6.6.0
    [    0.551598] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
    [    0.564160] Carveout Heap: Exported 64 MiB at 0x00000000a2000000
    [    0.570406] NET: Registered PF_INET protocol family
    [    0.575576] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
    [    0.585927] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
    [    0.594737] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
    [    0.602671] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
    [    0.610968] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
    [    0.619313] TCP: Hash tables configured (established 32768 bind 32768)
    [    0.626176] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
    [    0.633136] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
    [    0.640647] NET: Registered PF_UNIX/PF_LOCAL protocol family
    [    0.646816] RPC: Registered named UNIX socket transport module.
    [    0.652891] RPC: Registered udp transport module.
    [    0.657701] RPC: Registered tcp transport module.
    [    0.662509] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.669103] NET: Registered PF_XDP protocol family
    [    0.674011] PCI: CLS 0 bytes, default 64
    [    0.678629] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
    [    0.688411] Initialise system trusted keyrings
    [    0.693170] workingset: timestamp_bits=46 max_order=20 bucket_order=0
    [    0.705201] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.711754] NFS: Registering the id_resolver key type
    [    0.716961] Key type id_resolver registered
    [    0.721238] Key type id_legacy registered
    [    0.725397] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [    0.732252] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
    [    0.739978] 9p: Installing v9fs 9p2000 file system support
    [    0.779925] Key type asymmetric registered
    [    0.784115] Asymmetric key parser 'x509' registered
    [    0.789143] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
    [    0.796835] io scheduler mq-deadline registered
    [    0.801473] io scheduler kyber registered
    [    0.808467] pinctrl-single 4084000.pinctrl: 34 pins, size 136
    [    0.814804] pinctrl-single f4000.pinctrl: 171 pins, size 684
    [    0.821502] pinctrl-single a40000.pinctrl: 512 pins, size 2048
    [    0.834332] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    [    0.847912] loop: module loaded
    [    0.852395] megasas: 07.719.03.00-rc1
    [    0.859825] tun: Universal TUN/TAP device driver, 1.6
    [    0.865710] thunder_xcv, ver 1.0
    [    0.869046] thunder_bgx, ver 1.0
    [    0.872380] nicpf, ver 1.0
    [    0.875531] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
    [    0.882920] hns3: Copyright (c) 2017 Huawei Corporation.
    [    0.888399] hclge is initializing
    [    0.891811] e1000: Intel(R) PRO/1000 Network Driver
    [    0.896798] e1000: Copyright (c) 1999-2006 Intel Corporation.
    [    0.902703] e1000e: Intel(R) PRO/1000 Network Driver
    [    0.907777] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
    [    0.913856] igb: Intel(R) Gigabit Ethernet Network Driver
    [    0.919376] igb: Copyright (c) 2007-2014 Intel Corporation.
    [    0.925110] igbvf: Intel(R) Gigabit Virtual Function Network Driver
    [    0.931519] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
    [    0.937703] sky2: driver version 1.30
    [    0.942113] VFIO - User Level meta-driver version: 0.3
    [    0.947995] usbcore: registered new interface driver usb-storage
    [    0.954817] i2c_dev: i2c /dev entries driver
    [    0.961275] sdhci: Secure Digital Host Controller Interface driver
    [    0.967607] sdhci: Copyright(c) Pierre Ossman
    [    0.972521] Synopsys Designware Multimedia Card Interface Driver
    [    0.979086] sdhci-pltfm: SDHCI platform and OF driver helper
    [    0.985836] ledtrig-cpu: registered to indicate activity on CPUs
    [    0.992154] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
    [    0.999083] usbcore: registered new interface driver usbhid
    [    1.004785] usbhid: USB HID core driver
    [    1.009854] optee: probing for conduit method.
    [    1.014430] optee: revision 3.20 (8e74d476)
    [    1.014682] optee: dynamic shared memory is enabled
    [    1.024307] optee: initialized driver
    [    1.029500] Initializing XFRM netlink socket
    [    1.033909] NET: Registered PF_PACKET protocol family
    [    1.039219] 9pnet: Installing 9P2000 support
    [    1.043647] Key type dns_resolver registered
    [    1.048389] registered taskstats version 1
    [    1.052603] Loading compiled-in X.509 certificates
    [    1.064845] ti-sci 44043000.system-controller: ABI: 3.1 (firmware rev 0x0009 '9.0.7--v09.00.07 (Kool Koala)')
    [    1.104516] omap_i2c 20000000.i2c: bus 0 rev0.12 at 400 kHz
    [    1.111530] pca953x 1-0023: supply vcc not found, using dummy regulator
    [    1.118423] pca953x 1-0023: using AI
    [    1.147677] omap_i2c 20010000.i2c: bus 1 rev0.12 at 100 kHz
    [    1.154438] omap_i2c 20020000.i2c: bus 2 rev0.12 at 400 kHz
    [    1.160366] ti-sci-intr 4210000.interrupt-controller: Interrupt Router 5 domain created
    [    1.168691] ti-sci-intr bus@f0000:interrupt-controller@a00000: Interrupt Router 3 domain created
    [    1.177894] ti-sci-inta 48000000.interrupt-controller: Interrupt Aggregator domain 28 created
    [    1.186878] ti-sci-inta 4e0a0000.interrupt-controller: Interrupt Aggregator domain 200 created
    [    1.196562] ti-udma 485c0100.dma-controller: Number of rings: 82
    [    1.204596] ti-udma 485c0100.dma-controller: Channels: 48 (bchan: 18, tchan: 12, rchan: 18)
    [    1.215315] ti-udma 485c0000.dma-controller: Number of rings: 150
    [    1.224963] ti-udma 485c0000.dma-controller: Channels: 35 (tchan: 20, rchan: 15)
    [    1.234270] ti-udma 4e230000.dma-controller: Number of rings: 6
    [    1.240725] ti-udma 4e230000.dma-controller: Channels: 6 (bchan: 0, tchan: 0, rchan: 6)
    [    1.249954] printk: console [ttyS2] disabled
    [    1.254386] 2800000.serial: ttyS2 at MMIO 0x2800000 (irq = 252, base_baud = 3000000) is a 8250
    [    1.263263] printk: console [ttyS2] enabled
    [    1.263263] printk: console [ttyS2] enabled
    [    1.271722] printk: bootconsole [ns16550a0] disabled
    [    1.271722] printk: bootconsole [ns16550a0] disabled
    [    1.283812] spi-nand spi0.0: Winbond SPI NAND was found.
    [    1.289146] spi-nand spi0.0: 128 MiB, block size: 256 KiB, page size: 4096, OOB size: 128
    [    1.297507] 7 fixed-partitions partitions found on MTD device spi0.0
    [    1.303861] Creating 7 MTD partitions on "spi0.0":
    [    1.308647] 0x000000000000-0x000000080000 : "ospi_nand.tiboot3"
    [    1.315889] 0x000000080000-0x000000280000 : "ospi_nand.tispl"
    [    1.323423] 0x000000280000-0x000000680000 : "ospi_nand.u-boot"
    [    1.331763] 0x000000680000-0x0000006c0000 : "ospi_nand.env"
    [    1.338406] 0x0000006c0000-0x000000700000 : "ospi_nand.env.backup"
    [    1.345672] 0x000002000000-0x000007fc0000 : "ospi_nand.rootfs"
    [    1.389407] 0x000007fc0000-0x000008000000 : "ospi_nand.phypattern"
    [    1.437144] davinci_mdio 8000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    1.446207] davinci_mdio 8000f00.mdio: phy[0]: device 8000f00.mdio:00, driver TI DP83867
    [    1.454338] am65-cpsw-nuss 8000000.ethernet: initializing am65 cpsw nuss version 0x6BA01103, cpsw version 0x6BA81103 Ports: 3 quirks:00000006
    [    1.467109] am65-cpsw-nuss 8000000.ethernet: initialized cpsw ale version 1.5
    [    1.474236] am65-cpsw-nuss 8000000.ethernet: ALE Table size 512
    [    1.480564] pps pps0: new PPS source ptp0
    [    1.484831] am65-cpsw-nuss 8000000.ethernet: CPTS ver 0x4e8a010c, freq:500000000, add_val:1 pps:1
    [    1.494851] am65-cpsw-nuss 8000000.ethernet: set new flow-id-base 19
    [    1.611128] cpufreq: cpufreq_online: CPU0: Running at unlisted initial frequency: 1250000 KHz, changing to: 800000 KHz
    [    1.624054] mmc0: CQHCI version 5.10
    [    1.669161] mmc0: SDHCI controller on fa10000.mmc [fa10000.mmc] using ADMA 64-bit
    [    1.759234] mmc0: Command Queue Engine enabled
    [    1.763813] mmc0: new HS200 MMC card at address 0001
    [    1.771308] mmcblk0: mmc0:0001 G1M15L 29.6 GiB 
    [    1.778091]  mmcblk0: p1 p2
    [    1.781693] mmcblk0boot0: mmc0:0001 G1M15L 31.5 MiB 
    [    1.787950] mmcblk0boot1: mmc0:0001 G1M15L 31.5 MiB 
    [    1.794054] mmcblk0rpmb: mmc0:0001 G1M15L 4.00 MiB, chardev (240:0)
    [    1.966136] tps6594-rtc tps6594-rtc.4.auto: registered as rtc0
    [    1.972161] tps6594-rtc tps6594-rtc.4.auto: hctosys: unable to read the hardware clock
    [    1.980414] pca953x 1-0022: supply vcc not found, using dummy regulator
    [    1.987182] pca953x 1-0022: using AI
    [    1.998521] debugfs: Directory 'pd:182' with parent 'pm_genpd' already present!
    [    1.999445] mmc1: CQHCI version 5.10
    [    2.007299] debugfs: Directory 'pd:182' with parent 'pm_genpd' already present!
    [    2.016828] debugfs: Directory 'pd:182' with parent 'pm_genpd' already present!
    [    2.030863] ALSA device list:
    [    2.033865]   No soundcards found.
    [    2.050885] mmc1: SDHCI controller on fa00000.mmc [fa00000.mmc] using ADMA 64-bit
    [    2.058641] Waiting for root device PARTUUID=8cffdd25-02...
    [    2.111737] mmc1: new ultra high speed SDR104 SDHC card at address aaaa
    [    2.119568] mmcblk1: mmc1:aaaa SC16G 14.8 GiB 
    [    2.130705]  mmcblk1: p1 p2
    [    2.149636] EXT4-fs (mmcblk1p2): recovery complete
    [    2.154471] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Quota mode: none.
    [    2.163060] VFS: Mounted root (ext4 filesystem) on device 179:98.
    [    2.177268] devtmpfs: mounted
    [    2.181150] Freeing unused kernel memory: 2176K
    [    2.185805] Run /sbin/init as init process
    [    2.381554] systemd[1]: System time before build time, advancing clock.
    [    2.444910] NET: Registered PF_INET6 protocol family
    [    2.451641] Segment Routing with IPv6
    [    2.455411] In-situ OAM (IOAM) with IPv6
    [    2.501941] systemd[1]: systemd 250.5+ running in system mode (+PAM -AUDIT -SELINUX -APPARMOR +IMA -SMACK +SECCOMP -GCRYPT -GNUTLS -OPENSSL +ACL +BLKID -CURL -ELFUTILS -FIDO2 -IDN2 -IDN -IPTC +KMOD -L)
    [    2.534299] systemd[1]: Detected architecture arm64.
    
    Welcome to Arago 2023.04!
    
    [    2.620847] systemd[1]: Hostname set to <am62axx-evm>.
    [    2.753453] systemd-sysv-generator[152]: SysV service '/etc/init.d/telnetd' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a.
    [    2.778490] systemd-sysv-generator[152]: SysV service '/etc/init.d/thermal-zone-init' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to.
    [    2.807146] systemd-sysv-generator[152]: SysV service '/etc/init.d/netopeer2-server' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to .
    [    2.831898] systemd-sysv-generator[152]: SysV service '/etc/init.d/sysrepo' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a.
    [    2.855796] systemd-sysv-generator[152]: SysV service '/etc/init.d/edgeai-launcher.sh' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package t.
    [    3.288358] systemd[1]: /lib/systemd/system/bt-enable.service:9: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the set.
    [    3.383974] systemd[1]: /etc/systemd/system/sync-clocks.service:11: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the .
    [    3.485990] systemd[1]: Queued start job for default target Graphical Interface.
    [    3.575531] systemd[1]: Created slice Slice /system/getty.
    [  OK  ] Created slice Slice /system/getty.
    [    3.600916] systemd[1]: Created slice Slice /system/modprobe.
    [  OK  ] Created slice Slice /system/modprobe.
    [    3.626072] systemd[1]: Created slice Slice /system/serial-getty.
    [  OK  ] Created slice Slice /system/serial-getty.
    [    3.652159] systemd[1]: Created slice User and Session Slice.
    [  OK  ] Created slice User and Session Slice.
    [    3.673787] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Started Dispatch Password …ts to Console Directory Watch.
    [    3.697856] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [  OK  ] Started Forward Password R…uests to Wall Directory Watch.
    [    3.722201] systemd[1]: Reached target Path Units.
    [  OK  ] Reached target Path Units.
    [    3.741373] systemd[1]: Reached target Remote File Systems.
    [  OK  ] Reached target Remote File Systems.
    [    3.761447] systemd[1]: Reached target Slice Units.
    [  OK  ] Reached target Slice Units.
    [    3.781857] systemd[1]: Reached target Swaps.
    [  OK  ] Reached target Swaps.
    [    3.883706] systemd[1]: Listening on RPCbind Server Activation Socket.
    [  OK  ] Listening on RPCbind Server Activation Socket.
    [    3.905608] systemd[1]: Reached target RPC Port Mapper.
    [  OK  ] Reached target RPC Port Mapper.
    [    3.953038] systemd[1]: Listening on Process Core Dump Socket.
    [  OK  ] Listening on Process Core Dump Socket.
    [    3.974925] systemd[1]: Listening on initctl Compatibility Named Pipe.
    [  OK  ] Listening on initctl Compatibility Named Pipe.
    [    4.000723] systemd[1]: Listening on Journal Audit Socket.
    [  OK  ] Listening on Journal Audit Socket.
    [    4.023829] systemd[1]: Listening on Journal Socket (/dev/log).
    [  OK  ] Listening on Journal Socket (/dev/log).
    [    4.047817] systemd[1]: Listening on Journal Socket.
    [  OK  ] Listening on Journal Socket.
    [    4.072892] systemd[1]: Listening on Network Service Netlink Socket.
    [  OK  ] Listening on Network Service Netlink Socket.
    [    4.100204] systemd[1]: Listening on udev Control Socket.
    [  OK  ] Listening on udev Control Socket.
    [    4.123336] systemd[1]: Listening on udev Kernel Socket.
    [  OK  ] Listening on udev Kernel Socket.
    [    4.147699] systemd[1]: Listening on User Database Manager Socket.
    [  OK  ] Listening on User Database Manager Socket.
    [    4.209945] systemd[1]: Mounting Huge Pages File System...
             Mounting Huge Pages File System...
    [    4.245412] systemd[1]: Mounting POSIX Message Queue File System...
             Mounting POSIX Message Queue File System...
    [    4.297800] systemd[1]: Mounting Kernel Debug File System...
             Mounting Kernel Debug File System...
    [    4.318429] systemd[1]: Kernel Trace File System was skipped because of a failed condition check (ConditionPathExists=/sys/kernel/tracing).
    [    4.366066] systemd[1]: Mounting Temporary Directory /tmp...
             Mounting Temporary Directory /tmp...
    [    4.404994] systemd[1]: Starting Create List of Static Device Nodes...
             Starting Create List of Static Device Nodes...
    [    4.454371] systemd[1]: Starting Load Kernel Module configfs...
             Starting Load Kernel Module configfs...
    [    4.493418] systemd[1]: Starting Load Kernel Module drm...
             Starting Load Kernel Module drm...
    [    4.521339] systemd[1]: Starting Load Kernel Module fuse...
             Starting Load Kernel Module fuse...
    [    4.543022] fuse: init (API version 7.37)
    [    4.586634] systemd[1]: Starting Start psplash boot splash screen...
             Starting Start psplash boot splash screen...
    [    4.622546] systemd[1]: Starting RPC Bind...
             Starting RPC Bind...
    [    4.641762] systemd[1]: File System Check on Root Device was skipped because of a failed condition check (ConditionPathIsReadWrite=!/).
    [    4.686248] systemd[1]: Starting Journal Service...
             Starting Journal Service...
    [    4.719591] systemd[1]: Starting Load Kernel Modules...
             Starting Load Kernel Modules...
    [    4.748276] cryptodev: loading out-of-tree module taints kernel.
    [    4.749009] systemd[1]: Starting Generate network units from Kernel command line...
             Starting Generate network …ts from Kernel co[    4.762867] cryptodev: driver 1.12 loaded.
    mmand line...
    [    4.814620] systemd[1]: Starting Remount Root and Kernel File Systems...
             Starting Remount Root and Kernel File Systems...
    [    4.845609] EXT4-fs (mmcblk1p2): re-mounted. Quota mode: none.
    [    4.852266] systemd[1]: Starting Coldplug All udev Devices...
             Starting Coldplug All udev Devices...
    [    4.887347] systemd[1]: Started RPC Bind.
    [  OK  ] Started RPC Bind.
    [    4.906089] systemd[1]: Mounted Huge Pages File System.
    [  OK  ] Mounted Huge Pages File System.
    [    4.930047] systemd[1]: Started Journal Service.
    [  OK  ] Started Journal Service.
    [  OK  ] Mounted POSIX Message Queue File System.
    [  OK  ] Mounted Kernel Debug File System.
    [  OK  ] Mounted Temporary Directory /tmp.
    [  OK  ] Finished Create List of Static Device Nodes.
    [  OK  ] Finished Load Kernel Module configfs.
    [  OK  ] Finished Load Kernel Module drm.
    [  OK  ] Finished Load Kernel Module fuse.
    [FAILED] Failed to start Start psplash boot splash screen.
    See 'systemctl status psplash-start.service' for details.
    [DEPEND] Dependency failed for Star…progress communication helper.
    [  OK  ] Finished Load Kernel Modules.
    [  OK  ] Finished Generate network units from Kernel command line.
    [  OK  ] Finished Remount Root and Kernel File Systems.
             Mounting FUSE Control File System...
             Mounting Kernel Configuration File System...
             Starting Flush Journal to Persistent Storage...
             Starting Apply Kernel Variables...[    5.346108] systemd-journald[169]: Received client request to flush runtime journal.
    
             Starting Create Static Device Nodes in /dev...
    [  OK  ] Mounted FUSE Control File System.
    [  OK  ] Mounted Kernel Configuration File System.
    [  OK  ] Finished Flush Journal to Persistent Storage.
    [  OK  ] Finished Apply Kernel Variables.
    [  OK  ] Finished Create Static Device Nodes in /dev.
    [  OK  ] Reached target Preparation for Local File Systems.
             Mounting /media/ram...
             Mounting /var/volatile...
    [    5.571695] audit: type=1334 audit(1651167748.188:2): prog-id=5 op=LOAD
    [    5.578730] audit: type=1334 audit(1651167748.196:3): prog-id=6 op=LOAD
             Starting Rule-based Manage…for Device Events and Files...
    [  OK  ] Mounted /media/ram.
    [  OK  ] Mounted /var/volatile.
             Starting Load/Save Random Seed...
    [  OK  ] Reached target Local File Systems.
             Starting Create Volatile Files and Directories...
    [  OK  ] Finished Coldplug All udev Devices.
    [  OK  ] Finished Create Volatile Files and Directories.
             Starting Network Time Synchronization...
             Starting Record System Boot/Shutdown in UTMP...
    [  OK  ] Finished Record System Boot/Shutdown in UTMP.
    [  OK  ] Started Rule-based Manager for Device Events and Files.
    [  OK  ] Started Network Time Synchronization.
    [  OK  ] Reached target System Initialization.
    [  OK  ] Started Daily Cleanup of Temporary Directories.
    [  OK  ] Reached target System Time Set.
    [  OK  ] Started Daily rotation of log files[    6.361520] random: crng init done
    .
    [  OK  ] Reached target Timer Units.
    [  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
    [  OK  ] Listening on D-Bus System Message Bus Socket.
             Starting Docker Socket for the API...
    [  OK  ] Listening on dropbear.socket.[    6.482847] tlv320aic3x 1-001b: supply DVDD not found, using dummy regulator
    
    [    6.528749] mc: Linux media interface: v0.10
             Starting Weston socket...
             Starting Console System Startup Logging...[    6.581515] k3-dsp-rproc 7e000000.dsp: assigned reserved memory node c7x-dma-memory@99800000
    
    [    6.609343] videodev: Linux video capture interface: v2.00
             Starting D-Bus System Message Bus...
             Starting Reboot and dump vmcore via kexec...
    [    6.649355] k3-dsp-rproc 7e000000.dsp: configured DSP for remoteproc mode
    [  OK  ] Finished Load/Save Random Seed.[    6.662313] remoteproc remoteproc0: 7e000000.dsp is available
    
    [    6.664207] platform 79000000.r5f: configured R5F for remoteproc mode
    [  OK  ] Listening on Docker Socket for the API.
    [    6.684407] platform 79000000.r5f: assigned reserved memory node r5f-dma-memory@9b800000
    [  OK  ] Listening on Weston socket.[    6.701081] remoteproc remoteproc1: 79000000.r5f is available
    
    [    6.715618] platform 78000000.r5f: R5F core may have been powered on by a different host, programmed state (0) != actual state (1)
    [    6.729982] platform 78000000.r5f: configured R5F for IPC-only mode
    [  OK  ] Finished Console System Startup Logging.
    [    6.743414] platform 78000000.r5f: assigned reserved memory node r5f-dma-memory@9c800000
    [  OK  ] Found device /dev/ttyS2.
    [    6.768962] remoteproc remoteproc1: powering up 79000000.r5f
    [    6.775112] remoteproc remoteproc1: Booting fw image am62a-mcu-r5f0_0-fw, size 53556
    [  OK  ] Reached target Socket Units.
    [    6.790751] rproc-virtio rproc-virtio.5.auto: assigned reserved memory node r5f-dma-memory@9b800000
    [    6.801618] remoteproc remoteproc2: 78000000.r5f is available
    [    6.807764] remoteproc remoteproc2: attaching to 78000000.r5f
    [    6.828369] remoteproc remoteproc0: powering up 7e000000.dsp
    [    6.834443] remoteproc remoteproc0: Booting fw image am62a-c71_0-fw, size 6897744
    [    6.842831] platform 78000000.r5f: R5F core initialized in IPC-only mode
    [    6.850009] virtio_rpmsg_bus virtio0: rpmsg host is online
    [    6.853196] rproc-virtio rproc-virtio.6.auto: assigned reserved memory node r5f-dma-memory@9c800000
    [    6.856368] rproc-virtio rproc-virtio.5.auto: registered virtio0 (type 7)
    [    6.860771] virtio_rpmsg_bus virtio0: creating channel ti.ipc4.ping-pong addr 0xd
    [    6.879110] remoteproc remoteproc1: remote processor 79000000.r5f is now up
    [    6.896482] k3-dsp-rproc 7e000000.dsp: booting DSP core using boot addr = 0x99a00000
    [    6.904656] virtio_rpmsg_bus virtio0: creating channel rpmsg_chrdev addr 0xe
    [    6.905331] virtio_rpmsg_bus virtio1: rpmsg host is online
    [    6.912022] virtio_rpmsg_bus virtio1: creating channel rpmsg_chrdev addr 0xd
    [    6.917466] rproc-virtio rproc-virtio.6.auto: registered virtio1 (type 7)
    [    6.932957] remoteproc remoteproc2: remote processor 78000000.r5f is now attached
    [    6.939349] rproc-virtio rproc-virtio.7.auto: assigned reserved memory node c7x-dma-memory@99800000
    [    6.975121] virtio_rpmsg_bus virtio2: rpmsg host is online
    [    6.975774] virtio_rpmsg_bus virtio2: creating channel rpmsg_chrdev addr 0xd
    [    6.980768] rproc-virtio rproc-virtio.7.auto: registered virtio2 (type 7)
    [    6.994703] remoteproc remoteproc0: remote processor 7e000000.dsp is now up
    [    7.006264] vdec 30210000.video-codec: error -ENXIO: IRQ index 0 not found
    [    7.013198] vdec 30210000.video-codec: failed to get irq resource, falling back to polling
    [  OK  ] Finished Reboot and dump vmcore via kexec.
    [    7.091381] mtdblock: MTD device 'ospi_nand.u-boot' is NAND, please consider using UBI block devices instead.
    [    7.104625] mtdblock: MTD device 'ospi_nand.env.backup' is NAND, please consider using UBI block devices instead.
    [    7.146213] mtdblock: MTD device 'ospi_nand.tispl' is NAND, please consider using UBI block devices instead.
    [    7.162359] sii902x 1-003b: supply iovcc not found, using dummy regulator
    [    7.168791] mtdblock: MTD device 'ospi_nand.env' is NAND, please consider using UBI block devices instead.
    [    7.169546] sii902x 1-003b: supply cvcc12 not found, using dummy regulator
    [    7.175622] mtdblock: MTD device 'ospi_nand.rootfs' is NAND, please consider using UBI block devices instead.
    [    7.183388] mtdblock: MTD device 'ospi_nand.phypattern' is NAND, please consider using UBI block devices instead.
    [    7.192041] i2c i2c-1: Added multiplexed i2c bus 3
    [    7.209434] mtdblock: MTD device 'ospi_nand.tiboot3' is NAND, please consider using UBI block devices instead.
    [  OK  ] Started D-Bus System Message Bus.
    [    7.236433] e5010 fd20000.e5010: Device registered as /dev/video2
    [    7.249518] [drm] Initialized tidss 1.0.0 20180215 for 30200000.dss on minor 0
    [    7.269536] tidss 30200000.dss: [drm] Cannot find any crtc or sizes
    [  OK  ] Reached target Basic System.
    [    7.279662] tidss 30200000.dss: [drm] Cannot find any crtc or sizes
    [  OK  ] Started Job spooling tools.
    [  OK  ] Started Periodic Command Scheduler.
             Starting Print notice about GPLv3 packages...
             Starting IPv6 Packet Filtering Framework...
             Starting IPv4 Packet Filtering Framework...
    [  OK  ] Started irqbalance daemon.
             Starting Telephony service...
             Starting Expand the rootfs…ll size of the boot device....
    [  OK  ] Started strongSwan IPsec I…IKEv2 daemon using ipsec.conf.
    [    7.581875] audit: type=1334 audit(1651177367.684:4): prog-id=7 op=LOAD
    [    7.592201] audit: type=1334 audit(1651177367.692:5): prog-id=8 op=LOAD
             Starting User Login Management...
    [    7.700545] Bluetooth: Core ver 2.22
    [    7.704854] NET: Registered PF_BLUETOOTH protocol family
    [    7.710246] Bluetooth: HCI device and connection manager initialized
    [    7.718533] Bluetooth: HCI socket layer initialized
    [    7.723609] Bluetooth: L2CAP socket layer initialized
    [    7.728782] Bluetooth: SCO socket layer initialized
    [  OK  ] Started TEE Supplicant.
    [FAILED] Failed to start Print notice about GPLv3 packages.
    See 'systemctl status gplv3-notice.service' for details.
    [  OK  ] Finished IPv6 Packet Filtering Framework.
    [  OK  ] Finished IPv4 Packet Filtering Framework.
    [  OK  ] Started Telephony service.
    [  OK  ] Finished Expand the rootfs…full size of the boot device..
    [  OK  ] Reached target Preparation for Network.
             Starting Network Configuration...
    [  OK  ] Started User Login Management.
    [    8.584402] mtdblock: MTD device 'ospi_nand.phypattern' is NAND, please consider using UBI block devices instead.
    [    8.586808] cfg80211: Loading compiled-in X.509 certificates for regulatory database
    [    8.634185] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
    [    8.638733] tps6598x 0-003f: Unable to find the interrupt, switching to polling
    [  OK  ] Listening on Load/Save RF …itch Status /dev/rfkill Watch.
    [    8.747694] mtdblock: MTD device 'ospi_nand.phypattern' is NAND, please consider using UBI block devices instead.
    [  OK  ] Started Network Configuration.
    [    8.834975] mtdblock: MTD device 'ospi_nand.env.backup' is NAND, please consider using UBI block devices instead.
             Starting Network Name Resolution...
    [    8.891206] am65-cpsw-nuss 8000000.ethernet eth0: PHY [8000f00.mdio:00] driver [TI DP83867] (irq=POLL)
    [    8.900770] am65-cpsw-nuss 8000000.ethernet eth0: configuring for phy/rgmii-rxid link mode
    [    8.915723] cdns-csi2rx: probe of 30101000.csi-bridge failed with error -22
    [  OK  ] Reached target Hardware activated USB gadget.
    [    8.969057] xhci-hcd xhci-hcd.9.auto: xHCI Host Controller
    [    8.980842] xhci-hcd xhci-hcd.9.auto: new USB bus registered, assigned bus number 1
    [    8.988953] xhci-hcd xhci-hcd.9.auto: USB3 root hub has no ports
    [    8.998919] xhci-hcd xhci-hcd.9.auto: hcc params 0x0258fe6d hci version 0x110 quirks 0x0000000000010010
    [    9.009413] xhci-hcd xhci-hcd.9.auto: irq 549, io mem 0x31100000
    [    9.025342] hub 1-0:1.0: USB hub found
    [    9.029465] hub 1-0:1.0: 1 port detected
    [    9.034782] mtdblock: MTD device 'ospi_nand.u-boot' is NAND, please consider using UBI block devices instead.
             Starting Save/Restore Sound Card State...
    [    9.119116] mtdblock: MTD device 'ospi_nand.tiboot3' is NAND, please consider using UBI block devices instead.
    [  OK  ] Finished Save/Restore Sound Card State.
    [    9.154824] mtdblock: MTD device 'ospi_nand.rootfs' is NAND, please consider using UBI block devices instead.
    [  OK  ] Reached target Sound Card.
    [  OK  ] Started Network Name Resolution.
    [  OK  ] Reached target Network.
    [  OK  ] Reached target Host and Network Name Lookups.
             Starting Avahi mDNS/DNS-SD Stack...
             Starting Enable and configure wl18xx bluetooth stack...
             Starting containerd container runtime...
    [  OK  ] Started Netperf Benchmark Server.
    [  OK  ] Started NFS status monitor for NFSv2/3 locking..
             Starting Permit User Sessions...
    [FAILED] Failed to start Enable and…figu[    9.734308] mtdblock: MTD device 'ospi_nand.env' is NAND, please consider using UBI block devices instead.
    re wl18xx bluetooth stack.
    See 'systemctl status bt-enable.service' for details.
    [    9.768235] mtdblock: MTD device 'ospi_nand.tispl' is NAND, please consider using UBI block devices instead.
    [  OK  ] Finished Permit User Sessions.
    [  OK  ] Started Avahi mDNS/DNS-SD Stack.
    [  OK  ] Started Getty on tty1.
    [  OK  ] Started Serial Getty on ttyS2.
    [  OK  ] Reached target Login Prompts.
             Starting Synchronize System and HW clocks...
             Starting Weston, a Wayland…ositor, as a system service...
    [  OK  ] Created slice Slice /system/systemd-fsck.
    [   10.171247] audit: type=1334 audit(1651177370.272:6): prog-id=9 op=LOAD
    [   10.178206] audit: type=1334 audit(1651177370.280:7): prog-id=10 op=LOAD
             Starting User Database Manager...
    [  OK  ] Found device /dev/mmcblk0p1.
             Starting File System Check on /dev/mmcblk0p1...
    [  OK  ] Finished File System Check on /dev/mmcblk0p1.
             Mounting /run/media/mmcblk0p1...
    [  OK  ] Started User Database Manager.
    [  OK  ] Mounted /run/media/mmcblk0p1.
    [  OK  ] Created slice User Slice of UID 1000.
             Starting User Runtime Directory /run/user/1000...
    [  OK  ] Found device /dev/mmcblk1p1.
    [  OK  ] Finished User Runtime Directory /run/user/1000.
             Starting File System Check on /dev/mmcblk1p1...
             Starting User Manager for UID 1000...
    [   10.865736] audit: type=1006 audit(1651177370.968:8): pid=663 uid=0 old-auid=4294967295 auid=1000 tty=(none) old-ses=4294967295 ses=1 res=1
    [   10.878512] audit: type=1300 audit(1651177370.968:8): arch=c00000b7 syscall=64 success=yes exit=4 a0=8 a1=fffff320e138 a2=4 a3=ffffb0fd8020 items=0 ppid=1 pid=663 auid=1000 uid=0 gid=0 euid=0 suid=0 f)
    [   10.906448] audit: type=1327 audit(1651177370.968:8): proctitle="(systemd)"
    [  OK  ] Finished Synchronize System and HW clocks.
    [  OK  ] Finished File System Check on /dev/mmcblk1p1.
             Mounting /run/media/boot-mmcblk1p1...
    [  OK  ] Mounted /run/media/boot-mmcblk1p1.
    [  OK  ] Started containerd container runtime.
    [  OK  ] Started User Manager for UID 1000.
    [  OK  ] Started Session c1 of User weston.
    [   11.802776] audit: type=1006 audit(1651177371.904:9): pid=590 uid=0 old-auid=4294967295 auid=1000 tty=tty7 old-ses=4294967295 ses=2 res=1
    [   11.815257] audit: type=1300 audit(1651177371.904:9): arch=c00000b7 syscall=64 success=yes exit=4 a0=8 a1=fffff320e138 a2=4 a3=ffffb0fd8020 items=0 ppid=1 pid=590 auid=1000 uid=0 gid=0 euid=0 suid=0 f)
    [   11.841535] audit: type=1327 audit(1651177371.904:9): proctitle="(weston)"
    [  OK  ] Started Weston, a Wayland …mpositor, as a system service.
             Starting EdgeAI OOB demos...
    
     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            
    
    Arago Project am62axx-evm -
    
    Arago 2023.04 am62axx-evm -
    
    am62axx-evm login: root
    [   19.237617] audit: type=1006 audit(1651177379.340:10): pid=862 uid=0 old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=3 res=1
    [   19.250078] audit: type=1300 audit(1651177379.340:10): arch=c00000b7 syscall=64 success=yes exit=1 a0=8 a1=fffff320e138 a2=1 a3=ffffb0fd8020 items=0 ppid=1 pid=862 auid=0 uid=0 gid=0 euid=0 suid=0 fsu)
    [   19.276439] audit: type=1327 audit(1651177379.340:10): proctitle="(systemd)"
    [   19.283562] audit: type=1334 audit(1651177379.372:11): prog-id=11 op=LOAD
    [   19.290443] audit: type=1300 audit(1651177379.372:11): arch=c00000b7 syscall=280 success=yes exit=8 a0=5 a1=ffffed7c4090 a2=78 a3=0 items=0 ppid=1 pid=862 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid)
    [   19.315887] audit: type=1327 audit(1651177379.372:11): proctitle="(systemd)"
    [   19.323015] audit: type=1334 audit(1651177379.376:12): prog-id=11 op=UNLOAD
    [   19.330057] audit: type=1334 audit(1651177379.376:13): prog-id=12 op=LOAD
    [   19.336926] audit: type=1300 audit(1651177379.376:13): arch=c00000b7 syscall=280 success=yes exit=8 a0=5 a1=ffffed7c4130 a2=78 a3=0 items=0 ppid=1 pid=862 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid)
    [   19.362400] audit: type=1327 audit(1651177379.376:13): proctitle="(systemd)"
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# gst-launch-1.0 videotestsrc ! video/x-raw,width=640,heigh=840,format=NV12 ! tiovxmultiscaler ! video/x-raw,width=480,height=360 ! fakesink
    APP: Init ... !!!
    MEM: Init ... !!!
    MEM: Initialized DMA HEAP (fd=5) !!!
    MEM: Init ... Done !!!
    IPC: Init ... !!!
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux_rpmsg_char.c map_vision_apps_cpu_id_to_rpmsg_char_cpu_id 80/home/ann/projects/I2
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux_rpmsg_char.c appIpcCreateTxCh 339 fd=7
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux_rpmsg_char.c appIpcCreateTxCh 332
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux_rpmsg_char.c appIpcCreateTxCh 339 fd=9
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux.c appIpcInit 294 tx_fds[i]=7
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux.c appIpcInit 294 tx_fds[i]=9
    IPC: Init ... Done !!!
    REMOTE_SERVICE: Init ... !!!
    _rpmsg_char_find_ctrldev: could not find the matching rpmsg_ctrl device for virtio1.rpmsg_chrdev.-1.21
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux_rpmsg_char.c map_vision_apps_cpu_id_to_rpmsg_char_cpu_id 80/home/ann/projects/I1
    _rpmsg_char_find_ctrldev: could not find the matching rpmsg_ctrl device for virtio2.rpmsg_chrdev.-1.21
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux_rpmsg_char.c appIpcCreateTxCh 339 fd=-1
    REMOTE_SERVICE: Init ... Done !!!
       363.020241 s: GTC Frequency = 200 MHz
    APP: Init ... Done !!!
       363.022610 s:  VX_ZONE_INIT:Enabled
       363.022661 s:  VX_ZONE_ERROR:Enabled
       363.022676 s:  VX_ZONE_WARNING:Enabled
       363.022690 s:  VX_ZONE_INFO:Enabled
       363.022703 s:  VX_ZONE_LOG:Enabled
       363.024621 s:  VX_ZONE_INIT:[tivxInitLocal:131] Initialization Done !!!
       363.026580 s:  VX_ZONE_INIT:[tivxHostInitLocal:101] Initialization Done for HOST !!!
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 137: i=0
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 140: i=0
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 137: i=1
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 140: i=1
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 137: i=2
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 140: i=2
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 137: i=3
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 140: i=3
       363.036248 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.img.hist on target MPU-0
       363.036403 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.pre.proc.armv8 on target MPU-0
       363.036430 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.pre.proc.armv8 on target MPU-1
       363.036453 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.pre.proc.armv8 on target MPU-2
       363.036476 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.pre.proc.armv8 on target MPU-3
       363.036500 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.post.proc on target MPU-0
       363.367147 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.color.convert.armv8 on target MPU-0
       363.367262 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.color.convert.armv8 on target MPU-1
       363.367337 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.color.convert.armv8 on target MPU-2
       363.367359 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.color.convert.armv8 on target MPU-3
    Setting pipeline to PAUSED ...
    Pipeline is PREROLLING ...
       363.386784 s:  VX_ZONE_INFO:[ownIsValidReference:122] Reference was NULL
       363.386868 s:  VX_ZONE_INFO:[ownIsValidReference:122] Reference was NULL
       363.386916 s:  VX_ZONE_INFO:[ownIsValidReference:122] Reference was NULL
       363.386962 s:  VX_ZONE_INFO:[ownIsValidReference:122] Reference was NULL
       363.388019 s:  VX_ZONE_INFO:[ownNodeKernelValidate:229] Validating kernel com.ti.hwa.vpac_msc_multi_scale
       363.388799 s:  VX_ZONE_INFO:[ownNodeKernelInit:512] Calling create callback for node scaler_node
    
    
    
    
    
    ^Chandling interrupt.
    Interrupt: Stopping pipeline ...
    Setting pipeline to NULL ...
    ^C
    root@am62axx-evm:/opt/edgeai-gst-apps# dmesg | grep remote
    [    6.649355] k3-dsp-rproc 7e000000.dsp: configured DSP for remoteproc mode
    [    6.662313] remoteproc remoteproc0: 7e000000.dsp is available
    [    6.664207] platform 79000000.r5f: configured R5F for remoteproc mode
    [    6.701081] remoteproc remoteproc1: 79000000.r5f is available
    [    6.768962] remoteproc remoteproc1: powering up 79000000.r5f
    [    6.775112] remoteproc remoteproc1: Booting fw image am62a-mcu-r5f0_0-fw, size 53556
    [    6.801618] remoteproc remoteproc2: 78000000.r5f is available
    [    6.807764] remoteproc remoteproc2: attaching to 78000000.r5f
    [    6.828369] remoteproc remoteproc0: powering up 7e000000.dsp
    [    6.834443] remoteproc remoteproc0: Booting fw image am62a-c71_0-fw, size 6897744
    [    6.879110] remoteproc remoteproc1: remote processor 79000000.r5f is now up
    [    6.932957] remoteproc remoteproc2: remote processor 78000000.r5f is now attached
    [    6.994703] remoteproc remoteproc0: remote processor 7e000000.dsp is now up
    
    

    When I issued the gst-launch command, the call hung and I am observing an error as " _rpmsg_char_find_ctrldev: could not find the matching rpmsg_ctrl device for virtio1.rpmsg_chrdev.-1.21"

    root@am62axx-evm:/opt/edgeai-gst-apps# gst-launch-1.0 videotestsrc ! video/x-raw,width=640,heigh=840,format=NV12 ! tiovxmultiscaler ! video/x-raw,width=480,height=360 ! fakesink
    APP: Init ... !!!
    MEM: Init ... !!!
    MEM: Initialized DMA HEAP (fd=5) !!!
    MEM: Init ... Done !!!
    IPC: Init ... !!!
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux_rpmsg_char.c map_vision_apps_cpu_id_to_rpmsg_char_cpu_id 80/home/ann/projects/I2
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux_rpmsg_char.c appIpcCreateTxCh 339 fd=7
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux_rpmsg_char.c appIpcCreateTxCh 332
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux_rpmsg_char.c appIpcCreateTxCh 339 fd=9
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux.c appIpcInit 294 tx_fds[i]=7
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux.c appIpcInit 294 tx_fds[i]=9
    IPC: Init ... Done !!!
    REMOTE_SERVICE: Init ... !!!
    _rpmsg_char_find_ctrldev: could not find the matching rpmsg_ctrl device for virtio1.rpmsg_chrdev.-1.21
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux_rpmsg_char.c map_vision_apps_cpu_id_to_rpmsg_char_cpu_id 80/home/ann/projects/I1
    _rpmsg_char_find_ctrldev: could not find the matching rpmsg_ctrl device for virtio2.rpmsg_chrdev.-1.21
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux_rpmsg_char.c appIpcCreateTxCh 339 fd=-1
    REMOTE_SERVICE: Init ... Done !!!
       363.020241 s: GTC Frequency = 200 MHz
    APP: Init ... Done !!!
       363.022610 s:  VX_ZONE_INIT:Enabled
       363.022661 s:  VX_ZONE_ERROR:Enabled
       363.022676 s:  VX_ZONE_WARNING:Enabled
       363.022690 s:  VX_ZONE_INFO:Enabled
       363.022703 s:  VX_ZONE_LOG:Enabled
       363.024621 s:  VX_ZONE_INIT:[tivxInitLocal:131] Initialization Done !!!
       363.026580 s:  VX_ZONE_INIT:[tivxHostInitLocal:101] Initialization Done for HOST !!!
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 137: i=0
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 140: i=0
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 137: i=1
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 140: i=1
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 137: i=2
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 140: i=2
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 137: i=3
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 140: i=3
       363.036248 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.img.hist on target MPU-0
       363.036403 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.pre.proc.armv8 on target MPU-0
       363.036430 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.pre.proc.armv8 on target MPU-1
       363.036453 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.pre.proc.armv8 on target MPU-2
       363.036476 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.pre.proc.armv8 on target MPU-3
       363.036500 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.post.proc on target MPU-0
       363.367147 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.color.convert.armv8 on target MPU-0
       363.367262 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.color.convert.armv8 on target MPU-1
       363.367337 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.color.convert.armv8 on target MPU-2
       363.367359 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.color.convert.armv8 on target MPU-3
    Setting pipeline to PAUSED ...
    Pipeline is PREROLLING ...
       363.386784 s:  VX_ZONE_INFO:[ownIsValidReference:122] Reference was NULL
       363.386868 s:  VX_ZONE_INFO:[ownIsValidReference:122] Reference was NULL
       363.386916 s:  VX_ZONE_INFO:[ownIsValidReference:122] Reference was NULL
       363.386962 s:  VX_ZONE_INFO:[ownIsValidReference:122] Reference was NULL
       363.388019 s:  VX_ZONE_INFO:[ownNodeKernelValidate:229] Validating kernel com.ti.hwa.vpac_msc_multi_scale
       363.388799 s:  VX_ZONE_INFO:[ownNodeKernelInit:512] Calling create callback for node scaler_node
    
    
    
    
    
    ^Chandling interrupt.
    Interrupt: Stopping pipeline ...
    Setting pipeline to NULL ...
    ^C
    root@am62axx-evm:/opt/edgeai-gst-apps#
    

    When going through the sysfs entries the particular entry (virtio1.rpmsg_chrdev.-1.21) is not being created. Could you please guide me on this?

    Regards,

    Ann Rose Antony

  • Hi Reese,

    I have updated one firmware in the /lib/firmware folder as shown below:

    sudo cp vision_apps/out/AM62A/C7504/FREERTOS/release/vx_app_rtos_linux_c7x_1.out /media/<$user_name>/root/lib/firmware/ti-ipc/am62axx/ipc_echo_test_c7x_1_release_strip.xe71

    Later, when I ran the tiovx pipeline command as attached gst-launch-command-no-error.txt

    Could you please check and let me know whether this is an expected output for the tiovx pipeline, 

    Still I am having issue while running the demo application.

    Regards,

    Ann Rose Antony

  • Hi Ann,

    That printout looks fine to me. There are many INFO messages but none of them are concerning -- I assume you still have the change to enable the INFO debug zone within TIOVX.

    I am curious if you can run a version that displays to kmssink and it actually show up correctly.

    - last plugin should be "kmssink driver-name=tidss force-modesetting=True"

    Can you retrieve the output log for the demo application? You might be able to use 'journalctl -u edgeai-init" if that's running as a service such that logs are not printed more obviously.

    Here's an alternative application to the OOB demo application, which suppresses most logging output. The following GST program (Line-2 generated from the line above it) will run an image-classification pipeline. I'd like to see the log from that

    root@am62axx-evm:/opt/edgeai-gst-apps/optiflow# ./optiflow.py ../configs/image_classification.yaml -t
    
    gst-launch-1.0 multifilesrc location=/opt/edgeai-test-data/images/%04d.jpg loop=true caps=image/jpeg,framerate=1/1  ! jpegdec  ! videoscale ! video/x-raw, width=1280, height=720 ! tiovxdlcolorconvert ! video/x-raw, format=NV12 ! tiovxmultiscaler name=split_01 src_0::roi-startx=80 src_0::roi-starty=45 src_0::roi-width=1120 src_0::roi-height=630 target=0 split_01. ! queue ! video/x-raw, width=280, height=224 ! tiovxmultiscaler target=1 ! video/x-raw, width=224, height=224 ! tiovxdlpreproc model=/opt/model_zoo/TFL-CL-0000-mobileNetV1-mlperf  out-pool-size=4 ! application/x-tensor-tiovx ! tidlinferer target=1  model=/opt/model_zoo/TFL-CL-0000-mobileNetV1-mlperf ! post_0.tensor split_01. ! queue ! video/x-raw, width=1280, height=720 ! post_0.sink tidlpostproc name=post_0 model=/opt/model_zoo/TFL-CL-0000-mobileNetV1-mlperf alpha=0.200000 viz-threshold=0.500000 top-N=5 display-model=true ! queue ! mosaic_0. tiovxmosaic name=mosaic_0 target=1 src::pool-size=4 sink_0::startx="<320>" sink_0::starty="<150>" sink_0::widths="<1280>" sink_0::heights="<720>" ! video/x-raw,format=NV12, width=1920, height=1080 ! queue ! tiperfoverlay title="Image Classification" overlay-type=graph ! kmssink driver-name=tidss sync=true force-modesetting=true
    
    
    This will test all the same fundamental components.

    BR,
    Reese

  • Hi Reese,

    The above command works.

    Later instead of using the existing image, I used the USB camera as in the input file and tested. There is a huge delay for the USB camera streaming and previewing in the Display.

    Similarly, I have updated the command in such a way to use the Ox03F10 Camera instead of the USB Camera. I am not able to preview anything on the screen. A green screen tries to pop up and later the complete module will get deinitialized and exit from the prompt.

    Attaching the log for the USB Camera and Ox03F10 Camera module

    USB Camera module:

    usb_camera_object_detection_log.txt

    Ox03F10 Camera module log:

    libtidl_onnxrt_EP loaded 0x2cddb970 
    Final number of subgraphs created are : 1, - Offloaded Nodes - 289, Total Nodes - 289 
    APP: Init ... !!!
    MEM: Init ... !!!
    MEM: Initialized DMA HEAP (fd=5) !!!
    MEM: Init ... Done !!!
    IPC: Init ... !!!
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux_rpmsg_char.c map_vision_apps_cpu_id_to_rpmsg_char_cpu_id 80/home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux_rpmsg_char.c appIpcCreateTxCh 332
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux_rpmsg_char.c appIpcCreateTxCh 339 fd=7
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux_rpmsg_char.c appIpcCreateTxCh 332
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux_rpmsg_char.c appIpcCreateTxCh 339 fd=9
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux.c appIpcInit 294 tx_fds[i]=7
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux.c appIpcInit 294 tx_fds[i]=9
    IPC: Init ... Done !!!
    REMOTE_SERVICE: Init ... !!!
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux_rpmsg_char.c map_vision_apps_cpu_id_to_rpmsg_char_cpu_id 80/home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux_rpmsg_char.c appIpcCreateTxCh 332
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux_rpmsg_char.c appIpcCreateTxCh 339 fd=12
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux_rpmsg_char.c appIpcCreateTxCh 332
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/app_utils/utils/ipc/src/app_ipc_linux_rpmsg_char.c appIpcCreateTxCh 339 fd=14
    REMOTE_SERVICE: Init ... Done !!!
       979.041663 s: GTC Frequency = 200 MHz
    APP: Init ... Done !!!
       979.041828 s:  VX_ZONE_INIT:Enabled
       979.041848 s:  VX_ZONE_ERROR:Enabled
       979.041863 s:  VX_ZONE_WARNING:Enabled
       979.041877 s:  VX_ZONE_INFO:Enabled
       979.041890 s:  VX_ZONE_LOG:Enabled
       979.043823 s:  VX_ZONE_INIT:[tivxInitLocal:131] Initialization Done !!!
       979.044679 s:  VX_ZONE_INIT:[tivxHostInitLocal:101] Initialization Done for HOST !!!
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 137: i=0
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 140: i=0
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 137: i=1
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 140: i=1
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 137: i=2
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 140: i=2
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 137: i=3
    /home/ann/projects/IFV710/release_package/ti-firmware-builder-am62axx-evm-09_00_00_02/tiovx/source/framework/vx_context.c: ownContextCreateCmdObj: 140: i=3
       979.046917 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.tidl on target MPU-1
       979.046980 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.tidl on target MPU-2
       979.047005 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.tidl on target MPU-3
       979.058804 s:  VX_ZONE_INFO:[tivxTIDLNode:87] Number of parameters in kernel definition = 9 
       979.058874 s:  VX_ZONE_INFO:[tivxTIDLNode:132] Kernel used for node creation = 0xffff91d44d68 
       979.059710 s:  VX_ZONE_INFO:[ownNodeKernelValidate:229] Validating kernel com.ti.tidl:1:2
       979.060000 s:  VX_ZONE_INFO:[ownNodeKernelInit:512] Calling create callback for node TIDLNode
       979.460163 s:  VX_ZONE_INFO:[ownNodeKernelInit:518] Create callback for node TIDLNode completed
       979.460198 s:  VX_ZONE_INFO:[ownGraphNodeKernelInit:578] kernel init for node 0, kernel com.ti.tidl:1:2 ...
       979.460341 s:  VX_ZONE_INFO:[ownGraphNodeKernelInit:589] kernel init for node 0, kernel com.ti.tidl:1:2 ... done !!!
    Ann FPS in class : 30/1
    [  953.978790] usb 1-1: reset high-speed USB device number 2 using xhci-hcd
    Mistral OX03F10
    ANN
    Ann FPS class output: 0
       980.365636 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.img.hist on target MPU-0
       980.365856 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.pre.proc.armv8 on target MPU-0
       980.365884 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.pre.proc.armv8 on target MPU-1
       980.365907 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.pre.proc.armv8 on target MPU-2
       980.365930 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.pre.proc.armv8 on target MPU-3
       980.365953 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.post.proc on target MPU-0
       980.365977 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.color.convert.armv8 on target MPU-0
       980.366000 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.color.convert.armv8 on target MPU-1
       980.366022 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.color.convert.armv8 on target MPU-2
       980.366045 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.dl.color.convert.armv8 on target MPU-3
    Ann fps : 0
       980.392034 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.img.preprocess destructor called (removed from context)
       980.392111 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.oc.pre.proc destructor called (removed from context)
       980.392141 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.oc.post.proc destructor called (removed from context)
       980.392169 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.od.postprocess destructor called (removed from context)
       980.392197 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.dof.plane.seperation destructor called (removed from context)
       980.392286 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.pose.visualization destructor called (removed from context)
       980.392320 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.visual.localization destructor called (removed from context)
       980.392349 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.od.draw.keypoint.detections destructor called (removed from context)
       980.392377 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.od.draw.box.detections destructor called (removed from context)
       980.392406 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.img.hist destructor called (removed from context)
       980.392434 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.sfm destructor called (removed from context)
       980.392461 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.dl.pre.proc destructor called (removed from context)
       980.392490 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.dl.color.blend destructor called (removed from context)
       980.392517 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.dl.draw.box destructor called (removed from context)
       980.392545 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.dl.color.convert destructor called (removed from context)
    Ann flow FPS from input:  30/1
    Ann normal fps: 30/1
    Ann current fps:  30/1
       980.396609 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:137] registered kernel com.ti.img_proc.img.hist on target MPU-0
    Ann fps : 30/1
       980.469409 s:  VX_ZONE_INFO:[ownNodeKernelValidate:229] Validating kernel com.ti.img_proc.dl.color.convert.armv8
       980.471541 s:  VX_ZONE_INFO:[ownNodeKernelInit:512] Calling create callback for node node_107
       980.471925 s:  VX_ZONE_INFO:[ownTargetKernelInstanceAlloc:107] attempting to call kernel com.ti.img_proc.dl.color.convert.armv8 on this CPU
       980.471992 s:  VX_ZONE_INFO:[ownTargetKernelCreate:316] Executing create callback for kernel [com.ti.img_proc.dl.color.convert.armv8]
       980.472624 s:  VX_ZONE_INFO:[ownTargetKernelCreate:322] Done executing create callback for kernel [com.ti.img_proc.dl.color.convert.armv8]
       980.472737 s:  VX_ZONE_INFO:[ownNodeKernelInit:518] Create callback for node node_107 completed
       980.472764 s:  VX_ZONE_INFO:[ownGraphNodeKernelInit:578] kernel init for node 0, kernel com.ti.img_proc.dl.color.convert.armv8 ...
       980.472784 s:  VX_ZONE_INFO:[ownGraphNodeKernelInit:589] kernel init for node 0, kernel com.ti.img_proc.dl.color.convert.armv8 ... done !!!
       980.474684 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       980.475383 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       980.475439 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       980.506443 s:  VX_ZONE_INFO:[ownDataRefQueueEnqueueReadyRef:89] Q (queue=26, ref=18)
       980.506559 s:  VX_ZONE_INFO:[ownDataRefQueueEnqueueReadyRef:89] Q (queue=30, ref=21)
       980.506598 s:  VX_ZONE_INFO:[ownGraphScheduleGraph:779] Scheduling Graph (graph=33, pipe=0)
       980.506618 s:  VX_ZONE_INFO:[ownNodeKernelSchedule:616] Scheduling Node (node=22, pipe=0)
       980.506734 s:  VX_ZONE_INFO:[ownTargetNodeDescNodeExecute:601] Node (node=22, pipe=0) acquiring parameters on target 00000200
       980.506767 s:  VX_ZONE_INFO:[ownTargetNodeDescAcquireParameter:189] Parameter acquired (node=22, pipe=0, data_ref_q=24, queue=26, ref=18)
       980.506794 s:  VX_ZONE_INFO:[ownTargetNodeDescAcquireParameter:189] Parameter acquired (node=22, pipe=0, data_ref_q=28, queue=30, ref=21)
       980.506815 s:  VX_ZONE_INFO:[ownTargetNodeDescNodeExecute:652] Node (node=22, pipe=0) executing on target 00000200
       980.838777 s:  VX_ZONE_INFO:[ownTargetKernelExecute:380] Executing process callback for kernel [com.ti.img_proc.dl.color.convert.armv8]
       980.899871 s:  VX_ZONE_INFO:[ownTargetKernelExecute:388] Done executing process callback for kernel [com.ti.img_proc.dl.color.convert.armv8]
       980.899972 s:  VX_ZONE_INFO:[ownTargetNodeDescNodeExecute:668] Node (node=22, pipe=0) executing on target 00000200 ... DONE !!!
       980.900031 s:  VX_ZONE_INFO:[ownTargetNodeDescReleaseParameter:457] Parameter released (node=22, pipe=0, data_ref_q=24, queue=27, ref=18)
       980.900074 s:  VX_ZONE_INFO:[ownTargetObjDescSendRefConsumed:116] Sending reference consumed event (data_ref_q=24) !!!
       980.900128 s:  VX_ZONE_INFO:[ownTargetNodeDescReleaseParameter:457] Parameter released (node=22, pipe=0, data_ref_q=28, queue=31, ref=21)
       980.900167 s:  VX_ZONE_INFO:[ownTargetObjDescSendRefConsumed:116] Sending reference consumed event (data_ref_q=28) !!!
       980.900338 s:  VX_ZONE_INFO:[ownCheckGraphCompleted:692] Graph Completed (graph=33, pipe=0)
       980.900376 s:  VX_ZONE_INFO:[ownCheckGraphCompleted:720] All Graphs Completed
       980.900553 s:  VX_ZONE_INFO:[ownDataRefQueueDequeueDoneRef:153] DQ (queue=27, ref=18)
       980.900605 s:  VX_ZONE_INFO:[ownDataRefQueueDequeueDoneRef:153] DQ (queue=31, ref=21)
       980.913909 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       980.913980 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       980.914004 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       980.914213 s:  VX_ZONE_INFO:[ownTargetKernelDelete:348] Executing delete callback for kernel [com.ti.img_proc.dl.color.convert.armv8]
       980.914410 s:  VX_ZONE_INFO:[ownTargetKernelDelete:354] Done executing delete callback for kernel [com.ti.img_proc.dl.color.convert.armv8]
       980.914508 s:  VX_ZONE_INFO:[tivxQueueDelete:182] if this hangs, please ensure all application threads have been destroyed
       980.914573 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       980.914598 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       980.915328 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       980.915357 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       981.065318 s:  VX_ZONE_INFO:[ownNodeKernelValidate:229] Validati[  955.291433] ox03f10 4-0010:  fd->num_entries 1 
    ng kernel com.ti.img_proc.dl.color.convert.armv8
       981.066897 [  955.301328] v4l2_get_link_freq: Link frequency estimated using pixel rate: result might be inaccurate
    s:  VX_ZONE_INFO:[ownNodeKernelInit:512] Calling create callback[  955.315846] v4l2_get_link_freq: Consider implementing support for V4L2_CID_LINK_FREQ in the transmitter driver
     for node node_108
       981.067191 s:  VX_ZONE_INFO:[ownTargetKer[  955.331545] ox03f10 4-0010: ox03f10_set_stream: enable 1 
    nelInstanceAlloc:107] attempting to call kernel com.ti.img_proc.dl.color.convert.armv8 on this CPU
       981.067250 s:  VX_ZONE_INFO:[ownTargetKernelCreate:316] Executing create callback for kernel [com.ti.img_proc.dl.color.convert.armv8]
       981.067511 s:  VX_ZONE_INFO:[ownTargetKernelCreate:322] Done executing create callback for kernel [com.ti.img_proc.dl.color.convert.armv8]
       981.067628 s:  VX_ZONE_INFO:[ownNodeKernelInit:518] Create callback for node node_108 completed
       981.067667 s:  VX_ZONE_INFO:[ownGraphNodeKernelInit:578] kernel init for node 0, kernel com.ti.img_proc.dl.color.convert.armv8 ...
       981.067694 s:  VX_ZONE_INFO:[ownGraphNodeKernelInit:589] kernel init for node 0, kernel com.ti.img_proc.dl.color.convert.armv8 ... done !!!
       981.069416 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       981.069857 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       981.069896 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
    ==========[ARTHI INPUT PIPELINE(S)]==========
    
       981.074628 s:  VX_ZONE_INFO:[ownDeriveRawImageBufferPointers:261] host_ptr is NULL so setting derived pointers also to NULL!
    [PIPE-0]
    
    v4l2src device=/dev/video3 io-mode=5 pixel-aspect-ratio=None ! queue leaky=2 ! capsfilter caps="video/x-bayer, width=(int)1920, height=(int)1542, format=(string)bggr12;" ! tiovxisp dcc-isp-file=/opt/imaging/OX03F10/dcc_viss.bin sensor-name=SENSOR_OX03F10_HDR format-msb=11 ! capsfilter caps="video/x-raw, format=(string)NV12;" ! tiovxmultiscaler name=split_01
    split_01. ! queue ! capsfilter caps="video/x-raw, width=(int)1280, height=(int)720;" ! tiovxdlcolorconvert out-pool-size=4 ! capsfilter caps="video/x-raw, format=(string)RGB;" ! appsink max-buffers=2 drop=True name=sen_0
    split_01. ! queue ! capsfilter caps="video/x-raw, width=(int)1168, height=(int)980;" ! tiovxmultiscaler target=1 ! capsfilter caps="video/x-raw, width=(int)416, height=(int)416;" ! tiovxdlpreproc out-pool-size=4 data-type=3 tensor-format=1 ! capsfilter caps="application/x-tensor-tiovx;" ! appsink max-buffers=2 drop=True name=pre_0
    
    
    ==========[OUTPUT PIPELINE]==========
    
    appsrc do-timestamp=True format=3 block=True name=post_0 ! tiovxdlcolorconvert ! capsfilter caps="video/x-raw, format=(string)NV12, width=(int)1280, height=(int)720;" ! queue ! mosaic_0.sink_0
    
    tiovxmosaic target=1 background=/tmp/background_0 name=mosaic_0 src::pool-size=4
    sink_0::startx="<320>" sink_0::starty="<150>" sink_0::widths="<1280>" sink_0::heights="<720>"
    ! capsfilter caps="video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080;" ! queue ! tiperfoverlay title=Object Detection ! kmssink sync=False max-lateness=5000000 qos=True processing-deadline=15000000 driver-name=tidss connector-id=40 plane-id=31 force-modesetting=True
    
     +--------------------------------------------------------------------------+ | Object Detection| +--------------------------------------------------------------------------+ +--------------------------------------------------------------------------+ | Input Src: /dev/video3| | Model Name: ONR-OD-8200-yolox-nano-lite-mmdet-coco-416x416| | Model Type: detection| +--------------------------------------------------------------------------+ +--------------------------------------------------------------------------+[  955.684433] ox03f10 4-0010: ox03f10_start_stream: ox03f10SensorDefaultSetting ret 0 
    [  955.761301] ox03f10 4-0010: ox03f10_start_stream: ox03f10_format_pwl12_hdr4_24bit_1920x1536_30fps ret 0 
    [  955.807151] ox03f10 4-0010: ox03f10_start_stream: stream on end
       981.635247 s:  VX_ZONE_INFO:[ownIsValidReference:122] Reference was NULL
       981.635367 s:  VX_ZONE_INFO:[ownIsValidReference:122] Reference was NULL
       981.635440 s:  VX_ZONE_INFO:[ownIsValidReference:122] Reference was NULL
       981.637069 s:  VX_ZONE_INFO:[ownNodeKernelValidate:229] Validating kernel com.ti.hwa.vpac_msc_multi_scale
       981.640021 s:  VX_ZONE_INFO:[ownNodeKernelInit:512] Calling create callback for node scaler_node
       981.640924 s:  VX_ZONE_INFO:[ownNodeKernelInit:518] Create callback for node scaler_node completed
       981.640977 s:  VX_ZONE_INFO:[ownGraphNodeKernelInit:578] kernel init for node 0, kernel com.ti.hwa.vpac_msc_multi_scale ...
       981.641014 s:  VX_ZONE_INFO:[ownGraphNodeKernelInit:589] kernel init for node 0, kernel com.ti.hwa.vpac_msc_multi_scale ... done !!!
       981.643418 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       981.643451 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       981.643799 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       981.643824 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       981.644283 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       981.644310 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       981.647906 s:  VX_ZONE_INFO:[ownNodeKernelValidate:229] Validating kernel com.ti.img_proc.dl.color.convert.armv8
       981.648768 s:  VX_ZONE_INFO:[ownIsValidReference:122] Reference was NULL
       981.648838 s:  VX_ZONE_INFO:[ownIsValidReference:122] Reference was NULL
       981.648888 s:  VX_ZONE_INFO:[ownIsValidReference:122] Reference was NULL
       981.648935 s:  VX_ZONE_INFO:[ownIsValidReference:122] Reference was NULL
       981.649936 s:  VX_ZONE_INFO:[ownNodeKernelInit:512] Calling create callback for node node_139
       981.650210 s:  VX_ZONE_INFO:[ownTargetKernelInstanceAlloc:107] attempting to call kernel com.ti.img_proc.dl.color.convert.armv8 on this CPU
       981.650259 s:  VX_ZONE_INFO:[ownTargetKernelCreate:316] Executing create callback for kernel [com.ti.img_proc.dl.color.convert.armv8]
       981.650359 s:  VX_ZONE_INFO:[ownNodeKernelValidate:229] Validating kernel com.ti.hwa.vpac_msc_multi_scale
       981.650449 s:  VX_ZONE_INFO:[ownTargetKernelCreate:322] Done executing create callback for kernel [com.ti.img_proc.dl.color.convert.armv8]
       981.650521 s:  VX_ZONE_INFO:[ownNodeKernelInit:518] Create callback for node node_139 completed
       981.650548 s:  VX_ZONE_INFO:[ownGraphNodeKernelInit:578] kernel init for node 0, kernel com.ti.img_proc.dl.color.convert.armv8 ...
       981.650573 s:  VX_ZONE_INFO:[ownGraphNodeKernelInit:589] kernel init for node 0, kernel com.ti.img_proc.dl.color.convert.armv8 ... done !!!
       981.651390 s:  VX_ZONE_INFO:[ownNodeKernelInit:512] Calling create callback for node scaler_node
       981.652209 s:  VX_ZONE_INFO:[ownNodeKernelInit:518] Create callback for node scaler_node completed
       981.652411 s:  VX_ZONE_INFO:[ownGraphNodeKernelInit:578] kernel init for node 0, kernel com.ti.hwa.vpac_msc_multi_scale ...
       981.652484 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       981.652590 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       981.652695 s:  VX_ZONE_INFO:[ownGraphNodeKernelInit:589] kernel init for node 0, kernel com.ti.hwa.vpac_msc_multi_scale ... done !!!
       981.654306 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       981.657646 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       981.657757 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       981.658206 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       981.658280 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       981.667866 s:  VX_ZONE_INFO:[ownNodeKernelValidate:229] Validating kernel com.ti.img_proc.dl.pre.proc.armv8
       981.669096 s:  VX_ZONE_INFO:[ownNodeKernelInit:512] Calling create callback for node node_149
       981.669368 s:  VX_ZONE_INFO:[ownTargetKernelInstanceAlloc:107] attempting to call kernel com.ti.img_proc.dl.pre.proc.armv8 on this CPU
       981.669435 s:  VX_ZONE_INFO:[ownTargetKernelCreate:316] Executing create callback for kernel [com.ti.img_proc.dl.pre.proc.armv8]
       981.669641 s:  VX_ZONE_INFO:[ownTargetKernelCreate:322] Done executing create callback for kernel [com.ti.img_proc.dl.pre.proc.armv8]
       982.002899 s:  VX_ZONE_INFO:[ownNodeKernelInit:518] Create callback for node node_149 completed
       982.003006 s:  VX_ZONE_INFO:[ownGraphNodeKernelInit:578] kernel init for node 0, kernel com.ti.img_proc.dl.pre.proc.armv8 ...
       982.003081 s:  VX_ZONE_INFO:[ownGraphNodeKernelInit:589] kernel init for node 0, kernel com.ti.img_proc.dl.pre.proc.armv8 ... done !!!
       982.005921 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       982.006005 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       982.006542 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
     +--------------------------------------------------------------------------+ | Object Detection| +--------------------------------------------------------------------------+ +--------------------------------------------------------------------------+ | Input Src: /dev/video3| | Model Name: ONR-OD-8200-yolox-nano-lite-mmdet-coco-416x416| | Model Type: detection| +--------------------------------------------------------------------------+ +--------------------------------------------------------------------------+ +--------------------------------------------------------------------------+ | Object Detection| +--------------------------------------------------------------------------+ +--------------------------------------------------------------------------+ | Input Src: /dev/video3| | Model Name: ONR-OD-8200-yolox-nano-lite-mmdet-coco-416x416| | Model Type: detection| +--------------------------------------------------------------------------+ +--------------------------------------------------------------------------+ +--------------------------------------------------------------------------+ | Object Detection| +--------------------------------------------------------------------------+ +--------------------------------------------------------------------------+ | Input Src: /dev/video3| | Model Name: ONR-OD-8200-yolox-nano-lite-mmdet-coco-416x416| | Model Type: detection| +--------------------------------------------------------------------------+ +--------------------------------------------------------------------------+ +--------------------------------------------------------------------------+ | Object Detection| +--------------------------------------------------------------------------+ +--------------------------------------------------------------------------+ | Input Src: /dev/video3| | Model Name: ONR-OD-8200-yolox-nano-lite-mmdet-coco-416x416| | Model Type: detection| +--------------------------------------------------------------------------+ +--------------------------------------------------------------------------+[ERROR] Error pulling tensor from GST Pipeline
       986.080050 s:  VX_ZONE_INFO:[ownNodeKernelValidate:229] Validating kernel com.ti.img_proc.img.mosaic:1
       986.082485 s:  VX_ZONE_INFO:[ownNodeKernelInit:512] Calling create callback for node img_mosaic_node
       986.083274 s:  VX_ZONE_INFO:[ownNodeKernelInit:518] Create callback for node img_mosaic_node completed
       986.083309 s:  VX_ZONE_INFO:[ownGraphNodeKernelInit:578] kernel init for node 0, kernel com.ti.img_proc.img.mosaic:1 ...
       986.083334 s:  VX_ZONE_INFO:[ownGraphNodeKernelInit:589] kernel init for node 0, kernel com.ti.img_proc.img.mosaic:1 ... done !!!
       986.084501 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       986.084530 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       986.085160 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       986.085186 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       986.085817 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       986.085843 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
    MEM: ERROR: Alloc failed with status = 12 !!!
       986.150618 s:  VX_ZONE_ERROR:[tivxMemBufferAlloc:87] Shared mem ptr allocation failed
       986.425897 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       986.425976 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       986.427882 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.img.mosaic:1 destructor called (removed from context)
       986.427964 s:  VX_ZONE_INFO:[tivxQueueDelete:182] if this hangs, please ensure all application threads have [  960.654365] ox03f10 4-0010: ox03f10_set_stream: enable 0 
    been destroyed
       986.429041 s:  VX_ZONE_INFO:[ownTargetKernelDelete:348] Executing delete callback for kernel [com.ti.img_proc.dl.color.convert.armv8]
       986.429277 s:  VX_ZONE_INFO:[ownTargetKernelDelete:354] Done executing delete callback for kernel [com.ti.img_proc.dl.color.convert.armv8]
       986.429434 s:  VX_ZONE_INFO:[tivxQueueDelete:182] if this hangs, please ensure all application threads have been destroyed
       986.446327 s:  VX_ZONE_INFO:[ownTargetKernelDelete:348] Executing delete callback for kernel [com.ti.img_proc.dl.color.convert.armv8]
       986.446762 s:  VX_ZONE_INFO:[ownTargetKernelDelete:354] Done executing delete callback for kernel [com.ti.img_proc.dl.color.convert.armv8]
       986.447028 s:  VX_ZONE_INFO:[tivxQueueDelete:182] if this hangs, please ensure all application threads have been destroyed
       986.447207 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       986.449258 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       986.451081 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       986.452963 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       986.456030 s:  VX_ZONE_INFO:[ownTargetKernelDelete:348] Executing delete callback for kernel [com.ti.img_proc.dl.pre.proc.armv8]
       986.456448 s:  VX_ZONE_INFO:[ownTargetKernelDelete:354] Done executing delete callback for kernel [com.ti.img_proc.dl.pre.proc.armv8]
       986.456936 s:  VX_ZONE_INFO:[tivxQueueDelete:182] if this hangs, please ensure all application threads have been destroyed
       986.457106 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       986.457776 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       986.458415 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       986.459047 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
     +--------------------------------------------------------------------------+ | Object Detection| +--------------------------------------------------------------------------+ +--------------------------------------------------------------------------+ | Input Src: /dev/video3| | Model Name: ONR-OD-8200-yolox-nano-lite-mmdet-coco-416x416| | Model Type: detection| +--------------------------------------------------------------------------+ +--------------------------------------------------------------------------+   986.484045 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       986.484175 s:  VX_ZONE_INFO:[ownDeriveRawImageBufferPointers:261] host_ptr is NULL so setting derived pointers also to NULL!
       986.488169 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       986.488491 s:  VX_ZONE_INFO:[ownDeriveRawImageBufferPointers:261] host_ptr is NULL so setting derived pointers also to NULL!
       986.490342 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       986.490386 s:  VX_ZONE_INFO:[ownDeriveRawImageBufferPointers:261] host_ptr is NULL so setting derived pointers also to NULL!
       986.492067 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       986.492107 s:  VX_ZONE_INFO:[ownDeriveRawImageBufferPointers:261] host_ptr is NULL so setting derived pointers also to NULL!
       986.500145 s:  VX_ZONE_INFO:[tivxQueueDelete:182] if this hangs, please ensure all application threads have been destroyed
       986.501549 s:  VX_ZONE_INFO:[tivxQueueDelete:182] if this hangs, please ensure all application threads have been destroyed
       986.505376 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.tidl:1:2 destructor called (removed from context)
       986.505439 s:  VX_ZONE_INFO:[tivxQueueDelete:182] if this hangs, please ensure all application threads have been destroyed
       986.506894 s:  VX_ZONE_INFO:[tivxRemoveTargetKernelTIDL_mpu:699] Removing MPU_1 target kernel 
       986.506933 s:  VX_ZONE_INFO:[tivxRemoveTargetKernelTIDL_mpu:704] Removing MPU_1 target kernel  -- done 
       987.673726 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.img.preprocess destructor called (removed from context)
       987.673815 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.oc.pre.proc destructor called (removed from context)
       987.673846 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.oc.post.proc destructor called (removed from context)
       987.673875 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.od.postprocess destructor called (removed from context)
       987.673904 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.dof.plane.seperation destructor called (removed from context)
       987.673932 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.pose.visualization destructor called (removed from context)
       987.673959 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.visual.localization destructor called (removed from context)
       987.673987 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.od.draw.keypoint.detections destructor called (removed from context)
       987.674015 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.od.draw.box.detections destructor called (removed from context)
       987.674044 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.img.hist destructor called (removed from context)
       987.674071 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.sfm destructor called (removed from context)
       987.674099 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.dl.pre.proc destructor called (removed from context)
       987.674126 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.dl.color.blend destructor called (removed from context)
       987.674154 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.dl.draw.box destructor called (removed from context)
       987.674181 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.dl.color.convert destructor called (removed from context)
       987.692064 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       987.693506 s:  VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
       987.696643 s:  VX_ZONE_INFO:[ownDeriveRawImageBufferPointers:261] host_ptr is NULL so setting derived pointers also to NULL!
       987.696886 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.hwa.vpac_ldc destructor called (removed from context)
       987.696936 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.hwa.vpac_msc_multi_scale destructor called (removed from context)
       987.696976 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.hwa.vpac_msc_pyramid destructor called (removed from context)
       987.697013 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.hwa.vpac_viss destructor called (removed from context)
       987.697054 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.dl.pre.proc.armv8 destructor called (removed from context)
       987.697092 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.dl.color.convert.armv8 destructor called (removed from context)
       987.697173 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.absdiff destructor called (removed from context)
       987.697209 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.accumulate destructor called (removed from context)
       987.697245 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.accumulate_square destructor called (removed from context)
       987.697282 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.accumulate_weighted destructor called (removed from context)
       987.697318 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.add destructor called (removed from context)
       987.697353 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.and destructor called (removed from context)
       987.697387 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.box_3x3 destructor called (removed from context)
       987.697423 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.canny_edge_detector destructor called (removed from context)
       987.697458 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.channel_combine destructor called (removed from context)
       987.697494 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.channel_extract destructor called (removed from context)
       988.029982 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.color_convert destructor called (removed from context)
       988.030121 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.convertdepth destructor called (removed from context)
       988.030177 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.custom_convolution destructor called (removed from context)
       988.030205 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.dilate_3x3 destructor called (removed from context)
       988.030233 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.equalize_histogram destructor called (removed from context)
       988.030261 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.erode_3x3 destructor called (removed from context)
       988.030288 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.fast_corners destructor called (removed from context)
       988.030315 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.gaussian_pyramid destructor called (removed from context)
       988.030343 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.gaussian_3x3 destructor called (removed from context)
       988.030371 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.harris_corners destructor called (removed from context)
       988.030399 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.halfscale_gaussian destructor called (removed from context)
       988.030426 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.histogram destructor called (removed from context)
       988.030454 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.integral_image destructor called (removed from context)
       988.030481 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.laplacian_pyramid destructor called (removed from context)
       988.030509 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.laplacian_reconstruct destructor called (removed from context)
       988.030536 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.table_lookup destructor called (removed from context)
       988.030563 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.magnitude destructor called (removed from context)
       988.030591 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.mean_stddev destructor called (removed from context)
       988.030618 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.median_3x3 destructor called (removed from context)
       988.030645 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.minmaxloc destructor called (removed from context)
       988.030673 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.multiply destructor called (removed from context)
       988.030700 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.non_linear_filter destructor called (removed from context)
       988.030728 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.not destructor called (removed from context)
       988.030755 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.optical_flow_pyr_lk destructor called (removed from context)
       988.030784 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.or destructor called (removed from context)
       988.030812 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.phase destructor called (removed from context)
       988.030839 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.remap destructor called (removed from context)
       988.030866 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.scale_image destructor called (removed from context)
       988.363512 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.sobel_3x3 destructor called (removed from context)
       988.363639 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.subtract destructor called (removed from context)
       988.363709 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.threshold destructor called (removed from context)
       988.363737 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.warp_affine destructor called (removed from context)
       988.363765 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.warp_perspective destructor called (removed from context)
       988.363792 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel org.khronos.openvx.xor destructor called (removed from context)
       988.363820 s:  VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.supernode destructor called (removed from context)
       988.364002 s:  VX_ZONE_WARNING:[vxReleaseContext:1090] Found a reference 0xffff91d968b0 of type 00000816 at external count 1, internal count 0, releasing it
       988.364021 s:  VX_ZONE_WARNING:[vxReleaseContext:1092] Releasing reference (name=user_data_object_160) now as a part of garbage collection
       988.364199 s:  VX_ZONE_WARNING:[vxReleaseContext:1090] Found a reference 0xffff91d96ad0 of type 00000816 at external count 1, internal count 0, releasing it
       988.364262 s:  VX_ZONE_WARNING:[vxReleaseContext:1092] Releasing reference (name=user_data_object_161) now as a part of garbage collection
       988.364362 s:  VX_ZONE_WARNING:[vxReleaseContext:1090] Found a reference 0xffff91e36c98 of type 00000813 at external count 1, internal count 0, releasing it
       988.364383 s:  VX_ZONE_WARNING:[vxReleaseContext:1092] Releasing reference (name=object_array_163) now as a part of garbage collection
       988.364418 s:  VX_ZONE_WARNING:[vxReleaseContext:1090] Found a reference 0xffff91d96f10 of type 00000816 at external count 1, internal count 0, releasing it
       988.364437 s:  VX_ZONE_WARNING:[vxReleaseContext:1092] Releasing reference (name=user_data_object_164) now as a part of garbage collection
       988.364551 s:  VX_ZONE_WARNING:[vxReleaseContext:1090] Found a reference 0xffff91e36e38 of type 00000813 at external count 1, internal count 0, releasing it
       988.364573 s:  VX_ZONE_WARNING:[vxReleaseContext:1092] Releasing reference (name=object_array_165) now as a part of garbage collection
       988.364607 s:  VX_ZONE_WARNING:[vxReleaseContext:1090] Found a reference 0xffff91da2c20 of type 00000817 at external count 1, internal count 0, releasing it
       988.364626 s:  VX_ZONE_WARNING:[vxReleaseContext:1092] Releasing reference (name=raw_image_166) now as a part of garbage collection
       988.364656 s:  VX_ZONE_WARNING:[vxReleaseContext:1090] Found a reference 0xffff91e36fd8 of type 00000813 at external count 1, internal count 0, releasing it
       988.364675 s:  VX_ZONE_WARNING:[vxReleaseContext:1092] Releasing reference (name=object_array_167) now as a part of garbage collection
       988.364705 s:  VX_ZONE_WARNING:[vxReleaseContext:1090] Found a reference 0xffff91d97130 of type 00000816 at external count 1, internal count 0, releasing it
       988.364724 s:  VX_ZONE_WARNING:[vxReleaseContext:1092] Releasing reference (name=user_data_object_168) now as a part of garbage collection
       988.364754 s:  VX_ZONE_WARNING:[vxReleaseContext:1090] Found a reference 0xffff91e37178 of type 00000813 at external count 1, internal count 0, releasing it
       988.364773 s:  VX_ZONE_WARNING:[vxReleaseContext:1092] Releasing reference (name=object_array_169) now as a part of garbage collection
       988.364803 s:  VX_ZONE_WARNING:[vxReleaseContext:1090] Found a reference 0xffff91dca5f8 of type 0000080f at external count 1, internal count 0, releasing it
       988.364822 s:  VX_ZONE_WARNING:[vxReleaseContext:1092] Releasing reference (name=image_170) now as a part of garbage collection
       988.697235 s:  VX_ZONE_WARNING:[vxReleaseContext:1090] Found a reference 0xffff91dcab68 of type 0000080f at external count 1, internal count 0, releasing it
       988.697336 s:  VX_ZONE_WARNING:[vxReleaseContext:1092] Releasing reference (name=mosaic_node_output_image_0) now as a part of garbage collection
       988.697424 s:  VX_ZONE_WARNING:[vxReleaseContext:1090] Found a reference 0xffff91e374b8 of type 00000813 at external count 1, internal count 0, releasing it
       988.697450 s:  VX_ZONE_WARNING:[vxReleaseContext:1092] Releasing reference (name=object_array_183) now as a part of garbage collection
       988.698297 s:  VX_ZONE_INFO:[tivxQueueDelete:182] if this hangs, please ensure all application threads have been destroyed
       988.698333 s:  VX_ZONE_INFO:[tivxQueueDelete:182] if this hangs, please ensure all application threads have been destroyed
       988.698362 s:  VX_ZONE_INFO:[tivxQueueDelete:182] if this hangs, please ensure all application threads have been destroyed
       988.698389 s:  VX_ZONE_INFO:[tivxQueueDelete:182] if this hangs, please ensure all application threads have been destroyed
       988.698472 s:  VX_ZONE_INIT:[tivxHostDeInitLocal:115] De-Initialization Done for HOST !!!
       988.699852 s:  VX_ZONE_INFO:[tivxQueueDelete:182] if this hangs, please ensure all application threads have been destroyed
       988.701090 s:  VX_ZONE_INFO:[tivxQueueDelete:182] if this hangs, please ensure all application threads have been destroyed
       988.702376 s:  VX_ZONE_INFO:[tivxQueueDelete:182] if this hangs, please ensure all application threads have been destroyed
       988.703696 s:  VX_ZONE_INFO:[tivxQueueDelete:182] if this hangs, please ensure all application threads have been destroyed
       988.703877 s:  VX_ZONE_INIT:[tivxDeInitLocal:194] De-Initialization Done !!!
    APP: Deinit ... !!!
    REMOTE_SERVICE: Deinit ... !!!
    REMOTE_SERVICE: Deinit ... Done !!!
    IPC: Deinit ... !!!
    IPC: DeInit ... Done !!!
    MEM: Deinit ... !!!
    DDR_SHARED_MEM: Alloc's: 56 alloc's of 103440079 bytes 
    DDR_SHARED_MEM: Free's : 56 free's  of 103440079 bytes 
    DDR_SHARED_MEM: Open's : 0 allocs  of 0 bytes 
    MEM: Deinit ... Done !!!
    APP: Deinit ... Done !!!
    root@am62axx-evm:/opt/edgeai-gst-apps/apps_python# 

    Also, I suspect the delay is causing due to less space in the heap area that I was provided. Same I suspect for the cause of the streaming issue of the Ox03F10 camera module. Could you please guide me in resolving this issue? 

    Also, my final requirement is to stream the camera module over the Ethernet, not in the Display. While I update the command to stream over Ethernet, even USB streaming was not happening.

    Regards,

    Ann Rose Antony

  • HI Reese,

    In above log we can see an error where memory allocation is not successful as shown below:

    Alloc failed with status = 12 !!!
    986.150618 s: VX_ZONE_ERROR:[tivxMemBufferAlloc:87] Shared mem ptr allocation failed
    986.425897 s: VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
    986.425976 s: VX_ZONE_INFO:[tivxReferenceImportHandle:1274] Non-NULL handle detected. Overwriting.
    986.427882 s: VX_ZONE_INFO:[ownDestructKernel:32] Kernel com.ti.img_proc.img.mosaic:1 destructor called (removed from context)
    986.427964 s: VX_ZONE_INFO:[tivxQueueDelete:182] if this hangs, please ensure all application threads have [ 960.654365] ox03f10 4-0010: ox03f10_set_stream: enable 0
    been destroyed

    Could you please tell me whether this happens if the shared memory or heap is less than what the application requires? 

    Regards,

    Ann Rose Antony

  • Hi Ann,

    So sounds like we've gotten the memory map updated such that all the baseline components are working. That's good progress.

    Since we're operating with minimal memory, we have to be careful about buffer sizes and the number of those buffers allocated. The out-pool-size parameter for some of the tiovx plugins should be reduced to "2" in your case. I see the mosaic and colorconversion plugins are using 4 here.

    Could you please tell me whether this happens if the shared memory or heap is less than what the application requires? 

    I believe these are allocated into DDR_SHARED_MEM. If it's not that, then this kernel runs on the DM R5F core, so you should modify the DDR_DM_R5F_LOCAL_HEAP in that case. All the functions for VPAC will run on that core, so ISP, Multiscaler, and LDC.

    Regarding the slow performance on USB stream, I have seen some scenarios where a small APP_LOG_MEM (yours is 256 kB vs. original 4MB) can cause performance degradation. I would suggest increasing this (1MB for starters) and see if this impacts performance.

    BR,
    Reese

  • Hi Reese,

    Since we're operating with minimal memory, we have to be careful about buffer sizes and the number of those buffers allocated. The out-pool-size parameter for some of the tiovx plugins should be reduced to "2" in your case. I see the mosaic and colorconversion plugins are using 4 here.

    I have updated the out-pool-size to 2 for the am62a opt/edgeai-gst-apps/configs/gst_plugins_map.yaml file. But the behavior remains the same.

    I believe these are allocated into DDR_SHARED_MEM. If it's not that, then this kernel runs on the DM R5F core, so you should modify the DDR_DM_R5F_LOCAL_HEAP in that case. All the functions for VPAC will run on that core, so ISP, Multiscaler, and LDC.

    While going through the documentation the DDR_SHARED_MEM is 29 MB and the DDR_DM_R5F_LOCAL_HEAP is 16 MB. I modified the memory map to keep those the same. Still, I was observing the same error.

    APP_LOG_MEM (yours is 256 kB vs. original 4MB)

    Sorry, when I went through the default memory map available in the documenation, the APP_LOG_MEM remains 256KB only. Could you please correct me if I am not wrong? 

    The memory map that I am following where the USB camera streaming is working with delay as shown below:

    Partition Start Address Size
    DDR_C7x_1_IPC 0x99800000 1024.00 KB
    DDR_C7x_1_RESOURCE_TABLE 0x99900000 1024.00 B
    DDR_C7X_1_IPC_TRACEBUF 0x99900400 1023.00 KB
    DDR_C7x_1_BOOT 0x99A00000 1024.00 B
    DDR_C7x_1_VECS 0x99C00000 16.00 KB
    DDR_C7x_1 0x99C10000 15.94 MB
    DDR_MCU_R5F_IPC 0x9B800000 1024.00 KB
    DDR_MCU_R5F_RESOURCE_TABLE 0x9B900000 1024.00 B
    DDR_MCU_R5F_IPC_TRACEBUF 0x9B900400 1023.00 KB
    DDR_MCU_R5F 0x9BA00000 10.00 MB
    DDR_DM_R5F_IPC 0x9C800000 1024.00 KB
    DDR_DM_R5F_RESOURCE_TABLE 0x9C900000 1024 B
    DDR_DM_R5F_IPC_TRACEBUF 0x9C900400 1023.00 KB
    DDR_DM_R5F 0x9CA00000 29.00 MB
    TIFS_LPM_CTX 9E700000 512.00 KB
    ATF_MEM 9E780000 512.00 KB
    OPTEE_MEM 9E800000 24.00 MB
    IPC_VRING_MEM A0000000 16.00 MB
    APP_LOG_MEM A1000000 256.00 KB
    TIOVX_OBJ_DESC_MEM A1040000 15.75 MB
    TIOVX_LOG_RT_MEM A2000000 16.00 MB
    DDR_SHARED_MEM A3000000 96.00 MB
    DDR_MCU_R5F_LOCAL_HEAP A9000000 16.00 MB
    DDR_DM_R5F_LOCAL_HEAP AA000000 16.00 MB
    DDR_C7X_1_LOCAL_HEAP_NON_CACHEABLE AB000000 16.00 MB
    DDR_C7X_1_SCRATCH_NON_CACHEABLE AC000000 16.00 MB
    DDR_C7X_1_LOCAL_HEAP AD000000 32.00 MB
    DDR_C7X_1_SCRATCH 0xAF000000 16.00 MB

    Also, while running the Ox03F10 camera module, I am observing an error as follows:

    Error pulling tensor from GST Pipeline

    Could you please help me to figure out what could be the reason for the above error?

    Regards,

    Ann Rose Antony

  • Hi Ann,

    Error pulling tensor from GST Pipeline

    This usually indicates a failure in the pipeline. It likely failed to start and the application code for edgeai-gst-apps is indicating it can't pull a tensor through appsink. It's probably best to use the optiflow scripts so that we use gstreamer only, instead of adding any application code

    Sorry, when I went through the default memory map available in the documenation, the APP_LOG_MEM remains 256KB only. Could you please correct me if I am not wrong? 

    My apologies, you are right here. I mixed this up with an APP_FILEIO_MEM region that is placed right before TIOVX_LOG_RT_MEM.

    APP_LOG_MEM should stay as-is. The table below shows some of the regions I was mentioning. I notice that yours does not include the APP_FILEIO_MEM region, and I'm curious why that is. That region was added in SDK 9.0 -- before that, the same portion of memory was within TIOVX_LOG_RT_MEM

    APP_LOG_MEM

    0xA1000000

    0xA103FFFF

    256.00 KB

    Memory for remote core logging

    TIOVX_OBJ_DESC_MEM

    0xA1040000

    0xA1FFFFFF

    15.75 MB

    Memory for TI OpenVX shared memory. MUST be non-cached or cache-coherent

    APP_FILEIO_MEM

    0xA2000000

    0xA23FFFFF

    4.00 MB

    Memory for remote core file operations

    TIOVX_LOG_RT_MEM

    0xA2400000

    0xA2FFFFFF

    12.00 MB

    Memory for TI OpenVX shared memory for Run-time logging. MUST be non-cached or cache-coherent

    I need a bit more clarity on what leads to failure.

    It's clear that running a basic pipeline works, and that a complex one results in memory allocation errors. It would help to know if this is related to any particular core (mainly, R5F vs. C7X). Can we run a pipeline for your camera without any AI processing on C7x? I'd like to see if we get memory allocation errors from that.

    Please provide any OpenVX logs resulting from the /opt/vx_app_arm_remote_log.out application running in the background

  • Hi Reese,

    I was referring the 9.0 Firmware builder SDK and used the memory map provided in the documentation as reference 

    As per this table I did not see any APP_FILEIO_MEM region. Hence I did not updated the same.

    Also there is good news that I am able to resolve the Object Detection issue with the Custom Camera. After updating the demo application source files and the dcc bins along with the firmware, I am able to preview the camera Module over the Ethernet.

    But while migrating the changes to 9.02 firmware builder, I am facing build error. I issued the below commands without modifying the gen_linker_mem_map.py file. Attached the error log.

    export SOC=am62a
    export TISDK_IMAGE=edgeai
    ./sdk_builder/scripts/setup_psdk_rtos.sh
    export PATH=$PATH:~/.local/bin
    cd vision_apps/tools/PyTI_PSDK_RTOS
    pip3 install -e . --user
    cd -
    cd vision_apps/platform/am62a/rtos
    ./gen_linker_mem_map.py
    cd -
    cd sdk_builder/
    BUILD_EDGEAI=yes make sdk_clean -j`nproc`
    BUILD_EDGEAI=yes make sdk -j`nproc`

    firmware_builder_sdk_9.02_build_error.txt

    Could you please help me to figure out why this error is coming with the 9.02 firmware builder.

    Regards,

    Ann Rose Antony

  • Hi Ann,

    Also there is good news that I am able to resolve the Object Detection issue with the Custom Camera. After updating the demo application source files and the dcc bins along with the firmware, I am able to preview the camera Module over the Ethernet.

    That is good news :) I would be very interested to see the detailed steps here, and I was not expecting this to be the resolution. Perhaps these have some internal reference to memory regions that are no longer in the same location. 

    Could you please help me to figure out why this error is coming with the 9.02 firmware builder.

    Yes, but may I ask that you create a separate e2e thread for this one? The current thread has gotten very long and will be challenging for others with similar issues to follow. We can link back to this thread for more context of course.

    In that new thread, it would help to include some of the updated memory map files. It seems that something was not correctly generated. I would be most interested to see the am62a_linker_freertos_mcuplus.cmd file, which should be auto-generated from the python script. I would also recommend looking at a diff of the original 9.2 and your updated 9.2 gen_linker_mem_map.py

    BR,
    Reese

  • Hi Reese,

    Below are the steps which resolved the preview issue with the 1GB DDR

    1) Updated the Firmwares by following the below steps:

      a) Setup the dependencies as shown in the documentation.

      b) Updated the vision_apps/platform/am62a/rtos/gen_linker_mem_map.py with the below table:

    Partition Start Address Size
    DDR_C7x_1_IPC 0x99800000 1024.00 KB
    DDR_C7x_1_RESOURCE_TABLE 0x99900000 1024.00 B
    DDR_C7X_1_IPC_TRACEBUF 0x99900400 1023.00 KB
    DDR_C7x_1_BOOT 0x99A00000 1024.00 B
    DDR_C7x_1_VECS 0x99C00000 16.00 KB
    DDR_C7x_1 0x99C10000 15.94 MB
    DDR_MCU_R5F_IPC 0x9B800000 1024.00 KB
    DDR_MCU_R5F_RESOURCE_TABLE 0x9B900000 1024.00 B
    DDR_MCU_R5F_IPC_TRACEBUF 0x9B900400 1023.00 KB
    DDR_MCU_R5F 0x9BA00000 14.00 MB
    DDR_DM_R5F_IPC 0x9C800000 1024.00 KB
    DDR_DM_R5F_RESOURCE_TABLE 0x9C900000 1024 B
    DDR_DM_R5F_IPC_TRACEBUF 0x9C900400 1023.00 KB
    DDR_DM_R5F 0x9CA00000 29.00 MB
    TIFS_LPM_CTX 9E700000 512.00 KB
    ATF_MEM 9E780000 512.00 KB
    OPTEE_MEM 9E800000 24.00 MB
    IPC_VRING_MEM A0000000 16.00 MB
    APP_LOG_MEM A1000000 256.00 KB
    TIOVX_OBJ_DESC_MEM A1040000 15.75 MB
    TIOVX_LOG_RT_MEM A2000000 16.00 MB
    DDR_SHARED_MEM A3000000 96.00 MB
    DDR_MCU_R5F_LOCAL_HEAP A9000000 16.00 MB
    DDR_DM_R5F_LOCAL_HEAP AA000000 16.00 MB
    DDR_C7X_1_LOCAL_HEAP_NON_CACHEABLE AB000000 16.00 MB
    DDR_C7X_1_SCRATCH_NON_CACHEABLE AC000000 16.00 MB
    DDR_C7X_1_LOCAL_HEAP AD000000 32.00 MB
    DDR_C7X_1_SCRATCH 0xAF000000 16.00 MB

       c) Later ran the gen_linker_mem_map.py as mentioned in the documentation.

       d) Updated the kernel dts and built the dtb and copied the same to root file system.

       e) Later Build the firmwares:

           cd ${FIRMWARE_BUILDER_INSTALL_PATH}/sdk_builder
           BUILD_EDGEAI=yes make sdk -j`nproc` 

       f) Later copied the below firmwares:

           sudo cp vision_apps/out/AM62A/C7504/FREERTOS/release/vx_app_rtos_linux_c7x_1.out /tftp/lib/firmware/ti-ipc/am62axx/ipc_echo_test_c7x_1_release_strip.xe71

            sudo cp vision_apps/out/AM62A/C7504/FREERTOS/release/vx_app_rtos_linux_c7x_1.out /tftp/lib/firmware/vision_apps_eaik/vx_app_rtos_linux_c7x_1.out

       g) Copy the DM firmware to the prebuilt-images of the sdk as mentioned in the documentation and built the u-boot. 

       h) Copied the tispl.bin and the library files as mentioned below:

            sudo cp board-support/u-boot-2023.04+gitAUTOINC+bd74e615a6-gbd74e615a6/build/a72/tispl.bin /tftp

            sudo cp ./vision_apps/out/AM62A/A53/LINUX/release/libtivision_apps.so.9.0.0  /tftp/usr/lib/libtivision_apps.so.9.0.0

           sudo cp ./vision_apps/platform/am62a/rtos/app_mem_map.h /tftp/usr/include/processor_sdk/vision_apps/platform/am62a/rtos/app_mem_map.h

    2) Updated the edgeai application for supporting the custom camera

       Updated the below files to add support for the custom camera:

         1) opt/edgeai-tiovx-modules/src/tiovx_sensor_module.c

         2) opt/edgeai-gst-apps/apps_python/gst_wrapper.py

         3) opt/edgeai-gst-apps/configs/object_detection.yaml

         4) opt/edgeai-gst-plugins/ext/tiovx/gsttiovxisp.c

         5) opt/edgeai-gst-plugins/ext/tiovx/gsttiovxldc.c

    With the above steps I am able to run the edgeai application with 1GB DDR.

    Regards,

    Ann Rose Antony

  • Thanks for noting these, Ann. I'm hopeful this will aid others with similar problems in the future. 

    We'll solve any other issues in separate thread :)