IMX8MP Does not play video, gst vpudec Could not initialize supporting library

Hello. We have IMX8MP HummingBoard Pulse kit, and downloaded latest Yocto imagies from GitHub.
Prob both Zeus and Gategarth. The kit does not play video. Gstreamer cant use VPU. Atached the log file. It seems that the same problem was on NXP forum. and The solution was:

Yes with official bsp it is working. My issue come from my integration in my yocto env.

I found the issue and for other user I will try explain my issue.
1 - What was my problem :
VPUdec gstreamer module failed to malloc memory
2 - My fix :
I must to synchronised all these recipes to same bsp version (me i synchronized with warrior version)
linux-imx
inux-imx-headers
imx-vpuwrap
imx-vpu-hantro

And in conf/machine/include/imx-base.inc check var MACHINEOVERRIDES_EXTENDER_mx8mq, imxvpuhantro should be inside it.

3 - Why I met these issues

My yocto env was created for raspberry board, and more later I had support for nxp board.
My reference was poky version thud. But I met an issue with nxp tee with this version so I upgrade kernel, optee-os, optee-client to warrior version for fixed it.
linux-imx and inux-imx-headers was not more synchronised and vpu didnt work anymore

What does it means? I am new to linux and Yocto, what should i do?
How to fix images of Yocto?

the full log->U-Boot SPL 2020.04-5.4.70-2.3.0+gdb466e3f9b (Apr 01 2021 - 12:27:02 +0000)
Training for 3GByte Micron
DDRINFO: start DRAM init
DDRINFO: DRAM rate 3000MTS
Training FAILED
Re-training for 1GByte Samsung memory
DDRINFO: start DRAM init
DDRINFO: DRAM rate 4000MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
Normal Boot
Trying to boot from BOOTROM
image offset 0x8000, pagesize 0x200, ivt offset 0x0
NOTICE: BL31: v2.2(release):rel_imx_5.4.70_2.3.0-0-gf1d7187f2
NOTICE: BL31: Built : 12:26:03, Apr 1 2021

U-Boot 2020.04-5.4.70-2.3.0+gdb466e3f9b (Apr 01 2021 - 12:27:02 +0000)

CPU: i.MX8MP[8] rev1.1 1800 MHz (running at 1200 MHz)
CPU: Commercial temperature grade (0C to 95C) at 33C
Reset cause: POR
Model: NXP i.MX8MPlus LPDDR4 SolidRun board
DRAM: 992 MiB
MMC: FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC… *** Warning - bad CRC, using default environment

[*]-Video Link 0probe video device failed, ret -2

    [0] lcd-controller@32e80000, video
    [1] mipi_dsi@32e60000, video_bridge
    [2] adv7535@39, panel

probe video device failed, ret -2
In: serial
Out: serial
Err: serial

BuildInfo:

  • ATF f1d7187
  • U-Boot 2020.04-5.4.70-2.3.0+gdb466e3f9b

switch to partitions #0, OK
mmc1 is current device
flash target is MMC:1
Net:
Warning: ethernet@30bf0000 (eth1) using random MAC address - b6:4b:26:51:24:b5
eth1: ethernet@30bf0000 [PRIME]
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1…
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
218 bytes read in 15 ms (13.7 KiB/s)
1: NXP i.MX Release Distro
Retrieving file: /extlinux/…/Image
28078592 bytes read in 1206 ms (22.2 MiB/s)
append: root=/dev/mmcblk1p2 rootwait rw console=ttymxc1,115200,115200
Retrieving file: /extlinux/…/imx8mp-hummingboard-pulse.dtb
57894 bytes read in 20 ms (2.8 MiB/s)

Flattened Device Tree blob at 43000000

Booting using the fdt blob at 0x43000000
Using Device Tree in place at 0000000043000000, end 0000000043011225
probe video device failed, ret -2

Starting kernel …

