10 channels of video decoding on AGX ORIN L4T 36.4.3,But only 8 channels were decoded successfully

Orin AGX Jetpack 6 NVDEC limitation of <= 8 streams - Jetson & Embedded Systems / Jetson AGX Orin - NVIDIA Developer Forums

I’m encountering the same issue. When using the script below for decoding, only 8 channels are working properly, while the other 2 channels are reporting errors.

#!/bin/bash
INPUT=“Big_Buck_Bunny_1080_10s_30MB.mp4”

Bash:

Directory for logs

LOG_DIR=“gst_logs”
mkdir -p “$LOG_DIR”

Launch many GStreamer pipelines at once to exhaust NvBuffer session memory

for i in $(seq 1 10); do
LOG_FILE=“$LOG_DIR/job_$i.log”
echo “Starting pipeline $i, logging to $LOG_FILE”

gst-launch-1.0 -v
filesrc location=“$INPUT” !
qtdemux !
h265parse !
nvv4l2decoder !
nvvideoconvert !
“video/x-raw(memory:NVMM),width=1280,height=720,format=NV12” !
fakesink sync=false
>“$LOG_FILE” 2>&1 &
done

wait
echo “All pipelines launched. Check $LOG_DIR for logs.”

OUTPUT:
NvMMLiteOpen : Block : BlockType = 279
InitNVDEC: Host1x channel open failed
NVMEDIA: NvMMDecNvVideoCreateParser: 7942: - Failed to get NVDEC Channel handle
NvMMLiteBlockCreate : Block : BlockType = 279
/GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0.GstPad:sink: caps = video/x-h265, stream-format=(string)byte-stream, alignment=(string)au, level=(string)4, tier=(string)high, profile=(string)main, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true
NVDEC_COMMON: Host1x channel open failed
******tegraH265DecoderCreate 1562 Failed in the API InitNVDEC_safe, calling tegraH265DecoderDestroy ******
NVMMLITE_NVVIDEODEC, <cbBeginSequence, 1774> ErrorInfo = VideoErrorInfo_NvVideoDecoderCreate cctx = 0x8803e2e0
NVMMLITE_NVVIDEODEC, NvVideoBufferProcessing:6608 video_parser_parse Unsupported Codec
NVMMLITE_NVVIDEODEC, NvMMLiteNvVideoDecDoWork:7112 NVVIDEO Video Dec Unsupported Stream
NVMMLITE_NVVIDEODEC, NvVideoBufferProcessing:6608 video_parser_parse Unsupported Codec
NVMMLITE_NVVIDEODEC, NvVideoBufferProcessing:6608 video_parser_parse Unsupported Codec
ERROR: from element /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0: Failed to process frame.
Additional debug info:
/dvs/git/dirty/git-master_linux/3rdparty/gst/gst-v4l2/gst-v4l2/gstv4l2videodec.c(2265): gst_v4l2_video_dec_handle_frame (): /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0:
Maybe be due to not enough memory or failing driver
ERROR: pipeline doesn’t want to preroll.
Setting pipeline to NULL …
ERROR: from element /GstPipeline:pipeline0/GstQTDemux:qtdemux0: Internal data stream error.
Additional debug info:
../gst/isomp4/qtdemux.c(6760): gst_qtdemux_loop (): /GstPipeline:pipeline0/GstQTDemux:qtdemux0:
streaming stopped, reason error (-5)
ERROR: pipeline doesn’t want to preroll.
ERROR: from element /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0: No valid frames decoded before end of stream
Additional debug info:
../gst-libs/gst/video/gstvideodecoder.c(1416): gst_video_decoder_sink_event_default (): /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0:
no valid frames found
ERROR: pipeline doesn’t want to preroll.
malloc_consolidate(): unaligned fastbin chunk detected

r36_4_TEST_kernel_host1x.zip (6.0 KB)

I tried to apply the patch file mentioned above, but it failed. I suspect it’s due to L4T version incompatibility.

I need patches for AGX ORIN L4T 36.4.3.

patch error:
~/AD10_6.2/sources/kernel/kernel-jammy-src$ patch -p1 < ./0001-gpu-host1x-Memory-context-stealing.patch
patching file drivers/gpu/drm/tegra/drm.h
Hunk #1 FAILED at 130.
1 out of 1 hunk FAILED – saving rejects to file drivers/gpu/drm/tegra/drm.h.rej
patching file drivers/gpu/drm/tegra/submit.c
Hunk #1 succeeded at 205 (offset -35 lines).
Hunk #2 FAILED at 531.
Hunk #3 succeeded at 477 (offset -70 lines).
Hunk #4 succeeded at 494 with fuzz 1 (offset -97 lines).
Hunk #5 FAILED at 615.
Hunk #6 FAILED at 715.
Hunk #7 succeeded at 632 (offset -204 lines).
3 out of 7 hunks FAILED – saving rejects to file drivers/gpu/drm/tegra/submit.c .rej
patching file drivers/gpu/drm/tegra/uapi.c
Hunk #1 FAILED at 17.
Hunk #2 FAILED at 33.
Hunk #3 FAILED at 234.
Hunk #4 FAILED at 254.
4 out of 4 hunks FAILED – saving rejects to file drivers/gpu/drm/tegra/uapi.c.r ej
patching file drivers/gpu/drm/tegra/uapi.h
Hunk #1 FAILED at 27.
1 out of 1 hunk FAILED – saving rejects to file drivers/gpu/drm/tegra/uapi.h.re j
can’t find file to patch at input line 199
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:

|diff --git a/drivers/gpu/host1x/context.c b/drivers/gpu/host1x/context.c
|index a3c9c489..2ddbba81 100644
|— a/drivers/gpu/host1x/context.c

+++ b/drivers/gpu/host1x/context.c
File to patch: ^C

@ DaneLLL

Hi, could you please help me take a look at this decoding issue?

Hi,
The patches are good for r36.4.3. Please apply them to nvidia-oot.

Thanks.
But I can’t find drivers/gpu/host1x/context.c when apply this patch
patch -p1 < ./0002-gpu-host1x-When-out-of-memory-contexts-wait-for-free.patch
can’t find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:

|diff --git a/drivers/gpu/host1x/context.c b/drivers/gpu/host1x/context.c
|index 2ddbba81..aaef0bd6 100644
|— a/drivers/gpu/host1x/context.c

+++ b/drivers/gpu/host1x/context.c
File to patch: ^C

/sources/kernel/kernel-jammy-src$ ls -la drivers/gpu/host1x/context.c
ls: cannot access ‘drivers/gpu/host1x/context.c’: No such file or directory

