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.

PROCESSOR-SDK-J721S2: PROCESSOR-SDK-J721S2

Part Number: PROCESSOR-SDK-J721S2

[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd080]
[ 0.000000] Linux version 5.10.162-g76b3e88d56 (ssubra13@TUA1-L04862-Ubuntu-18.04-valeo-genie-wsl) (aarch64-none-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 9.2.1 20191025, GNU ld (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 2.33.1.20191209) #1 SMP PREEMPT Thu Nov 2 20:02:08 GMT 2023
[ 0.000000] Machine model: Texas Instruments J721S2 EVM
[ 0.000000] The version of tidtb_linux.appimage is P2_ADC_AP_R400_RX1_10
[ 0.000000] efi: UEFI not found.
[ 0.000000] [Firmware Bug]: Kernel image misaligned at boot, please fix your bootloader!
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a0000000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@a0000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a0100000, size 15 MiB
[ 0.000000] OF: reserved mem: initialized node vision-apps-r5f-memory@a0100000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a1000000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@a1000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a1100000, size 15 MiB
[ 0.000000] OF: reserved mem: initialized node vision-apps-r5f-memory@a1100000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a2000000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@a2000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a2100000, size 31 MiB
[ 0.000000] OF: reserved mem: initialized node vision-apps-r5f-memory@a2100000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a4000000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@a4000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a4100000, size 31 MiB
[ 0.000000] OF: reserved mem: initialized node vision-apps-r5f-memory@a4100000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a6000000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@a6000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a6100000, size 15 MiB
[ 0.000000] OF: reserved mem: initialized node vision-apps-r5f-memory@a6100000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a7000000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@a7000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a7100000, size 15 MiB
[ 0.000000] OF: reserved mem: initialized node vision-apps-r5f-memory@a7100000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a8000000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node vision-apps-c71_1-dma-memory@a8000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a8100000, size 31 MiB
[ 0.000000] OF: reserved mem: initialized node vision-apps-c71_1-memory@a8100000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000aa000000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node vision-apps-c71-dma-memory@aa000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000aa100000, size 111 MiB
[ 0.000000] OF: reserved mem: initialized node vision-apps-c71_0-memory@aa100000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000b2000000, size 32 MiB
[ 0.000000] OF: reserved mem: initialized node vision-apps-rtos-ipc-memory-region@b2000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000b4000000, size 89 MiB
[ 0.000000] OF: reserved mem: initialized node vision-apps-dma-memory@b4000000, compatible id shared-dma-pool
[ 0.000000] OF: reserved mem: initialized node vision_apps_shared-memories, compatible id dma-heap-carveout
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000d9978000, size 64 MiB
[ 0.000000] OF: reserved mem: initialized node vision-apps-core-heap-memory-lo@d9978000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x0000000880000000, size 736 MiB
[ 0.000000] OF: reserved mem: initialized node vision-apps-core-heap-memory-hi@880000000, compatible id shared-dma-pool
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000080000000-0x00000000ffffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000080000000-0x000000009e7fffff]
[ 0.000000] node 0: [mem 0x000000009e800000-0x00000000b0ffffff]
[ 0.000000] node 0: [mem 0x00000000b1000000-0x00000000b1ffffff]
[ 0.000000] node 0: [mem 0x00000000b2000000-0x00000000b9977fff]
[ 0.000000] node 0: [mem 0x00000000b9978000-0x00000000d9977fff]
[ 0.000000] node 0: [mem 0x00000000d9978000-0x00000000dd977fff]
[ 0.000000] node 0: [mem 0x00000000dd978000-0x00000000ffffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000000ffffffff]
[ 0.000000] cma: Reserved 256 MiB at 0x00000000ed000000
[ 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 22 pages/cpu s50392 r8192 d31528 u90112
[ 0.000000] Detected PIPT I-cache on CPU0
[ 0.000000] CPU features: detected: GIC system register CPU interface
[ 0.000000] CPU features: detected: EL2 vector hardening
[ 0.000000] CPU features: kernel page table isolation forced ON by KASLR
[ 0.000000] CPU features: detected: Kernel page table isolation (KPTI)
[ 0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[ 0.000000] CPU features: detected: Spectre-BHB
[ 0.000000] CPU features: detected: ARM erratum 1742098
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 516096
[ 0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=serial2
[ 0.000000] mtdid=spi-nand0
[ 0.000000] mtdparts=spi-nand0:512k(ospi_nand.tiboot3),512k(ospi_nand.sysfw),10m(ospi_nand.mcu1_0),768k(ospi_nand.atf),19m(ospi_nand.kernel),1m(ospi_nand.dtb),24320k(ospi_nand.lateapp1),256k(ospi_nand.caldata_merge),40m(ospi_nand.lateapp2),32m(ospi_nand.rootfs),256k(ospi_nand.phypattern)
[ 0.000000] ubi part ospi_nand.rootfs
[ 0.000000] ubi.mtd=ospi_nand.rootfs root=ubi0:rootfs rw rootfstype=ubifs rootwait
[ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 758924K/2097152K available (11264K kernel code, 1160K rwdata, 4300K rodata, 1856K init, 433K bss, 1076084K reserved, 262144K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, 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=2.
[ 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=2
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[ 0.000000] GICv3: 960 SPIs implemented
[ 0.000000] GICv3: 0 Extended SPIs implemented
[ 0.000000] GICv3: Distributor has no Range Selector support
[ 0.000000] GICv3: 16 PPIs implemented
[ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000001900000
[ 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 @81c00000 (flat, esz 8, psz 64K, shr 0)
[ 0.000000] ITS: using cache flushing for cmd queue
[ 0.000000] GICv3: using LPI property table @0x0000000081430000
[ 0.000000] GIC: using cache flushing for LPI property table
[ 0.000000] GICv3: CPU0: using allocated LPI pending table @0x0000000081440000
[ 0.000000] arch_timer: cp15 timer(s) running at 200.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049d3e8, max_idle_ns: 440795210634 ns
[ 0.000001] sched_clock: 56 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
[ 0.000187] Console: colour dummy device 80x25
[ 0.000217] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000)
[ 0.000225] pid_max: default: 32768 minimum: 301
[ 0.000271] LSM: Security Framework initializing
[ 0.000307] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.000320] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.001195] rcu: Hierarchical SRCU implementation.
[ 0.001349] Platform MSI: msi-controller@1820000 domain created
[ 0.001464] PCI/MSI: /bus@100000/interrupt-controller@1800000/msi-controller@1820000 domain created
[ 0.001506] EFI services will not be available.
[ 0.001608] smp: Bringing up secondary CPUs ...
[ 0.016032] Detected PIPT I-cache on CPU1
[ 0.016058] GICv3: CPU1: found redistributor 1 region 0:0x0000000001920000
[ 0.016071] GICv3: CPU1: using allocated LPI pending table @0x0000000081450000
[ 0.016109] CPU1: Booted secondary processor 0x0000000001 [0x411fd080]
[ 0.016170] smp: Brought up 1 node, 2 CPUs
[ 0.016177] SMP: Total of 2 processors activated.
[ 0.016182] CPU features: detected: 32-bit EL0 Support
[ 0.016185] CPU features: detected: CRC32 instructions
[ 0.025474] CPU: All CPU(s) started at EL2
[ 0.025498] alternatives: patching kernel code
[ 0.026073] devtmpfs: initialized
[ 0.029899] KASLR disabled due to lack of seed
[ 0.030006] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.030016] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[ 0.033143] pinctrl core: initialized pinctrl subsystem
[ 0.033457] DMI not present or invalid.
[ 0.033801] NET: Registered protocol family 16
[ 0.034649] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[ 0.034715] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.034781] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.035045] thermal_sys: Registered thermal governor 'step_wise'
[ 0.035048] thermal_sys: Registered thermal governor 'power_allocator'
[ 0.035516] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.035560] ASID allocator initialised with 32768 entries
[ 0.046160] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.046168] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[ 0.046172] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.046175] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[ 0.046818] cryptd: max_cpu_qlen set to 1000
[ 0.048447] k3-chipinfo 43000014.chipid: Family:J721S2 rev:SR1.0 JTAGID[0x0bb7502f] Detected
[ 0.048844] vsys_3v3: supplied by evm_12v0
[ 0.049038] vsys_5v0: supplied by evm_12v0
[ 0.049456] iommu: Default domain type: Translated
[ 0.049611] SCSI subsystem initialized
[ 0.049801] mc: Linux media interface: v0.10
[ 0.049814] videodev: Linux video capture interface: v2.00
[ 0.049854] pps_core: LinuxPPS API ver. 1 registered
[ 0.049859] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.049866] PTP clock support registered
[ 0.049882] EDAC MC: Ver: 3.0.0
[ 0.050414] FPGA manager framework
[ 0.050451] Advanced Linux Sound Architecture Driver Initialized.
[ 0.050884] clocksource: Switched to clocksource arch_sys_counter
[ 0.050983] VFS: Disk quotas dquot_6.6.0
[ 0.051011] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.053571] Carveout Heap: Exported 512 MiB at 0x00000000b9978000
[ 0.053635] NET: Registered protocol family 2
[ 0.053785] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 0.054465] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[ 0.054488] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.054544] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear)
[ 0.054652] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.054748] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 0.054774] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 0.054860] NET: Registered protocol family 1
[ 0.055164] RPC: Registered named UNIX socket transport module.
[ 0.055169] RPC: Registered udp transport module.
[ 0.055172] RPC: Registered tcp transport module.
[ 0.055175] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.055180] NET: Registered protocol family 44
[ 0.055190] PCI: CLS 0 bytes, default 64
[ 0.055568] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
[ 0.057619] Initialise system trusted keyrings
[ 0.057709] workingset: timestamp_bits=46 max_order=18 bucket_order=0
[ 0.059263] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.059524] NFS: Registering the id_resolver key type
[ 0.059545] Key type id_resolver registered
[ 0.059549] Key type id_legacy registered
[ 0.059580] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.059584] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[ 0.059677] 9p: Installing v9fs 9p2000 file system support
[ 0.079301] Key type asymmetric registered
[ 0.079309] Asymmetric key parser 'x509' registered
[ 0.079336] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
[ 0.079341] io scheduler mq-deadline registered
[ 0.079344] io scheduler kyber registered
[ 0.080529] pinctrl-single 4301c000.pinctrl: 101 pins, size 404
[ 0.080672] pinctrl-single 11c000.pinctrl: 72 pins, size 288
[ 0.084680] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
[ 0.090457] brd: module loaded
[ 0.093795] loop: module loaded
[ 0.094223] megasas: 07.714.04.00-rc1
[ 0.096034] tun: Universal TUN/TAP device driver, 1.6
[ 0.096306] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[ 0.096310] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[ 0.096336] sky2: driver version 1.30
[ 0.096858] VFIO - User Level meta-driver version: 0.3
[ 0.097355] i2c /dev entries driver
[ 0.098030] sdhci: Secure Digital Host Controller Interface driver
[ 0.098034] sdhci: Copyright(c) Pierre Ossman
[ 0.098192] sdhci-pltfm: SDHCI platform and OF driver helper
[ 0.098637] ledtrig-cpu: registered to indicate activity on CPUs
[ 0.098809] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[ 0.099511] optee: probing for conduit method.
[ 0.099532] optee: revision 3.20 (8e74d476)
[ 0.115966] optee: dynamic shared memory is enabled
[ 0.116182] optee: initialized driver
[ 0.117135] NET: Registered protocol family 17
[ 0.117213] 9pnet: Installing 9P2000 support
[ 0.117254] Key type dns_resolver registered
[ 0.117370] Loading compiled-in X.509 certificates
[ 0.123815] ti-sci 44083000.system-controller: ABI: 3.1 (firmware rev 0x0008 '8.6.3--1-g2249f (Chill Capybara')
[ 0.141223] omap_i2c 40b00000.i2c: bus 0 rev0.12 at 100 kHz
[ 0.141644] omap_i2c 40b10000.i2c: bus 1 rev0.12 at 100 kHz
[ 0.142376] ti-sci-intr 42200000.interrupt-controller: Interrupt Router 125 domain created
[ 0.142475] ti-sci-intr bus@100000:interrupt-controller@a00000: Interrupt Router 148 domain created
[ 0.142561] ti-sci-intr 310e0000.interrupt-controller: Interrupt Router 227 domain created
[ 0.142764] ti-sci-inta 33d00000.msi-controller: Interrupt Aggregator domain 265 created
[ 0.144710] ti-udma 311a0000.dma-controller: Number of rings: 48
[ 0.145335] ti-udma 311a0000.dma-controller: Channels: 24 (bchan: 0, tchan: 8, rchan: 16)
[ 0.146266] k3-ringacc 2b800000.ringacc: Ring Accelerator probed rings:286, gp-rings[96,20] sci-dev-id:272
[ 0.146272] k3-ringacc 2b800000.ringacc: dma-ring-reset-quirk: disabled
[ 0.146277] k3-ringacc 2b800000.ringacc: RA Proxy rev. 66349100, num_proxies:64
[ 0.147755] k3-ringacc 3c000000.ringacc: Ring Accelerator probed rings:1024, gp-rings[878,128] sci-dev-id:259
[ 0.147762] k3-ringacc 3c000000.ringacc: dma-ring-reset-quirk: disabled
[ 0.147766] k3-ringacc 3c000000.ringacc: RA Proxy rev. 66349100, num_proxies:64
[ 0.148122] omap8250 40a00000.serial: failed to get alias
[ 0.148878] 2810000.serial: ttyS1 at MMIO 0x2810000 (irq = 19, base_baud = 3000000) is a 8250
[ 0.149532] 2830000.serial: ttyS2 at MMIO 0x2830000 (irq = 20, base_baud = 3000000) is a 8250
[ 1.740275] printk: console [ttyS2] enabled
[ 1.744792] omap8250 2880000.serial: failed to get alias
[ 1.750848] cadence-qspi 47040000.spi: error -ENODEV: No Rx DMA available
[ 1.757939] spi-nand spi0.0: Winbond SPI NAND was found.
[ 1.763244] spi-nand spi0.0: 128 MiB, block size: 256 KiB, page size: 4096, OOB size: 128
[ 1.771548] 11 fixed-partitions partitions found on MTD device spi0.0
[ 1.777979] Creating 11 MTD partitions on "spi0.0":
[ 1.782847] 0x000000000000-0x000000080000 : "ospi_nand.tiboot3"
[ 1.789532] 0x000000080000-0x000000100000 : "ospi_nand.sysfw"
[ 1.795933] 0x000000100000-0x000000b00000 : "ospi_nand.mcu1_0"
[ 1.806338] 0x000000b00000-0x000000bc0000 : "ospi_nand.atf"
[ 1.812659] 0x000000bc0000-0x000001ec0000 : "ospi_nand.kernel"
[ 1.826769] 0x000001ec0000-0x000001fc0000 : "ospi_nand.dtb"
[ 1.833172] 0x000001fc0000-0x000003780000 : "ospi_nand.lateapp1"
[ 1.849413] 0x000003780000-0x0000037c0000 : "ospi_nand.caldata_merge"
[ 1.856376] 0x0000037c0000-0x000005fc0000 : "ospi_nand.lateapp2"
[ 1.879341] 0x000005fc0000-0x000007fc0000 : "ospi_nand.rootfs"
[ 1.898815] 0x000007fc0000-0x000008000000 : "ospi_nand.phypattern"
[ 1.909366] davinci_mdio c200f00.mdio: Configuring MDIO in manual mode
[ 1.915906] (null): ***of_mdiobus_register mdio-capabilities is [2]***
[ 1.958889] davinci_mdio c200f00.mdio: davinci mdio revision 9.7, bus freq 1000000
[ 1.969223] davinci_mdio c200f00.mdio: phy[7]: device c200f00.mdio:07, driver Marvell 88Q2220
[ 1.977789] am65-cpsw-nuss c200000.ethernet: initializing am65 cpsw nuss version 0x6BA02102, cpsw version 0x6BA82102 Ports: 2 quirks:00000000
[ 1.990554] am65-cpsw-nuss c200000.ethernet: Use random MAC address
[ 1.996811] am65-cpsw-nuss c200000.ethernet: initialized cpsw ale version 1.4
[ 2.003929] am65-cpsw-nuss c200000.ethernet: ALE Table size 64
[ 2.010231] am65-cpsw-nuss c200000.ethernet: CPTS ver 0x4e8a010b, freq:200000000, add_val:4 pps:0
[ 2.020705] am65-cpts 310d0000.cpts: CPTS ver 0x4e8a010c, freq:200000000, add_val:4 pps:0
[ 2.130763] mmc0: CQHCI version 5.10
[ 2.137337] omap-mailbox 31f80000.mailbox: omap mailbox rev 0x66fca100
[ 2.144306] omap-mailbox 31f81000.mailbox: omap mailbox rev 0x66fca100
[ 2.151253] omap-mailbox 31f82000.mailbox: omap mailbox rev 0x66fca100
[ 2.158207] omap-mailbox 31f84000.mailbox: omap mailbox rev 0x66fca100
[ 2.165471] ti-udma 285c0000.dma-controller: Channels: 26 (tchan: 13, rchan: 13, gp-rflow: 8)
[ 2.174465] mmc0: SDHCI controller on 4f80000.mmc [4f80000.mmc] using ADMA 64-bit
[ 2.183009] ti-udma 31150000.dma-controller: Channels: 60 (tchan: 30, rchan: 30, gp-rflow: 16)
[ 2.193476] davinci_mdio c200f00.mdio: Configuring MDIO in manual mode
[ 2.200022] (null): ***of_mdiobus_register mdio-capabilities is [2]***
[ 2.242893] davinci_mdio c200f00.mdio: davinci mdio revision 9.7, bus freq 1000000
[ 2.252902] mmc0: Command Queue Engine enabled
[ 2.253347] davinci_mdio c200f00.mdio: phy[7]: device c200f00.mdio:07, driver Marvell 88Q2220
[ 2.257363] mmc0: new high speed MMC card at address 0001
[ 2.265932] am65-cpsw-nuss c200000.ethernet: initializing am65 cpsw nuss version 0x6BA02102, cpsw version 0x6BA82102 Ports: 2 quirks:00000000
[ 2.284088] am65-cpsw-nuss c200000.ethernet: Use random MAC address
[ 2.284090] mmcblk0: mmc0:0001 8GUF4R 7.28 GiB
[ 2.284163] mmcblk0boot0: mmc0:0001 8GUF4R partition 1 31.9 MiB
[ 2.290356] am65-cpsw-nuss c200000.ethernet: initialized cpsw ale version 1.4
[ 2.290359] am65-cpsw-nuss c200000.ethernet: ALE Table size 64
[ 2.294969] mmcblk0boot1: mmc0:0001 8GUF4R partition 2 31.9 MiB
[ 2.314030] am65-cpsw-nuss c200000.ethernet: CPTS ver 0x4e8a010b, freq:200000000, add_val:4 pps:0
[ 2.319768] mmcblk0rpmb: mmc0:0001 8GUF4R partition 3 4.00 MiB, chardev (237:0)
[ 2.336451] mmcblk0: p1 p2
[ 2.340594] am65-cpsw-nuss c200000.ethernet: set new flow-id-base 82
[ 2.348463] debugfs: Directory 'pd:39' with parent 'pm_genpd' already present!
[ 2.355748] debugfs: Directory 'pd:38' with parent 'pm_genpd' already present!
[ 2.363432] debugfs: Directory 'pd:276' with parent 'pm_genpd' already present!
[ 2.371098] debugfs: Directory 'pd:357' with parent 'pm_genpd' already present!
[ 2.378396] debugfs: Directory 'pd:357' with parent 'pm_genpd' already present!
[ 2.385809] debugfs: Directory 'pd:154' with parent 'pm_genpd' already present!
[ 2.393498] ubi0: attaching mtd9
[ 2.725909] ubi0: scanning is finished
[ 2.745484] ubi0: attached mtd9 (name "ospi_nand.rootfs", size 32 MiB)
[ 2.752008] ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 253952 bytes
[ 2.758868] ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 4096
[ 2.765639] ubi0: VID header offset: 4096 (aligned 4096), data offset: 8192
[ 2.772585] ubi0: good PEBs: 128, bad PEBs: 0, corrupted PEBs: 0
[ 2.778576] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[ 2.785783] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 470570305
[ 2.794809] ubi0: available PEBs: 0, total reserved PEBs: 128, PEBs reserved for bad PEB handling: 10
[ 2.804015] ubi0: background thread "ubi_bgt0d" started, PID 148
[ 2.813556] ALSA device list:
[ 2.816524] No soundcards found.
[ 2.821588] UBIFS (ubi0:0): Mounting in unauthenticated mode
[ 2.827341] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 149
[ 2.988225] UBIFS (ubi0:0): recovery needed
[ 3.288192] UBIFS (ubi0:0): recovery completed
[ 3.292692] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[ 3.300075] UBIFS (ubi0:0): LEB size: 253952 bytes (248 KiB), min./max. I/O unit sizes: 4096 bytes/4096 bytes
[ 3.309968] UBIFS (ubi0:0): FS size: 26411008 bytes (25 MiB, 104 LEBs), journal size 4825088 bytes (4 MiB, 19 LEBs)
[ 3.320380] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
[ 3.326201] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID D10557AE-EEB1-4C1C-A538-82ECBE2FBE2D, small LPT model
[ 3.343987] VFS: Mounted root (ubifs filesystem) on device 0:20.
[ 3.355177] devtmpfs: mounted
[ 3.358841] Freeing unused kernel memory: 1856K
[ 3.363481] Run /sbin/init as init process
INIT: version 2.96 booting
[ 4.486523] k3-dsp-rproc 64800000.dsp: assigned reserved memory node vision-apps-c71-dma-memory@aa000000
[ 4.497862] k3-dsp-rproc 64800000.dsp: configured DSP for IPC-only mode
[ 4.504519] remoteproc remoteproc0: 64800000.dsp is available
[ 4.510288] remoteproc remoteproc0: attaching to 64800000.dsp
[ 4.516048] remoteproc remoteproc0: unsupported resource 65538
[ 4.521930] k3-dsp-rproc 64800000.dsp: DSP initialized in IPC-only mode
[ 4.528537] remoteproc0#vdev0buffer: assigned reserved memory node vision-apps-c71-dma-memory@aa000000
[ 4.538146] virtio_rpmsg_bus virtio0: rpmsg host is online
[ 4.543658] remoteproc0#vdev0buffer: registered virtio0 (type 7)
[ 4.549739] remoteproc remoteproc0: remote processor 64800000.dsp is now attached
[ 4.557588] k3-dsp-rproc 65800000.dsp: assigned reserved memory node vision-apps-c71_1-dma-memory@a8000000
[ 4.567871] k3-dsp-rproc 65800000.dsp: configured DSP for IPC-only mode
[ 4.574502] remoteproc remoteproc1: 65800000.dsp is available
[ 4.580286] remoteproc remoteproc1: attaching to 65800000.dsp
[ 4.586049] remoteproc remoteproc1: unsupported resource 65538
[ 4.591893] k3-dsp-rproc 65800000.dsp: DSP initialized in IPC-only mode
[ 4.598498] remoteproc1#vdev0buffer: assigned reserved memory node vision-apps-c71_1-dma-memory@a8000000
[ 4.608256] virtio_rpmsg_bus virtio1: rpmsg host is online
[ 4.613752] remoteproc1#vdev0buffer: registered virtio1 (type 7)
[ 4.619834] remoteproc remoteproc1: remote processor 65800000.dsp is now attached
[ 4.920184] k3_r5_rproc bus@100000:bus@28380000:r5fss@41000000: [test]MCU cluster requires both R5F cores to be enabled but num_cores is set to = 1
[ 4.934188] platform 41000000.r5f: R5F core may have been powered on by a different host, programmed state (0) != actual state (1)
[ 4.946160] platform 41000000.r5f: configured R5F for IPC-only mode
[ 4.952515] platform 41000000.r5f: assigned reserved memory node vision-apps-r5f-dma-memory@a0000000
[ 4.961920] remoteproc remoteproc2: 41000000.r5f is available
[ 4.967694] remoteproc remoteproc2: attaching to 41000000.r5f
[ 4.973530] platform 41000000.r5f: R5F core initialized in IPC-only mode
[ 4.980224] remoteproc2#vdev0buffer: assigned reserved memory node vision-apps-r5f-dma-memory@a0000000
[ 4.989830] virtio_rpmsg_bus virtio2: rpmsg host is online
[ 4.995336] remoteproc2#vdev0buffer: registered virtio2 (type 7)
[ 5.001417] remoteproc remoteproc2: remote processor 41000000.r5f is now attached
[ 5.013151] virtio_rpmsg_bus virtio2: creating channel rpmsg_chrdev addr 0x1e
[ 5.020454] virtio_rpmsg_bus virtio2: creating channel rpmsg_chrdev addr 0xe
[ 5.027767] platform 5c00000.r5f: R5F core may have been powered on by a different host, programmed state (0) != actual state (1)
[ 5.039676] platform 5c00000.r5f: configured R5F for IPC-only mode
[ 5.045929] platform 5c00000.r5f: assigned reserved memory node vision-apps-r5f-dma-memory@a2000000
[ 5.055489] remoteproc remoteproc3: 5c00000.r5f is available
[ 5.061170] remoteproc remoteproc3: attaching to 5c00000.r5f
[ 5.066832] Unable to handle kernel paging request at virtual address ffff800021ffffff
[ 5.074732] Mem abort info:
[ 5.077515] ESR = 0x96000007
[ 5.080560] EC = 0x25: DABT (current EL), IL = 32 bits
[ 5.085858] SET = 0, FnV = 0
[ 5.088905] EA = 0, S1PTW = 0
[ 5.092048] Data abort info:
[ 5.094922] ISV = 0, ISS = 0x00000007
[ 5.098744] CM = 0, WnR = 0
[ 5.101701] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000080fc8000
[ 5.108387] [ffff800021ffffff] pgd=00000000fffff003, p4d=00000000fffff003, pud=00000000ffffe003, pmd=0000000083300003, pte=0000000000000000
[ 5.120889] Internal error: Oops: 96000007 [#1] PREEMPT SMP
[ 5.126444] Modules linked in: ti_k3_r5_remoteproc(+) ti_k3_dsp_remoteproc rpmsg_kdrv_switch virtio_rpmsg_bus rpmsg_pru rpmsg_char
[ 5.138167] CPU: 1 PID: 168 Comm: insmod Not tainted 5.10.162-g76b3e88d56 #1
[ 5.145195] Hardware name: Texas Instruments J721S2 EVM (DT)
[ 5.150838] pstate: 00000005 (nzcv daif -PAN -UAO -TCO BTYPE=--)
[ 5.156834] pc : rproc_handle_resources.constprop.0+0x94/0x168
[ 5.162651] lr : rproc_boot+0x334/0x670
[ 5.166472] sp : ffff80001167b790
[ 5.169773] x29: ffff80001167b790 x28: ffff0000032314e8
[ 5.175069] x27: ffff000003231000 x26: ffffffffffffffff
[ 5.180366] x25: ffff800022000000 x24: ffff800010efd8a8
[ 5.185662] x23: ffff000003231038 x22: 0000000000000000
[ 5.190958] x21: ffff80001129cfa0 x20: ffff000003231000
[ 5.196253] x19: 0000000000000000 x18: 0000000000000010
[ 5.201549] x17: 0000000000000000 x16: 0000000000000000
[ 5.206845] x15: ffff0000033b8550 x14: ffffffffffffffff
[ 5.212142] x13: ffffffffffffffff x12: ffffffffffffffff
[ 5.217438] x11: ffffffffffffffff x10: ffffffffffffffff
[ 5.222735] x9 : ffffffffffffffff x8 : ffffffffffffffff
[ 5.228031] x7 : ffffffffffffffff x6 : ffff0000033ff600
[ 5.233327] x5 : 0000000000000000 x4 : 0000000000000000
[ 5.238623] x3 : 00000000000000fd x2 : 00000000ffffffff
[ 5.243919] x1 : ffff800022000003 x0 : ffff800022000000
[ 5.249216] Call trace:
[ 5.251652] rproc_handle_resources.constprop.0+0x94/0x168
[ 5.257120] rproc_boot+0x334/0x670
[ 5.260595] rproc_add+0x88/0x158
[ 5.263903] k3_r5_probe+0x720/0xdb8 [ti_k3_r5_remoteproc]
[ 5.269374] platform_drv_probe+0x54/0xa8
[ 5.273368] really_probe+0xec/0x3e0
[ 5.276929] driver_probe_device+0x58/0xb8
[ 5.281011] device_driver_attach+0x74/0x80
[ 5.285179] __driver_attach+0x64/0xf8
[ 5.288915] bus_for_each_dev+0x70/0xc0
[ 5.292737] driver_attach+0x24/0x30
[ 5.296298] bus_add_driver+0x150/0x200
[ 5.300120] driver_register+0x64/0x120
[ 5.303942] __platform_driver_register+0x48/0x58
[ 5.308631] k3_r5_rproc_driver_init+0x20/0x1000 [ti_k3_r5_remoteproc]
[ 5.315141] do_one_initcall+0x54/0x1b8
[ 5.318965] do_init_module+0x44/0x1f0
[ 5.322701] load_module+0x1f08/0x24a8
[ 5.326436] __do_sys_finit_module+0xb8/0xf8
[ 5.330691] __arm64_sys_finit_module+0x20/0x30
[ 5.335209] el0_svc_common.constprop.0+0x78/0x1c8
[ 5.339984] do_el0_svc+0x24/0x90
[ 5.343286] el0_svc+0x14/0x20
[ 5.346329] el0_sync_handler+0xb0/0xb8
[ 5.350149] el0_sync+0x180/0x1c0
[ 5.353453] Code: 128002b3 9121c021 97ffeb45 1400002e (b87a6b20)
[ 5.359530] ---[ end trace 590125883e204713 ]---
Segmentation fault
insmod: ERROR: could not load module /lib/modules/5.10.162-g76b3e88d56/extra/cryptodev.ko: No such file or directory
[ 6.367002] pvrsrvkm: loading out-of-tree module taints kernel.
[ 6.380329] PVR_K: 170: Read BVNC 36.53.104.796 from HW device registers
[ 6.387125] PVR_K: 170: RGX Device registered BVNC 36.53.104.796 with 1 core in the system
[ 6.395782] [drm] Initialized pvr 1.15.6133109 20170530 for 4e20000000.gpu on minor 0
hwclock: can't open '/dev/misc/rtc': No such file or directory
Tue May 2 16:30:19 UTC 2023
hwclock: can't open '/dev/misc/rtc': No such file or directory
[ 6.898603] random: dd: uninitialized urandom read (512 bytes read)
INIT: Entering runlevel: 5
Configuring network interfaces... [ 7.052429] Marvell 88Q2220 c200f00.mdio:07: [m88q222x_soft_reset] called
[ 7.071554] Marvell 88Q2220 c200f00.mdio:07: buf 1
[ 7.076627] Marvell 88Q2220 c200f00.mdio:07: current speed is 1000
[ 7.101039] Marvell 88Q2220 c200f00.mdio:07: slave
[ 7.106095] Marvell 88Q2220 c200f00.mdio:07: speed 100
[ 7.171696] am65-cpsw-nuss c200000.ethernet eth0: PHY [c200f00.mdio:07] driver [Marvell 88Q2220] (irq=POLL)
[ 7.181424] am65-cpsw-nuss c200000.ethernet eth0: configuring for phy/rgmii-id link mode
[ 7.189649] Marvell 88Q2220 c200f00.mdio:07: [m88q222x_config_aneg] called
[ 7.197522] am65-cpsw-nuss c200000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off
udhcpc: started, v1.31.1
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: no lease, forking to background
done.
Starting Dropbear SSH server: dropbear.
hwclock: can't open '/dev/misc/rtc': No such file or directory
Starting syslogd/klogd: done
[ 16.472473] EXT4-fs (mmcblk0p2): recovery complete
[ 16.478223] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 16.563207] libcrc32c: disagrees about version of symbol module_layout
insmod: ERROR: could not insert module /opt/rootfs/lib/modules/5.10.162-g76b3e88d56/kernel/net/lib/libcrc32c.ko: Invalid module format