[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.4.70-2.3.0+g1658dcd44915 (oe-user@oe-host) (gcc version 9.2.0 (GCC)) #1 SMP PREEMPT 1
[ 0.000000] Machine model: NXP i.MX8MPlus SolidRun board
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] OF: reserved mem: failed to allocate memory for node ‘linux,cma’
[ 0.000000] cma: Reserved 320 MiB at 0x000000006c000000
[ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] NUMA: NODE_DATA [mem 0x6bdce500-0x6bdcffff]
[ 0.000000] Zone ranges:
[ 0.000000] DMA32 [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000040000000-0x00000000557fffff]
[ 0.000000] node 0: [mem 0x0000000058000000-0x000000007fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000007fffffff]
[ 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.1
[ 0.000000] percpu: Embedded 24 pages/cpu s58904 r8192 d31208 u98304
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: detected: ARM erratum 845719
[ 0.000000] CPU features: detected: GIC system register CPU interface
[ 0.000000] Speculative Store Bypass Disable mitigation not required
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 247808
[ 0.000000] Policy zone: DMA32
[ 0.000000] Kernel command line: root=/dev/mmcblk1p2 rootwait rw console=ttymxc1,115200,115200
[ 0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 630860K/1007616K available (16700K kernel code, 1244K rwdata, 6556K rodata, 2880K init, 1017)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[ 0.000000] GICv3: 160 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: no VLPI support, no direct LPI support
[ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000038880000
[ 0.000000] ITS: No ITS available, not enabling LPIs
[ 0.000000] random: get_random_bytes called from start_kernel+0x2b8/0x44c with crng_init=0
[ 0.000000] arch_timer: cp15 timer(s) running at 8.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 44079520s
[ 0.000003] sched_clock: 56 bits at 8MHz, resolution 125ns, wraps every 2199023255500ns
[ 0.000445] Console: colour dummy device 80x25
[ 0.000500] Calibrating delay loop (skipped), value calculated using timer frequency… 16.00 BogoMIPS (lpj=32000)
[ 0.000510] pid_max: default: 32768 minimum: 301
[ 0.000579] LSM: Security Framework initializing
[ 0.000630] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.000641] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.001690] ASID allocator initialised with 32768 entries
[ 0.001761] rcu: Hierarchical SRCU implementation.
[ 0.002896] EFI services will not be available.
[ 0.003046] smp: Bringing up secondary CPUs …
[ 0.003394] Detected VIPT I-cache on CPU1
[ 0.003415] GICv3: CPU1: found redistributor 1 region 0:0x00000000388a0000
[ 0.003441] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[ 0.003815] Detected VIPT I-cache on CPU2
[ 0.003829] GICv3: CPU2: found redistributor 2 region 0:0x00000000388c0000
[ 0.003843] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[ 0.004249] Detected VIPT I-cache on CPU3
[ 0.004265] GICv3: CPU3: found redistributor 3 region 0:0x00000000388e0000
[ 0.004280] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[ 0.004333] smp: Brought up 1 node, 4 CPUs
[ 0.004343] SMP: Total of 4 processors activated.
[ 0.004350] CPU features: detected: 32-bit EL0 Support
[ 0.004357] CPU features: detected: CRC32 instructions
[ 0.010404] CPU: All CPU(s) started at EL2
[ 0.010424] alternatives: patching kernel code
[ 0.011350] devtmpfs: initialized
[ 0.019588] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.019604] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.026972] pinctrl core: initialized pinctrl subsystem
[ 0.027664] DMI not present or invalid.
[ 0.027888] NET: Registered protocol family 16
[ 0.034019] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.034043] audit: initializing netlink subsys (disabled)
[ 0.034239] audit: type=2000 audit(0.032:1): state=initialized audit_enabled=0 res=1
[ 0.035041] cpuidle: using governor menu
[ 0.035474] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.036475] Serial: AMBA PL011 UART driver
[ 0.036542] imx mu driver is registered.
[ 0.036564] imx rpmsg driver is registered.
[ 0.041489] imx8mp-pinctrl 30330000.pinctrl: initialized IMX pinctrl driver
[ 0.066872] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.066882] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[ 0.066890] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.066895] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[ 0.067686] cryptd: max_cpu_qlen set to 1000
[ 0.070648] ACPI: Interpreter disabled.
[ 0.071565] iommu: Default domain type: Translated
[ 0.071686] vgaarb: loaded
[ 0.071948] SCSI subsystem initialized