It is this file path? /sources/nvidia-oot/
@DaneLLL

Hi,
It is not in kernel-jammy-src, it is in

source/nvidia-oot$ sudo find -name context.c
./drivers/gpu/host1x/context.c

Hi,I have some troubles.

After successfully compiling and applying the patch, I replaced the KO files:

*** tegra-drm.ko : /lib/modules/5.15.148-tegra/updates/drivers/gpu/drm/tegra/tegra-drm.ko**
*** host1x.ko : /lib/modules/5.15.148-tegra/updates/drivers/gpu/host1x/host1x.ko**

nvidia@miivii-tegra:/lib/modules/5.15.148-tegra/kernel/drivers/gpu/host1x$ sudo depmod -anvidia@miivii-tegra:/lib/modules/5.15.148-tegra/kernel/drivers/gpu/host1x$ sudo modprobe host1xsudo modprobe tegra-drmnvidia@miivii-tegra:/lib/modules/5.15.148-tegra/kernel/drivers/gpu/host1x$ dmesg | grep -i "drm|host1x"dmesg: read kernel buffer failed: Operation not permittednvidia@miivii-tegra:/lib/modules/5.15.148-tegra/kernel/drivers/gpu/host1x$ sudo dmesg | grep -i “drm|host1x”[ 9.041510] systemd[1]: Starting Load Kernel Module drm…[ 9.245081] tegra-host1x 13e00000.host1x: Adding to iommu group 6[ 9.246303] host1x-context host1x-ctx.0: Adding to iommu group 7[ 9.246466] host1x-context host1x-ctx.1: Adding to iommu group 8[ 9.246601] host1x-context host1x-ctx.2: Adding to iommu group 9[ 9.246726] host1x-context host1x-ctx.3: Adding to iommu group 10[ 9.246851] host1x-context host1x-ctx.4: Adding to iommu group 11[ 9.246979] host1x-context host1x-ctx.5: Adding to iommu group 12[ 9.247106] host1x-context host1x-ctx.6: Adding to iommu group 13[ 9.247226] host1x-context host1x-ctx.7: Adding to iommu group 14[ 9.247348] host1x-context host1x-ctx.8: Adding to iommu group 15[ 9.247477] host1x-context host1x-ctx.9: Adding to iommu group 16[ 9.247611] host1x-context host1x-ctx.10: Adding to iommu group 17[ 9.247736] host1x-context host1x-ctx.11: Adding to iommu group 18[ 9.247859] host1x-context host1x-ctx.12: Adding to iommu group 19[ 9.248019] host1x-context host1x-ctx.13: Adding to iommu group 20[ 9.248140] host1x-context host1x-ctx.14: Adding to iommu group 21[ 9.248278] host1x-context host1x-ctx.15: Adding to iommu group 22[ 9.256376] platform 13e00000.host1x:nvcsi@15a00000: Fixing up cyclic dependency with 2-0011[ 9.256391] platform 13e00000.host1x:nvcsi@15a00000: Fixing up cyclic dependency with 2-0010[ 9.256403] platform 13e00000.host1x:nvcsi@15a00000: Fixing up cyclic dependency with 2-0009[ 9.256416] platform 13e00000.host1x:nvcsi@15a00000: Fixing up cyclic dependency with 2-0008[ 9.256428] platform 13e00000.host1x:nvcsi@15a00000: Fixing up cyclic dependency with 2-0007[ 9.256440] platform 13e00000.host1x:nvcsi@15a00000: Fixing up cyclic dependency with 2-0006[ 9.256452] platform 13e00000.host1x:nvcsi@15a00000: Fixing up cyclic dependency with 2-0005[ 9.256462] platform 13e00000.host1x:nvcsi@15a00000: Fixing up cyclic dependency with tegra-capture-vi[ 9.256474] platform 13e00000.host1x:nvcsi@15a00000: Fixing up cyclic dependency with 2-0004[ 10.314182] scare-pigeon 13e00000.host1x:vi0-thi@15f00000: Adding to iommu group 36[ 10.336139] scare-pigeon 13e00000.host1x:vi0-thi@15f00000: syncpt_unit_base 60000000 syncpt_unit_size 4000000 size 10000[ 10.364739] scare-pigeon 13e00000.host1x:vi1-thi@14f00000: Adding to iommu group 39[ 10.365554] scare-pigeon 13e00000.host1x:vi1-thi@14f00000: syncpt_unit_base 60000000 syncpt_unit_size 4000000 size 10000[ 10.365654] scare-pigeon 13e00000.host1x:isp-thi@14b00000: Adding to iommu group 40[ 10.366618] tegra-camrtc-capture-vi tegra-capture-vi: subdev 13e00000.host1x:nvcsi@15a00000- bound[ 10.374919] scare-pigeon 13e00000.host1x:isp-thi@14b00000: syncpt_unit_base 60000000 syncpt_unit_size 4000000 size 10000[ 10.395230] tegra194-vi5 13e00000.host1x:vi0@15c00000: Adding to iommu group 36[ 10.401929] tegra194-vi5 13e00000.host1x:vi1@14c00000: Adding to iommu group 39[ 10.402083] tegra-camrtc-capture-vi tegra-capture-vi: subdev 13e00000.host1x:nvcsi@15a00000- bound[ 10.404644] tegra-camrtc-capture-vi tegra-capture-vi: subdev 13e00000.host1x:nvcsi@15a00000- bound[ 10.410807] tegra-camrtc-capture-vi tegra-capture-vi: subdev 13e00000.host1x:nvcsi@15a00000- bound[ 10.420158] tegra-camrtc-capture-vi tegra-capture-vi: subdev 13e00000.host1x:nvcsi@15a00000- bound[ 10.432741] tegra-camrtc-capture-vi tegra-capture-vi: subdev 13e00000.host1x:nvcsi@15a00000- bound[ 10.444692] tegra-camrtc-capture-vi tegra-capture-vi: subdev 13e00000.host1x:nvcsi@15a00000- bound[ 10.449111] tegra-camrtc-capture-vi tegra-capture-vi: subdev 13e00000.host1x:nvcsi@15a00000- bound[ 10.496353] drm drm: [drm] Cannot find any crtc or sizes[ 10.497969] [drm] Initialized tegra 1.0.99 20120330 for drm on minor 0[ 16.217669] [drm] [nvidia-drm] [GPU ID 0x00020000] Loading driver[ 16.853129] [drm] Initialized nvidia-drm 0.0.0 20160202 for 13800000.display on minor 1[ 16.970888] nv_platform 13800000.display: [drm] fb0: nvidia-drmdrmfb frame buffer devicenvidia@miivii-tegra:/lib/modules/5.15.148-tegra/kernel/drivers/gpu/host1x$ modinfo tegra-drmmodinfo host1xfilename: /lib/modules/5.15.148-tegra/updates/drivers/gpu/drm/tegra/tegra-drm.kolicense: GPL v2description: NVIDIA Tegra DRM driverauthor: Thierry Reding thierry.reding@avionic-design.desoftdep: pre: tegra_wmarkimport_ns: DMA_BUFfirmware: nvidia/tegra234/vic.binfirmware: nvidia/tegra194/vic.binfirmware: nvidia/tegra186/vic04_ucode.binfirmware: nvidia/tegra210/vic04_ucode.binfirmware: nvidia/tegra194/nvdec.binfirmware: nvidia/tegra186/nvdec.binfirmware: nvidia/tegra210/nvdec.binfirmware: nvidia/tegra234/nvenc.binfirmware: nvidia/tegra194/nvenc.binfirmware: nvidia/tegra186/nvenc.binfirmware: nvidia/tegra210/nvenc.binfirmware: nvidia/tegra234/nvjpg.binfirmware: nvidia/tegra194/nvjpg.binfirmware: nvidia/tegra186/nvjpg.binfirmware: nvidia/tegra210/nvjpg.binfirmware: nvidia/tegra234/ofa.binalias: of:NTCnvidia,tegra124-sorCalias: of:NTCnvidia,tegra124-soralias: of:NTCnvidia,tegra132-sorCalias: of:NTCnvidia,tegra132-soralias: of:NTCnvidia,tegra210-sorCalias: of:NTCnvidia,tegra210-soralias: of:NTCnvidia,tegra210-sor1Calias: of:NTCnvidia,tegra210-sor1alias: of:NTCnvidia,tegra186-sorCalias: of:NTCnvidia,tegra186-soralias: of:NTCnvidia,tegra194-sorCalias: of:NTCnvidia,tegra194-soralias: of:NTCnvidia,tegra234-vicCalias: of:NTCnvidia,tegra234-vicalias: of:NTCnvidia,tegra194-vicCalias: of:NTCnvidia,tegra194-vicalias: of:NTCnvidia,tegra186-vicCalias: of:NTCnvidia,tegra186-vicalias: of:NTCnvidia,tegra210-vicCalias: of:NTCnvidia,tegra210-vicalias: of:NTCnvidia,tegra124-vicCalias: of:NTCnvidia,tegra124-vicalias: of:NTCnvidia,tegra234-ofaCalias: of:NTCnvidia,tegra234-ofaalias: of:NTCnvidia,tegra20-gr2dCalias: of:NTCnvidia,tegra20-gr2dalias: of:NTCnvidia,tegra30-gr2dCalias: of:NTCnvidia,tegra30-gr2dalias: of:NTCnvidia,tegra114-gr2dCalias: of:NTCnvidia,tegra114-gr2dalias: of:NTCnvidia,tegra114-dsiCalias: of:NTCnvidia,tegra114-dsialias: of:NTCnvidia,tegra124-dsiCalias: of:NTCnvidia,tegra124-dsialias: of:NTCnvidia,tegra132-dsiCalias: of:NTCnvidia,tegra132-dsialias: of:NTCnvidia,tegra210-dsiCalias: of:NTCnvidia,tegra210-dsialias: of:NTCnvidia,tegra186-displayCalias: of:NTCnvidia,tegra186-displayalias: of:NTCnvidia,tegra194-displayCalias: of:NTCnvidia,tegra194-displayalias: of:NTCnvidia,tegra20-hdmiCalias: of:NTCnvidia,tegra20-hdmialias: of:NTCnvidia,tegra30-hdmiCalias: of:NTCnvidia,tegra30-hdmialias: of:NTCnvidia,tegra114-hdmiCalias: of:NTCnvidia,tegra114-hdmialias: of:NTCnvidia,tegra124-hdmiCalias: of:NTCnvidia,tegra124-hdmialias: of:NTCnvidia,tegra234-host1x-virtual-engineCalias: of:NTCnvidia,tegra234-host1x-virtual-enginealias: of:NTCnvidia,tegra234-nvdecCalias: of:NTCnvidia,tegra234-nvdecalias: of:NTCnvidia,tegra194-nvdecCalias: of:NTCnvidia,tegra194-nvdecalias: of:NTCnvidia,tegra186-nvdecCalias: of:NTCnvidia,tegra186-nvdecalias: of:NTCnvidia,tegra210-nvdecCalias: of:NTCnvidia,tegra210-nvdecalias: of:NTCnvidia,tegra124-dpauxCalias: of:NTCnvidia,tegra124-dpauxalias: of:NTCnvidia,tegra210-dpauxCalias: of:NTCnvidia,tegra210-dpauxalias: of:NTCnvidia,tegra186-dpauxCalias: of:NTCnvidia,tegra186-dpauxalias: of:NTCnvidia,tegra194-dpauxCalias: of:NTCnvidia,tegra194-dpauxalias: of:NTCnvidia,tegra20-dcCalias: of:NTCnvidia,tegra20-dcalias: of:NTCnvidia,tegra30-dcCalias: of:NTCnvidia,tegra30-dcalias: of:NTCnvidia,tegra114-dcCalias: of:NTCnvidia,tegra114-dcalias: of:NTCnvidia,tegra124-dcCalias: of:NTCnvidia,tegra124-dcalias: of:NTCnvidia,tegra210-dcCalias: of:NTCnvidia,tegra210-dcalias: of:NTCnvidia,tegra186-dcCalias: of:NTCnvidia,tegra186-dcalias: of:NTCnvidia,tegra194-dcCalias: of:NTCnvidia,tegra194-dcalias: of:NTCnvidia,tegra234-nvjpgCalias: of:NTCnvidia,tegra234-nvjpgalias: of:NTCnvidia,tegra194-nvjpgCalias: of:NTCnvidia,tegra194-nvjpgalias: of:NTCnvidia,tegra186-nvjpgCalias: of:NTCnvidia,tegra186-nvjpgalias: of:NTCnvidia,tegra210-nvjpgCalias: of:NTCnvidia,tegra210-nvjpgalias: of:NTCnvidia,tegra234-nvencCalias: of:NTCnvidia,tegra234-nvencalias: of:NTCnvidia,tegra194-nvencCalias: of:NTCnvidia,tegra194-nvencalias: of:NTCnvidia,tegra186-nvencCalias: of:NTCnvidia,tegra186-nvencalias: of:NTCnvidia,tegra210-nvencCalias: of:NTCnvidia,tegra210-nvencalias: of:NTCnvidia,tegra20-gr3dCalias: of:NTCnvidia,tegra20-gr3dalias: of:NTCnvidia,tegra30-gr3dCalias: of:NTCnvidia,tegra30-gr3dalias: of:NTCnvidia,tegra114-gr3dCalias: of:NTCnvidia,tegra114-gr3ddepends: host1x,drm,drm_kms_helper,cec,nvhwpmname: tegra_drmvermagic: 5.15.148-tegra SMP preempt mod_unload modversions aarch64sig_id: PKCS#7signer: Build time autogenerated kernel keysig_key: 60:93:66:C4:1A:A4:A9:87:B9:87:31:98:B2:FB:E4:78:74:30:7F:AEsig_hashalgo: sha512signature: 5A:84:7A:A1:ED:2B:74:BB:33:31:A2:65:4F:80:B7:B1:6F:DC:2C:17: EB:69:94:C0:C2:D2:9E:85:D4:BA:E3:8E:4E:49:C2:BF:73:A0:8F:C1: F1:97:82:08:58:48:B8:34:0A:53:D1:E4:A3:64:34:B1:16:8F:06:3A: 9D:81:A1:F9:7E:4D:84:AD:1D:07:74:B1:8D:FA:F5:52:9F:06:94:31: 56:1D:1C:47:06:00:10:36:70:35:C7:B5:16:93:A6:BE:FB:7E:50:49: A5:5C:93:F5:4A:38:ED:FD:3B:5D:FA:36:7D:EC:57:B0:20:81:EF:45: 42:85:CD:8E:92:BA:DA:8D:F3:53:E8:C5:65:0C:07:E6:11:2B:6E:4B: BB:35:C9:10:3E:23:19:F4:62:BA:8E:BE:95:50:EA:CB:E7:66:43:8B: D5:5E:1A:7B:26:81:C5:09:C4:08:01:D8:DF:EE:DD:22:07:8B:DB:DD: D5:5C:FA:6D:AE:6E:CA:E2:DB:65:50:B4:97:89:66:71:F7:CD:A3:BA: 6F:6C:50:63:BA:42:E5:2B:97:10:F0:36:F0:63:12:5A:99:2B:5E:A9: C4:1E:BF:15:0D:68:AE:E4:AC:5B:91:29:8A:65:A7:9D:D8:28:C9:D2: AB:1C:8A:BC:AC:CB:89:14:3F:C7:2C:53:B6:5C:31:89:AF:75:62:3D: 2A:6F:50:2B:75:DC:BA:39:1C:21:94:EC:A4:63:FC:C5:7C:D0:B1:C1: 80:84:9F:4F:A4:7A:E6:32:AA:1B:FF:9B:51:0A:E8:D3:17:27:AF:24: 4C:B5:D7:32:90:22:6B:F9:8E:ED:98:0B:0F:1A:28:67:76:4E:7D:89: 73:20:84:C5:15:B7:88:44:74:CD:42:0C:26:85:B2:AE:C9:25:CA:00: 72:BA:A3:CC:7E:A4:0F:DB:55:28:10:2E:18:B0:25:4C:71:E4:26:BD: 91:C1:A5:7E:61:6E:2F:DD:A5:34:45:F2:47:01:1B:6F:44:D8:A5:0A: 4F:76:C8:0F:D1:0D:57:A5:76:80:D6:4B:74:38:93:AE:82:B1:C8:0D: BB:F4:47:80:3F:E8:89:0A:C3:FB:F0:D9:B4:51:06:F9:08:F4:08:D0: 55:7B:89:4A:5D:50:9C:BB:02:94:F0:35:79:1C:A9:79:97:29:1F:20: 6E:74:BF:0D:AF:CB:31:25:6D:EB:BD:19:98:F3:21:4C:CF:10:75:E2: 5F:E1:9C:18:F7:EC:48:7F:79:06:F5:BB:82:DC:2E:05:94:03:59:C1: 33:78:90:55:E3:F2:A9:2F:2A:EC:E4:FA:6E:B2:B6:13:DC:FF:92:E0: 34:C5:AE:E7:1E:52:CA:88:43:C1:0D:EFfilename: /lib/modules/5.15.148-tegra/updates/drivers/gpu/host1x/host1x.kolicense: GPLdescription: Host1x driver for Tegra productsauthor: Terje Bergstrom tbergstrom@nvidia.comauthor: Thierry Reding thierry.reding@avionic-design.dealias: of:NTCnvidia,tegra20-host1xCalias: of:NTCnvidia,tegra20-host1xalias: of:NTCnvidia,tegra30-host1xCalias: of:NTCnvidia,tegra30-host1xalias: of:NTCnvidia,tegra114-host1xCalias: of:NTCnvidia,tegra114-host1xalias: of:NTCnvidia,tegra124-host1xCalias: of:NTCnvidia,tegra124-host1xalias: of:NTCnvidia,tegra210-host1xCalias: of:NTCnvidia,tegra210-host1xalias: of:NTCnvidia,tegra186-host1xCalias: of:NTCnvidia,tegra186-host1xalias: of:NTCnvidia,tegra194-host1xCalias: of:NTCnvidia,tegra194-host1xalias: of:NTCnvidia,tegra234-host1xCalias: of:NTCnvidia,tegra234-host1xdepends: name: host1xvermagic: 5.15.148-tegra SMP preempt mod_unload modversions aarch64sig_id: PKCS#7signer: Build time autogenerated kernel keysig_key: 60:93:66:C4:1A:A4:A9:87:B9:87:31:98:B2:FB:E4:78:74:30:7F:AEsig_hashalgo: sha512signature: 26:6D:90:47:32:1B:E3:72:81:18:B8:F9:E4:AB:78:6A:D6:3D:EE:3F: 95:52:79:D8:5E:8F:C3:87:8D:D6:8D:73:33:70:2D:9F:5C:FC:F8:BF: AF:10:A3:B8:E3:63:43:2C:9D:A2:3C:A2:12:08:45:D8:5B:84:43:01: 40:B5:E5:85:D1:C7:35:67:69:65:EE:F7:63:30:D5:96:2F:4D:A3:B1: 39:DC:4C:3D:2D:F1:05:43:8D:A5:36:0C:A5:86:BF:0C:5C:0A:88:4A: C1:06:50:BC:02:5A:7B:B7:8B:8E:42:B1:4E:BF:F9:43:3D:A8:8E:5F: 56:82:91:78:8C:0F:A3:4E:09:B1:B6:E3:FF:6F:5F:5F:E6:4E:A9:A0: 8C:41:FA:09:94:B3:65:3F:81:7D:72:81:A2:29:D1:DC:25:09:89:2B: AC:A4:50:08:30:9E:73:09:9B:90:83:B9:30:3A:CC:B4:E9:1B:79:09: 84:E0:3B:74:9A:96:A4:C0:BE:EE:71:A4:63:79:64:51:74:26:5C:6B: 43:0D:E0:4D:DE:23:46:79:CC:47:8F:91:C4:C7:4E:76:E3:48:7B:35: DD:A1:46:49:6C:15:45:43:FE:69:C3:43:F6:47:80:BA:8B:2B:F3:04: 2B:84:D0:3C:1A:0D:ED:E1:2A:50:E6:0D:96:60:90:32:75:7D:8A:AB: C9:A1:74:37:6E:D3:FE:C9:70:5B:0D:B2:89:B9:C5:2E:39:35:50:D0: F5:83:A9:EC:F4:A8:53:79:24:56:0A:E1:AF:29:54:0F:05:D7:17:AC: DB:D1:27:15:D6:8D:B5:DB:92:B5:C1:82:1D:32:F3:FD:CB:CA:7D:15: A6:96:95:54:B8:CF:63:68:79:3D:2D:4F:14:9C:39:BA:68:08:E1:E1: D2:4E:E5:9A:51:26:EF:2D:83:C9:46:17:2E:D2:EF:2C:47:40:3D:3E: 69:44:CA:8B:6B:F2:D0:33:94:7C:68:BF:B3:8A:82:1A:49:6F:16:74: 75:CD:3B:E5:7D:A5:96:E3:43:19:B4:63:91:EB:51:9E:6A:7C:68:A0: 9F:FD:DC:15:27:03:32:BD:A5:4A:A0:55:07:E3:EC:AC:64:2C:AE:50: A3:23:FD:CD:0A:23:36:37:AF:E3:29:79:F7:89:E7:76:24:7A:2D:4A: 78:D1:A7:3C:5B:B7:1F:62:06:92:0F:05:74:32:0C:4E:76:D4:2F:DB: 5B:F3:72:EB:DC:84:01:F1:26:52:7B:FD:42:CF:13:56:DB:15:63:93: 20:4F:B5:88:BE:25:D5:73:72:0B:37:99:68:E3:B3:5E:F3:A6:F4:68: B7:DF:37:DD:48:DE:14:66:D6:32:B3:7D

