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.

Linux/TDA2PXEVM: It will load EVE fail based on 512MB DDR

Part Number: TDA2PXEVM
Other Parts Discussed in Thread: TDA2

Tool/software: Linux

Hello,

We are ready to use EVE, But, after cold reboot, sometimes, it will attach EVE fail, about seventy percent . And then, if we execute reboot command, it will be  normal, everytime.

On the other hand, we followed the chapter 6.6 of VisionSDK_UserGuide_MemoryMap to change the map to 512MB DDR.Because, Our board's DDR size is only 512MB. 

Please find the log in the attachment.

Thanks 

Terence

add_log_for_eve_attach_fail.log

  • Hi Terence,

    I've attached a sample patch we had on TDA2x to enable EVE-1 (and later modified to use EVE-2).

    Can you apply these patches for TDA2p and let us know your observations? Please enable EVE-2 (instead of EVE-1), and make the board config as tda2p instead of tda2.

    Regards

    Shravan

    TDA2x-Linux-512MB-patch-with-EVE1-and-DSPs.zip

  • Hi Shravan,
    I will try it today.

    Thanks
    Terence
  • Hi Shravan,

    After applying your patches, this issue still remain. Please find the log in the attachment.

    Thanks 

    Terence

    [BEGIN] 2019/3/18 19:26:00
    root@dra7xx-evm:/opt/vision_sdk# 
    U-Boot SPL 2016.05 (Mar 18 2019 - 04:05:43)
    DRA762-GP ES1.0
    no pinctrl for hs200_1_8v
    no pinctrl for ddr_1_8v
    ** First descriptor is NOT a primary desc on 1:1 **
    *** Warning - bad CRC, using default environment
    
    i2c_write: error waiting for data ACK (status=0x116)
    i2c_write: error waiting for data ACK (status=0x116)
    Trying to boot from MMC1
    reading dra7-ipu2-fw.lzop
    spl_load_file_fat: error reading file dra7-ipu2-fw.lzop, err - -1
    spl: error reading image dra7-ipu2-fw.lzop, err - -1
    Error loading remotecore IPU2!,Continuing with boot ...
    reading dra7-dsp1-fw.lzop
    spl_load_file_fat: error reading file dra7-dsp1-fw.lzop, err - -1
    spl: error reading image dra7-dsp1-fw.lzop, err - -1
    Error loading remotecore DSP1!,Continuing with boot ...
    reading dra7-dsp2-fw.lzop
    spl_load_file_fat: error reading file dra7-dsp2-fw.lzop, err - -1
    spl: error reading image dra7-dsp2-fw.lzop, err - -1
    Error loading remotecore DSP2!,Continuing with boot ...
    reading dra7-ipu1-fw.lzop
    spl_load_file_fat: error reading file dra7-ipu1-fw.lzop, err - -1
    spl: error reading image dra7-ipu1-fw.lzop, err - -1
    Error loading remotecore IPU1!,Continuing with boot ...
    *** Warning - bad CRC, using default environment
    
    reading u-boot.img
    reading u-boot.img
    reading u-boot.img
    reading u-boot.img
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Initializing cgroup subsys cpuset
    [    0.000000] Initializing cgroup subsys cpu
    [    0.000000] Initializing cgroup subsys cpuacct
    [    0.000000] Linux version 4.4.84 (root@ubuntu) (gcc version 5.3.1 20160113 (Linaro GCC 5.3-2016.02) ) #3 SMP PREEMPT Mon Mar 18 04:06:00 PDT 2019
    [    0.000000] CPU: ARMv7 Processor [412fc0f2] revision 2 (ARMv7), cr=10c5387d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
    [    0.000000] Machine model: TI DRA762 EVM
    [    0.000000] Reserved memory: OVERLAP DETECTED!
    [    0.000000] vsdk_sr1_mem@86000000 (0x86000000--0x96000000) overlaps with cmem@95400000 (0x95400000--0x95800000)
    [    0.000000] Reserved memory: created DMA memory pool at 0x40300000, size 3 MiB
    [    0.000000] Reserved memory: initialized node cmem@40300000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: regions without no-map are not yet supported
    [    0.000000] Reserved memory: regions without no-map are not yet supported
    [    0.000000] Reserved memory: created CMA memory pool at 0x96000000, size 32 MiB
    [    0.000000] Reserved memory: initialized node ipu2_cma@98000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created CMA memory pool at 0x98000000, size 16 MiB
    [    0.000000] Reserved memory: initialized node dsp1_cma@9A000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created CMA memory pool at 0x9b000000, size 16 MiB
    [    0.000000] Reserved memory: initialized node dsp2_cma@9B000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created CMA memory pool at 0x9c000000, size 16 MiB
    [    0.000000] Reserved memory: initialized node ipu1_cma@9C000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x9e000000, size 16 MiB
    [    0.000000] Reserved memory: initialized node cmem@9e000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: regions without no-map are not yet supported
    [    0.000000] cma: Reserved 24 MiB at 0x99800000
    [    0.000000] Memory policy: Data cache writealloc
    [    0.000000] OMAP4: Map 0x9fe00000 to fe600000 for dram barrier
    [    0.000000] DRA762 ES1.0
    [    0.000000] PERCPU: Embedded 11 pages/cpu @df5c9000 s14912 r8192 d21952 u45056
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 124288
    [    0.000000] Kernel command line: console=ttyS0,115200n8 vram=16M root=PARTUUID=00566269-02 rw rootwait ip=none mem=512M
    [    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] Memory: 102196K/501760K available (6663K kernel code, 319K rwdata, 2392K rodata, 332K init, 286K bss, 293068K reserved, 106496K cma-reserved, 0K highmem)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    [    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc08e000c   (9057 kB)
    [    0.000000]       .init : 0xc08e1000 - 0xc0934000   ( 332 kB)
    [    0.000000]       .data : 0xc0934000 - 0xc0983e20   ( 320 kB)
    [    0.000000]        .bss : 0xc0985000 - 0xc09cc980   ( 287 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
    [    0.000000] Preemptible hierarchical RCU implementation.
    [    0.000000] 	Build-time adjustment of leaf fanout to 32.
    [    0.000000] NR_IRQS:16 nr_irqs:16 16
    [    0.000000] ti_dt_clocks_register: failed to lookup clock node gmac_gmii_ref_clk_div
    [    0.000000] OMAP clockevent source: timer1 at 32786 Hz
    [    0.000000] Architected cp15 timer(s) running at 6.14MHz (phys).
    [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x16af5adb9, max_idle_ns: 440795202250 ns
    [    0.000005] sched_clock: 56 bits at 6MHz, resolution 162ns, wraps every 4398046511023ns
    [    0.000016] Switching to timer-based delay loop, resolution 162ns
    [    0.000334] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns
    [    0.000342] OMAP clocksource: 32k_counter at 32768 Hz
    [    0.000813] Console: colour dummy device 80x30
    [    0.000833] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.29 BogoMIPS (lpj=61475)
    [    0.000845] pid_max: default: 32768 minimum: 301
    [    0.000941] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.000952] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.001492] Initializing cgroup subsys io
    [    0.001509] Initializing cgroup subsys memory
    [    0.001532] Initializing cgroup subsys devices
    [    0.001545] Initializing cgroup subsys freezer
    [    0.001556] Initializing cgroup subsys perf_event
    [    0.001567] Initializing cgroup subsys pids
    [    0.001593] CPU: Testing write buffer coherency: ok
    [    0.001796] /cpus/cpu@0 missing clock-frequency property
    [    0.001811] /cpus/cpu@1 missing clock-frequency property
    [    0.001822] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [    0.001866] Setting up static identity map for 0x80008340 - 0x800083a0
    [    0.080088] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    [    0.080158] Brought up 2 CPUs
    [    0.080170] SMP: Total of 2 processors activated (24.59 BogoMIPS).
    [    0.080177] CPU: All CPU(s) started in HYP mode.
    [    0.080183] CPU: Virtualization extensions available.
    [    0.081223] devtmpfs: initialized
    [    0.110883] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
    [    0.111845] omap_hwmod: l3_main_2 using broken dt data from ocp
    [    0.227195] omap_hwmod: dcan1: _wait_target_disable failed
    [    0.323628] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.323652] futex hash table entries: 512 (order: 3, 32768 bytes)
    [    0.325807] pinctrl core: initialized pinctrl subsystem
    [    0.326652] NET: Registered protocol family 16
    [    0.327614] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.350198] cpuidle: using governor ladder
    [    0.380225] cpuidle: using governor menu
    [    0.388861] OMAP GPIO hardware version 0.1
    [    0.393030] GPIO line 161 (radio_rst) hogged as output/low
    [    0.395430] irq: no irq domain found for /ocp/l4@4a000000/scm@2000/pinmux@1400 !
    [    0.419806] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
    [    0.419816] hw-breakpoint: maximum watchpoint size is 8 bytes.
    [    0.420317] omap4_sram_init:Unable to allocate sram needed to handle errata I688
    [    0.420327] omap4_sram_init:Unable to get sram pool needed to handle errata I688
    [    0.420809] OMAP DMA hardware revision 0.0
    [    0.461597] omap-dma-engine 4a056000.dma-controller: OMAP DMA engine driver (LinkedList1/2/3 supported)
    [    0.462746] edma 43300000.edma: memcpy is disabled
    [    0.467567] edma 43300000.edma: TI EDMA DMA engine driver
    [    0.472220] omap-iommu 40d01000.mmu: 40d01000.mmu registered
    [    0.472394] omap-iommu 40d02000.mmu: 40d02000.mmu registered
    [    0.472563] omap-iommu 58882000.mmu: 58882000.mmu registered
    [    0.472720] omap-iommu 55082000.mmu: 55082000.mmu registered
    [    0.472995] omap-iommu 41501000.mmu: 41501000.mmu registered
    [    0.473192] omap-iommu 41502000.mmu: 41502000.mmu registered
    [    0.476242] palmas 0-0058: IRQ missing: skipping irq request
    [    0.490716] palmas 0-0058: Muxing GPIO 51, PWM 0, LED 2
    [    0.541252] irq: no irq domain found for /ocp/i2c@48070000/tps65917@58 !
    [    0.541797] pcf857x: probe of 0-0020 failed with error -121
    [    0.542052] pcf857x: probe of 0-0021 failed with error -121
    [    0.542278] pcf857x: probe of 0-0026 failed with error -121
    [    0.542438] omap_i2c 48070000.i2c: bus 0 rev0.12 at 400 kHz
    [    0.542854] omap_i2c 48060000.i2c: bus 2 rev0.12 at 400 kHz
    [    0.560583] pcf857x: probe of 3-0021 failed with error -121
    [    0.560621] omap_i2c 4807a000.i2c: bus 3 rev0.12 at 400 kHz
    [    0.560814] media: Linux media interface: v0.10
    [    0.560865] Linux video capture interface: v2.00
    [    0.560904] pps_core: LinuxPPS API ver. 1 registered
    [    0.560911] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.560934] PTP clock support registered
    [    0.560978] EDAC MC: Ver: 3.0.0
    [    0.561738] omap-mailbox 48840000.mailbox: omap mailbox rev 0x400
    [    0.562038] omap-mailbox 48842000.mailbox: omap mailbox rev 0x400
    [    0.562386] Advanced Linux Sound Architecture Driver Initialized.
    [    0.563238] clocksource: Switched to clocksource arch_sys_counter
    [    0.573561] NET: Registered protocol family 2
    [    0.574054] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.574094] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
    [    0.574161] TCP: Hash tables configured (established 4096 bind 4096)
    [    0.574198] UDP hash table entries: 256 (order: 1, 8192 bytes)
    [    0.574219] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
    [    0.574407] NET: Registered protocol family 1
    [    0.574666] RPC: Registered named UNIX socket transport module.
    [    0.574674] RPC: Registered udp transport module.
    [    0.574681] RPC: Registered tcp transport module.
    [    0.574687] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.575672] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
    [    0.584725] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.585360] NFS: Registering the id_resolver key type
    [    0.585388] Key type id_resolver registered
    [    0.585396] Key type id_legacy registered
    [    0.585462] ntfs: driver 2.1.32 [Flags: R/O].
    [    0.586862] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
    [    0.586882] io scheduler noop registered
    [    0.586893] io scheduler deadline registered
    [    0.586924] io scheduler cfq registered (default)
    [    0.589308] vsys_5v0: supplied by vsys_12v0
    [    0.589354] ldo3: supplied by vsys_5v0
    [    0.593000] pinctrl-single 4a003400.pinmux: 282 pins at pa fc003400 size 1128
    [    0.596306] PCI host bridge /ocp/axi@0/pcie_rc@51000000 ranges:
    [    0.596318]   No bus range found for /ocp/axi@0/pcie_rc@51000000, using [bus 00-ff]
    [    0.596351]    IO 0x20003000..0x20012fff -> 0x00000000
    [    0.596373]   MEM 0x20013000..0x2fffffff -> 0x20013000
    [    0.626103] dra7-pcie 51000000.pcie_rc: link is not up
    [    0.626268] dra7-pcie 51000000.pcie_rc: PCI host bridge to bus 0000:00
    [    0.626282] pci_bus 0000:00: root bus resource [bus 00-ff]
    [    0.626292] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
    [    0.626302] pci_bus 0000:00: root bus resource [mem 0x20013000-0x2fffffff]
    [    0.626709] PCI: bus0: Fast back to back transfers disabled
    [    0.626832] PCI: bus1: Fast back to back transfers enabled
    [    0.626913] pci 0000:00:00.0: BAR 0: assigned [mem 0x20100000-0x201fffff]
    [    0.626928] pci 0000:00:00.0: BAR 1: assigned [mem 0x20020000-0x2002ffff]
    [    0.626941] pci 0000:00:00.0: PCI bridge to [bus 01]
    [    0.627160] pcieport 0000:00:00.0: Signaling PME through PCIe PME interrupt
    [    0.687228] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
    [    0.690587] console [ttyS0] disabled
    [    0.690640] 4806a000.serial: ttyS0 at MMIO 0x4806a000 (irq = 301, base_baud = 3000000) is a 8250
    [    1.719112] console [ttyS0] enabled
    [    1.723520] 4806c000.serial: ttyS1 at MMIO 0x4806c000 (irq = 302, base_baud = 3000000) is a 8250
    [    1.733207] 48020000.serial: ttyS2 at MMIO 0x48020000 (irq = 303, base_baud = 3000000) is a 8250
    [    1.742858] 4ae2b000.serial: ttyS9 at MMIO 0x4ae2b000 (irq = 304, base_baud = 3000000) is a 8250
    [    1.752909] [drm] Initialized drm 1.1.0 20060810
    [    1.758452] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [    1.765137] [drm] No driver support for vblank timestamp query.
    [    1.771263] [drm] Initialized vdrm 1.0.0 20110917 on minor 0
    [    1.784307] loop: module loaded
    [    1.790136] vmemexp device MAJOR num = 245
    [    1.794282] vmemexp class registered
    [    1.797993] /dev/vmemexp device registered
    [    1.802107] ioctl DBUFIOC_EXPORT_VIRTMEM = -1072899120
    [    1.810390] m25p80 spi32766.0: unrecognized JEDEC id bytes: 00,  0,  0
    [    1.818086] libphy: Fixed MDIO Bus: probed
    [    1.873269] davinci_mdio 48485000.mdio: davinci mdio revision 1.6
    [    1.879391] libphy: 48485000.mdio: probed
    [    1.886433] davinci_mdio 48485000.mdio: phy[1]: device 48485000.mdio:01, driver RTL9000A Gigabit Ethernet
    [    1.896686] cpsw 48484000.ethernet: Detected MACID = f8:36:9b:97:4f:e8
    [    1.903347] cpsw 48484000.ethernet: cpts: overflow check period 800
    [    1.910300] cpsw 48484000.ethernet: cpsw: Detected MACID = f8:36:9b:97:4f:e9
    [    1.918915] mousedev: PS/2 mouse device common for all mice
    [    1.925151] i2c /dev entries driver
    [    1.933861] omap_hsmmc 4809c000.mmc: Got CD GPIO
    [    1.938690] omap_hsmmc 4809c000.mmc: no pinctrl state for sdr104 mode
    [    1.945175] omap_hsmmc 4809c000.mmc: no pinctrl state for ddr50 mode
    [    1.951557] omap_hsmmc 4809c000.mmc: no pinctrl state for sdr50 mode
    [    1.957956] omap_hsmmc 4809c000.mmc: no pinctrl state for sdr25 mode
    [    1.964351] omap_hsmmc 4809c000.mmc: no pinctrl state for sdr12 mode
    [    1.970980] vsys_3v3: supplied by vsys_12v0
    [    1.975249] vio_3v3: supplied by vsys_3v3
    [    1.979307] vio_3v3_sd: supplied by vio_3v3
    [    1.983832] ldo4: supplied by vsys_5v0
    [    2.033729] omap_hsmmc 480b4000.mmc: no pinctrl state for sdr25 mode
    [    2.040114] omap_hsmmc 480b4000.mmc: no pinctrl state for sdr12 mode
    [    2.063413] smps5: supplied by vsys_3v3
    [    2.067457] vio_1v8: supplied by smps5
    [    2.124084] ledtrig-cpu: registered to indicate activity on CPUs
    [    2.136668] hwspinlock_user gatemp: requested 20 hwspinlocks
    [    2.143635] aic_dvdd: supplied by vio_3v3
    [    2.148904] davinci-mcasp 48464000.mcasp: DAI is shared
    [    2.155030] davinci-mcasp 48474000.mcasp: DAI is shared
    [    2.161508] NET: Registered protocol family 10
    [    2.176853] sit: IPv6 over IPv4 tunneling driver
    [    2.182032] NET: Registered protocol family 17
    [    2.186750] Key type dns_resolver registered
    [    2.191147] omap_voltage_late_init: Voltage driver support not added
    [    2.198035] Adding alias for supply vdd,cpu0 -> vdd,4a003b20.oppdm
    [    2.204256] Adding alias for supply vbb,cpu0 -> vbb,4a003b20.oppdm
    [    2.210537] buck10: supplied by vsys_3v3
    [    2.215106] Adding alias for supply vdd,cpu0 -> vdd,4a003b20.oppdm
    [    2.221314] Adding alias for supply vbb,cpu0 -> vbb,4a003b20.oppdm
    [    2.229445] Power Management for TI OMAP4+ devices.
    [    2.234501] Registering SWP/SWPB emulation handler
    [    2.240100] dmm 4e000000.dmm: workaround for errata i878 in use
    [    2.247140] dmm 4e000000.dmm: initialized all PAT entries
    [    2.253133] [drm] Initialized omapdrm 1.0.0 20110917 on minor 1
    [    2.270324] asoc-simple-card sound0: tlv320aic3x-hifi <-> 48468000.mcasp mapping ok
    [    2.279664] hctosys: unable to open rtc device (rtc0)
    [    2.291676] aic_dvdd: disabling
    [    2.295027] ALSA device list:
    [    2.298003]   #0: DRA7xx-EVM
    [    2.298786] mmc0: host does not support reading read-only switch, assuming write-enable
    [    2.298842] mmc0: new SDHC card at address 0001
    [    2.309172] mmcblk0: mmc0:0001 SD8GB 7.28 GiB 
    [    2.314469]  mmcblk0: p1 p2
    [    2.322235] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
    [    2.330966] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
    [    2.356920] mmc1: MAN_BKOPS_EN bit is not set
    [    2.369930] mmc1: new HS200 MMC card at address 0001
    [    2.375211] mmcblk1: mmc1:0001 DG4008 7.28 GiB 
    [    2.379868] mmcblk1boot0: mmc1:0001 DG4008 partition 1 4.00 MiB
    [    2.385941] mmcblk1boot1: mmc1:0001 DG4008 partition 2 4.00 MiB
    [    2.740269] EXT4-fs (mmcblk0p2): recovery complete
    [    2.748229] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [    2.756401] VFS: Mounted root (ext4 filesystem) on device 179:2.
    [    2.766390] devtmpfs: mounted
    [    2.769552] Freeing unused kernel memory: 332K
    [    2.774028] This architecture does not have kernel memory protection.
    [    3.137322] systemd[1]: System time before build time, advancing clock.
    [    3.198607] random: systemd: uninitialized urandom read (16 bytes read, 17 bits of entropy available)
    [    3.211988] random: systemd: uninitialized urandom read (16 bytes read, 17 bits of entropy available)
    CCOMP +BLKID -ELFUTILS +KMOD -IDN)
    [    3.246898] systemd[1]: Detected architecture arm.
    
    Welcome to Arago 2016.12!
    
    [    3.274725] systemd[1]: Set hostname to <dra7xx-evm>.
    [    3.344354] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read, 18 bits of entropy available)
    [    3.384595] random: systemd-gpt-aut: uninitialized urandom read (16 bytes read, 19 bits of entropy available)
    [    3.391898] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read, 19 bits of entropy available)
    [    3.398369] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read, 19 bits of entropy available)
    [    3.414756] random: systemd-gpt-aut: uninitialized urandom read (16 bytes read, 20 bits of entropy available)
    [    3.546233] random: systemd: uninitialized urandom read (16 bytes read, 22 bits of entropy available)
    [    3.555733] random: systemd: uninitialized urandom read (16 bytes read, 22 bits of entropy available)
    [    3.565755] random: systemd: uninitialized urandom read (16 bytes read, 22 bits of entropy available)
    [    4.040714] systemd[1]: basic.target: Found ordering cycle on basic.target/start
    [    4.048227] systemd[1]: basic.target: Found dependency on sysinit.target/start
    [    4.055521] systemd[1]: basic.target: Found dependency on alignment.service/start
    [    4.063042] systemd[1]: basic.target: Found dependency on basic.target/start
    [    4.070182] systemd[1]: basic.target: Breaking ordering cycle by deleting job alignment.service/start
    [    4.079462] systemd[1]: alignment.service: Job alignment.service/start deleted to break ordering cycle starting with basic.target/start
    [ SKIP ] Ordering cycle found, skipping alignment.service
    [    4.115487] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [  OK  ] Started Forward Password Requests to Wall Directory Watch.
    [    4.143582] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Started Dispatch Password Requests to Console Directory Watch.
    [    4.173523] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
    [  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
    [    4.203641] systemd[1]: Listening on Network Service Netlink Socket.
    [  OK  ] Listening on Network Service Netlink Socket.
    [    4.233499] systemd[1]: Listening on Journal Socket (/dev/log).
    [  OK  ] Listening on Journal Socket (/dev/log).
    [    4.280029] systemd[1]: Listening on Journal Socket.
    [  OK  ] Listening on Journal Socket.
    [    4.306479] systemd[1]: Created slice User and Session Slice.
    [  OK  ] Created slice User and Session Slice.
    [    4.333471] systemd[1]: Listening on Syslog Socket.
    [  OK  ] Listening on Syslog Socket.
    [    4.353425] systemd[1]: Reached target Swap.
    [  OK  ] Reached target Swap.
    [    4.373999] systemd[1]: Created slice System Slice.
    [  OK  ] Created slice System Slice.
    [    4.433577] systemd[1]: Starting Create list of required static device nodes for the current kernel...
             Starting Create list of required st... nodes for the current kernel...
    [    4.465612] systemd[1]: Mounting POSIX Message Queue File System...
             Mounting POSIX Message Queue File System...
    [    4.480504] systemd[1]: Created slice system-serial\x2dgetty.slice.
    [  OK  ] Created slice system-serial\x2dgetty.slice.
    [    4.533586] systemd[1]: Starting Journal Service...
             Starting Journal Service...
    [    4.561123] systemd[1]: Mounting Temporary Directory...
             Mounting Temporary Directory...
    [    4.594225] systemd[1]: Created slice system-getty.slice.
    [  OK  ] Created slice system-getty.slice.
    [    4.653437] systemd[1]: Mounting Debug File System...
             Mounting Debug File System...
    [    4.673548] systemd[1]: Listening on udev Control Socket.
    [  OK  ] Listening on udev Control Socket.
    [    4.693526] systemd[1]: Reached target Slices.
    [  OK  ] Reached target Slices.
    [    4.715550] systemd[1]: Starting Setup Virtual Console...
             Starting Setup Virtual Console...
    [    4.743680] systemd[1]: Reached target Remote File Systems.
    [  OK  ] Reached target Remote File Systems.
    [    4.793614] systemd[1]: Starting Load Kernel Modules...
             Starting Load Kernel Modules...
    [    4.825605] systemd[1]: Starting Remount Root and Kernel File Systems...
             Starting Remount Root and Kernel File Systems...
    [    4.844106] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
    [    4.853612] systemd[1]: Listening on udev Kernel Socket.
    [  OK  ] Listening on udev Kernel Socket.
    [    4.873695] systemd[1]: Reached target Paths.
    [  OK  ] Reached target Paths.
    [    4.928245] systemd[1]: Mounted Debug File System.
    [  OK  ] Mounted Debug File System.
    [    4.953556] systemd[1]: Mounted POSIX Message Queue File System.
    [  OK  ] Mounted POSIX Message Queue File System.
    [    4.983471] systemd[1]: Mounted Temporary Directory.
    [  OK  ] Mounted Temporary Directory.
    [    5.003679] systemd[1]: Started Journal Service.
    [  OK  ] Started Journal Service.
    [  OK  ] Started Create list of required sta...ce nodes for the current kernel.
    [  OK  ] Started Setup Virtual Console.
    [FAILED] Failed to start Load Kernel Modules.
    See 'systemctl status systemd-modules-load.service' for details.
    [  OK  ] Started Remount Root and Kernel File Systems.
             Starting udev Coldplug all Devices...
             Starting Apply Kernel Variables...
             Starting Create Static Device Nodes in /dev...
             Starting Flush Journal to Persistent Storage...
    [  OK  ] Started Apply Kernel Variables.
    [    5.599567] systemd-journald[115]: Received request to flush runtime journal from PID 1
    [  OK  ] Started Flush Journal to Persistent Storage.
    [  OK  ] Started Create Static Device Nodes in /dev.
             Starting udev Kernel Device Manager...
    [  OK  ] Reached target Local File Systems (Pre).
             Mounting /media/ram...
             Mounting /var/volatile...
    [  OK  ] Mounted /var/volatile.
    [  OK  ] Mounted /media/ram.
    [  OK  ] Started udev Kernel Device Manager.
    [  OK  ] Started udev Coldplug all Devices.
    [    6.086209] omap-rproc 55020000.ipu: assigned reserved memory node ipu2_cma@98000000
    [  OK  ] Found device /dev/ttyS0.[    6.097119]  remoteproc0: 55020000.ipu is available
    
             Starting Load/Save Random Seed...[    6.132118]  remoteproc0: Note: remoteproc is still under development and considered experimental.
    
    [    6.150151]  remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [  OK  ] Reached target Local File Systems.
             Starting Create Volatile Files and Directories...
    [    6.198880] omap-rproc 40800000.dsp: assigned reserved memory node dsp1_cma@9A000000
    [  OK  ] Started Load/Save Random Seed.
    [    6.229163]  remoteproc1: 40800000.dsp is available
    [    6.245045]  remoteproc1: Note: remoteproc is still under development and considered experimental.
    [    6.259317]  remoteproc1: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [    6.272597] omap_rng 48090000.rng: OMAP Random Number Generator ver. 20
    [    6.292157] omap-des 480a5000.des: OMAP DES hw accel rev: 2.2
    [  OK  ] Started Create Volatile Files and Directories.
    [    6.378510]  remoteproc1: registered virtio0 (type 7)
             Starting Update UTMP about System Boot/Shutdown...
             Starting Network Time Synchronization...
    [    6.584657] omap-aes 4b500000.aes: OMAP AES hw accel rev: 3.3
    [    6.591883] omap-aes 4b700000.aes: OMAP AES hw accel rev: 3.3
    [    6.669560] omap-sham 4b101000.sham: hw accel on OMAP rev 4.3
    [  OK  ] Reached target Sound Card.
    [  OK  ] Started Network Time Synchronization.
             Starting Synchronize System and HW clocks...
    [  OK  ] Reached target System Time Synchronized.
    [  OK  ] Started Update UTMP about System Boot/Shutdown.
    [FAILED] Failed to start Synchronize System and HW clocks.
    See 'systemctl status sync-clocks.service' for details.
    [  OK  ] Reached target System Initialization.
    [  OK  ] Started Daily Cleanup of Temporary Directories.
    [  OK  ] Reached target Timers.
    [    9.076604]  remoteproc0: registered virtio1 (type 7)
    [    9.091348] SCSI subsystem initialized
    [    9.107855] [drm] Initialized pvr 1.14.3699939 20110701 on minor 2
    [  OK  ] Listening on D-Bus System Message Bus Socket.
    [  OK  ] Reached target Sockets.
    [  OK  ] Reached target Basic System.
             Starting Permit User Sessions...
             Starting Login Service...
    [  OK  ] Started Kernel Logging Service.
    [  OK  ] Started D-Bus System Message Bus.
    [    9.498387] ahci 4a140000.sata: SSS flag set, parallel bus scan disabled
    [    9.507623] ahci 4a140000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
    [    9.520178] ahci 4a140000.sata: flags: 64bit ncq sntf stag pm led clo only pmp pio slum part ccc apst 
    [    9.531137] scsi host0: ahci
    [    9.537260] ata1: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a1410ff] port 0x100 irq 342
             Starting rc.pvr.service...
             Starting Save/Restore Sound Card State...
             Starting Network Service...
    [    9.893296] ata1: SATA link down (SStatus 0 SControl 300)
    [    9.902150] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [  OK  ] Started System Logging Service.
    [  OK  ] Started Permit User Sessions.
    [  OK  ] Started Save/Restore Sound Card State.[    9.966617] PVR_K: UM DDK-(3699939) and KM DDK-(3699939) match. [ OK ]
    
    [    9.974814] net eth1: initializing cpsw version 1.15 (0)
    [    9.984840] net eth0: initialized cpsw ale version 1.4
    [    9.992690] net eth0: ALE Table size 1024
    [   10.002579] libphy: PHY 48485000.mdio:03 not found
    [  OK  ] Started Network Service.[   10.010660] net eth1: phy "48485000.mdio:03" not found on slave 1, err -19
    
    [   10.051120] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
    [   10.074196] net eth0: initializing cpsw version 1.15 (0)
    [   10.102595]  remoteproc1: powering up 40800000.dsp
    [   10.108260]  remoteproc1: Booting fw image dra7-dsp1-fw.xe66, size 619641
    [   10.123320] omap_hwmod: mmu0_dsp1: _wait_target_disable failed
    [   10.129204] omap-iommu 40d01000.mmu: 40d01000.mmu: version 3.0
    [   10.135139] omap-iommu 40d02000.mmu: 40d02000.mmu: version 3.0
    [   10.155438]  remoteproc1: remote processor 40800000.dsp is now up
    [   10.161862] virtio_rpmsg_bus virtio0: rpmsg host is online
    [   10.170115]  remoteproc0: powering up 55020000.ipu
    [   10.187059]  remoteproc0: Booting fw image dra7-ipu2-fw.xem4, size 7778556
    [   10.194063] omap-iommu 55082000.mmu: 55082000.mmu: version 2.1
    [  OK  ] Started rc.pvr.service.
    [   10.225050]  remoteproc0: remote processor 55020000.ipu is now up
    [   10.232698] virtio_rpmsg_bus virtio1: rpmsg host is online
    [   10.255220] net eth0: phy found : id is : 0x1ccb00
    [   10.265317] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [  OK  ] Started Login Service.
             Starting weston.service...
             Starting LSB: Dropbear Secure Shell server...
    [  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
    [  OK  ] Reached target Network.
             Starting Network Name Resolution...
    [  OK  ] Started Serial Getty on ttyS0.
    [  OK  ] Started Getty on tty1.
    [  OK  ] Started weston.service.
    [  OK  ] Started LSB: Dropbear Secure Shell server.
             Starting telnetd.service...
             Starting tiipclad-daemon.service...
    [  OK  ] Started telnetd.service.
    [  OK  ] Started Network Name Resolution.
    [   11.115961] usbcore: registered new interface driver usbfs
    [   11.121919] usbcore: registered new interface driver hub
    [   11.129051] usbcore: registered new device driver usb
    [  OK  ] Started tiipclad-daemon.service.
             Starting ecarxinit.service...
    [  OK  ] Started ecarxinit.service.[   11.287926] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
    
    [   11.296021] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 1
    [   11.306357] xhci-hcd xhci-hcd.2.auto: hcc params 0x0220f04c hci version 0x100 quirks 0x00210010
    [   11.316310] xhci-hcd xhci-hcd.2.auto: irq 462, io mem 0x488d0000
    [   11.323091] hub 1-0:1.0: USB hub found
    [   11.330243] hub 1-0:1.0: 1 port detected
    [   11.338012] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
    [   11.344913] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 2
    [   11.352678] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    [   11.361608] hub 2-0:1.0: USB hub found
    [   11.365519] hub 2-0:1.0: 1 port detected
    
     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            
    
    Arago Project http://arago-project.org dra7xx-evm ttyS0
    
    Arago 2016.12 dra7xx-evm ttyS0
    
    dra7xx-evm login: root
    root@dra7xx-evm:~# 
    root@dra7xx-evm:~# 
    root@dra7xx-evm:~# ls
    app_apa          apps.sh          decode_ipumm.sh  init-demo.sh     vision_pd_mod    vision_psld
    root@dra7xx-evm:~# 
    root@dra7xx-evm:~# cd /opt/vision_sdk/
    root@dra7xx-evm:/opt/vision_sdk# ls
    FragShader.fsh                bin                           enableIpu2CCSConectivity.sh   models                        vision_sdk_load.sh
    FragShader3Dsfm.fsh           car.pod                       gpufifo                       opencl_env.sh                 vision_sdk_ov490_pinmux.sh
    VertShader.vsh                car.rgb                       hdmiReceiverConfig.sh         ov106x3Config.sh              vision_sdk_unload.sh
    VertShader3Dsfm.vsh           car.yuv                       jeep2.bmp                     pvrscope
    VipClockInversion.sh          cmemk.ko                      load_ocl_kos.sh               setupUltrasonicPinMux.sh
    apps.out                      disableDssInterruptsOnA15.sh  memcache_load.sh              tda2exEnableAVB.sh
    avm_qt_app_res                enableImx290.sh               memcache_unload.sh            ub964Init.sh
    root@dra7xx-evm:/opt/vision_sdk# source vision_sdk_load.sh 
    [   28.055722] DMA: Module install successful, device major num = 242 
    [   28.062186] DRV: Module install successful
    insmod: ERROR: could not load module ./bin/cmemk.ko: No such file or directory
    Error: I2C Read failed
    Error: I2C Read failed
    Error: I2C Read failed
    ./disableDssInterruptsOnA15.sh: line 11: COMMANDS: command not found
    ./disableDssInterruptsOnA15.sh: line 12: COMMANDS: command not found
    ./disableDssInterruptsOnA15.sh: line 13: COMMANDS: command not found
    ./disableDssInterruptsOnA15.sh: line 14: COMMANDS: command not found
    ./disableDssInterruptsOnA15.sh: line 15: COMMANDS: command not found
    ./disableDssInterruptsOnA15.sh: line 16: COMMANDS: command not found
    ./disableDssInterruptsOnA15.sh: line 17: COMMANDS: command not found
    ./disableDssInterruptsOnA15.sh: line 18: COMMANDS: command not found
    ./disableDssInterruptsOnA15.sh: line 19: COMMANDS: command not found
    updated  value is 
    
    
    COMMANDS
    
    	### WARNING ###: use the following [read | write | set bit | clear bit | dump] commands at your own risk!
    	No address check done, may generate:
    	  - bus error (invalid or not accessible <physical address>,
    	  - platform crash/hang (bad <value>).
    
    	    Read any OMAP memory address (register), given its <physical address> or <name> as listed in TRM.
    
    	    Write <value> at any OMAP memory address (register), given its <physical address> or <name> as listed in TRM.
    
    	    Set bit at <position> into any OMAP memory address (register), given its <physical address> or <name> as listed in TRM.
    
    	    Clear bit at <position> into any OMAP memory address (register), given its <physical address> or <name> as listed in TRM.
    
    	    Dump a range of OMAP memory addresses, from <start address> to <end address>.
    	    Note all addresses within given range must be valid and accessible.
    
    	### WARNING ###: use the following I2C [read | write] commands at your own risk!
    	No address check done, may generate:
    	  - I2C bus error (invalid or not accessible <physical address>,
    	  - platform crash/hang (bad <value>).
    
    	    Read I2C register at address <addr> from I2C chip at <chip-addr> on I2C <bus>.
    
    	    Write <value> in I2C register at address <addr> from I2C chip at <chip-addr> on I2C <bus>.
    root@dra7xx-evm:/opt/vision_sdk# 
    root@dra7xx-evm:/opt/vision_sdk# 
    root@dra7xx-evm:/opt/vision_sdk# ./apps.out 4
     [HOST]  OSA: MEM: 0: Mapped 0x9fc00000 to 0xb5e35000 of size 0x00100000 
     [HOST]  OSA: MEM: 1: Mapped 0x86203000 to 0xa9135000 of size 0x0cd00000 
     [HOST]  OSA: MEM: 2: Mapped 0x9fd00000 to 0xa9075000 of size 0x00040000 
     [HOST]  OSA: MEM: 3: Mapped 0x9fdc0000 to 0xa90b5000 of size 0x00080000 
     [HOST]  OSA: MEM: 4: Mapped 0x00000000 to 0x00000000 of size 0x00000000 
     [HOST]  OSA: HOST Remote Log Shared Memory @ 0x9fd4f140
     [HOST]  OSA: DSP1 Remote Log Shared Memory @ 0x9fd769e0
     [HOST]  OSA: EVE1 Remote Log Shared Memory @ 0x9fdc5b20
     [HOST]  OSA: IPU2 Remote Log Shared Memory @ 0x9fe63da0
     [HOST] [HOST  ]     39.452815 s:  SYSTEM: System A15 Init in progress !!!
     [HOST] [HOST  ]     39.452906 s:  OSA_mutexCreate returned with Status = 0
     [HOST] [HOST  ]     39.452937 s:  OSA_mbxCreate returned with Status = 0
     [HOST] [DSP1  ]     17.607606 s:  ***** DSP1 Firmware build time 03:29:59 Mar 18 2019
     [HOST] [DSP1  ]     17.607667 s:  *** SYSTEM: CPU Frequency <ORG = 600000000 Hz>, <NEW = 850000000 Hz>
     [HOST] [DSP1  ]     17.607850 s:  SYSTEM: System Common Init in progress !!!
     [HOST] [DSP1  ]     17.608003 s:  UTILS: CIO: Init Done !!!
     [HOST] [DSP1  ]     17.608033 s:  SYSTEM: IPC init in progress !!!
     [HOST] [DSP1  ]     17.608033 s:  SYSTEM: Attaching to [IPU2] ... 
     [HOST] [DSP1  ]     17.734002 s:  SYSTEM: Attaching to [IPU2] ... SUCCESS !!!
     [HOST] [DSP1  ]     18.607850 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [DSP1  ]     19.607881 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [DSP1  ]     20.607911 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [DSP1  ]     21.607942 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [DSP1  ]     22.607972 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [DSP1  ]     23.608003 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [DSP1  ]     24.608033 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [DSP1  ]     25.608064 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [DSP1  ]     26.608094 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [DSP1  ]     27.608094 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [DSP1  ]     28.608125 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [DSP1  ]     29.608155 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [DSP1  ]     30.608186 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [DSP1  ]     31.608216 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [DSP1  ]     32.608247 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [DSP1  ]     33.608277 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [DSP1  ]     34.608308 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [DSP1  ]     35.608338 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [DSP1  ]     36.608338 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [DSP1  ]     37.608369 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [DSP1  ]     38.608399 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [IPU2  ]     17.711431 s: 
     [HOST] [IPU2  ] WARNING: Device Id Does not Match
     [HOST] [IPU2  ]     17.718751 s: 
     [HOST] [IPU2  ]  EVE1 Image Load Completed 
     [HOST] [IPU2  ]     17.718873 s: 
     [HOST] [IPU2  ]  EVE MMU configuration completed 
     [HOST] [IPU2  ]     17.719026 s:  *** SYSTEM: CPU Frequency <ORG = 212800000 Hz>, <NEW = 212800000 Hz>
     [HOST] [IPU2  ]     17.721923 s:  SYSTEM: System Common Init in progress !!!
     [HOST] [IPU2  ]     17.731501 s:  UTILS: CIO: Init Done !!!
     [HOST] [IPU2  ]     17.731592 s:  SYSTEM: IPC init in progress !!!
     [HOST] [IPU2  ]     17.731684 s:  SYSTEM: Attaching to [DSP1] ... 
     [HOST] [IPU2  ]     17.734002 s:  SYSTEM: Attaching to [DSP1] ... SUCCESS !!!
     [HOST] [IPU2  ]     18.732324 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [IPU2  ]     19.732324 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [IPU2  ]     20.732355 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [IPU2  ]     21.732385 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [IPU2  ]     22.732416 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [IPU2  ]     23.732446 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [IPU2  ]     24.732477 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [IPU2  ]     25.732507 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [IPU2  ]     26.732538 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [IPU2  ]     27.732568 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [IPU2  ]     28.732568 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [IPU2  ]     29.732599 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [IPU2  ]     30.732629 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [IPU2  ]     31.732660 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [IPU2  ]     32.732690 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [IPU2  ]     33.732721 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [IPU2  ]     34.732751 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [IPU2  ]     35.732782 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [IPU2  ]     36.732812 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [IPU2  ]     37.732812 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [IPU2  ]     38.732843 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [IPU2  ]     39.732873 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [DSP1  ]     39.608430 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [DSP1  ]     40.608460 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [IPU2  ]     40.732904 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [DSP1  ]     41.608491 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [IPU2  ]     41.732934 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [DSP1  ]     42.608521 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [IPU2  ]     42.732965 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [DSP1  ]     43.608552 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [IPU2  ]     43.732995 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [DSP1  ]     44.608552 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [IPU2  ]     44.733026 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [DSP1  ]     45.608582 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [IPU2  ]     45.733026 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [DSP1  ]     46.608613 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [IPU2  ]     46.733056 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [DSP1  ]     47.608643 s:  SYSTEM: Attaching to [EVE1] ... 
     [HOST] [IPU2  ]     47.733087 s:  SYSTEM: Attaching to [EVE1] ... 
    
    [END] 2019/3/18 19:26:55
    

  • Hi Shravan,
    In your patches, about EVE, the total size of vecs+code+data are over the size reserved in the dts. I don't understand why? Are you sure it is right?

    Thanks
    Terence
    ========================.xs in your patches================================
    EVE1_VECS_SIZE = 0.5*MB;
    EVE1_CODE_SIZE = 2*MB;
    EVE1_DATA_SIZE = 10.5*MB;
    EVE2_VECS_SIZE = 0.5*MB;
    EVE2_CODE_SIZE = 0.5*MB;
    EVE2_DATA_SIZE = 0.5*MB;
    EVE3_VECS_SIZE = 0.5*MB;
    EVE3_CODE_SIZE = 0.5*MB;
    EVE3_DATA_SIZE = 0.5*MB;
    EVE4_VECS_SIZE = 0.5*MB;
    EVE4_CODE_SIZE = 0.5*MB;
    EVE4_DATA_SIZE = 0.5*MB;

    =======================.dts in your patches=================================
    vsdk_eve_mem: vsdk_eve_mem@84000000 {
    compatible = "shared-dma-pool";
    reg = <0x0 0x84000000 0x0 0x1000000>;
    status = "okay";
    };
  • Hi Shravan,
    Is there any way to resolve this issue? It is still not work on TDA2PX board.

    Thanks a lot

    Terence
  • Hi Terence,

    Can you share the following files from Vision-SDK:

    1. apps/build/tda2px/mem_segment_definition_linux.xs
    2. apps/configs/tda2px_evm_linux_all/cfg.mk
    3. links_fw/include/links_api/system_vring_config.h
    4. links_fw/src/hlos/osa/include/osa_mem_map.h
    5. links_fw/src/rtos/bios_app_common/tda2px/ipu2/gen_system_mem_map.xs
    6. links_fw/src/rtos/links_common/system/system_rsc_table_ipu.h
    7. links_fw/src/rtos/links_ipu/system/system_bsp_init.c

    Can you also share dra76-evm-infoadas.dts used. I will rebuild with your config and test it on my EVM.

    Regards
    Shravan
  • Hi Shravan,

    Please find files in  the attachment.

    Thanks a lot

    Terence

    TDA2PX-Linux-512MB-patch-with-EVE1-and-DSPs.zip

  • Hi Shravan,
    According to local TI employee's suggestion, we change the PROFILE ?= release to PROFILE ?= debug in the cfg.mk. It is normal now for attaching EVE, after cold reboot. We try it 10 times.

    Do you know why?

    Thanks a lot
    terence
  • Hi Terence,

    I tried the changes you suggested, however, it fails at kernel load.
    Can you please provide the uenv.txt file used?

    Regards
    Shravan
  • Hi Shravan,

    Please find the uenv.txt file in the attachment.

    Thanks

    Terence

    fdtfile=dra76-evm-infoadas.dtb
    args_mmc=part uuid mmc 0:2 uuid; setenv bootargs "console=ttyS9,115200n8 vram=16M root=PARTUUID=${uuid} rw rootwait ip=none mem=512M"
    

  • Hi Terence,

    Based on your config I would recommend a couple of debug steps:

    1. Modification of memory map config:

        a) Can you increase the retain the code and data-size provided for the EVEs? Let the EVE_1_CODE_SIZE = 2MB and the EVE1_DATA_SIZE=13.5MB and similarly EVE2_CODE_SIZE=2MB and EVE2_DATA_SIZE=13.5MB. Make the corresponding changes to the Linux DTB too. 

        b) Can you decrease the SR-1 size to 160MB? This will provide you the space you need for increasing the EVE size. 

    2. Can you add a slight delay before the loading of the EVE firmware:

    diff --git a/links_fw/src/rtos/utils_common/src/utils_eveloader.c b/links_fw/src/rtos/utils_common/src/utils_eve
    loader.c
    index 0a97fa6..83fe882 100644
    --- a/links_fw/src/rtos/utils_common/src/utils_eveloader.c
    +++ b/links_fw/src/rtos/utils_common/src/utils_eveloader.c
    @@ -135,6 +135,7 @@ void Utils_eveLoaderPrintFxn(const char *message)
    */
    Int32 Utils_eveBoot(void)
    {
    + BspOsal_sleep(100 * 1000); // sleep for 100ms before EVE load
    Int32 retVal = SYSTEM_LINK_STATUS_SOK;
    UInt32 sblBuildMode = SBLLIB_SBL_BUILD_MODE_PROD;
    UInt32 oppId = SBLLIB_PRCM_DPLL_OPP_NOM;

    For all of the above changes, please build with the release config.

    Regards

    Shravan

  • Hi Shravan,
    Thanks. Understood.
    For memory map config you said, we've already started using it, "Let the EVE_1_CODE_SIZE = 2MB and the EVE1_DATA_SIZE=13.5MB and similarly EVE2_CODE_SIZE=2MB and EVE2_DATA_SIZE=13.5MB." The config for TDA2PX I gave you is changed from your TDA2XX config. So, we just need to add the 100ms sleep before EVE load, but it will occur the assertion failure, and can not continue to run.

    below is the fail log,

    ======================================================================
    root@dra7xx-evm:/opt/vision_sdk# ./apps.out 4
    [HOST] OSA: MEM: 0: Mapped 0x9f100000 to 0xb5dde000 of size 0x00100000
    [HOST] OSA: MEM: 1: Mapped 0x86203000 to 0xac2de000 of size 0x09b00000
    [HOST] OSA: MEM: 2: Mapped 0x9f200000 to 0xac21e000 of size 0x00040000
    [HOST] OSA: MEM: 3: Mapped 0x9f2c0000 to 0xac25e000 of size 0x00080000
    [HOST] OSA: MEM: 4: Mapped 0x00000000 to 0x00000000 of size 0x00000000
    [HOST] OSA: IPU1-0 Remote Log Shared Memory @ 0x9f200000
    [HOST] OSA: HOST Remote Log Shared Memory @ 0x9f24f140
    [HOST] OSA: EVE1 Remote Log Shared Memory @ 0x9f2c5b20
    [HOST] OSA: EVE2 Remote Log Shared Memory @ 0x9f2ed3c0
    [HOST] OSA: IPU2 Remote Log Shared Memory @ 0x9f363da0
    [HOST] [IPU1-0] 17.976788 s: ***** IPU1_0 Firmware build time 10:01:16 Apr 2 2019
    [HOST] [IPU1-0] 17.976971 s: *** SYSTEM: CPU Frequency <ORG = 212800000 Hz>, <NEW = 212800000 Hz>
    [HOST] [IPU1-0] 17.979564 s: SYSTEM: System Common Init in progress !!!
    [HOST] [IPU1-0] 17.980601 s: UTILS: CIO: Init Done !!!
    [HOST] [IPU1-0] 17.980692 s: SYSTEM: IPC init in progress !!!
    [HOST] [IPU1-0] 17.980753 s: SYSTEM: Attaching to [IPU2] ...
    [HOST] [IPU1-0] 18.083877 s: ***** tda2px IPU2 Firmware build time 10:01:19 Apr 2 2019
    [HOST] [HOST ] 48.605014 s: SYSTEM: System A15 Init in progress !!!
    [HOST] [HOST ] 48.605105 s: OSA_mutexCreate returned with Status = 0
    [HOST] [HOST ] 48.605136 s: OSA_mbxCreate returned with Status = 0
    [HOST] [IPU2 ] 18.112609 s:
    [HOST] [IPU2 ] 18.112670 s: ### XDC ASSERT - ERROR CALLBACK START ###
    [HOST] [IPU2 ] 18.112761 s:
    [HOST] [IPU2 ] 18.112883 s: assertion failure: A_sleepTaskDisabled: Cannot call Task_sleep() while the Task scheduler is disabled.
    [HOST] [IPU2 ] 18.112975 s:
    [HOST] [IPU2 ] 18.113005 s: ### XDC ASSERT - ERROR CALLBACK END ###
    [HOST] [IPU2 ] 18.113097 s:
  • Hi Shravan,
    Is there any suggestion for this issue?

    Thanks a lot

    Terence
  • Hi Terence,

    I notice that the SBL code which loads the EVE is present at 0x98000000. I also notice that the DSP-1 start address is 0x98000000. Can you disable DSP-1 from your build and let us know if it works. If you need DSP-1 can you move the start address of DSP-1 to some other address other than 0x98000000 and give it a try. Please note you need changes both on VSDK and on kernel.

    Regards
    Shravan
  • Hi Shravan
    I don't understand your word " the SBL code which loads the EVE is present at 0x98000000 ", I know the ipu2 load the eve, does the SBL code is IPU2 code? Where did you notice it?

    Thanks a lot
    Terence
  • Hi Terence,

    The SBL libraries which is compiled as part of the IPU image is loaded at the address 0x98000000.
    This address is defined in SBL_LIB_APP_IMAGE_DDR_ADDRESS in pdk/packages/ti/boot/sbl_auto/sbl_lib/src/tda2xx/sbl_lib_config_tda2xx.h

    Can you ensure the address 0x98000000 - 0x99000000 is reserved with no firmware being loaded?

    Regards
    Shravan
  • Hi Shravan,

    According to your suggestion,  it will still occur this issue, even if not use  the address 0x98000000 - 0x99000000  to load firmware. Please find the log in the attachment.

    Thanks a lot

    Terence

    attach_eve_fail.log

  • Hi Terence,

    Can you please share the memory map changes made (in both VSDK and kernel) for moving the address.

    Regards
    Shravan
  • Hi Shravan,

    Please find the memory map we used in the attachment. I changed the IPU2 address from 0x98000000 to 0x96000000. I modified four files, include mem_segment_definition_linux.xs, system_vring_config.h, dra76-evm-infoadas.dts, and  dra76-evm.dts.  Below is the patch for moving the address.

    --------------------------- mem_segment_definition_linux.xs--------------------------

    -IPU2_START_ADDR = 0x98000000; 
    +IPU2_START_ADDR = 0x96000000; 

    --------------------------system_vring_config.h-------------------------------------------

    #ifdef BUILD_M4_2
    -#define IPU_PHYS_MEM_IPC_VRING 0x98000000
    +#define IPU_PHYS_MEM_IPC_VRING 0x96000000
    #endif

    ----------------------dra76-evm-infoadas.dts----------------------------------------------

    &ipu2_cma_pool {
    - reg = <0x0 0x98000000 0x0 0x2000000>;
    + reg = <0x0 0x96000000 0x0 0x2000000>;
    };

    --------------------dra76-evm.dts----------------------------------------------------------------

    - ipu2_cma_pool: ipu2_cma@98000000 {
    + ipu2_cma_pool: ipu2_cma@96000000 {
    compatible = "shared-dma-pool";
    - reg = <0x0 0x98000000 0x0 0x2000000>;
    + reg = <0x0 0x96000000 0x0 0x2000000>;
    reusable;
    status = "okay";
    };

    -------------------------------------------------------------------------------------------------------

    Terence

  • Hi Terence,

    My guess is this is an issue with the timing that EVE-2 firmware is loaded. Can you revert to the older memory map configuration and add the below snippet of code? I wan't to introduce some delay before loading EVE-2.

    diff --git a/links_fw/src/rtos/utils_common/src/utils_eveloader.c b/links_fw/src/rtos/utils_common/src/utils_eveloader.c
    index 0a97fa6..fbcde98 100644
    --- a/links_fw/src/rtos/utils_common/src/utils_eveloader.c
    +++ b/links_fw/src/rtos/utils_common/src/utils_eveloader.c
    @@ -142,7 +142,7 @@ Int32 Utils_eveBoot(void)
    pmhalPrcmDpllConfig_t *dpllParams;
    pmhalPrcmSysClkVal_t sysClkFreq = PMHALCMGetSysClockFreqEnum();
    sbllibInitParams_t sblInitPrms;
    -
    + volatile uint32_t counter =0;
    /* Default initialization of SBL Lib Params */
    SBLLibInitParamsInit(&sblInitPrms);

    @@ -181,6 +181,10 @@ Int32 Utils_eveBoot(void)
    SBLLibEVE1BringUp(gUtilsEntryPoints.entryPoint[SBLLIB_CORE_ID_EVE1],
    sblBuildMode);
    #endif
    + while(counter < 100000000) // introduce a delay of about 500ms before loading EVE-2
    + counter++;
    + if(counter > 100000000)
    + Vps_printf("Counter complete");
    #ifdef PROC_EVE2_INCLUDE
    SBLLibEVE2BringUp(gUtilsEntryPoints.entryPoint[SBLLIB_CORE_ID_EVE2],
    sblBuildMode);


    Regards
    Shravan

    EDIT: Please add a delay even before loading the EVE image, updated patch below (reduce delay to ~700ms instead of 7s -- 100000000 takes 7s).

    --- a/links_fw/src/rtos/utils_common/src/utils_eveloader.c
    +++ b/links_fw/src/rtos/utils_common/src/utils_eveloader.c
    @@ -142,7 +142,7 @@ Int32 Utils_eveBoot(void)
    pmhalPrcmDpllConfig_t *dpllParams;
    pmhalPrcmSysClkVal_t sysClkFreq = PMHALCMGetSysClockFreqEnum();
    sbllibInitParams_t sblInitPrms;
    -
    + volatile uint32_t counter =0;
    /* Default initialization of SBL Lib Params */
    SBLLibInitParamsInit(&sblInitPrms);

    @@ -174,13 +174,21 @@ Int32 Utils_eveBoot(void)
    appImgParams.appImgRPRCHeader = &gUtilsAppRPRCHeader;
    appImgParams.entryPoints = &gUtilsEntryPoints;
    appImgParams.skipDDRCopy = 1U;
    -
    + while(counter < 1000000) // introduce a delay of about 500ms before loading EVE-2
    + counter++;
    + if(counter > 10000000)
    + Vps_printf("Counter complete");
    + counter=0;
    Utils_loadAppImage(&appImgParams);
    + while(counter < 1000000) // introduce a delay of about 500ms before loading EVE-2
    + counter++;
    + if(counter > 10000000)
    + Vps_printf("Counter complete");
    + counter=0;


    #ifdef PROC_EVE1_INCLUDE
    SBLLibEVE1BringUp(gUtilsEntryPoints.entryPoint[SBLLIB_CORE_ID_EVE1],
    sblBuildMode);
    #endif
    + while(counter < 1000000) // introduce a delay of about 500ms before loading EVE-2
    + counter++;
    + if(counter > 10000000)
    + Vps_printf("Counter complete");

  • Hi Shravan,
    According to your suggestion, to introduce a delay, this issue still remains.
    On the other hand, in your code, it will never printf "Counter complete". Are you sure the counter need to add 1000000, or 10000000? which will be equal with 700ms,?I guess 10000000, but it still not work.

    Thanks
    Terence
  • Hi Shravan,
    If I modified PROFILE ?= debug in the cfg.mk, it will be normal, I said this before. But, I don't know why?

    Thanks
    Terence
  • Hi Terence,

    The issue has been identified to be a problem in setting up the EVE-MMU configuration. Can you add the below delay:

     

    --- a/links_fw/src/rtos/bios_app_common/tda2px/eve2/src/tlb_config_eve2.c

    +++ b/links_fw/src/rtos/bios_app_common/tda2px/eve2/src/tlb_config_eve2.c

    @@ -96,7 +96,11 @@ void eve2MmuConfig(void);

      */

    void eve2MmuConfig(void)

    {

    -    eveCommonMmuConfig(SOC_EVE_MMU0_BASE);

    +    volatile uint32_t debugWait=0;

    +    while(debugWait < 10000000)

    +    debugWait++;

    +    if(debugWait)

    +        eveCommonMmuConfig(SOC_EVE_MMU0_BASE);

    +    while(debugWait < 20000000)

    +    debugWait++;

    }

    If the above still fails, can you continue to build only your EVE firmware in debug mode?

    Regards
    Shravan

  • Hi Shravan,
    Thanks a lot.
    According to your suggestion, I recover the PROFILE ?= releaase in the cfg.mk, and add a delay in EVE-MMU configuration. I try it 10 times, it is normal now.

    Terence
  • Dear Terence.

    We found EVE2 setup need a little more time. Please help merge attached change and let us know the test result. Thanks a lot

    0001-Patch-reserve-time-to-wait-EVE2-MMU-ready.zip

    yong