_____ _____ _ _
| _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
| | _| .'| . | . | | __| _| . | | | -_| _| _|
|__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
|___| |___|

Arago Project j721s2-evm /dev/ttyS2

Arago 2021.09 j721s2-evm /dev/ttyS2

j721s2-evm login:

  • I have cross checked the memory map and linker command files are ok. created the kernel images and optee image accordingly.

    C7X, A72 images based on the memory map changes are working fine. Only when loading the Main R5F this issue is observed. Looks some memory map issue, 

    [ 4.967694] remoteproc remoteproc2: attaching to 41000000.r5f
    [ 4.973530] platform 41000000.r5f: R5F core initialized in IPC-only mode
    [ 4.980224] remoteproc2#vdev0buffer: assigned reserved memory node vision-apps-r5f-dma-memory@a0000000
    [ 4.989830] virtio_rpmsg_bus virtio2: rpmsg host is online
    [ 4.995336] remoteproc2#vdev0buffer: registered virtio2 (type 7)
    [ 5.001417] remoteproc remoteproc2: remote processor 41000000.r5f is now attached
    [ 5.013151] virtio_rpmsg_bus virtio2: creating channel rpmsg_chrdev addr 0x1e
    [ 5.020454] virtio_rpmsg_bus virtio2: creating channel rpmsg_chrdev addr 0xe
    [ 5.027767] platform 5c00000.r5f: R5F core may have been powered on by a different host, programmed state (0) != actual state (1)
    [ 5.039676] platform 5c00000.r5f: configured R5F for IPC-only mode
    [ 5.045929] platform 5c00000.r5f: assigned reserved memory node vision-apps-r5f-dma-memory@a2000000
    [ 5.055489] remoteproc remoteproc3: 5c00000.r5f is available
    [ 5.061170] remoteproc remoteproc3: attaching to 5c00000.r5f
    [ 5.066832] Unable to handle kernel paging request at virtual address ffff800021ffffff
    [ 5.074732] Mem abort info:
    [ 5.077515] ESR = 0x96000007
    [ 5.080560] EC = 0x25: DABT (current EL), IL = 32 bits
    [ 5.085858] SET = 0, FnV = 0
    [ 5.088905] EA = 0, S1PTW = 0
    [ 5.092048] Data abort info:
    [ 5.094922] ISV = 0, ISS = 0x00000007
    [ 5.098744] CM = 0, WnR = 0
    [ 5.101701] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000080fc8000
    [ 5.108387] [ffff800021ffffff] pgd=00000000fffff003, p4d=00000000fffff003, pud=00000000ffffe003, pmd=0000000083300003, pte=0000000000000000
    [ 5.120889] Internal error: Oops: 96000007 [#1] PREEMPT SMP
    [ 5.126444] Modules linked in: ti_k3_r5_remoteproc(+) ti_k3_dsp_remoteproc rpmsg_kdrv_switch virtio_rpmsg_bus rpmsg_pru rpmsg_char
    [ 5.138167] CPU: 1 PID: 168 Comm: insmod Not tainted 5.10.162-g76b3e88d56 #1
    [ 5.145195] Hardware name: Texas Instruments J721S2 EVM (DT)
    [ 5.150838] pstate: 00000005 (nzcv daif -PAN -UAO -TCO BTYPE=--)
    [ 5.156834] pc : rproc_handle_resources.constprop.0+0x94/0x168
    [ 5.162651] lr : rproc_boot+0x334/0x670
    [ 5.166472] sp : ffff80001167b790
    [ 5.169773] x29: ffff80001167b790 x28: ffff0000032314e8
    [ 5.175069] x27: ffff000003231000 x26: ffffffffffffffff
    [ 5.180366] x25: ffff800022000000 x24: ffff800010efd8a8
    [ 5.185662] x23: ffff000003231038 x22: 0000000000000000
    [ 5.190958] x21: ffff80001129cfa0 x20: ffff000003231000
    [ 5.196253] x19: 0000000000000000 x18: 0000000000000010
    [ 5.201549] x17: 0000000000000000 x16: 0000000000000000
    [ 5.206845] x15: ffff0000033b8550 x14: ffffffffffffffff
    [ 5.212142] x13: ffffffffffffffff x12: ffffffffffffffff
    [ 5.217438] x11: ffffffffffffffff x10: ffffffffffffffff
    [ 5.222735] x9 : ffffffffffffffff x8 : ffffffffffffffff
    [ 5.228031] x7 : ffffffffffffffff x6 : ffff0000033ff600
    [ 5.233327] x5 : 0000000000000000 x4 : 0000000000000000
    [ 5.238623] x3 : 00000000000000fd x2 : 00000000ffffffff
    [ 5.243919] x1 : ffff800022000003 x0 : ffff800022000000
    [ 5.249216] Call trace:
    [ 5.251652] rproc_handle_resources.constprop.0+0x94/0x168
    [ 5.257120] rproc_boot+0x334/0x670
    [ 5.260595] rproc_add+0x88/0x158
    [ 5.263903] k3_r5_probe+0x720/0xdb8 [ti_k3_r5_remoteproc]
    [ 5.269374] platform_drv_probe+0x54/0xa8
    [ 5.273368] really_probe+0xec/0x3e0
    [ 5.276929] driver_probe_device+0x58/0xb8
    [ 5.281011] device_driver_attach+0x74/0x80
    [ 5.285179] __driver_attach+0x64/0xf8
    [ 5.288915] bus_for_each_dev+0x70/0xc0
    [ 5.292737] driver_attach+0x24/0x30
    [ 5.296298] bus_add_driver+0x150/0x200
    [ 5.300120] driver_register+0x64/0x120
    [ 5.303942] __platform_driver_register+0x48/0x58
    [ 5.308631] k3_r5_rproc_driver_init+0x20/0x1000 [ti_k3_r5_remoteproc]
    [ 5.315141] do_one_initcall+0x54/0x1b8
    [ 5.318965] do_init_module+0x44/0x1f0
    [ 5.322701] load_module+0x1f08/0x24a8
    [ 5.326436] __do_sys_finit_module+0xb8/0xf8
    [ 5.330691] __arm64_sys_finit_module+0x20/0x30
    [ 5.335209] el0_svc_common.constprop.0+0x78/0x1c8
    [ 5.339984] do_el0_svc+0x24/0x90
    [ 5.343286] el0_svc+0x14/0x20
    [ 5.346329] el0_sync_handler+0xb0/0xb8
    [ 5.350149] el0_sync+0x180/0x1c0
    [ 5.353453] Code: 128002b3 9121c021 97ffeb45 1400002e (b87a6b20)
    [ 5.359530] ---[ end trace 590125883e204713 ]---
    Segmentation fault

  • Hi Sivaguru,

    Can you please respond with the additional details requested below:

    • SDK version?
    • Is this a custom board or TI EVM?
    • What is the boot flow? Using SPL or sbl to boot?

    Best Regards,

    Keerthy 

  • Hi Keerthy,

    SDK version : 8.6 (8.6.1.3), TDA4 Mid Eco J721S2 board usibg SBL boot.

    PMIC -> BIST -> DMSC Init -> MCU R5F SBL -> Load Sysfw -> R5F MCU / loads boot App  -> A72, DSP & Main R5F cores.

  • I am unable to root login after my memory map changes. Now there is no failure in resource table but there is no prints from the R5F terminal which means there is no handshake between A72 and R5F. Kindly guide me where i can suspect the problem?

  • Hello,

    Allow me some time to check the log and reply back.

    Regards

    Tarun Mukesh

  • Hello,

    Is it working by default without memory map changes ? if so can you also share me the changes you did the vision apps memory app to reproduce at my end.

    Regards

    Tarun Mukesh

  • #ifndef APP_MEM_MAP_H
    #define APP_MEM_MAP_H
    
    
    /* Main OCRAM for MCU2_0 [ size 256.00 KB ] */
    #define MAIN_OCRAM_MCU2_0_ADDR (0x03600000u)
    #define MAIN_OCRAM_MCU2_0_SIZE (0x00040000u)
    
    /* Main OCRAM for MCU2_1 [ size 256.00 KB ] */
    #define MAIN_OCRAM_MCU2_1_ADDR (0x03640000u)
    #define MAIN_OCRAM_MCU2_1_SIZE (0x00040000u)
    
    /* L2 for C7x_1 [ size 448.00 KB ] */
    #define L2RAM_C7x_1_ADDR (0x64800000u)
    #define L2RAM_C7x_1_SIZE (0x00070000u)
    
    /* L1 for C7x_1 [ size 16.00 KB ] */
    #define L1RAM_C7x_1_ADDR (0x64E00000u)
    #define L1RAM_C7x_1_SIZE (0x00004000u)
    
    /* L2 for C7x_2 [ size 448.00 KB ] */
    #define L2RAM_C7x_2_ADDR (0x65800000u)
    #define L2RAM_C7x_2_SIZE (0x00070000u)
    
    /* L1 for C7x_2 [ size 16.00 KB ] */
    #define L1RAM_C7x_2_ADDR (0x65E00000u)
    #define L1RAM_C7x_2_SIZE (0x00004000u)
    
    /* MSMC for C7x_1 [ size  3.78 MB ] */
    #define MSMC_C7x_1_ADDR (0x70020000u)
    #define MSMC_C7x_1_SIZE (0x003C8000u)
    
    /* DDR for MCU1_0 for Linux IPC [ size 1024.00 KB ] */
    #define DDR_MCU1_0_IPC_ADDR (0xA0000000u)
    #define DDR_MCU1_0_IPC_SIZE (0x00100000u)
    
    /* DDR for MCU1_0 for all sections, used for reserving memory in DTS file [ size 15.00 MB ] */
    #define DDR_MCU1_0_DTS_ADDR (0xA0100000u)
    #define DDR_MCU1_0_DTS_SIZE (0x00F00000u)
    
    /* DDR for MCU1_1 for Linux IPC [ size 1024.00 KB ] */
    #define DDR_MCU1_1_IPC_ADDR (0xA1000000u)
    #define DDR_MCU1_1_IPC_SIZE (0x00100000u)
    
    /* DDR for MCU1_1 for all sections, used for reserving memory in DTS file [ size 15.00 MB ] */
    #define DDR_MCU1_1_DTS_ADDR (0xA1100000u)
    #define DDR_MCU1_1_DTS_SIZE (0x00F00000u)
    
    /* DDR for MCU2_0 for Linux IPC [ size 1024.00 KB ] */
    #define DDR_MCU2_0_IPC_ADDR (0xA2000000u)
    #define DDR_MCU2_0_IPC_SIZE (0x00100000u)
    
    /* DDR for MCU2_0 for all sections, used for reserving memory in DTS file [ size 31.00 MB ] */
    #define DDR_MCU2_0_DTS_ADDR (0xA2100000u)
    #define DDR_MCU2_0_DTS_SIZE (0x01F00000u)
    
    /* DDR for MCU2_1 for Linux IPC [ size 1024.00 KB ] */
    #define DDR_MCU2_1_IPC_ADDR (0xA4000000u)
    #define DDR_MCU2_1_IPC_SIZE (0x00100000u)
    
    /* DDR for MCU2_1 for all sections, used for reserving memory in DTS file [ size 31.00 MB ] */
    #define DDR_MCU2_1_DTS_ADDR (0xA4100000u)
    #define DDR_MCU2_1_DTS_SIZE (0x01F00000u)
    
    /* DDR for MCU3_0 for Linux IPC [ size 1024.00 KB ] */
    #define DDR_MCU3_0_IPC_ADDR (0xA6000000u)
    #define DDR_MCU3_0_IPC_SIZE (0x00100000u)
    
    /* DDR for MCU3_0 for all sections, used for reserving memory in DTS file [ size 15.00 MB ] */
    #define DDR_MCU3_0_DTS_ADDR (0xA6100000u)
    #define DDR_MCU3_0_DTS_SIZE (0x00F00000u)
    
    /* DDR for MCU3_1 for Linux IPC [ size 1024.00 KB ] */
    #define DDR_MCU3_1_IPC_ADDR (0xA7000000u)
    #define DDR_MCU3_1_IPC_SIZE (0x00100000u)
    
    /* DDR for MCU3_1 for all sections, used for reserving memory in DTS file [ size 15.00 MB ] */
    #define DDR_MCU3_1_DTS_ADDR (0xA7100000u)
    #define DDR_MCU3_1_DTS_SIZE (0x00F00000u)
    
    /* DDR for C7x_2 for Linux IPC [ size 1024.00 KB ] */
    #define DDR_C7x_2_IPC_ADDR (0xA8000000u)
    #define DDR_C7x_2_IPC_SIZE (0x00100000u)
    
    /* DDR for C7x_2 for all sections, used for reserving memory in DTS file [ size 31.00 MB ] */
    #define DDR_C7x_2_DTS_ADDR (0xA8100000u)
    #define DDR_C7x_2_DTS_SIZE (0x01F00000u)
    
    /* DDR for C7x_1 for Linux IPC [ size 1024.00 KB ] */
    #define DDR_C7x_1_IPC_ADDR (0xAA000000u)
    #define DDR_C7x_1_IPC_SIZE (0x00100000u)
    
    /* DDR for C7x_1 for all sections, used for reserving memory in DTS file [ size 111.00 MB ] */
    #define DDR_C7x_1_DTS_ADDR (0xAA100000u)
    #define DDR_C7x_1_DTS_SIZE (0x06F00000u)
    
    /* Memory for IPC Vring's. MUST be non-cached or cache-coherent [ size 32.00 MB ] */
    #define IPC_VRING_MEM_ADDR (0xB2000000u)
    #define IPC_VRING_MEM_SIZE (0x02000000u)
    
    /* Memory for remote core logging [ size 256.00 KB ] */
    #define APP_LOG_MEM_ADDR (0xB4000000u)
    #define APP_LOG_MEM_SIZE (0x00040000u)
    
    /* Memory for TI OpenVX shared memory. MUST be non-cached or cache-coherent [ size 52.22 MB ] */
    #define TIOVX_OBJ_DESC_MEM_ADDR (0xB4040000u)
    #define TIOVX_OBJ_DESC_MEM_SIZE (0x03438000u)
    
    /* Memory for lpc shared memory. MUST be non-cached or cache-coherent [ size  4.62 MB ] */
    #define LPC_SHARED_MEM_ADDR (0xB7478000u)
    #define LPC_SHARED_MEM_SIZE (0x004A0000u)
    
    /* Memory for global timer memory. MUST be non-cached or cache-coherent [ size 128.00 KB ] */
    #define GLOBAL_TIMER_MEM_ADDR (0xB7918000u)
    #define GLOBAL_TIMER_MEM_SIZE (0x00020000u)
    
    /* Memory for vip shared buf memory. MUST be non-cached or cache-coherent [ size 128.00 KB ] */
    #define VIP_SHARED_BUF_MEM_ADDR (0xB7938000u)
    #define VIP_SHARED_BUF_MEM_SIZE (0x00020000u)
    
    /* Memory for validate info memory. MUST be non-cached or cache-coherent [ size 128.00 KB ] */
    #define VALIDATE_INFO_MEM_ADDR (0xB7958000u)
    #define VALIDATE_INFO_MEM_SIZE (0x00020000u)
    
    /* Memory for TI OpenVX shared memory for Run-time logging. MUST be non-cached or cache-coherent [ size 32.00 MB ] */
    #define TIOVX_LOG_RT_MEM_ADDR (0xB7978000u)
    #define TIOVX_LOG_RT_MEM_SIZE (0x02000000u)
    
    /* Memory for shared memory buffers in DDR [ size 512.00 MB ] */
    #define DDR_SHARED_MEM_ADDR (0xB9978000u)
    #define DDR_SHARED_MEM_SIZE (0x20000000u)
    
    /* DDR for MCU1_0 for local heap [ size  8.00 MB ] */
    #define DDR_MCU1_0_LOCAL_HEAP_ADDR (0xD9978000u)
    #define DDR_MCU1_0_LOCAL_HEAP_SIZE (0x00800000u)
    
    /* DDR for MCU1_1 for local heap [ size  8.00 MB ] */
    #define DDR_MCU1_1_LOCAL_HEAP_ADDR (0xDA178000u)
    #define DDR_MCU1_1_LOCAL_HEAP_SIZE (0x00800000u)
    
    /* DDR for MCU2_0 local heap for tiovx use [ size  8.00 MB ] */
    #define DDR_MCU2_0_LOCAL_HEAP_TIOVX_ADDR (0xDA978000u)
    #define DDR_MCU2_0_LOCAL_HEAP_TIOVX_SIZE (0x00800000u)
    
    /* DDR for MCU2_0 local heap for normal use [ size  8.00 MB ] */
    #define DDR_MCU2_0_LOCAL_HEAP_NORMAL_ADDR (0xDB178000u)
    #define DDR_MCU2_0_LOCAL_HEAP_NORMAL_SIZE (0x00800000u)
    
    /* DDR for MCU2_1 local heap for tiovx use [ size  8.00 MB ] */
    #define DDR_MCU2_1_LOCAL_HEAP_TIOVX_ADDR (0xDB978000u)
    #define DDR_MCU2_1_LOCAL_HEAP_TIOVX_SIZE (0x00800000u)
    
    /* DDR for MCU2_1 local heap for normal use [ size  8.00 MB ] */
    #define DDR_MCU2_1_LOCAL_HEAP_NORMAL_ADDR (0xDC178000u)
    #define DDR_MCU2_1_LOCAL_HEAP_NORMAL_SIZE (0x00800000u)
    
    /* DDR for MCU3_0 for local heap [ size  8.00 MB ] */
    #define DDR_MCU3_0_LOCAL_HEAP_ADDR (0xDC978000u)
    #define DDR_MCU3_0_LOCAL_HEAP_SIZE (0x00800000u)
    
    /* DDR for MCU3_1 for local heap [ size  8.00 MB ] */
    #define DDR_MCU3_1_LOCAL_HEAP_ADDR (0xDD178000u)
    #define DDR_MCU3_1_LOCAL_HEAP_SIZE (0x00800000u)
    
    /* Main OCRAM Physical Address for MCU2_0 [ size 256.00 KB ] */
    #define MAIN_OCRAM_MCU2_0_PHYS_ADDR (0x4F02000000u)
    #define MAIN_OCRAM_MCU2_0_PHYS_SIZE (0x00040000u)
    
    /* Main OCRAM Physical Address for MCU2_1 [ size 256.00 KB ] */
    #define MAIN_OCRAM_MCU2_1_PHYS_ADDR (0x4F02040000u)
    #define MAIN_OCRAM_MCU2_1_PHYS_SIZE (0x00040000u)
    
    #define DDR_64BIT_BASE_VADDR (0x100000000u)
    #define DDR_64BIT_BASE_PADDR (0x880000000u)
    
    #endif /* APP_MEM_MAP_H */

  • Dtsi memory 

     
     /* 
      * IMPORTANT NOTE: Follow below instructions to apply the updated memory map to linux dtsi file, 
      * 
      * 1. Copy the memory sections, from the generated dts file, to the file shown below under reserved_memory: reserved-memory { ... } 
      *     ${LINUX_KERNEL_PATH}/arch/arm64/boot/dts/ti/k3-j721s2-rtos-memory-map.dtsi
      * 
      * 2. Rebuild the dtb, dtbo from PSDK Linux install directory 
      *      make linux-dtbs 
      * 
      * 3. Install the dtb, dtbo to the rootfs/boot folder on SD card 
      *      sudo make linux-dtbs_intall; sync 
      * 
       */
    
    
    	mcu_r5fss0_core0_dma_memory_region: r5f-dma-memory@a0000000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xa0000000 0x00 0x00100000>;
    		no-map;
    	};
    	mcu_r5fss0_core0_memory_region: r5f-memory@a0100000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xa0100000 0x00 0x00f00000>;
    		no-map;
    	};
    	mcu_r5fss0_core1_dma_memory_region: r5f-dma-memory@a1000000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xa1000000 0x00 0x00100000>;
    		no-map;
    	};
    	mcu_r5fss0_core1_memory_region: r5f-memory@a1100000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xa1100000 0x00 0x00f00000>;
    		no-map;
    	};
    	main_r5fss0_core0_dma_memory_region: r5f-dma-memory@a2000000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xa2000000 0x00 0x00100000>;
    		no-map;
    	};
    	main_r5fss0_core0_memory_region: r5f-memory@a2100000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xa2100000 0x00 0x01f00000>;
    		no-map;
    	};
    	main_r5fss0_core1_dma_memory_region: r5f-dma-memory@a4000000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xa4000000 0x00 0x00100000>;
    		no-map;
    	};
    	main_r5fss0_core1_memory_region: r5f-memory@a4100000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xa4100000 0x00 0x01f00000>;
    		no-map;
    	};
    	main_r5fss1_core0_dma_memory_region: r5f-dma-memory@a6000000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xa6000000 0x00 0x00100000>;
    		no-map;
    	};
    	main_r5fss1_core0_memory_region: r5f-memory@a6100000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xa6100000 0x00 0x00f00000>;
    		no-map;
    	};
    	main_r5fss1_core1_dma_memory_region: r5f-dma-memory@a7000000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xa7000000 0x00 0x00100000>;
    		no-map;
    	};
    	main_r5fss1_core1_memory_region: r5f-memory@a7100000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xa7100000 0x00 0x00f00000>;
    		no-map;
    	};
    	c71_1_dma_memory_region: c71_1-dma-memory@a8000000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xa8000000 0x00 0x00100000>;
    		no-map;
    	};
    	c71_1_memory_region: c71_1-memory@a8100000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xa8100000 0x00 0x01f00000>;
    		no-map;
    	};
    	c71_0_dma_memory_region: c71-dma-memory@aa000000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xaa000000 0x00 0x00100000>;
    		no-map;
    	};
    	c71_0_memory_region: c71_0-memory@aa100000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xaa100000 0x00 0x06f00000>;
    		no-map;
    	};
    	rtos_ipc_memory_region: rtos-ipc-memory-region@b2000000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xb2000000 0x00 0x02000000>;
    		no-map;
    	};
    	memory_region: dma-memory@b4000000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xb4000000 0x00 0x05978000>;
    		no-map;
    	};
    	shared_region: shared-memories {
    		compatible = "dma-heap-carveout";
    		reg = <0x00 0xb9978000 0x00 0x20000000>;
    	};
    	core_heaps_lo: core-heap-memory-lo@d9978000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xd9978000 0x00 0x04000000>;
    		no-map;
    	};
    	core_heaps_hi: core-heap-memory-hi@880000000 {
    		compatible = "shared-dma-pool";
    		reg = <0x08 0x80000000 0x00 0x2e000000>;
    		no-map;
    	};
    
    

  • Its 2GB DDR configuration.

    I could see the remoteproc for each core is created and attached along with virtio is created for each cores on the main domain from A72.

    MCU boot also looks fine.

    Do we have any option to make sure what are the cores running and its status? how to make sure the core utilization memory? How to add prints in linker command file? 

  • Hello,

    /* Memory for IPC Vring's. MUST be non-cached or cache-coherent [ size 32.00 MB ] */
    #define IPC_VRING_MEM_ADDR (0xB2000000u)
    #define IPC_VRING_MEM_SIZE (0x02000000u)

    /* Memory for remote core logging [ size 256.00 KB ] */
    #define APP_LOG_MEM_ADDR (0xB4000000u)
    #define APP_LOG_MEM_SIZE (0x00040000u)

    /* Memory for TI OpenVX shared memory. MUST be non-cached or cache-coherent [ size 52.22 MB ] */
    #define TIOVX_OBJ_DESC_MEM_ADDR (0xB4040000u)
    #define TIOVX_OBJ_DESC_MEM_SIZE (0x03438000u)

    /* Memory for lpc shared memory. MUST be non-cached or cache-coherent [ size 4.62 MB ] */
    #define LPC_SHARED_MEM_ADDR (0xB7478000u)
    #define LPC_SHARED_MEM_SIZE (0x004A0000u)

    /* Memory for global timer memory. MUST be non-cached or cache-coherent [ size 128.00 KB ] */
    #define GLOBAL_TIMER_MEM_ADDR (0xB7918000u)
    #define GLOBAL_TIMER_MEM_SIZE (0x00020000u)

    /* Memory for vip shared buf memory. MUST be non-cached or cache-coherent [ size 128.00 KB ] */
    #define VIP_SHARED_BUF_MEM_ADDR (0xB7938000u)
    #define VIP_SHARED_BUF_MEM_SIZE (0x00020000u)

    /* Memory for validate info memory. MUST be non-cached or cache-coherent [ size 128.00 KB ] */
    #define VALIDATE_INFO_MEM_ADDR (0xB7958000u)
    #define VALIDATE_INFO_MEM_SIZE (0x00020000u)

    /* Memory for TI OpenVX shared memory for Run-time logging. MUST be non-cached or cache-coherent [ size 32.00 MB ] */
    #define TIOVX_LOG_RT_MEM_ADDR (0xB7978000u)
    #define TIOVX_LOG_RT_MEM_SIZE (0x02000000u)

    Here If i calculate the size here , it is around ~123MB.

    Intially in the mpu cfg file , we have 2GB DDR space as cacheable and we will make 128MB Non cacheable starting from VRING MEM ADDRESS .Please check your j721s2_mpu_cfg.c file , if it is still 128MB then it is wrong you need to modify to the address which is as above. As remaining ~5MB has to be cacheable.

    Regards

    Tarun Mukesh

  • #ifndef MEM_MAP_H
    #define MEM_MAP_H
    
    
    /* Main OCRAM for MCU2_0 [ size 256.00 KB ] */
    #define MAIN_OCRAM_MCU2_0_ADDR (0x03600000u)
    #define MAIN_OCRAM_MCU2_0_SIZE (0x00040000u)
    
    /* Main OCRAM for MCU2_1 [ size 256.00 KB ] */
    #define MAIN_OCRAM_MCU2_1_ADDR (0x03640000u)
    #define MAIN_OCRAM_MCU2_1_SIZE (0x00040000u)
    
    /* L2 for C7x_1 [ size 448.00 KB ] */
    #define L2RAM_C7x_1_ADDR (0x64800000u)
    #define L2RAM_C7x_1_SIZE (0x00070000u)
    
    /* L1 for C7x_1 [ size 16.00 KB ] */
    #define L1RAM_C7x_1_ADDR (0x64E00000u)
    #define L1RAM_C7x_1_SIZE (0x00004000u)
    
    /* L2 for C7x_2 [ size 448.00 KB ] */
    #define L2RAM_C7x_2_ADDR (0x65800000u)
    #define L2RAM_C7x_2_SIZE (0x00070000u)
    
    /* L1 for C7x_2 [ size 16.00 KB ] */
    #define L1RAM_C7x_2_ADDR (0x65E00000u)
    #define L1RAM_C7x_2_SIZE (0x00004000u)
    
    /* MSMC for C7x_1 [ size  3.78 MB ] */
    #define MSMC_C7x_1_ADDR (0x70020000u)
    #define MSMC_C7x_1_SIZE (0x003C8000u)
    
    /* DDR for MCU1_0 for Linux IPC [ size 1024.00 KB ] */
    #define DDR_MCU1_0_IPC_ADDR (0xA0000000u)
    #define DDR_MCU1_0_IPC_SIZE (0x00100000u)
    
    /* DDR for MCU1_0 for all sections, used for reserving memory in DTS file [ size 15.00 MB ] */
    #define DDR_MCU1_0_DTS_ADDR (0xA0100000u)
    #define DDR_MCU1_0_DTS_SIZE (0x00F00000u)
    
    /* DDR for MCU1_1 for Linux IPC [ size 1024.00 KB ] */
    #define DDR_MCU1_1_IPC_ADDR (0xA1000000u)
    #define DDR_MCU1_1_IPC_SIZE (0x00100000u)
    
    /* DDR for MCU1_1 for all sections, used for reserving memory in DTS file [ size 15.00 MB ] */
    #define DDR_MCU1_1_DTS_ADDR (0xA1100000u)
    #define DDR_MCU1_1_DTS_SIZE (0x00F00000u)
    
    /* DDR for MCU2_0 for Linux IPC [ size 1024.00 KB ] */
    #define DDR_MCU2_0_IPC_ADDR (0xA2000000u)
    #define DDR_MCU2_0_IPC_SIZE (0x00100000u)
    
    /* DDR for MCU2_0 for all sections, used for reserving memory in DTS file [ size 31.00 MB ] */
    #define DDR_MCU2_0_DTS_ADDR (0xA2100000u)
    #define DDR_MCU2_0_DTS_SIZE (0x01F00000u)
    
    /* DDR for MCU2_1 for Linux IPC [ size 1024.00 KB ] */
    #define DDR_MCU2_1_IPC_ADDR (0xA4000000u)
    #define DDR_MCU2_1_IPC_SIZE (0x00100000u)
    
    /* DDR for MCU2_1 for all sections, used for reserving memory in DTS file [ size 31.00 MB ] */
    #define DDR_MCU2_1_DTS_ADDR (0xA4100000u)
    #define DDR_MCU2_1_DTS_SIZE (0x01F00000u)
    
    /* DDR for MCU3_0 for Linux IPC [ size 1024.00 KB ] */
    #define DDR_MCU3_0_IPC_ADDR (0xA6000000u)
    #define DDR_MCU3_0_IPC_SIZE (0x00100000u)
    
    /* DDR for MCU3_0 for all sections, used for reserving memory in DTS file [ size 15.00 MB ] */
    #define DDR_MCU3_0_DTS_ADDR (0xA6100000u)
    #define DDR_MCU3_0_DTS_SIZE (0x00F00000u)
    
    /* DDR for MCU3_1 for Linux IPC [ size 1024.00 KB ] */
    #define DDR_MCU3_1_IPC_ADDR (0xA7000000u)
    #define DDR_MCU3_1_IPC_SIZE (0x00100000u)
    
    /* DDR for MCU3_1 for all sections, used for reserving memory in DTS file [ size 15.00 MB ] */
    #define DDR_MCU3_1_DTS_ADDR (0xA7100000u)
    #define DDR_MCU3_1_DTS_SIZE (0x00F00000u)
    
    /* DDR for C7x_2 for Linux IPC [ size 1024.00 KB ] */
    #define DDR_C7x_2_IPC_ADDR (0xA8000000u)
    #define DDR_C7x_2_IPC_SIZE (0x00100000u)
    
    /* DDR for C7x_2 for all sections, used for reserving memory in DTS file [ size 31.00 MB ] */
    #define DDR_C7x_2_DTS_ADDR (0xA8100000u)
    #define DDR_C7x_2_DTS_SIZE (0x01F00000u)
    
    /* DDR for C7x_1 for Linux IPC [ size 1024.00 KB ] */
    #define DDR_C7x_1_IPC_ADDR (0xAA000000u)
    #define DDR_C7x_1_IPC_SIZE (0x00100000u)
    
    /* DDR for C7x_1 for all sections, used for reserving memory in DTS file [ size 111.00 MB ] */
    #define DDR_C7x_1_DTS_ADDR (0xAA100000u)
    #define DDR_C7x_1_DTS_SIZE (0x06F00000u)
    
    /* Memory for IPC Vring's. MUST be non-cached or cache-coherent [ size 32.00 MB ] */
    #define IPC_VRING_MEM_ADDR (0xB2000000u)
    #define IPC_VRING_MEM_SIZE (0x02000000u)
    
    /* Memory for remote core logging [ size 256.00 KB ] */
    #define APP_LOG_MEM_ADDR (0xB4000000u)
    #define APP_LOG_MEM_SIZE (0x00040000u)
    
    /* Memory for TI OpenVX shared memory. MUST be non-cached or cache-coherent [ size 58.50 MB ] */
    #define TIOVX_OBJ_DESC_MEM_ADDR (0xB4040000u)
    #define TIOVX_OBJ_DESC_MEM_SIZE (0x03A80000u)
    
    /* Memory for lpc shared memory. MUST be non-cached or cache-coherent [ size  5.25 MB ] */
    #define LPC_SHARED_MEM_ADDR (0xB7AC0000u)
    #define LPC_SHARED_MEM_SIZE (0x00540000u)
    
    /* Memory for TI OpenVX shared memory for Run-time logging. MUST be non-cached or cache-coherent [ size 32.00 MB ] */
    #define TIOVX_LOG_RT_MEM_ADDR (0xB8000000u)
    #define TIOVX_LOG_RT_MEM_SIZE (0x02000000u)
    
    /* Memory for shared memory buffers in DDR [ size 512.00 MB ] */
    #define DDR_SHARED_MEM_ADDR (0xBA000000u)
    #define DDR_SHARED_MEM_SIZE (0x20000000u)
    
    /* DDR for MCU1_0 for local heap [ size  8.00 MB ] */
    #define DDR_MCU1_0_LOCAL_HEAP_ADDR (0xDA000000u)
    #define DDR_MCU1_0_LOCAL_HEAP_SIZE (0x00800000u)
    
    /* DDR for MCU1_1 for local heap [ size  8.00 MB ] */
    #define DDR_MCU1_1_LOCAL_HEAP_ADDR (0xDA800000u)
    #define DDR_MCU1_1_LOCAL_HEAP_SIZE (0x00800000u)
    
    /* DDR for MCU2_0 local heap for tiovx use [ size  8.00 MB ] */
    #define DDR_MCU2_0_LOCAL_HEAP_TIOVX_ADDR (0xDB000000u)
    #define DDR_MCU2_0_LOCAL_HEAP_TIOVX_SIZE (0x00800000u)
    
    /* DDR for MCU2_0 local heap for normal use [ size  8.00 MB ] */
    #define DDR_MCU2_0_LOCAL_HEAP_NORMAL_ADDR (0xDB800000u)
    #define DDR_MCU2_0_LOCAL_HEAP_NORMAL_SIZE (0x00800000u)
    
    /* DDR for MCU2_1 local heap for tiovx use [ size  8.00 MB ] */
    #define DDR_MCU2_1_LOCAL_HEAP_TIOVX_ADDR (0xDC000000u)
    #define DDR_MCU2_1_LOCAL_HEAP_TIOVX_SIZE (0x00800000u)
    
    /* DDR for MCU2_1 local heap for normal use [ size  8.00 MB ] */
    #define DDR_MCU2_1_LOCAL_HEAP_NORMAL_ADDR (0xDC800000u)
    #define DDR_MCU2_1_LOCAL_HEAP_NORMAL_SIZE (0x00800000u)
    
    /* DDR for MCU3_0 for local heap [ size  8.00 MB ] */
    #define DDR_MCU3_0_LOCAL_HEAP_ADDR (0xDD000000u)
    #define DDR_MCU3_0_LOCAL_HEAP_SIZE (0x00800000u)
    
    /* DDR for MCU3_1 for local heap [ size  8.00 MB ] */
    #define DDR_MCU3_1_LOCAL_HEAP_ADDR (0xDD800000u)
    #define DDR_MCU3_1_LOCAL_HEAP_SIZE (0x00800000u)
    
    /* Main OCRAM Physical Address for MCU2_0 [ size 256.00 KB ] */
    #define MAIN_OCRAM_MCU2_0_PHYS_ADDR (0x4F02000000u)
    #define MAIN_OCRAM_MCU2_0_PHYS_SIZE (0x00040000u)
    
    /* Main OCRAM Physical Address for MCU2_1 [ size 256.00 KB ] */
    #define MAIN_OCRAM_MCU2_1_PHYS_ADDR (0x4F02040000u)
    #define MAIN_OCRAM_MCU2_1_PHYS_SIZE (0x00040000u)
    
    #define DDR_64BIT_BASE_VADDR (0x100000000u)
    #define DDR_64BIT_BASE_PADDR (0x880000000u)
    
    #endif /* APP_MEM_MAP_H */
    

  • Hi Tarun,
       
    {
            /* Region 7 configuration: Ring buffer */
            .regionId         = 7U,
            .enable           = 1U,
            .baseAddr         = IPC_VRING_MEM_ADDR,
            .size             = CSL_ARM_R5_MPU_REGION_SIZE_128MB,
            .subRegionEnable  = CSL_ARM_R5_MPU_SUB_REGION_ENABLE_ALL,
            .exeNeverControl  = 1U,
            .accessPermission = CSL_ARM_R5_ACC_PERM_PRIV_USR_RD_WR,
            .shareable        = 0U,
            .cacheable        = (uint32_t)FALSE,
            .cachePolicy      = CSL_ARM_R5_CACHE_POLICY_NON_CACHEABLE,
            .memAttr          = 0U,
        },
    Updated Ring memory is 128MB cacheable. Could you please confirm once the memory is correct?
    Still I am facing same issue.
  • Hello,

    Please confirm that you are using "gen_linker_mem_map.py" to generate the files and later you are copying the data into linux k3-j721s2-rtos-memory-map.dtsi file and giving build , replacing respective .dtbo file.

    Could you share me the .dtbo file after replacing ?

    Dtsi memory 

    The .dtsi file which you shared looks to be k3-j721s2-som-p0.dtsi but not  k3-j721s2-rtos-memory-map.dtsi , Could you please verify? As you are using vision apps , you need to modify in the corresponding memory map file.

     

    Regards

    Tarun Mukesh

  • Hello Tarun,

    We have an overlay file to update the memory node on top of  k3-j721s2-rtos-memory-map.dtsi and yes I am updating the gen_linker_mem_map.py and generating the memmap and k3-j721s2-rtos-memory-map.dtsi .

    I updated the k3-j721s2-rtos-memory-map.dtsi  changes to k3-j721s2-rtos-memory-map-overlay.dtsi which will considered as reserved memory section.

    k3-j721s2-vision-apps.dtbo is generated and check its matching with the reserved memory section.

     

    k3-j721s2-rtos-memory-map-overlay.dtsi below

    &reserved_memory {
    	#address-cells = <2>;
    	#size-cells = <2>;
    
    	vision_apps_mcu_r5fss0_core0_dma_memory_region: vision-apps-r5f-dma-memory@a0000000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xa0000000 0x00 0x100000>;
    		no-map;
    	};
    	vision_apps_mcu_r5fss0_core0_memory_region: vision-apps-r5f-memory@a0100000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xa0100000 0x00 0xf00000>;
    		no-map;
    	};
    	vision_apps_mcu_r5fss0_core1_dma_memory_region: vision-apps-r5f-dma-memory@a1000000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xa1000000 0x00 0x100000>;
    		no-map;
    	};
    	vision_apps_mcu_r5fss0_core1_memory_region: vision-apps-r5f-memory@a1100000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xa1100000 0x00 0xf00000>;
    		no-map;
    	};
    	vision_apps_main_r5fss0_core0_dma_memory_region: vision-apps-r5f-dma-memory@a2000000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xa2000000 0x00 0x100000>;
    		no-map;
    	};
    	vision_apps_main_r5fss0_core0_memory_region: vision-apps-r5f-memory@a2100000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xa2100000 0x00 0x1f00000>;
    		no-map;
    	};
    	vision_apps_main_r5fss0_core1_dma_memory_region: vision-apps-r5f-dma-memory@a4000000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xa4000000 0x00 0x100000>;
    		no-map;
    	};
    	vision_apps_main_r5fss0_core1_memory_region: vision-apps-r5f-memory@a4100000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xa4100000 0x00 0x1f00000>;
    		no-map;
    	};
    	vision_apps_main_r5fss1_core0_dma_memory_region: vision-apps-r5f-dma-memory@a6000000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xa6000000 0x00 0x100000>;
    		no-map;
    	};
    	vision_apps_main_r5fss1_core0_memory_region: vision-apps-r5f-memory@a6100000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xa6100000 0x00 0xf00000>;
    		no-map;
    	};
    	vision_apps_main_r5fss1_core1_dma_memory_region: vision-apps-r5f-dma-memory@a7000000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xa7000000 0x00 0x100000>;
    		no-map;
    	};
    	vision_apps_main_r5fss1_core1_memory_region: vision-apps-r5f-memory@a7100000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xa7100000 0x00 0xf00000>;
    		no-map;
    	};
    	vision_apps_c71_1_dma_memory_region: vision-apps-c71_1-dma-memory@a8000000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xa8000000 0x00 0x100000>;
    		no-map;
    	};
    	vision_apps_c71_1_memory_region: vision-apps-c71_1-memory@a8100000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xa8100000 0x00 0x1f00000>;
    		no-map;
    	};
    	vision_apps_c71_0_dma_memory_region: vision-apps-c71-dma-memory@aa000000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xaa000000 0x00 0x100000>;
    		no-map;
    	};
    	vision_apps_c71_0_memory_region: vision-apps-c71_0-memory@aa100000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xaa100000 0x00 0x6f00000>;
    		no-map;
    	};
    	vision_apps_rtos_ipc_memory_region: vision-apps-rtos-ipc-memory-region@b2000000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xb2000000 0x00 0x2000000>;
    		no-map;
    	};
    	vision_apps_memory_region: vision-apps-dma-memory@b4000000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xb4000000 0x00 0x6000000>;
    		no-map;
    	};
    	vision_apps_shared_region: vision-apps-shared-memories {
    		compatible = "dma-heap-carveout";
    		reg = <0x00 0xba000000 0x00 0x20000000>;
    	};
    	vision_apps_core_heaps_lo: vision-apps-core-heap-memory-lo@da000000 {
    		compatible = "shared-dma-pool";
    		reg = <0x00 0xda000000 0x00 0x4000000>;
    		no-map;
    	};
    };

    memmap

    /* Main OCRAM for MCU2_0 [ size 256.00 KB ] */
    #define MAIN_OCRAM_MCU2_0_ADDR (0x03600000u)
    #define MAIN_OCRAM_MCU2_0_SIZE (0x00040000u)
    
    /* Main OCRAM for MCU2_1 [ size 256.00 KB ] */
    #define MAIN_OCRAM_MCU2_1_ADDR (0x03640000u)
    #define MAIN_OCRAM_MCU2_1_SIZE (0x00040000u)
    
    /* L2 for C7x_1 [ size 448.00 KB ] */
    #define L2RAM_C7x_1_ADDR (0x64800000u)
    #define L2RAM_C7x_1_SIZE (0x00070000u)
    
    /* L1 for C7x_1 [ size 16.00 KB ] */
    #define L1RAM_C7x_1_ADDR (0x64E00000u)
    #define L1RAM_C7x_1_SIZE (0x00004000u)
    
    /* L2 for C7x_2 [ size 448.00 KB ] */
    #define L2RAM_C7x_2_ADDR (0x65800000u)
    #define L2RAM_C7x_2_SIZE (0x00070000u)
    
    /* L1 for C7x_2 [ size 16.00 KB ] */
    #define L1RAM_C7x_2_ADDR (0x65E00000u)
    #define L1RAM_C7x_2_SIZE (0x00004000u)
    
    /* MSMC for C7x_1 [ size  3.78 MB ] */
    #define MSMC_C7x_1_ADDR (0x70020000u)
    #define MSMC_C7x_1_SIZE (0x003C8000u)
    
    /* DDR for MCU1_0 for Linux IPC [ size 1024.00 KB ] */
    #define DDR_MCU1_0_IPC_ADDR (0xA0000000u)
    #define DDR_MCU1_0_IPC_SIZE (0x00100000u)
    
    /* DDR for MCU1_0 for all sections, used for reserving memory in DTS file [ size 15.00 MB ] */
    #define DDR_MCU1_0_DTS_ADDR (0xA0100000u)
    #define DDR_MCU1_0_DTS_SIZE (0x00F00000u)
    
    /* DDR for MCU1_1 for Linux IPC [ size 1024.00 KB ] */
    #define DDR_MCU1_1_IPC_ADDR (0xA1000000u)
    #define DDR_MCU1_1_IPC_SIZE (0x00100000u)
    
    /* DDR for MCU1_1 for all sections, used for reserving memory in DTS file [ size 15.00 MB ] */
    #define DDR_MCU1_1_DTS_ADDR (0xA1100000u)
    #define DDR_MCU1_1_DTS_SIZE (0x00F00000u)
    
    /* DDR for MCU2_0 for Linux IPC [ size 1024.00 KB ] */
    #define DDR_MCU2_0_IPC_ADDR (0xA2000000u)
    #define DDR_MCU2_0_IPC_SIZE (0x00100000u)
    
    /* DDR for MCU2_0 for all sections, used for reserving memory in DTS file [ size 31.00 MB ] */
    #define DDR_MCU2_0_DTS_ADDR (0xA2100000u)
    #define DDR_MCU2_0_DTS_SIZE (0x01F00000u)
    
    /* DDR for MCU2_1 for Linux IPC [ size 1024.00 KB ] */
    #define DDR_MCU2_1_IPC_ADDR (0xA4000000u)
    #define DDR_MCU2_1_IPC_SIZE (0x00100000u)
    
    /* DDR for MCU2_1 for all sections, used for reserving memory in DTS file [ size 31.00 MB ] */
    #define DDR_MCU2_1_DTS_ADDR (0xA4100000u)
    #define DDR_MCU2_1_DTS_SIZE (0x01F00000u)
    
    /* DDR for MCU3_0 for Linux IPC [ size 1024.00 KB ] */
    #define DDR_MCU3_0_IPC_ADDR (0xA6000000u)
    #define DDR_MCU3_0_IPC_SIZE (0x00100000u)
    
    /* DDR for MCU3_0 for all sections, used for reserving memory in DTS file [ size 15.00 MB ] */
    #define DDR_MCU3_0_DTS_ADDR (0xA6100000u)
    #define DDR_MCU3_0_DTS_SIZE (0x00F00000u)
    
    /* DDR for MCU3_1 for Linux IPC [ size 1024.00 KB ] */
    #define DDR_MCU3_1_IPC_ADDR (0xA7000000u)
    #define DDR_MCU3_1_IPC_SIZE (0x00100000u)
    
    /* DDR for MCU3_1 for all sections, used for reserving memory in DTS file [ size 15.00 MB ] */
    #define DDR_MCU3_1_DTS_ADDR (0xA7100000u)
    #define DDR_MCU3_1_DTS_SIZE (0x00F00000u)
    
    /* DDR for C7x_2 for Linux IPC [ size 1024.00 KB ] */
    #define DDR_C7x_2_IPC_ADDR (0xA8000000u)
    #define DDR_C7x_2_IPC_SIZE (0x00100000u)
    
    /* DDR for C7x_2 for all sections, used for reserving memory in DTS file [ size 31.00 MB ] */
    #define DDR_C7x_2_DTS_ADDR (0xA8100000u)
    #define DDR_C7x_2_DTS_SIZE (0x01F00000u)
    
    /* DDR for C7x_1 for Linux IPC [ size 1024.00 KB ] */
    #define DDR_C7x_1_IPC_ADDR (0xAA000000u)
    #define DDR_C7x_1_IPC_SIZE (0x00100000u)
    
    /* DDR for C7x_1 for all sections, used for reserving memory in DTS file [ size 111.00 MB ] */
    #define DDR_C7x_1_DTS_ADDR (0xAA100000u)
    #define DDR_C7x_1_DTS_SIZE (0x06F00000u)
    
    /* Memory for IPC Vring's. MUST be non-cached or cache-coherent [ size 32.00 MB ] */
    #define IPC_VRING_MEM_ADDR (0xB2000000u)
    #define IPC_VRING_MEM_SIZE (0x02000000u)
    
    /* Memory for remote core logging [ size 256.00 KB ] */
    #define APP_LOG_MEM_ADDR (0xB4000000u)
    #define APP_LOG_MEM_SIZE (0x00040000u)
    
    /* Memory for TI OpenVX shared memory. MUST be non-cached or cache-coherent [ size 55.38 MB ] */
    #define TIOVX_OBJ_DESC_MEM_ADDR (0xB4040000u)
    #define TIOVX_OBJ_DESC_MEM_SIZE (0x03760000u)
    
    /* Memory for lpc shared memory. MUST be non-cached or cache-coherent [ size  8.00 MB ] */
    #define LPC_SHARED_MEM_ADDR (0xB77A0000u)
    #define LPC_SHARED_MEM_SIZE (0x00800000u)
    
    /* Memory for global timer memory. MUST be non-cached or cache-coherent [ size 128.00 KB ] */
    #define GLOBAL_TIMER_MEM_ADDR (0xB7FA0000u)
    #define GLOBAL_TIMER_MEM_SIZE (0x00020000u)
    
    /* Memory for vip shared buf memory. MUST be non-cached or cache-coherent [ size 128.00 KB ] */
    #define VIP_SHARED_BUF_MEM_ADDR (0xB7FC0000u)
    #define VIP_SHARED_BUF_MEM_SIZE (0x00020000u)
    
    /* Memory for validate info memory. MUST be non-cached or cache-coherent [ size 128.00 KB ] */
    #define VALIDATE_INFO_MEM_ADDR (0xB7FE0000u)
    #define VALIDATE_INFO_MEM_SIZE (0x00020000u)
    
    /* Memory for TI OpenVX shared memory for Run-time logging. MUST be non-cached or cache-coherent [ size 32.00 MB ] */
    #define TIOVX_LOG_RT_MEM_ADDR (0xB8000000u)
    #define TIOVX_LOG_RT_MEM_SIZE (0x02000000u)
    
    /* Memory for shared memory buffers in DDR [ size 512.00 MB ] */
    #define DDR_SHARED_MEM_ADDR (0xBA000000u)
    #define DDR_SHARED_MEM_SIZE (0x20000000u)
    
    /* DDR for MCU1_0 for local heap [ size  8.00 MB ] */
    #define DDR_MCU1_0_LOCAL_HEAP_ADDR (0xDA000000u)
    #define DDR_MCU1_0_LOCAL_HEAP_SIZE (0x00800000u)
    
    /* DDR for MCU1_1 for local heap [ size  8.00 MB ] */
    #define DDR_MCU1_1_LOCAL_HEAP_ADDR (0xDA800000u)
    #define DDR_MCU1_1_LOCAL_HEAP_SIZE (0x00800000u)
    
    /* DDR for MCU2_0 local heap for tiovx use [ size  8.00 MB ] */
    #define DDR_MCU2_0_LOCAL_HEAP_TIOVX_ADDR (0xDB000000u)
    #define DDR_MCU2_0_LOCAL_HEAP_TIOVX_SIZE (0x00800000u)
    
    /* DDR for MCU2_0 local heap for normal use [ size  8.00 MB ] */
    #define DDR_MCU2_0_LOCAL_HEAP_NORMAL_ADDR (0xDB800000u)
    #define DDR_MCU2_0_LOCAL_HEAP_NORMAL_SIZE (0x00800000u)
    
    /* DDR for MCU2_1 local heap for tiovx use [ size  8.00 MB ] */
    #define DDR_MCU2_1_LOCAL_HEAP_TIOVX_ADDR (0xDC000000u)
    #define DDR_MCU2_1_LOCAL_HEAP_TIOVX_SIZE (0x00800000u)
    
    /* DDR for MCU2_1 local heap for normal use [ size  8.00 MB ] */
    #define DDR_MCU2_1_LOCAL_HEAP_NORMAL_ADDR (0xDC800000u)
    #define DDR_MCU2_1_LOCAL_HEAP_NORMAL_SIZE (0x00800000u)
    
    /* DDR for MCU3_0 for local heap [ size  8.00 MB ] */
    #define DDR_MCU3_0_LOCAL_HEAP_ADDR (0xDD000000u)
    #define DDR_MCU3_0_LOCAL_HEAP_SIZE (0x00800000u)
    
    /* DDR for MCU3_1 for local heap [ size  8.00 MB ] */
    #define DDR_MCU3_1_LOCAL_HEAP_ADDR (0xDD800000u)
    #define DDR_MCU3_1_LOCAL_HEAP_SIZE (0x00800000u)
    
    /* Main OCRAM Physical Address for MCU2_0 [ size 256.00 KB ] */
    #define MAIN_OCRAM_MCU2_0_PHYS_ADDR (0x4F02000000u)
    #define MAIN_OCRAM_MCU2_0_PHYS_SIZE (0x00040000u)
    
    /* Main OCRAM Physical Address for MCU2_1 [ size 256.00 KB ] */
    #define MAIN_OCRAM_MCU2_1_PHYS_ADDR (0x4F02040000u)
    #define MAIN_OCRAM_MCU2_1_PHYS_SIZE (0x00040000u)
    
    #define DDR_64BIT_BASE_VADDR (0x100000000u)
    #define DDR_64BIT_BASE_PADDR (0x880000000u)
    

    Below are the remoteproc names

    root@j721s2-evm:/# head /sys/class/remoteproc/remoteproc*/name
    ==> /sys/class/remoteproc/remoteproc0/name <==
    64800000.dsp

    ==> /sys/class/remoteproc/remoteproc1/name <==
    65800000.dsp

    ==> /sys/class/remoteproc/remoteproc2/name <==
    41000000.r5f

    ==> /sys/class/remoteproc/remoteproc3/name <==
    5c00000.r5f

    ==> /sys/class/remoteproc/remoteproc4/name <==
    5d00000.r5f

    Resource table :

    root@j721s2-evm:/# cat /sys/kernel/debug/remoteproc/remoteproc*/resource_table
    Entry 0 is of type vdev
    ID 7
    Notify ID 0
    Device features 0x1
    Guest features 0x1
    Config length 0x0
    Status 0x7
    Number of vrings 2
    Reserved (should be zero) [0][0]

    Vring 0
    Device Address 0xaa000000
    Alignment 4096
    Number of buffers 256
    Notify ID 0
    Physical Address 0x0

    Vring 1
    Device Address 0xaa004000
    Alignment 4096
    Number of buffers 256
    Notify ID 1
    Physical Address 0x0

    Unknown resource type found: 65538 [hdr: 000000004ef6bb48]
    Entry 0 is of type vdev
    ID 7
    Notify ID 0
    Device features 0x1
    Guest features 0x1
    Config length 0x0
    Status 0x7
    Number of vrings 2
    Reserved (should be zero) [0][0]

    Vring 0
    Device Address 0xa8000000
    Alignment 4096
    Number of buffers 256
    Notify ID 0
    Physical Address 0x0

    Vring 1
    Device Address 0xa8004000
    Alignment 4096
    Number of buffers 256
    Notify ID 1
    Physical Address 0x0

    Unknown resource type found: 65538 [hdr: 000000003d080f6e]
    Entry 0 is of type vdev
    ID 7
    Notify ID 0
    Device features 0x1
    Guest features 0x1
    Config length 0x0
    Status 0x7
    Number of vrings 2
    Reserved (should be zero) [0][0]

    Vring 0
    Device Address 0xa0000000
    Alignment 4096
    Number of buffers 256
    Notify ID 0
    Physical Address 0x0

    Vring 1
    Device Address 0xa0004000
    Alignment 4096
    Number of buffers 256
    Notify ID 1
    Physical Address 0x0

    Entry 1 is of type trace
    Device Address 0xa066a7b0
    Length 0x80000 Bytes
    Reserved (should be zero) [0]
    Name trace:r5f0

    Entry 0 is of type vdev
    ID 7
    Notify ID 0
    Device features 0x1
    Guest features 0x1
    Config length 0x0
    Status 0x7
    Number of vrings 2
    Reserved (should be zero) [0][0]

    Vring 0
    Device Address 0xa2000000
    Alignment 4096
    Number of buffers 256
    Notify ID 0
    Physical Address 0x0

    Vring 1
    Device Address 0xa2004000
    Alignment 4096
    Number of buffers 256
    Notify ID 1
    Physical Address 0x0

    Entry 1 is of type trace
    Device Address 0xa3c9e800
    Length 0x80000 Bytes
    Reserved (should be zero) [0]
    Name trace:r5f0

    Entry 0 is of type vdev
    ID 7
    Notify ID 0
    Device features 0x1
    Guest features 0x1
    Config length 0x0
    Status 0x7
    Number of vrings 2
    Reserved (should be zero) [0][0]

    Vring 0
    Device Address 0xa4000000
    Alignment 4096
    Number of buffers 256
    Notify ID 0
    Physical Address 0x0

    Vring 1
    Device Address 0xa4004000
    Alignment 4096
    Number of buffers 256
    Notify ID 1
    Physical Address 0x0

    Entry 1 is of type trace
    Device Address 0xa5470000
    Length 0x80000 Bytes
    Reserved (should be zero) [0]
    Name trace:r5f0

    root@j721s2-evm:/# ls -l /sys/dev/char
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 10:196 -> ../../devices/virtual/misc/vfio
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 10:200 -> ../../devices/virtual/misc/tun
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 10:231 -> ../../devices/virtual/misc/snapshot
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 10:235 -> ../../devices/virtual/misc/autofs
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 10:237 -> ../../devices/virtual/misc/loop-control
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 10:61 -> ../../devices/virtual/misc/pvr_sync
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 10:62 -> ../../devices/virtual/misc/ubi_ctrl
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 10:63 -> ../../devices/platform/dma_buf_phys/misc/dma-buf-phys
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 116:33 -> ../../devices/virtual/sound/timer
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 1:1 -> ../../devices/virtual/mem/mem
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 1:11 -> ../../devices/virtual/mem/kmsg
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 1:3 -> ../../devices/virtual/mem/null
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 1:4 -> ../../devices/virtual/mem/port
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 1:5 -> ../../devices/virtual/mem/zero
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 1:7 -> ../../devices/virtual/mem/full
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 1:8 -> ../../devices/virtual/mem/random
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 1:9 -> ../../devices/virtual/mem/urandom
    lrwxrwxrwx 1 root root 0 Jan 1 1970 226:0 -> ../../devices/platform/bus@100000/4e20000000.gpu/drm/card0
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 226:128 -> ../../devices/platform/bus@100000/4e20000000.gpu/drm/renderD128
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 235:0 -> ../../devices/platform/bus@100000/64800000.dsp/remoteproc/remoteproc0/remoteproc0#vdev0buffer/virtio0/virtio0.rpmsg_chrdev.-1.20/rpmsg/rpmsg_ctrl0
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 235:1 -> ../../devices/platform/bus@100000/64800000.dsp/remoteproc/remoteproc0/remoteproc0#vdev0buffer/virtio0/virtio0.rpmsg_chrdev.-1.10/rpmsg/rpmsg_ctrl1
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 235:2 -> ../../devices/platform/bus@100000/64800000.dsp/remoteproc/remoteproc0/remoteproc0#vdev0buffer/virtio0/virtio0.rpmsg_chrdev.-1.14/rpmsg/rpmsg_ctrl2
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 235:3 -> ../../devices/platform/bus@100000/65800000.dsp/remoteproc/remoteproc1/remoteproc1#vdev0buffer/virtio1/virtio1.rpmsg_chrdev.-1.20/rpmsg/rpmsg_ctrl3
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 235:4 -> ../../devices/platform/bus@100000/65800000.dsp/remoteproc/remoteproc1/remoteproc1#vdev0buffer/virtio1/virtio1.rpmsg_chrdev.-1.10/rpmsg/rpmsg_ctrl4
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 235:5 -> ../../devices/platform/bus@100000/65800000.dsp/remoteproc/remoteproc1/remoteproc1#vdev0buffer/virtio1/virtio1.rpmsg_chrdev.-1.14/rpmsg/rpmsg_ctrl5
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 235:6 -> ../../devices/platform/bus@100000/bus@100000:bus@28380000/bus@100000:bus@28380000:r5fss@41000000/41000000.r5f/remoteproc/remoteproc2/remoteproc2#vdev0buffer/virtio2/virtio2.rpmsg_chrdev.-1.30/rpmsg/rpmsg_ctrl6
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 235:7 -> ../../devices/platform/bus@100000/bus@100000:bus@28380000/bus@100000:bus@28380000:r5fss@41000000/41000000.r5f/remoteproc/remoteproc2/remoteproc2#vdev0buffer/virtio2/virtio2.rpmsg_chrdev.-1.14/rpmsg/rpmsg_ctrl7
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 236:0 -> ../../devices/virtual/ubi/ubi0
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 236:1 -> ../../devices/virtual/ubi/ubi0/ubi0_0
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 237:0 -> ../../devices/platform/bus@100000/4f80000.mmc/mmc_host/mmc0/mmc0:0001/mmcblk0rpmb
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 245:0 -> ../../devices/virtual/tee/tee0
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 245:16 -> ../../devices/virtual/tee/teepriv0
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 247:0 -> ../../devices/platform/bus@100000/c200000.ethernet/ptp/ptp0
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 247:1 -> ../../devices/platform/bus@100000/bus@100000:bus@30000000/310d0000.cpts/ptp/ptp1
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 253:0 -> ../../devices/virtual/dma_heap/vision-apps-shared-memories
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 253:1 -> ../../devices/virtual/dma_heap/system
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 253:2 -> ../../devices/virtual/dma_heap/reserved
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 254:0 -> ../../devices/platform/bus@100000/bus@100000:bus@28380000/42110000.gpio/gpiochip0
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 254:1 -> ../../devices/platform/bus@100000/600000.gpio/gpiochip1
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 2:0 -> ../../devices/virtual/tty/ptyp0
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 2:1 -> ../../devices/virtual/tty/ptyp1
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 2:10 -> ../../devices/virtual/tty/ptypa
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 2:11 -> ../../devices/virtual/tty/ptypb
    lrwxrwxrwx 1 root root 0 Jun 16 17:02 2:12 -> ../../dev

    remote proc for device mcu's are not created as per the log.

  • linker command for r5f0 is

    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
        /* Main OCRAM for MCU2_0 [ size 256.00 KB ] */
        MAIN_OCRAM_MCU2_0        ( RWIX ) : ORIGIN = 0x03600000 , LENGTH = 0x00040000
        /* R5F_TCMB0 [ size 32.00 KB ] */
        R5F_TCMB0                ( RWIX ) : ORIGIN = 0x41010000 , LENGTH = 0x00008000
        /* DDR for MCU2_0 for Linux IPC [ size 1024.00 KB ] */
        DDR_MCU2_0_IPC           ( RWIX ) : ORIGIN = 0xA2000000 , LENGTH = 0x00100000
        /* DDR for MCU2_0 for Linux resource table [ size 1024 B ] */
        DDR_MCU2_0_RESOURCE_TABLE ( RWIX ) : ORIGIN = 0xA2100000 , LENGTH = 0x00000400
        /* DDR for MCU2_0 for code/data [ size 31.00 MB ] */
        DDR_MCU2_0               ( RWIX ) : ORIGIN = 0xA2100400 , LENGTH = 0x01EFFC00
        /* Memory for IPC Vring's. MUST be non-cached or cache-coherent [ size 32.00 MB ] */
        IPC_VRING_MEM                     : ORIGIN = 0xB2000000 , LENGTH = 0x02000000
        /* Memory for remote core logging [ size 256.00 KB ] */
        APP_LOG_MEM                       : ORIGIN = 0xB4000000 , LENGTH = 0x00040000
        /* Memory for TI OpenVX shared memory. MUST be non-cached or cache-coherent [ size 55.38 MB ] */
        TIOVX_OBJ_DESC_MEM                : ORIGIN = 0xB4040000 , LENGTH = 0x03760000
        /* Memory for lpc shared memory. MUST be non-cached or cache-coherent [ size  8.00 MB ] */
        LPC_SHARED_MEM                    : ORIGIN = 0xB77A0000 , LENGTH = 0x00800000
        /* Memory for global timer memory. MUST be non-cached or cache-coherent [ size 128.00 KB ] */
        GLOBAL_TIMER_MEM                  : ORIGIN = 0xB7FA0000 , LENGTH = 0x00020000
        /* Memory for vip shared buf memory. MUST be non-cached or cache-coherent [ size 128.00 KB ] */
        VIP_SHARED_BUF_MEM                : ORIGIN = 0xB7FC0000 , LENGTH = 0x00020000
        /* Memory for validate info memory. MUST be non-cached or cache-coherent [ size 128.00 KB ] */
        VALIDATE_INFO_MEM                 : ORIGIN = 0xB7FE0000 , LENGTH = 0x00020000
        /* Memory for shared memory buffers in DDR [ size 512.00 MB ] */
        DDR_SHARED_MEM                    : ORIGIN = 0xBA000000 , LENGTH = 0x20000000
        /* DDR for MCU2_0 local heap for tiovx use [ size  8.00 MB ] */
        DDR_MCU2_0_LOCAL_HEAP_TIOVX ( RWIX ) : ORIGIN = 0xDB000000 , LENGTH = 0x00800000
        /* DDR for MCU2_0 local heap for normal use [ size  8.00 MB ] */
        DDR_MCU2_0_LOCAL_HEAP_NORMAL ( RWIX ) : ORIGIN = 0xDB800000 , LENGTH = 0x00800000
    }

    r5f1

    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
        /* Main OCRAM for MCU2_1 [ size 256.00 KB ] */
        MAIN_OCRAM_MCU2_1        ( RWIX ) : ORIGIN = 0x03640000 , LENGTH = 0x00040000
        /* R5F_TCMB0 [ size 32.00 KB ] */
        R5F_TCMB0                ( RWIX ) : ORIGIN = 0x41010000 , LENGTH = 0x00008000
        /* DDR for MCU2_1 for Linux IPC [ size 1024.00 KB ] */
        DDR_MCU2_1_IPC           ( RWIX ) : ORIGIN = 0xA4000000 , LENGTH = 0x00100000
        /* DDR for MCU2_1 for Linux resource table [ size 1024 B ] */
        DDR_MCU2_1_RESOURCE_TABLE ( RWIX ) : ORIGIN = 0xA4100000 , LENGTH = 0x00000400
        /* DDR for MCU2_1 for code/data [ size 31.00 MB ] */
        DDR_MCU2_1               ( RWIX ) : ORIGIN = 0xA4100400 , LENGTH = 0x01EFFC00
        /* Memory for IPC Vring's. MUST be non-cached or cache-coherent [ size 32.00 MB ] */
        IPC_VRING_MEM                     : ORIGIN = 0xB2000000 , LENGTH = 0x02000000
        /* Memory for remote core logging [ size 256.00 KB ] */
        APP_LOG_MEM                       : ORIGIN = 0xB4000000 , LENGTH = 0x00040000
        /* Memory for TI OpenVX shared memory. MUST be non-cached or cache-coherent [ size 55.38 MB ] */
        TIOVX_OBJ_DESC_MEM                : ORIGIN = 0xB4040000 , LENGTH = 0x03760000
        /* Memory for lpc shared memory. MUST be non-cached or cache-coherent [ size  8.00 MB ] */
        LPC_SHARED_MEM                    : ORIGIN = 0xB77A0000 , LENGTH = 0x00800000
        /* Memory for global timer memory. MUST be non-cached or cache-coherent [ size 128.00 KB ] */
        GLOBAL_TIMER_MEM                  : ORIGIN = 0xB7FA0000 , LENGTH = 0x00020000
        /* Memory for vip shared buf memory. MUST be non-cached or cache-coherent [ size 128.00 KB ] */
        VIP_SHARED_BUF_MEM                : ORIGIN = 0xB7FC0000 , LENGTH = 0x00020000
        /* Memory for validate info memory. MUST be non-cached or cache-coherent [ size 128.00 KB ] */
        VALIDATE_INFO_MEM                 : ORIGIN = 0xB7FE0000 , LENGTH = 0x00020000
        /* Memory for shared memory buffers in DDR [ size 512.00 MB ] */
        DDR_SHARED_MEM                    : ORIGIN = 0xBA000000 , LENGTH = 0x20000000
        /* DDR for MCU2_1 local heap for tiovx use [ size  8.00 MB ] */
        DDR_MCU2_1_LOCAL_HEAP_TIOVX ( RWIX ) : ORIGIN = 0xDC000000 , LENGTH = 0x00800000
        /* DDR for MCU2_1 local heap for normal use [ size  8.00 MB ] */
        DDR_MCU2_1_LOCAL_HEAP_NORMAL ( RWIX ) : ORIGIN = 0xDC800000 , LENGTH = 0x00800000
    }
    

    I couldn't connect the debugger because i am facing configuration problems. So couldn't debug by loading each image.

    k3-j721s2-vision-apps.dtbo (since the complete file is not able attach I just pasted only memory node details)

    |/fragment@17/__overlay__/vision-apps-r5f-dma-memory@a0000000          9   «/fragment@17/__overlay__/vision-apps-r5f-memory@a0100000          =   Φ/fragment@17/__overlay__/vision-apps-r5f-dma-memory@a1000000          9  /fragment@17/__overlay__/vision-apps-r5f-memory@a1100000          =  0/fragment@17/__overlay__/vision-apps-r5f-dma-memory@a2000000          9  `/fragment@17/__overlay__/vision-apps-r5f-memory@a2100000          =  Œ/fragment@17/__overlay__/vision-apps-r5f-dma-memory@a4000000          9  Ό/fragment@17/__overlay__/vision-apps-r5f-memory@a4100000          =  θ/fragment@17/__overlay__/vision-apps-r5f-dma-memory@a6000000          9  /fragment@17/__overlay__/vision-apps-r5f-memory@a6100000          =  D/fragment@17/__overlay__/vision-apps-r5f-dma-memory@a7000000          9  t/fragment@17/__overlay__/vision-apps-r5f-memory@a7100000          E   /fragment@17/__overlay__/vision-apps-rtos-ipc-memory-region@a8000000          9  Γ/fragment@17/__overlay__/vision-apps-dma-memory@aa000000          =  έ/fragment@17/__overlay__/vision-apps-c71-dma-memory@b0000000          ;  /fragment@17/__overlay__/vision-apps-c71_0-memory@b0100000        ?  !/fragment@17/__overlay__/vision-apps-c71_1-dma-memory@b6000000        ;  E/fragment@17/__overlay__/vision-apps-c71_1-memory@b6100000        5  e/fragment@17/__overlay__/vision_apps_shared-memories          B  /fragment@17/__overlay__/vision-apps-core-heap-memory-lo@d8000000         C  ™/fragment@17/__overlay__/vision-apps-core-heap-memory-hi@880000000        5  
     

  • Hello,

    I was going through your earlier responses.

    SDK version : 8.6 (8.6.1.3), TDA4 Mid Eco J721S2 board usibg SBL boot.

    PMIC -> BIST -> DMSC Init -> MCU R5F SBL -> Load Sysfw -> R5F MCU / loads boot App  -> A72, DSP & Main R5F cores.

    Here you mentioned you are using Boot app with HLOS for SBL on J721s2 ? Are you using MCUSS DEMOS boot app on SDK 8.6?

    Its 2GB DDR configuration.

    You have mentioned 2GB DDR configuration then , have you followed the steps of SBL Boot flow in https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1227640/faq-tda4vm-tda4vl-tda4al-tda4vh-dra821-how-can-we-make-the-jacinto-sdk-compatible-for-device-variants ?

    and also as you are following SBL using boot app, may i know what procedure have you followed in updating vision apps ? steps you followed in updating k3-j721s2-common-proc-board.dtsi and k3-j721s2-som-p0.dtsi.,

    Can you please provide me the patch of differences done in the above two files ? 

    After doing all the above changes , can you share me the entire log as an attachment?

    Regards

    Tarun Mukesh