However, after rebooting, I found that the display directly went black (no signal), but I could still access the system via serial console.

When I executed the decoding scripts, all outputs showed errors:

//代码占位符
nvidia@miivii-tegra:~/Downloads/decoding/gst_logs$ cat job_1.log
nvbufsurftransform: Could not get EGL display connection
Setting pipeline to PAUSED …
ERROR: from element /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0: Cannot identify device ‘/dev/v4l2-nvdec’.
Additional debug info:
/dvs/git/dirty/git-master_linux/3rdparty/gst/gst-v4l2/gst-v4l2/v4l2_calls.c(657): gst_v4l2_open (): /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0:
system error: No such file or directory
ERROR: pipeline doesn’t want to preroll.
ERROR: from element /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0: Could not initialize supporting library.
Additional debug info:
../gst-libs/gst/video/gstvideodecoder.c(2909): gst_video_decoder_change_state (): /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0:
Failed to open decoder
ERROR: pipeline doesn’t want to preroll.
Failed to set pipeline to PAUSED.
Setting pipeline to NULL …
Freeing pipeline …
nvidia@miivii-tegra:~/Downloads/decoding/gst_logs$ cat job_2.log
nvbufsurftransform: Could not get EGL display connection
Setting pipeline to PAUSED …
ERROR: from element /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0: Cannot identify device ‘/dev/v4l2-nvdec’.
Additional debug info:
/dvs/git/dirty/git-master_linux/3rdparty/gst/gst-v4l2/gst-v4l2/v4l2_calls.c(657): gst_v4l2_open (): /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0:
system error: No such file or directory
ERROR: pipeline doesn’t want to preroll.
ERROR: from element /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0: Could not initialize supporting library.
Additional debug info:
../gst-libs/gst/video/gstvideodecoder.c(2909): gst_video_decoder_change_state (): /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0:
Failed to open decoder
ERROR: pipeline doesn’t want to preroll.
Failed to set pipeline to PAUSED.
Setting pipeline to NULL …
Freeing pipeline …
nvidia@miivii-tegra:~/Downloads/decoding/gst_logs$ cat job_3.log
nvbufsurftransform: Could not get EGL display connection
Setting pipeline to PAUSED …
ERROR: from element /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0: Cannot identify device ‘/dev/v4l2-nvdec’.
Additional debug info:
/dvs/git/dirty/git-master_linux/3rdparty/gst/gst-v4l2/gst-v4l2/v4l2_calls.c(657): gst_v4l2_open (): /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0:
system error: No such file or directory
ERROR: pipeline doesn’t want to preroll.
ERROR: from element /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0: Could not initialize supporting library.
Additional debug info:
../gst-libs/gst/video/gstvideodecoder.c(2909): gst_video_decoder_change_state (): /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0:
Failed to open decoder
ERROR: pipeline doesn’t want to preroll.
Failed to set pipeline to PAUSED.
Setting pipeline to NULL …
Freeing pipeline …
nvidia@miivii-tegra:~/Downloads/decoding/gst_logs$ cat job_4.log
nvbufsurftransform: Could not get EGL display connection
Setting pipeline to PAUSED …
ERROR: from element /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0: Cannot identify device ‘/dev/v4l2-nvdec’.
Additional debug info:
/dvs/git/dirty/git-master_linux/3rdparty/gst/gst-v4l2/gst-v4l2/v4l2_calls.c(657): gst_v4l2_open (): /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0:
system error: No such file or directory
ERROR: pipeline doesn’t want to preroll.
ERROR: from element /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0: Could not initialize supporting library.
Additional debug info:
../gst-libs/gst/video/gstvideodecoder.c(2909): gst_video_decoder_change_state (): /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0:
Failed to open decoder
ERROR: pipeline doesn’t want to preroll.
Failed to set pipeline to PAUSED.
Setting pipeline to NULL …
Freeing pipeline …
nvidia@miivii-tegra:~/Downloads/decoding/gst_logs$ cat job_5.log
nvbufsurftransform: Could not get EGL display connection
Setting pipeline to PAUSED …
ERROR: from element /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0: Cannot identify device ‘/dev/v4l2-nvdec’.
Additional debug info:
/dvs/git/dirty/git-master_linux/3rdparty/gst/gst-v4l2/gst-v4l2/v4l2_calls.c(657): gst_v4l2_open (): /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0:
system error: No such file or directory
ERROR: pipeline doesn’t want to preroll.
ERROR: from element /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0: Could not initialize supporting library.
Additional debug info:
../gst-libs/gst/video/gstvideodecoder.c(2909): gst_video_decoder_change_state (): /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0:
Failed to open decoder
ERROR: pipeline doesn’t want to preroll.
Failed to set pipeline to PAUSED.
Setting pipeline to NULL …
Freeing pipeline …
nvidia@miivii-tegra:~/Downloads/decoding/gst_logs$ cat job_6.log
nvbufsurftransform: Could not get EGL display connection
Setting pipeline to PAUSED …
ERROR: from element /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0: Cannot identify device ‘/dev/v4l2-nvdec’.
Additional debug info:
/dvs/git/dirty/git-master_linux/3rdparty/gst/gst-v4l2/gst-v4l2/v4l2_calls.c(657): gst_v4l2_open (): /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0:
system error: No such file or directory
ERROR: pipeline doesn’t want to preroll.
ERROR: from element /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0: Could not initialize supporting library.
Additional debug info:
../gst-libs/gst/video/gstvideodecoder.c(2909): gst_video_decoder_change_state (): /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0:
Failed to open decoder
ERROR: pipeline doesn’t want to preroll.
Failed to set pipeline to PAUSED.
Setting pipeline to NULL …
Freeing pipeline …
nvidia@miivii-tegra:~/Downloads/decoding/gst_logs$ cat job_7.log
nvbufsurftransform: Could not get EGL display connection
Setting pipeline to PAUSED …
ERROR: from element /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0: Cannot identify device ‘/dev/v4l2-nvdec’.
Additional debug info:
/dvs/git/dirty/git-master_linux/3rdparty/gst/gst-v4l2/gst-v4l2/v4l2_calls.c(657): gst_v4l2_open (): /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0:
system error: No such file or directory
ERROR: pipeline doesn’t want to preroll.
ERROR: from element /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0: Could not initialize supporting library.
Additional debug info:
../gst-libs/gst/video/gstvideodecoder.c(2909): gst_video_decoder_change_state (): /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0:
Failed to open decoder
ERROR: pipeline doesn’t want to preroll.
Failed to set pipeline to PAUSED.
Setting pipeline to NULL …
Freeing pipeline …
nvidia@miivii-tegra:~/Downloads/decoding/gst_logs$ cat job_8.log
nvbufsurftransform: Could not get EGL display connection
Setting pipeline to PAUSED …
ERROR: from element /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0: Cannot identify device ‘/dev/v4l2-nvdec’.
Additional debug info:
/dvs/git/dirty/git-master_linux/3rdparty/gst/gst-v4l2/gst-v4l2/v4l2_calls.c(657): gst_v4l2_open (): /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0:
system error: No such file or directory
ERROR: pipeline doesn’t want to preroll.
ERROR: from element /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0: Could not initialize supporting library.
Additional debug info:
../gst-libs/gst/video/gstvideodecoder.c(2909): gst_video_decoder_change_state (): /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0:
Failed to open decoder
ERROR: pipeline doesn’t want to preroll.
Failed to set pipeline to PAUSED.
Setting pipeline to NULL …
Freeing pipeline …
nvidia@miivii-tegra:~/Downloads/decoding/gst_logs$ cat job_9.log
nvbufsurftransform: Could not get EGL display connection
Setting pipeline to PAUSED …
ERROR: from element /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0: Cannot identify device ‘/dev/v4l2-nvdec’.
Additional debug info:
/dvs/git/dirty/git-master_linux/3rdparty/gst/gst-v4l2/gst-v4l2/v4l2_calls.c(657): gst_v4l2_open (): /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0:
system error: No such file or directory
ERROR: pipeline doesn’t want to preroll.
ERROR: from element /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0: Could not initialize supporting library.
Additional debug info:
../gst-libs/gst/video/gstvideodecoder.c(2909): gst_video_decoder_change_state (): /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0:
Failed to open decoder
ERROR: pipeline doesn’t want to preroll.
Failed to set pipeline to PAUSED.
Setting pipeline to NULL …
Freeing pipeline …
nvidia@miivii-tegra:~/Downloads/decoding/gst_logs$ cat job_10.log
nvbufsurftransform: Could not get EGL display connection
Setting pipeline to PAUSED …
ERROR: from element /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0: Cannot identify device ‘/dev/v4l2-nvdec’.
Additional debug info:
/dvs/git/dirty/git-master_linux/3rdparty/gst/gst-v4l2/gst-v4l2/v4l2_calls.c(657): gst_v4l2_open (): /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0:
system error: No such file or directory
ERROR: pipeline doesn’t want to preroll.
ERROR: from element /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0: Could not initialize supporting library.
Additional debug info:
../gst-libs/gst/video/gstvideodecoder.c(2909): gst_video_decoder_change_state (): /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0:
Failed to open decoder
ERROR: pipeline doesn’t want to preroll.
Failed to set pipeline to PAUSED.
Setting pipeline to NULL …
Freeing pipeline …