[ 0.073652] mc: Linux media interface: v0.10
[ 0.073681] videodev: Linux video capture interface: v2.00
[ 0.073744] pps_core: LinuxPPS API ver. 1 registered
[ 0.073750] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it
[ 0.073767] PTP clock support registered
[ 0.073920] EDAC MC: Ver: 3.0.0
[ 0.074732] No BMan portals available!
[ 0.074953] QMan: Allocated lookup table at (ptrval), entry count 65537
[ 0.075282] No QMan portals available!
[ 0.075844] No USDPAA memory, no ‘fsl,usdpaa-mem’ in device-tree
[ 0.076293] FPGA manager framework
[ 0.076370] Advanced Linux Sound Architecture Driver Initialized.
[ 0.076720] Bluetooth: Core ver 2.22
[ 0.076745] NET: Registered protocol family 31
[ 0.076751] Bluetooth: HCI device and connection manager initialized
[ 0.076761] Bluetooth: HCI socket layer initialized
[ 0.076769] Bluetooth: L2CAP socket layer initialized
[ 0.076782] Bluetooth: SCO socket layer initialized
[ 0.077517] clocksource: Switched to clocksource arch_sys_counter
[ 0.077660] VFS: Disk quotas dquot_6.6.0
[ 0.077702] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.077840] pnp: PnP ACPI: disabled
[ 0.083216] thermal_sys: Registered thermal governor ‘step_wise’
[ 0.083219] thermal_sys: Registered thermal governor ‘power_allocator’

[ 1.135948] imx-lcdifv3 32fc6000.lcd-controller: No irq get
[ 1.143826] imx-hdmi-pavi 32fc4000.hdmi-pai-pvi: No pvi clock get
[ 1.160828] loop: module loaded
[ 1.171764] imx ahci driver is registered.
[ 1.180101] libphy: Fixed MDIO Bus: probed
[ 1.184998] tun: Universal TUN/TAP device driver, 1.6
[ 1.190954] thunder_xcv, ver 1.0
[ 1.194223] thunder_bgx, ver 1.0
[ 1.197480] nicpf, ver 1.0
[ 1.200980] Freescale FM module, FMD API version 21.1.0
[ 1.206490] Freescale FM Ports module
[ 1.210161] fsl_mac: fsl_mac: FSL FMan MAC API based driver
[ 1.215923] fsl_dpa: FSL DPAA Ethernet driver
[ 1.220412] fsl_advanced: FSL DPAA Advanced drivers:
[ 1.225384] fsl_proxy: FSL DPAA Proxy initialization driver
[ 1.231091] fsl_oh: FSL FMan Offline Parsing port driver
[ 1.237378] hclge is initializing
[ 1.240732] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
[ 1.247967] hns3: Copyright (c) 2017 Huawei Corporation.
[ 1.253332] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
[ 1.260389] e1000: Copyright (c) 1999-2006 Intel Corporation.
[ 1.266172] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[ 1.272013] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 1.277969] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.6.0-k
[ 1.284936] igb: Copyright (c) 2007-2014 Intel Corporation.
[ 1.290548] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k

[ 1.722167] Device caam-keygen registered
[ 1.727912] caam-snvs 30370000.caam-snvs: violation handlers armed - non-secure state
[ 1.736657] mmc2: Command Queue Engine enabled
[ 1.738259] usbcore: registered new interface driver usbhid
[ 1.741155] mmc2: new HS400 Enhanced strobe MMC card at address 0001
[ 1.746692] usbhid: USB HID core driver
[ 1.747518] mxc-mipi-csi2-sam 32e40000.csi: 32e40000.csi supply mipi-phy not found, using dummy regulator
[ 1.753850] mmcblk2: mmc2:0001 8GTF4R 7.28 GiB
[ 1.757184] mxc-mipi-csi2-sam 32e40000.csi: lanes: 4, hs_settle: 16, clk_settle: 0, wclk: 0, freq: 500000000
[ 1.766581] mmcblk2boot0: mmc2:0001 8GTF4R partition 1 4.00 MiB
[ 1.772827] No fsl,qman node
[ 1.780972] mmcblk2boot1: mmc2:0001 8GTF4R partition 2 4.00 MiB
[ 1.783445] random: fast init done
[ 1.786773] Freescale USDPAA process driver
[ 1.790124] mmcblk2rpmb: mmc2:0001 8GTF4R partition 3 512 KiB, chardev (237:0)
[ 1.795576] fsl-usdpaa: no region found
[ 1.795578] Freescale USDPAA process IRQ driver
[ 1.799734] optee: probing for conduit method from DT.
[ 1.808497] random: crng init done
[ 1.810429] optee: revision 3.10 (a991c904)
[ 1.811769] optee: dynamic shared memory is enabled
[ 1.836728] optee: initialized driver
[ 1.842958] Galcore version 6.4.3.p1.305572
[ 1.972167] [drm] Initialized vivante 1.0.0 20170808 for 40000000.mix_gpu_ml on minor 0
[ 1.981666] hantrodec 0 : module inserted. Major = 236
[ 1.987285] hantrodec 1 : module inserted. Major = 236
[ 1.993532] hantroenc: HW at base <0000000038320000> with ID <0x80006200>
[ 2.000443] hx280enc: module inserted. Major <235>
[ 2.018978] imx-cdnhdmi sound-hdmi: failed to find SAI platform device
[ 2.025529] imx-cdnhdmi: probe of sound-hdmi failed with error -22
[ 2.032107] pktgen: Packet Generator for packet performance testing. Version: 2.75

[ 2.385527] imx6q-pcie 33800000.pcie: PLL REF_CLK is used!.
[ 2.391738] imx6q-pcie 33800000.pcie: PCIe PHY PLL clock is locked.
[ 2.394764] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 2.404644] [drm] No driver support for vblank timestamp query.
[ 2.410632] imx-drm display-subsystem: bound imx-lcdifv3-crtc.0 (ops lcdifv3_crtc_ops)
[ 2.418594] imx-drm display-subsystem: bound imx-lcdifv3-crtc.1 (ops lcdifv3_crtc_ops)
[ 2.425919] imx6q-pcie 33800000.pcie: PCIe PLL locked after 0 us.
[ 2.426607] imx_sec_dsim_drv 32e60000.mipi_dsi: version number is 0x1060200
[ 2.432647] imx6q-pcie 33800000.pcie: host bridge /pcie@33800000 ranges:
[ 2.439792] imx-drm display-subsystem: bound 32e60000.mipi_dsi (ops imx_sec_dsim_ops)
[ 2.446281] imx6q-pcie 33800000.pcie: No bus range found for /pcie@33800000, using [bus 00-ff]
[ 2.446299] imx6q-pcie 33800000.pcie: IO 0x1ff80000…0x1ff8ffff → 0x00000000
[ 2.454173] dwhdmi-imx 32fd8000.hdmi: No pavi info found
[ 2.462941] imx6q-pcie 33800000.pcie: MEM 0x18000000…0x1fefffff → 0x18000000
[ 2.471611] imx-dwmac 30bf0000.ethernet: IRQ eth_lpi not found
[ 2.489003] imx-dwmac 30bf0000.ethernet: no reset control found
[ 2.495734] imx-dwmac 30bf0000.ethernet: User ID: 0x10, Synopsys ID: 0x51
[ 2.502541] imx-dwmac 30bf0000.ethernet: DWMAC4/5
[ 2.507348] imx-dwmac 30bf0000.ethernet: DMA HW capability register supported
[ 2.514494] imx-dwmac 30bf0000.ethernet: RX Checksum Offload Engine supported
[ 2.521634] imx-dwmac 30bf0000.ethernet: TX Checksum insertion supported
[ 2.528341] imx-dwmac 30bf0000.ethernet: Wake-Up On Lan supported
[ 2.534461] imx-dwmac 30bf0000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[ 2.542132] imx-dwmac 30bf0000.ethernet: device MAC address f2:33:17:ea:e5:10
[ 2.549275] imx-dwmac 30bf0000.ethernet: Enabled Flow TC (entries=8)
[ 2.555642] imx-dwmac 30bf0000.ethernet: Enabling HW TC (entries=256, max_off=256)
[ 2.563331] libphy: stmmac: probed
[ 2.565887] imx6q-pcie 33800000.pcie: Link up
[ 2.568967] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 2.571108] imx6q-pcie 33800000.pcie: Link up
[ 2.571114] imx6q-pcie 33800000.pcie: Link up, Gen1
[ 2.571227] imx6q-pcie 33800000.pcie: PCI host bridge to bus 0000:00
[ 2.576647] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[ 2.580975] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 2.580980] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 2.586212] xhci-hcd xhci-hcd.0.auto: hcc params 0x0220fe6c hci version 0x110 quirks 0x0000002001810010
[ 2.592215] pci_bus 0000:00: root bus resource [mem 0x18000000-0x1fefffff]
[ 2.592241] pci 0000:00:00.0: [16c3:abcd] type 01 class 0x060400
[ 2.599917] xhci-hcd xhci-hcd.0.auto: irq 62, io mem 0x38100000
[ 2.605386] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff]