I have applied the provided patch file modifications and successfully compiled. Could you help me identify where the issue might be? Thank you very much.

The issue with the black screen on the display has been resolved. The problem was due to an incorrect modification of a KO file. Currently, the device has started up normally and the screen display is working properly.

However, when executing the decoding script, 9-channel and 10-channel decoding are still reporting errors. The patch package does not seem to be taking effect.

9 -channle log:
Setting pipeline to PAUSED … Opening in BLOCKING MODE Pipeline is PREROLLING … /GstPipeline:pipeline0/GstH265Parse:h265parse0.GstPad:sink: caps = video/x-h265, stream-format=(string)hev1, alignment=(string)au, level=(string)4, tier=(string)high, profile=(string)main, codec_data=(buffer)01216000000090000000000078f000fcfdf8f800000f04200001001840010c01ffff216000000300900000030000030078959809210001002b420101216000000300900000030000030078a003c08010e596566924caf01010000003001000000301e08022000100074401c172b4624027000107784e0105ffffffffffffff732ca2de09b51747dbbb55a4fe7fc2fc4e7832363520286275696c642031353129202d20322e362b34392d3732313933373664653432613a5b57696e646f77735d5b47434320372e332e305d5b3634206269745d20386269742b3130626974202d20482e3236352f4845564320636f646563202d20436f7079726967687420323031332d3230313820286329204d756c7469636f7265776172652c20496e63202d20687474703a2f2f783236352e6f7267202d206f7074696f6e733a2063707569643d31303530313131206672616d652d746872656164733d33206e756d612d706f6f6c733d3820777070206e6f2d706d6f6465206e6f2d706d65206e6f2d70736e72206e6f2d7373696d206c6f672d6c6576656c3d322062697464657074683d3820696e7075742d6373703d31206670733d33302f3120696e7075742d7265733d31393230783130383020696e7465726c6163653d3020746f74616c2d6672616d65733d30206c6576656c2d6964633d3020686967682d746965723d31207568642d62643d30207265663d34206e6f2d616c6c6f772d6e6f6e2d636f6e666f726d616e6365206e6f2d7265706561742d6865616465727320616e6e657862206e6f2d617564206e6f2d68726420696e666f20686173683d30206e6f2d74656d706f72616c2d6c6179657273206f70656e2d676f70206d696e2d6b6579696e743d3235206b6579696e743d32353020676f702d6c6f6f6b61686561643d3020626672616d65733d3420622d61646170743d3220622d707972616d696420626672616d652d626961733d302072632d6c6f6f6b61686561643d3235206c6f6f6b61686561642d736c696365733d34207363656e656375743d3430207261646c3d30206e6f2d696e7472612d72656672657368206374753d3634206d696e2d63752d73697a653d382072656374206e6f2d616d70206d61782d74752d73697a653d33322074752d696e7465722d64657074683d312074752d696e7472612d64657074683d31206c696d69742d74753d302072646f712d6c6576656c3d322064796e616d69632d72643d302e3030206e6f2d7373696d2d7264207369676e68696465206e6f2d74736b6970206e722d696e7472613d30206e722d696e7465723d30206e6f2d636f6e73747261696e65642d696e747261207374726f6e672d696e7472612d736d6f6f7468696e67206d61782d6d657267653d33206c696d69742d726566733d33206c696d69742d6d6f646573206d653d33207375626d653d33206d6572616e67653d35372074656d706f72616c2d6d76702077656967687470206e6f2d77656967687462206e6f2d616e616c797a652d7372632d70696373206465626c6f636b3d303a302073616f206e6f2d73616f2d6e6f6e2d6465626c6f636b2072643d34206e6f2d6561726c792d736b69702072736b6970206e6f2d666173742d696e747261206e6f2d74736b69702d66617374206e6f2d63752d6c6f73736c657373206e6f2d622d696e747261206e6f2d73706c697472642d736b697020726470656e616c74793d30207073792d72643d322e3030207073792d72646f713d312e3030206e6f2d72642d726566696e65206e6f2d6c6f73736c65737320636271706f6666733d3020637271706f6666733d302072633d61627220626974726174653d32353932302071636f6d703d302e3630207170737465703d342073746174732d77726974653d302073746174732d726561643d30206970726174696f3d312e3430207062726174696f3d312e33302061712d6d6f64653d312061712d737472656e6774683d312e303020637574726565207a6f6e652d636f756e743d30206e6f2d7374726963742d6362722071672d73697a653d3332206e6f2d72632d677261696e2071706d61783d36392071706d696e3d30206e6f2d636f6e73742d766276207361723d31206f7665727363616e3d3020766964656f666f726d61743d352072616e67653d3020636f6c6f727072696d3d32207472616e736665723d3220636f6c6f726d61747269783d32206368726f6d616c6f633d3020646973706c61792d77696e646f773d30206d61782d636c6c3d302c30206d696e2d6c756d613d30206d61782d6c756d613d323535206c6f67322d6d61782d706f632d6c73623d38207675692d74696d696e672d696e666f207675692d6872642d696e666f20736c696365733d31206e6f2d6f70742d71702d707073206e6f2d6f70742d7265662d6c6973742d6c656e6774682d707073206e6f2d6d756c74692d706173732d6f70742d727073207363656e656375742d626961733d302e3035206e6f2d6f70742d63752d64656c74612d7170206e6f2d61712d6d6f74696f6e206e6f2d686472206e6f2d6864722d6f7074206e6f2d6468647231302d6f707420616e616c797369732d72657573652d6c6576656c3d35207363616c652d666163746f723d3020726566696e652d696e7472613d3020726566696e652d696e7465723d3020726566696e652d6d763d30206e6f2d6c696d69742d73616f206374752d696e666f3d30206e6f2d6c6f77706173732d64637420726566696e652d6d762d747970653d3020636f70792d7069633d3180, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive /GstPipeline:pipeline0/GstH265Parse:h265parse0.GstPad:src: caps = video/x-h265, stream-format=(string)byte-stream, alignment=(string)au, level=(string)4, tier=(string)high, profile=(string)main, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true NvMMLiteOpen : Block : BlockType = 279 InitNVDEC: Host1x channel open failed NVMEDIA: NvMMDecNvVideoCreateParser: 7942: - Failed to get NVDEC Channel handle NvMMLiteBlockCreate : Block : BlockType = 279 /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0.GstPad:sink: caps = video/x-h265, stream-format=(string)byte-stream, alignment=(string)au, level=(string)4, tier=(string)high, profile=(string)main, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true NVDEC_COMMON: Host1x channel open failed ******tegraH265DecoderCreate 1562 Failed in the API InitNVDEC_safe, calling tegraH265DecoderDestroy ****** NVMMLITE_NVVIDEODEC, <cbBeginSequence, 1774> ErrorInfo = VideoErrorInfo_NvVideoDecoderCreate cctx = 0xa803d740 NVMMLITE_NVVIDEODEC, NvVideoBufferProcessing:6608 video_parser_parse Unsupported Codec NVMMLITE_NVVIDEODEC, NvMMLiteNvVideoDecDoWork:7112 NVVIDEO Video Dec Unsupported Stream NVMMLITE_NVVIDEODEC, NvVideoBufferProcessing:6608 video_parser_parse Unsupported Codec ERROR: from element /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0: Failed to process frame. NVMMLITE_NVVIDEODEC, NvVideoBufferProcessing:6608 video_parser_parse Unsupported Codec Additional debug info: /dvs/git/dirty/git-master_linux/3rdparty/gst/gst-v4l2/gst-v4l2/gstv4l2videodec.c(2265): gst_v4l2_video_dec_handle_frame (): /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0: Maybe be due to not enough memory or failing driver ERROR: pipeline doesn’t want to preroll. Setting pipeline to NULL … ERROR: from element /GstPipeline:pipeline0/GstQTDemux:qtdemux0: Internal data stream error. Additional debug info: ../gst/isomp4/qtdemux.c(6749): gst_qtdemux_loop (): /GstPipeline:pipeline0/GstQTDemux:qtdemux0: streaming stopped, reason error (-5) ERROR: pipeline doesn’t want to preroll. ERROR: from element /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0: No valid frames decoded before end of stream Additional debug info: ../gst-libs/gst/video/gstvideodecoder.c(1416): gst_video_decoder_sink_event_default (): /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0: no valid frames found ERROR: pipeline doesn’t want to preroll. malloc_consolidate(): unaligned fastbin chunk detected

@DaneLLL

Hi,
It should be that you don’t correctly apply the kernel files. You may refer to
No data from Joystick Logitech-f710 - #10 by DaneLLL

Thank you for your reply. However, I didn’t perform a full image flash on the device—I only replaced these two KO files directly on the device. After rebooting, the display becomes unusable.

I would like to ask how to get the new KO files to work properly. Apart from the two related KO files in [r36_4_TEST_kernel_host1x.zip], what else needs to be replaced?。
r36_4_TEST_kernel_host1x.zip (6.0 KB)

nvidia@miivii-tegra:~$ ls /lib/modules/5.15.148-tegra/updates/drivers/gpu/drm/tegra/
tegra-drm.ko tegra-drm.ko.backup
nvidia@miivii-tegra:~$ ls /lib/modules/5.15.148-tegra/updates/drivers/gpu/host1x
host1x.ko host1x.ko.backup

dmesg output :
[ 10.602795] host1x_nvhost: disagrees about version of symbol host1x_syncpt_alloc
[ 10.602803] host1x_nvhost: Unknown symbol host1x_syncpt_alloc (err -22)
[ 10.602839] host1x_nvhost: disagrees about version of symbol host1x_syncpt_read_max
[ 10.602840] host1x_nvhost: Unknown symbol host1x_syncpt_read_max (err -22)
[ 10.602882] host1x_nvhost: disagrees about version of symbol host1x_syncpt_incr
[ 10.602884] host1x_nvhost: Unknown symbol host1x_syncpt_incr (err -22)
[ 10.602892] host1x_nvhost: disagrees about version of symbol host1x_syncpt_get_by_id_noref
[ 10.602892] host1x_nvhost: Unknown symbol host1x_syncpt_get_by_id_noref (err -22)
[ 10.602897] host1x_nvhost: disagrees about version of symbol host1x_syncpt_put
[ 10.602898] host1x_nvhost: Unknown symbol host1x_syncpt_put (err -22)
[ 10.602907] host1x_nvhost: disagrees about version of symbol host1x_syncpt_read
[ 10.602907] host1x_nvhost: Unknown symbol host1x_syncpt_read (err -22)
[ 10.602924] host1x_nvhost: disagrees about version of symbol host1x_syncpt_wait
[ 10.602925] host1x_nvhost: Unknown symbol host1x_syncpt_wait (err -22)
[ 10.602956] host1x_nvhost: disagrees about version of symbol host1x_syncpt_incr_max
[ 10.602957] host1x_nvhost: Unknown symbol host1x_syncpt_incr_max (err -22)
[ 10.602963] host1x_nvhost: disagrees about version of symbol host1x_syncpt_id
[ 10.602964] host1x_nvhost: Unknown symbol host1x_syncpt_id (err -22)
[ 10.702654] nvgpu: disagrees about version of symbol host1x_syncpt_alloc
[ 10.702662] nvgpu: Unknown symbol host1x_syncpt_alloc (err -22)
[ 10.702697] nvgpu: disagrees about version of symbol host1x_syncpt_read
[ 10.702698] nvgpu: Unknown symbol host1x_syncpt_read (err -22)
[ 10.702919] nvgpu: disagrees about version of symbol host1x_syncpt_incr
[ 10.702920] nvgpu: Unknown symbol host1x_syncpt_incr (err -22)
[ 10.703099] nvgpu: disagrees about version of symbol host1x_syncpt_get_by_id_noref
[ 10.703100] nvgpu: Unknown symbol host1x_syncpt_get_by_id_noref (err -22)
[ 10.703325] nvgpu: disagrees about version of symbol host1x_syncpt_id
[ 10.703327] nvgpu: Unknown symbol host1x_syncpt_id (err -22)
[ 10.703352] nvgpu: disagrees about version of symbol host1x_syncpt_wait
[ 10.703352] nvgpu: Unknown symbol host1x_syncpt_wait (err -22)
[ 10.703367] nvgpu: disagrees about version of symbol host1x_syncpt_put
[ 10.703367] nvgpu: Unknown symbol host1x_syncpt_put (err -22)
[ 10.897717] host1x_nvhost: disagrees about version of symbol host1x_syncpt_alloc
[ 10.897725] host1x_nvhost: Unknown symbol host1x_syncpt_alloc (err -22)
[ 10.897762] host1x_nvhost: disagrees about version of symbol host1x_syncpt_read_max
[ 10.897763] host1x_nvhost: Unknown symbol host1x_syncpt_read_max (err -22)
[ 10.897806] host1x_nvhost: disagrees about version of symbol host1x_syncpt_incr
[ 10.897807] host1x_nvhost: Unknown symbol host1x_syncpt_incr (err -22)
[ 10.897814] host1x_nvhost: disagrees about version of symbol host1x_syncpt_get_by_id_noref
[ 10.897815] host1x_nvhost: Unknown symbol host1x_syncpt_get_by_id_noref (err -22)
[ 10.897819] host1x_nvhost: disagrees about version of symbol host1x_syncpt_put
[ 10.897820] host1x_nvhost: Unknown symbol host1x_syncpt_put (err -22)
[ 10.897830] host1x_nvhost: disagrees about version of symbol host1x_syncpt_read
[ 10.897831] host1x_nvhost: Unknown symbol host1x_syncpt_read (err -22)
[ 10.897848] host1x_nvhost: disagrees about version of symbol host1x_syncpt_wait
[ 10.897849] host1x_nvhost: Unknown symbol host1x_syncpt_wait (err -22)
[ 10.897879] host1x_nvhost: disagrees about version of symbol host1x_syncpt_incr_max
[ 10.897880] host1x_nvhost: Unknown symbol host1x_syncpt_incr_max (err -22)
[ 10.897887] host1x_nvhost: disagrees about version of symbol host1x_syncpt_id
[ 10.897887] host1x_nvhost: Unknown symbol host1x_syncpt_id (err -22)

I hope to achieve this by simply replacing files without the need for flashing, as this would make it more convenient for me to release deb package updates.

If I only replace the generated .ko file, it causes errors. Do I also need to replace the .h files involved in the patch on the device? Or are there other solutions?

@DaneLLL

Hi,
It may not work properly in partial update. Would strongly suggest re-flash the system.