[ 2.646024] pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold
[ 2.648877] pci 0000:01:00.0: [8086:157b] type 00 class 0x020000
[ 2.649793] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[ 2.656643] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x0001ffff]

[ 2.890722] imx-cpufreq-dt imx-cpufreq-dt: cpu speed grade 5 mkt segment 0 supported-hw 0x20 0x1
[ 2.894612] igb 0000:01:00.0: added PHC on eth1
[ 2.907493] igb 0000:01:00.0: Intel(R) Gigabit Ethernet Network Connection
[ 2.908396] mmc0: CQHCI version 5.10
[ 2.914393] igb 0000:01:00.0: eth1: (PCIe:2.5Gb/s:Width x1) d0:63:b4:02:ef:d8
[ 2.925112] igb 0000:01:00.0: eth1: PBA No: FFFFFF-0FF
[ 2.930258] igb 0000:01:00.0: Using MSI-X interrupts. 4 rx queue(s), 4 tx queue(s)
[ 2.951318] mmc0: SDHCI controller on 30b40000.mmc [30b40000.mmc] using ADMA
[ 2.959417] mmc1: CQHCI version 5.10
[ 2.963049] sdhci-esdhc-imx 30b50000.mmc: Got CD GPIO
[ 2.998830] mmc1: SDHCI controller on 30b50000.mmc [30b50000.mmc] using ADMA
[ 3.014059] mmc0: queuing unknown CIS tuple 0x80 (2 bytes)
[ 3.020691] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 3.027333] [drm] No driver support for vblank timestamp query.
[ 3.033312] imx-drm display-subsystem: bound imx-lcdifv3-crtc.0 (ops lcdifv3_crtc_ops)
[ 3.041240] mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
[ 3.046800] imx-drm display-subsystem: bound imx-lcdifv3-crtc.1 (ops lcdifv3_crtc_ops)
[ 3.054816] imx_sec_dsim_drv 32e60000.mipi_dsi: version number is 0x1060200
[ 3.061986] imx-drm display-subsystem: bound 32e60000.mipi_dsi (ops imx_sec_dsim_ops)
[ 3.070033] dwhdmi-imx 32fd8000.hdmi: Detected HDMI TX controller v2.13a with HDCP (samsung_dw_hdmi_phy2)
[ 3.080487] mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
[ 3.086948] dwhdmi-imx 32fd8000.hdmi: registered DesignWare HDMI I2C bus driver
[ 3.096111] imx-drm display-subsystem: bound 32fd8000.hdmi (ops dw_hdmi_imx_ops)
[ 3.104068] [drm] Initialized imx-drm 1.0.0 20120507 for display-subsystem on minor 1
[ 3.112983] mmc0: queuing unknown CIS tuple 0x80 (7 bytes)
[ 3.120629] [drm] Cannot find any crtc or sizes
[ 3.125586] usb 3-1: new high-speed USB device number 2 using xhci-hcd
[ 3.126417] mmc0: queuing unknown CIS tuple 0x80 (6 bytes)
[ 3.134419] hctosys: unable to open rtc device (rtc0)
[ 3.143048] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 3.154047] cfg80211: Loaded X.509 cert ‘sforshee: 00b28ddf47aef9cea7’
[ 3.161588] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 3.170231] platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
[ 3.177877] ALSA device list:
[ 3.180954] No soundcards found.
[ 3.184538] Waiting for root device /dev/mmcblk1p2…
[ 3.243216] mmc1: host does not support reading read-only switch, assuming write-enable
[ 3.254752] mmc0: new ultra high speed SDR104 SDIO card at address 0001

[ 3.397221] mmc1: new ultra high speed SDR104 SDHC card at address e624
[ 3.404186] mmcblk1: mmc1:e624 SC16G 14.8 GiB
[ 3.409715] usb 4-1: new SuperSpeed Gen 1 USB device number 2 using xhci-hcd
[ 3.413433] mmcblk1: p1 p2
[ 3.464521] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
[ 3.472675] VFS: Mounted root (ext4 filesystem) on device 179:98.
[ 3.479523] hub 4-1:1.0: USB hub found
[ 3.483353] devtmpfs: mounted
[ 3.483618] hub 4-1:1.0: 4 ports detected
[ 3.487007] Freeing unused kernel memory: 2880K
[ 3.494910] Run /sbin/init as init process
[ 3.619629] systemd[1]: System time before build time, advancing clock.
[ 3.641849] systemd[1]: systemd 243.2+ running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSV)
[ 3.663816] systemd[1]: Detected architecture arm64.

Welcome to NXP i.MX Release Distro 5.4-zeus (zeus)!

[ 3.706973] systemd[1]: Set hostname to .

[ OK ] Reached target Paths.
[ OK ] Reached target Remote File Systems.
[ OK ] Reached target Slices.
[ OK ] Reached target Swap.

[ 5.526903] i2c_transfer() failed: -6
[ 5.530723] basler_read_register_chunk() failed: -6
[ 5.536076] basler_read_register() failed: -6
[ 5.574623] imx-sdma 30bd0000.dma-controller: loaded firmware 4.5
[ 5.604835] brcmfmac: brcmf_of_probe: interrupt could not be mapped
[ 5.615385] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 5.653712] imx8_media_dev: module is from the staging directory, the quality is unknown, you have been warned.
[ 5.678935] enter viv_video_init_module
[ 5.683908] Error: Driver ‘mxc-mipi-csi2-sam’ is already registered, aborting…
[ 5.707127] register platform driver failed.
[ 5.747256] enter viv_dwe_init_module
[ 5.751672] enter dwe_hw_probe
[ 5.755663] vvcam dewarp driver probed
[ 5.770006] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 5.789151] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Mar 3 2019 19:47:25 version 7.45.184 (r710
[ 5.822590] enter viv_isp_init_module
[ 5.836077] enter isp_hw_probe
[ 5.881398] vvcam isp driver registered
[ OK ] Created slice system-systemd\x2dfsck.slice.
[ OK ] Found device /dev/mmcblk1p1.
Starting File System Check on /dev/mmcblk1p1…
[ OK ] Started File System Check on /dev/mmcblk1p1.
Mounting /run/media/mmcblk1p1…
[ OK ] Mounted /run/media/mmcblk1p1.
[ OK ] Started Rebuild Dynamic Linker Cache.
Starting Update is Completed…
[ OK ] Started Update is Completed.
[ OK ] Reached target System Initialization.
[ OK ] Started Daily apt download activities.
[ OK ] Started Daily rotation of log files.
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Reached target Timers.
[ OK ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Listening on dropbear.socket.
[ OK ] Listening on RPCbind Server Activation Socket.
[ OK ] Reached target Sockets.
[ OK ] Reached target Basic System.
[ OK ] Started Job spooling tools.
Starting Console System Startup Logging…
[ OK ] Started Periodic Command Scheduler.
[ OK ] Started D-Bus System Message Bus.
[ OK ] Started Configuration for i.MX GPU (Former rc_gpu.S).
[ OK ] Started ISP i.MX 8Mplus daemon.

[ 8.440812] enter viv_isp_exit_module
[ 8.444531] enter isp_hw_remove
[ 8.479852] enter viv_dwe_exit_module
[ 8.483584] enter dwe_hw_remove
[ 8.488532] vvcam dewarp driver removed
[ OK ] Started User Manager for UID 0.
[ 8.514824] enter viv_video_exit_module
[ 8.518730] enter viv_video_remove
[ OK ] Started Session c1 of user root.
[ 8.667728] : Unregistered all entities
[ 8.799287] imx-dwmac 30bf0000.ethernet: Failed to reset the dma
[ 8.805323] imx-dwmac 30bf0000.ethernet eth0: stmmac_hw_setup: DMA engine initialization failed
[ 8.814060] imx-dwmac 30bf0000.ethernet eth0: stmmac_open: Hw setup failed
[ 8.832117] imx-dwmac 30bf0000.ethernet eth0: PHY [stmmac-1:00] driver [Generic PHY]
[ 8.859173] imx-dwmac 30bf0000.ethernet eth0: No Safety Features support found
[ 8.866450] imx-dwmac 30bf0000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[ 8.874851] imx-dwmac 30bf0000.ethernet eth0: registered PTP clock
[ 8.881122] imx-dwmac 30bf0000.ethernet eth0: configuring for phy/rgmii-id link mode
[ 8.889401] 8021q: adding VLAN 0 to HW filter on device eth0
[ OK ] Started Hostname Service.
[ 8.945191] i2c_transfer() failed: -6
[ 8.948972] basler_read_register_chunk() failed: -6
[ 8.953939] basler_read_register() failed: -6
[ 8.983920] imx8_media_dev: module is from the staging directory, the quality is unknown, you have been warned.
[ 9.021854] enter viv_video_init_module
[ 9.055437] enter viv_dwe_init_module
[ 9.059548] enter dwe_hw_probe
[ 9.062925] vvcam dewarp driver probed
[ 9.093167] enter viv_isp_init_module
[ 9.097338] enter isp_hw_probe
[ 9.116697] vvcam isp driver registered

NXP i.MX Release Distro 5.4-zeus imx8mpsolidrun ttymxc1

imx8mpsolidrun login: [ 13.287195] [drm] Cannot find any crtc or sizes
root
Last login: Thu Apr 1 12:00:38 UTC 2021 on tty7
root@imx8mpsolidrun:~# GST_DEBUG=3 gst-launch-1.0 filesrc location = /home/video/Bob.mp4 ! vpudec ! autovideosink
0:00:01.081960000 664 0xaaaae860c0f0 WARN default gstsf.c:97:gst_sf_create_audio_template_caps: fd
0:00:01.082009500 664 0xaaaae860c0f0 WARN default gstsf.c:97:gst_sf_create_audio_template_caps: fd
0:00:01.082034750 664 0xaaaae860c0f0 WARN default gstsf.c:97:gst_sf_create_audio_template_caps: fd
0:00:01.082063500 664 0xaaaae860c0f0 WARN default gstsf.c:97:gst_sf_create_audio_template_caps: fd
0:00:01.082088625 664 0xaaaae860c0f0 WARN default gstsf.c:97:gst_sf_create_audio_template_caps: fd
0:00:01.082111250 664 0xaaaae860c0f0 WARN default gstsf.c:97:gst_sf_create_audio_template_caps: fd
0:00:01.082136500 664 0xaaaae860c0f0 WARN default gstsf.c:97:gst_sf_create_audio_template_caps: fd
0:00:01.082164500 664 0xaaaae860c0f0 WARN default gstsf.c:97:gst_sf_create_audio_template_caps: fd
0:00:01.082202375 664 0xaaaae860c0f0 WARN default gstsf.c:97:gst_sf_create_audio_template_caps: fd
Setting pipeline to PAUSED …
====== VPUDEC: 4.5.7 build on Apr[ 56.205433] cma: cma_alloc: alloc failed, req-size: 4097 pages, ret: -12
1 2021 13:34:31. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Apr 1 2021 12:50:38)
vpulib: 1.1.1
firmware: 1.1.1.0
0:00:01.458057500 663 0xaaab006dea90 ERROR default gstallocatorphymem.c:149:base_alloc: Allocate p.

0:00:01.458091750 663 0xaaab006dea90 ERROR default gstvpu.c:90:gst_vpu_allocate_internal_mem: Coulr
0:00:01.458154250 663 0xaaab006dea90 ERROR vpu_dec_object gstvpudecobject.c:342:gst_vpu_dec_object_start:l
0:00:01.458180875 663 0xaaab006dea90 WARN videodecoder gstvideodecoder.c:2532:gst_video_decoder_changer
ERROR: Pipeline doesn’t want to pause.
ERROR: from element /GstPipeline:pipeline0/GstVpuDec:vpudec0: Could not initialize supporting library.
Additional debug info:
…/…/…/…/git/gst-libs/gst/video/gstvideodecoder.c(2532): gst_video_decoder_change_state (): /GstPipeline:pipelin:
Failed to start decoder
Setting pipeline to NULL …
Freeing pipeline …
root@imx8mpsolidrun:~# GST_DEBUG=3 gst-launch-1.0 filesrc location = /home/video/Bob.mp4 ! vpudec ! autovideosink
Setting pipeline to PAUSED …
====== VPUDEC: 4.5.7 build on Apr[ 58.739551] cma: cma_alloc: alloc failed, req-size: 4097 pages, ret: -12
1 2021 13:34:31. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Apr 1 2021 12:50:38)
vpulib: 1.1.1
firmware: 1.1.1.0
0:00:00.060804750 668 0xaaaaf2c4cea0 ERROR default gstallocatorphymem.c:149:base_alloc: Allocate p.

0:00:00.060839250 668 0xaaaaf2c4cea0 ERROR default gstvpu.c:90:gst_vpu_allocate_internal_mem: Coulr
0:00:00.060899375 668 0xaaaaf2c4cea0 ERROR vpu_dec_object gstvpudecobject.c:342:gst_vpu_dec_object_start:l
0:00:00.060924750 668 0xaaaaf2c4cea0 WARN videodecoder gstvideodecoder.c:2532:gst_video_decoder_changer
ERROR: Pipeline doesn’t want to pause.
ERROR: from element /GstPipeline:pipeline0/GstVpuDec:vpudec0: Could not initialize supporting library.
Additional debug info:
…/…/…/…/git/gst-libs/gst/video/gstvideodecoder.c(2532): gst_video_decoder_change_state (): /GstPipeline:pipelin:
Failed to start decoder
Setting pipeline to NULL …
Freeing pipeline …
root@imx8mpsolidrun:~#

Can you provide information regarding the video you are trying to decode? The iMX8MP only supports decoding video up to 1080p60 H264 or HEVC. If you are trying to decode a video larger than that then the pipeline will fail with an out of memory error.

This message without any video; with video test file from the web 1080 h264, the same massage, and for enconding from camera. The problem in alloc function.

Please try and add cma=384M to the kernel commandline

In what moment? Could you provide instruction

in boot log there are two strings
[ 0.000000] OF: reserved mem: failed to allocate memory for node ‘linux,cma’
[ 0.000000] cma: Reserved 320 MiB at 0x000000006c000000

I am debugging this and will get you some patches tomorrow. Sorry about the wait.

Have you debuged it for now?

cat /proc/meminfo | grep Cma
CmaTotal: 327680 kB
CmaFree: 8500 kB

maybe this is the problem?

I will update you tomorrow. I am testing the latest NXP BSP release

Hello, i have read lots of forums and maid little patch;

arch/arm64/boot/dts/freescale/imx8mp.dtsi | 2 --++
1 file changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
index a6c120027271…5a179a841a89 100644
— a/arch/arm64/boot/dts/freescale/imx8mp.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi

@@ -197,8 +197,8 @@
linux,cma {
compatible = “shared-dma-pool”;
reusable;

  •   	size = <0 0x3c000000>;
    
  •   	alloc-ranges = <0 0x40000000 0 0xC0000000>;
    
  •   	size = <0 0x20000000>;
    
  •   	alloc-ranges = <0 0x40000000 0 0xC0000000>;
      	linux,cma-default;
      };
    

in you github linux 5… kernel in this file there is a fix like this.
video working now ) after building yocto
i have added patch 000-
FILESEXTRAPATHS_prepend := “${THISDIR}/${PN}:”
PATCHTOOL = “git”
SRC_URI += "
file://0000-arch-arm64-imx8mpsolidrun-fix.patch
in linux-imx_5.4.bbappend

and rebuild the image
thanks.