nanopi-m4-ubuntu-base-minimal icon indicating copy to clipboard operation
nanopi-m4-ubuntu-base-minimal copied to clipboard

Kodi on 5.7.x

Open lorefx opened this issue 3 years ago • 11 comments

Hi, just a question. IN the README I see that kodi on the 5.7.x compiles and works, but with limited decoding capabilities.

Can you elaborate more on that? I'd like to understand what it means and what it would be needed to make it work properly as the 4.4 kernel version, or event if it is would be possible in the near future.

Sorry for the "silly" question but I really like to grasp things

lorefx avatar Sep 08 '20 07:09 lorefx

The problem is not the KODI per se but rkdec in mainline is a WIP, you will get some artifacts while decoding h265 10bit for example. By the time i say this it could have been fixed. You need to follow the mainline progress and update/patch the kernel to fix things.

Kodi is fine if you run with software decoding for all formats, but you get 300% cpu usage in most cases instead of the ~80% CPU with HW decoding.

avafinger avatar Sep 08 '20 13:09 avafinger

TLDR: HW acceleration in Kodi won't work (most likey problem: gpu not detected as mali/panfrost but as llvmpipe)

Hi, just a quick update.

I started from the 1.39 release and fresh rebuilt kodi this night. Release 1.4 won't work with my Nanopi M4 v1 2GB (at boot, I see garbage on the screen and it reboots). 1.39 works. Both tested with a 32GB sd card

Kodi rebuilt with the following instructions:

` sudo apt install autoconf automake autopoint gettext autotools-dev cmake curl default-jre gawk gcc g++ cpp gdc gperf libasound2-dev libass-dev libavahi-client-dev libavahi-common-dev libbluetooth-dev libbluray-dev libbz2-dev libcdio-dev libcec-dev libp8-platform-dev libcrossguid-dev libcurl4-openssl-dev libcwiid-dev libdbus-1-dev libegl1-mesa-dev libenca-dev libflac-dev libfontconfig1-dev libfmt-dev libfreetype6-dev libfribidi-dev libfstrcmp-dev libgcrypt20-dev libgif-dev libgles2-mesa-dev libglew-dev libglu1-mesa-dev libgnutls28-dev libgpg-error-dev libiso9660-dev libjpeg-dev liblcms2-dev liblirc-dev libltdl-dev liblzo2-dev libmicrohttpd-dev libmysqlclient-dev libnfs-dev libogg-dev libomxil-bellagio-dev libpcre3-dev libplist-dev libpng-dev libpulse-dev libsmbclient-dev libsqlite3-dev libssl-dev libtag1-dev libtiff5-dev libtinyxml-dev libtool libudev-dev libva-dev libvdpau-dev libvorbis-dev libxkbcommon-dev libxmu-dev libxrandr-dev libxslt1-dev libxt-dev netcat lsb-release nasm python-dev python-pil python2-minimal rapidjson-dev swig unzip uuid-dev yasm zip zlib1g-dev libcap-dev libgbm-dev libsndio-dev libdrm-dev libinput-dev libgtest-dev libunistring-dev sync && sudo reboot

mkdir -p kodi cd kodi mkdir -p kodi-build git clone https://github.com/xbmc/xbmc kodi cd kodi sudo make -C tools/depends/target/crossguid PREFIX=/usr sudo make -C tools/depends/target/flatbuffers PREFIX=/usr sudo make -C tools/depends/target/libfmt PREFIX=/usr sudo make -C tools/depends/target/libspdlog PREFIX=/usr cd ../kodi-build cmake ../kodi -DCMAKE_INSTALL_PREFIX=/usr/local -DCORE_PLATFORM_NAME=gbm -DGBM_RENDER_SYSTEM=gles cmake --build . -- VERBOSE=0 -j1 sudo usermod -a -G input,video ubuntu sudo make install cd ../kodi sudo make -j1 -C tools/depends/target/binary-addons PREFIX=/usr/local ADDONS="audiodecoder.* audioencoder.* game.* imagedecoder.* inputstream.* peripheral.* vfs.*" `

Kodi starts and outputs video, but I had to disable DRMPRIME and HW acceleration otherwise all tested videos would start in audio but no actual frames are drawn on screen. Error in kodi log is ERROR : CDVDVideoCodecDRMPRIME::AddData - send packet failed: Invalid data found when processing input (-1094995529)

Running videos with HW and drm prime disabled works but CPU is 100% on all cores and some frames are skipped.

These are screenshots of the hardware info, I think there's something wrong with the GPU detection as it shows llvmpipe, but I'm not sure

IMG_20201006_103625 IMG_20201006_103659

Moreover this is an extract of the kodi launch log regarding the video device ``

INFO : EGL_VERSION = 1.4 2020-10-06 11:08:03.623 T:939 INFO : EGL_VENDOR = Mesa Project 2020-10-06 11:08:03.623 T:939 INFO : EGL_EzXTENSIONS = EGL_ANDROID_blob_cache EGL_EXT_buffer_age EGL_EXT_image_dma_buf_import EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_imag> 2020-10-06 11:08:03.623 T:939 INFO : EGL_CLIENT_EXTENSIONS = EGL_EXT_device_base EGL_EXT_device_enumeration EGL_EXT_device_query EGL_EXT_platform_base EGL_KHR_client_get_all_proc_addresses EGL_EXT_client_extensions EGL_KHR_debug EGL_EXT_platform_wayland EGL_EXT_platform_x11 EGL_MESA_platform_gbm EGL_MESA_platform_surfaceless EGL_EXT_platform_device 2020-10-06 11:08:03.644 T:939 INFO : Checking resolution 16 2020-10-06 11:08:03.644 T:939 WARNING : CGBMUtils::DestroySurface - surface already destroyed 2020-10-06 11:08:03.657 T:939 INFO : GL_VENDOR = VMware, Inc. 2020-10-06 11:08:03.657 T:939 INFO : GL_RENDERER = llvmpipe (LLVM 10.0.0, 128 bits) 2020-10-06 11:08:03.657 T:939 INFO : GL_VERSION = OpenGL ES 3.1 Mesa 20.0.8 2020-10-06 11:08:03.657 T:939 INFO : GL_SHADING_LANGUAGE_VERSION = OpenGL ES GLSL ES 3.10 2020-10-06 11:08:03.657 T:939 INFO : GL_EXTENSIONS = GL_EXT_blend_minmax GL_EXT_multi_draw_arrays GL_EXT_texture_compression_s3tc GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_format_BGRA8888 GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_rgb8_rgba8 GL_OES_standard_> 2020-10-06 11:08:03.795 T:939 INFO : GLES: Maximum texture width: 8192

If someone is also testing this, maybe we can help each other to solve these issues

lorefx avatar Oct 06 '20 08:10 lorefx

Release 1.4 won't work with my Nanopi M4 v1 2GB (at boot, I see garbage on the screen and it reboots). 1.39 works. Both tested with a 32GB sd card

I think there are 2 types of ddr3 memory used on the NanoPi M4 v1. The garbage you see is expected. My NanoPi M4 version is 2GB 1807 and 4GB 1807 (updated the release info). Can you check yours?

ERROR : CDVDVideoCodecDRMPRIME::AddData - send packet failed: Invalid data found when processing input (-1094995529)

You need a special version of FFmpeg, https://github.com/Kwiboo/FFmpeg

Regarding GPU, check if you have panfrost enabled, panfrost is the vanilla version:

lsmod|grep panfrost

Try to grab the boot log using a TTL debug.

avafinger avatar Oct 06 '20 11:10 avafinger

think there are 2 types of ddr3 memory used on the NanoPi M4 v1. The garbage you see is expected. My NanoPi M4 version is 2GB 1807 and 4GB 1807 (updated the release info). Can you check yours?

My nanopi is Nanopi M4 (2GB\1GB) 1807

You need a special version of FFmpeg, https://github.com/Kwiboo/FFmpeg

Ok I'll try that

Regarding GPU, check if you have panfrost enabled, panfrost is the vanilla version: lsmod|grep panfrost Try to grab the boot log using a TTL debug.

ubuntu@nanopi-m4:~$ lsmod | grep panfrost panfrost 57344 0 gpu_sched 32768 1 panfrost drm 577536 9 gpu_sched,drm_kms_helper,dw_mipi_dsi,rockchipdrm,dw_hdmi,panfrost,analogix_dp

And this is my boot log

[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034] [ 0.000000] Linux version 5.9.0-rc7 (alex@svn) (aarch64-linux-gnu-gcc (Linaro GCC 7.5-2019.12-rc1) 7.5.0, GNU ld (Linaro_Binutils-2019.12-rc1) 2.28.2.20170706) #1 SMP PREEMPT Tue Sep 29 18:59:14 -03 2020 [ 0.000000] Machine model: FriendlyElec NanoPi M4 [ 0.000000] efi: UEFI not found. [ 0.000000] cma: Reserved 128 MiB at 0x0000000071c00000 [ 0.000000] NUMA: No NUMA configuration found [ 0.000000] NUMA: Faking a node at [mem 0x0000000000200000-0x000000007fffffff] [ 0.000000] NUMA: NODE_DATA [mem 0x7fbac100-0x7fbadfff] [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x0000000000200000-0x000000003fffffff] [ 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 0x0000000000200000-0x000000007fffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000000200000-0x000000007fffffff] [ 0.000000] On node 0 totalpages: 523776 [ 0.000000] DMA zone: 4088 pages used for memmap [ 0.000000] DMA zone: 0 pages reserved [ 0.000000] DMA zone: 261632 pages, LIFO batch:63 [ 0.000000] DMA32 zone: 4096 pages used for memmap [ 0.000000] DMA32 zone: 262144 pages, LIFO batch:63 [ 0.000000] psci: probing for conduit method from DT. [ 0.000000] psci: PSCIv1.0 detected in firmware. [ 0.000000] psci: Using standard PSCI v0.2 function IDs [ 0.000000] psci: MIGRATE_INFO_TYPE not supported. [ 0.000000] psci: SMC Calling Convention v1.0 [ 0.000000] percpu: Embedded 22 pages/cpu s52888 r8192 d29032 u90112 [ 0.000000] pcpu-alloc: s52888 r8192 d29032 u90112 alloc=22*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [0] 4 [0] 5 [ 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] Built 1 zonelists, mobility grouping on. Total pages: 515592 [ 0.000000] Policy zone: DMA32 [ 0.000000] Kernel command line: earlyprintk root=/dev/mmcblk1p2 rw rootfstype=ext4 rootwait fsck.repair=yes panic=10 no_console_suspend consoleblank=0 [ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear) [ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear) [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] software IO TLB: mapped [mem 0x3bfff000-0x3ffff000] (64MB) [ 0.000000] Memory: 1835440K/2095104K available (12156K kernel code, 780K rwdata, 4604K rodata, 2496K init, 506K bss, 128592K reserved, 131072K cma-reserved) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=6, Nodes=1 [ 0.000000] rcu: Preemptible hierarchical RCU implementation. [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=6. [ 0.000000] Trampoline variant of Tasks RCU enabled. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies. [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=6 [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 [ 0.000000] GICv3: GIC: Using split EOI/Deactivate mode [ 0.000000] GICv3: 256 SPIs implemented [ 0.000000] GICv3: 0 Extended SPIs implemented [ 0.000000] GICv3: Distributor has no Range Selector support [ 0.000000] GICv3: 16 PPIs implemented [ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x00000000fef00000 [ 0.000000] ITS [mem 0xfee20000-0xfee3ffff] [ 0.000000] ITS@0x00000000fee20000: allocated 65536 Devices @7f080000 (flat, esz 8, psz 64K, shr 0) [ 0.000000] ITS: using cache flushing for cmd queue [ 0.000000] GICv3: using LPI property table @0x000000007f050000 [ 0.000000] GIC: using cache flushing for LPI property table [ 0.000000] GICv3: CPU0: using allocated LPI pending table @0x000000007f060000 [ 0.000000] GICv3: GIC: PPI partition interrupt-partition-0[0] { /cpus/cpu@0[0] /cpus/cpu@1[1] /cpus/cpu@2[2] /cpus/cpu@3[3] } [ 0.000000] GICv3: GIC: PPI partition interrupt-partition-1[1] { /cpus/cpu@100[4] /cpus/cpu@101[5] } [ 0.000000] random: get_random_bytes called from start_kernel+0x314/0x4f0 with crng_init=0 [ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns [ 0.000018] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns [ 0.003186] Console: colour dummy device 80x25 [ 0.005966] printk: console [tty0] enabled [ 0.006278] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000) [ 0.006395] pid_max: default: 32768 minimum: 301 [ 0.006807] LSM: Security Framework initializing [ 0.007110] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.007275] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.013830] rcu: Hierarchical SRCU implementation. [ 0.014780] Platform MSI: interrupt-controller@fee20000 domain created [ 0.015898] PCI/MSI: /interrupt-controller@fee00000/interrupt-controller@fee20000 domain created [ 0.021587] EFI services will not be available. [ 0.022794] smp: Bringing up secondary CPUs ... [ 0.024628] Detected VIPT I-cache on CPU1 [ 0.024728] GICv3: CPU1: found redistributor 1 region 0:0x00000000fef20000 [ 0.024762] GICv3: CPU1: using allocated LPI pending table @0x000000007f070000 [ 0.024860] CPU1: Booted secondary processor 0x0000000001 [0x410fd034] [ 0.026845] Detected VIPT I-cache on CPU2 [ 0.026935] GICv3: CPU2: found redistributor 2 region 0:0x00000000fef40000 [ 0.026968] GICv3: CPU2: using allocated LPI pending table @0x000000007f100000 [ 0.027047] CPU2: Booted secondary processor 0x0000000002 [0x410fd034] [ 0.028989] Detected VIPT I-cache on CPU3 [ 0.029080] GICv3: CPU3: found redistributor 3 region 0:0x00000000fef60000 [ 0.029111] GICv3: CPU3: using allocated LPI pending table @0x000000007f110000 [ 0.029193] CPU3: Booted secondary processor 0x0000000003 [0x410fd034] [ 0.033705] CPU features: detected: EL2 vector hardening [ 0.034124] ARM_SMCCC_ARCH_WORKAROUND_1 missing from firmware [ 0.034408] CPU features: detected: ARM errata 1165522, 1319367, or 1530923 [ 0.034742] Detected PIPT I-cache on CPU4 [ 0.036113] GICv3: CPU4: found redistributor 100 region 0:0x00000000fef80000 [ 0.036573] GICv3: CPU4: using allocated LPI pending table @0x000000007f120000 [ 0.037860] CPU4: Booted secondary processor 0x0000000100 [0x410fd082] [ 0.048073] Detected PIPT I-cache on CPU5 [ 0.049383] GICv3: CPU5: found redistributor 101 region 0:0x00000000fefa0000 [ 0.049823] GICv3: CPU5: using allocated LPI pending table @0x000000007f130000 [ 0.050935] CPU5: Booted secondary processor 0x0000000101 [0x410fd082] [ 0.056426] smp: Brought up 1 node, 6 CPUs [ 0.057740] SMP: Total of 6 processors activated. [ 0.057821] CPU features: detected: 32-bit EL0 Support [ 0.057895] CPU features: detected: CRC32 instructions [ 0.057965] CPU features: detected: 32-bit EL1 Support [ 0.265652] CPU: All CPU(s) started at EL2 [ 0.266560] alternatives: patching kernel code [ 0.274901] devtmpfs: initialized [ 0.328176] KASLR disabled due to lack of seed [ 0.330053] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.330200] futex hash table entries: 2048 (order: 5, 131072 bytes, linear) [ 0.348893] pinctrl core: initialized pinctrl subsystem [ 0.351963] DMI not present or invalid. [ 0.354453] NET: Registered protocol family 16 [ 0.378222] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations [ 0.378607] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations [ 0.379503] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations [ 0.379865] audit: initializing netlink subsys (disabled) [ 0.381000] audit: type=2000 audit(0.372:1): state=initialized audit_enabled=0 res=1 [ 0.385719] thermal_sys: Registered thermal governor 'step_wise' [ 0.388352] cpuidle: using governor menu [ 0.390154] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers. [ 0.392573] ASID allocator initialised with 65536 entries [ 0.397856] Serial: AMBA PL011 UART driver [ 0.624411] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages [ 0.624610] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages [ 0.624685] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages [ 0.624831] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages [ 0.665223] cryptd: max_cpu_qlen set to 1000 [ 0.698858] ACPI: Interpreter disabled. [ 0.712304] vcc5v0_core: supplied by vdd_5v [ 0.713082] vcc5v0_sys: supplied by vdd_5v [ 0.713415] vbus_typec: supplied by vdd_5v [ 0.714583] vcc5v0_usb1: supplied by vcc5v0_sys [ 0.715279] vcc3v3_sys: supplied by vcc5v0_core [ 0.715524] vcc3v0_sd: supplied by vcc3v3_sys [ 0.716412] vcc5v0_usb2: supplied by vcc5v0_sys [ 0.721498] iommu: Default domain type: Translated [ 0.732355] vgaarb: loaded [ 0.734097] SCSI subsystem initialized [ 0.736376] libata version 3.00 loaded. [ 0.737474] usbcore: registered new interface driver usbfs [ 0.737705] usbcore: registered new interface driver hub [ 0.738185] usbcore: registered new device driver usb [ 0.740097] pps_core: LinuxPPS API ver. 1 registered [ 0.740173] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti [email protected] [ 0.740308] PTP clock support registered [ 0.741239] EDAC MC: Ver: 3.0.0 [ 0.745645] FPGA manager framework [ 0.746037] Advanced Linux Sound Architecture Driver Initialized. [ 0.748189] Bluetooth: Core ver 2.22 [ 0.748345] NET: Registered protocol family 31 [ 0.748406] Bluetooth: HCI device and connection manager initialized [ 0.748488] Bluetooth: HCI socket layer initialized [ 0.748561] Bluetooth: L2CAP socket layer initialized [ 0.748662] Bluetooth: SCO socket layer initialized [ 0.752895] clocksource: Switched to clocksource arch_sys_counter [ 0.754542] VFS: Disk quotas dquot_6.6.0 [ 0.754828] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 0.755705] pnp: PnP ACPI: disabled [ 0.785928] NET: Registered protocol family 2 [ 0.787919] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear) [ 0.788187] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear) [ 0.789115] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear) [ 0.790289] TCP: Hash tables configured (established 16384 bind 16384) [ 0.790801] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear) [ 0.791108] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear) [ 0.792910] NET: Registered protocol family 1 [ 0.795959] RPC: Registered named UNIX socket transport module. [ 0.796032] RPC: Registered udp transport module. [ 0.796088] RPC: Registered tcp transport module. [ 0.796142] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.796228] PCI: CLS 0 bytes, default 64 [ 0.797418] Unpacking initramfs... [ 1.033593] Freeing initrd memory: 1128K [ 1.046264] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available [ 1.050178] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available [ 1.053105] kvm [1]: IPA Size Limit: 40bits [ 1.056257] kvm [1]: vgic-v2@fff20000 [ 1.056604] kvm [1]: GIC system register CPU interface enabled [ 1.059496] kvm [1]: vgic interrupt IRQ10 [ 1.063087] kvm [1]: Hyp mode initialized successfully [ 1.083397] Initialise system trusted keyrings [ 1.084661] workingset: timestamp_bits=44 max_order=19 bucket_order=0 [ 1.118164] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 1.123328] NFS: Registering the id_resolver key type [ 1.123561] Key type id_resolver registered [ 1.123620] Key type id_legacy registered [ 1.124089] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 1.336848] Key type asymmetric registered [ 1.336927] Asymmetric key parser 'x509' registered [ 1.337105] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246) [ 1.337190] io scheduler mq-deadline registered [ 1.337246] io scheduler kyber registered [ 1.386957] EINJ: ACPI disabled. [ 1.395079] dma-pl330 ff6d0000.dma-controller: Loaded driver for PL330 DMAC-241330 [ 1.395233] dma-pl330 ff6d0000.dma-controller: DBUFF-32x8bytes Num_Chans-6 Num_Peri-12 Num_Events-12 [ 1.401202] dma-pl330 ff6e0000.dma-controller: Loaded driver for PL330 DMAC-241330 [ 1.401321] dma-pl330 ff6e0000.dma-controller: DBUFF-128x8bytes Num_Chans-8 Num_Peri-20 Num_Events-16 [ 1.422077] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled [ 1.430822] ff180000.serial: ttyS0 at MMIO 0xff180000 (irq = 39, base_baud = 1500000) is a 16550A [ 1.431630] serial serial0: tty port ttyS0 registered [ 1.434602] ff1a0000.serial: ttyS2 at MMIO 0xff1a0000 (irq = 40, base_baud = 1500000) is a 16550A [ 1.537631] printk: console [ttyS2] enabled [ 1.547412] cacheinfo: Unable to detect cache hierarchy for CPU 0 [ 1.582763] loop: module loaded [ 1.585606] zram: Added device: zram0 [ 1.602129] libphy: Fixed MDIO Bus: probed [ 1.603913] tun: Universal TUN/TAP device driver, 1.6 [ 1.608245] thunder_xcv, ver 1.0 [ 1.608885] thunder_bgx, ver 1.0 [ 1.609399] nicpf, ver 1.0 [ 1.612797] hclge is initializing [ 1.613531] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version [ 1.614245] hns3: Copyright (c) 2017 Huawei Corporation. [ 1.614994] e1000e: Intel(R) PRO/1000 Network Driver [ 1.615488] e1000e: Copyright(c) 1999 - 2015 Intel Corporation. [ 1.616245] igb: Intel(R) Gigabit Ethernet Network Driver [ 1.616849] igb: Copyright (c) 2007-2014 Intel Corporation. [ 1.617539] igbvf: Intel(R) Gigabit Virtual Function Network Driver [ 1.618152] igbvf: Copyright (c) 2009 - 2012 Intel Corporation. [ 1.619533] sky2: driver version 1.30 [ 1.621946] VFIO - User Level meta-driver version: 0.3 [ 1.647865] OF: graph: no port node found in /syscon@ff770000/usb2-phy@e450/otg-port [ 1.698393] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 1.699154] ehci-pci: EHCI PCI platform driver [ 1.699741] ehci-platform: EHCI generic platform driver [ 1.703980] ehci-platform fe380000.usb: EHCI Host Controller [ 1.704961] ehci-platform fe380000.usb: new USB bus registered, assigned bus number 1 [ 1.706320] ehci-platform fe380000.usb: irq 31, io mem 0xfe380000 [ 1.720854] ehci-platform fe380000.usb: USB 2.0 started, EHCI 1.00 [ 1.722163] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.09 [ 1.722989] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.723705] usb usb1: Product: EHCI Host Controller [ 1.724199] usb usb1: Manufacturer: Linux 5.9.0-rc7 ehci_hcd [ 1.724895] usb usb1: SerialNumber: fe380000.usb [ 1.727387] hub 1-0:1.0: USB hub found [ 1.727895] hub 1-0:1.0: 1 port detected [ 1.733413] ehci-platform fe3c0000.usb: EHCI Host Controller [ 1.734062] ehci-platform fe3c0000.usb: new USB bus registered, assigned bus number 2 [ 1.735324] ehci-platform fe3c0000.usb: irq 33, io mem 0xfe3c0000 [ 1.748692] ehci-platform fe3c0000.usb: USB 2.0 started, EHCI 1.00 [ 1.749874] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.09 [ 1.750698] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.751415] usb usb2: Product: EHCI Host Controller [ 1.751908] usb usb2: Manufacturer: Linux 5.9.0-rc7 ehci_hcd [ 1.752472] usb usb2: SerialNumber: fe3c0000.usb [ 1.754902] hub 2-0:1.0: USB hub found [ 1.755398] hub 2-0:1.0: 1 port detected [ 1.758414] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 1.759079] ohci-pci: OHCI PCI platform driver [ 1.759724] ohci-platform: OHCI generic platform driver [ 1.761436] ohci-platform fe3a0000.usb: Generic Platform OHCI controller [ 1.762156] ohci-platform fe3a0000.usb: new USB bus registered, assigned bus number 3 [ 1.763417] ohci-platform fe3a0000.usb: irq 32, io mem 0xfe3a0000 [ 1.825351] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.09 [ 1.826179] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.826897] usb usb3: Product: Generic Platform OHCI controller [ 1.827487] usb usb3: Manufacturer: Linux 5.9.0-rc7 ohci_hcd [ 1.828051] usb usb3: SerialNumber: fe3a0000.usb [ 1.830319] hub 3-0:1.0: USB hub found [ 1.830815] hub 3-0:1.0: 1 port detected [ 1.833719] ohci-platform fe3e0000.usb: Generic Platform OHCI controller [ 1.834440] ohci-platform fe3e0000.usb: new USB bus registered, assigned bus number 4 [ 1.835724] ohci-platform fe3e0000.usb: irq 34, io mem 0xfe3e0000 [ 1.897353] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.09 [ 1.898180] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.898897] usb usb4: Product: Generic Platform OHCI controller [ 1.899487] usb usb4: Manufacturer: Linux 5.9.0-rc7 ohci_hcd [ 1.900049] usb usb4: SerialNumber: fe3e0000.usb [ 1.902328] hub 4-0:1.0: USB hub found [ 1.902824] hub 4-0:1.0: 1 port detected [ 1.908681] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller [ 1.909326] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 5 [ 1.910572] xhci-hcd xhci-hcd.0.auto: hcc params 0x0220fe64 hci version 0x110 quirks 0x0000000002010010 [ 1.911583] xhci-hcd xhci-hcd.0.auto: irq 231, io mem 0xfe800000 [ 1.913807] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.09 [ 1.914634] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.915351] usb usb5: Product: xHCI Host Controller [ 1.915844] usb usb5: Manufacturer: Linux 5.9.0-rc7 xhci-hcd [ 1.916408] usb usb5: SerialNumber: xhci-hcd.0.auto [ 1.918862] hub 5-0:1.0: USB hub found [ 1.919366] hub 5-0:1.0: 1 port detected [ 1.921292] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller [ 1.921888] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 6 [ 1.922679] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed [ 1.923557] usb usb6: We don't know the algorithms for LPM for this host, disabling LPM. [ 1.924976] usb usb6: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.09 [ 1.925799] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.926515] usb usb6: Product: xHCI Host Controller [ 1.927010] usb usb6: Manufacturer: Linux 5.9.0-rc7 xhci-hcd [ 1.927575] usb usb6: SerialNumber: xhci-hcd.0.auto [ 1.929853] hub 6-0:1.0: USB hub found [ 1.930347] hub 6-0:1.0: 1 port detected [ 1.932998] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller [ 1.933616] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 7 [ 1.935007] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220fe64 hci version 0x110 quirks 0x0000000002010010 [ 1.936216] xhci-hcd xhci-hcd.1.auto: irq 232, io mem 0xfe900000 [ 1.938090] usb usb7: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.09 [ 1.938917] usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.939633] usb usb7: Product: xHCI Host Controller [ 1.940127] usb usb7: Manufacturer: Linux 5.9.0-rc7 xhci-hcd [ 1.940752] usb usb7: SerialNumber: xhci-hcd.1.auto [ 1.943118] hub 7-0:1.0: USB hub found [ 1.943624] hub 7-0:1.0: 1 port detected [ 1.945432] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller [ 1.946022] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 8 [ 1.946830] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed [ 1.947746] usb usb8: We don't know the algorithms for LPM for this host, disabling LPM. [ 1.949022] usb usb8: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.09 [ 1.949846] usb usb8: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.950561] usb usb8: Product: xHCI Host Controller [ 1.951055] usb usb8: Manufacturer: Linux 5.9.0-rc7 xhci-hcd [ 1.951619] usb usb8: SerialNumber: xhci-hcd.1.auto [ 1.953919] hub 8-0:1.0: USB hub found [ 1.954411] hub 8-0:1.0: 1 port detected [ 1.957027] usbcore: registered new interface driver usb-storage [ 1.970120] i2c /dev entries driver [ 2.002020] fan53555-regulator 0-0040: FAN53555 Option[8] Rev[1] Detected! [ 2.002898] fan53555-reg: supplied by vcc3v3_sys [ 2.016935] fan53555-regulator 0-0041: FAN53555 Option[8] Rev[1] Detected! [ 2.017785] fan53555-reg: supplied by vcc3v3_sys [ 2.035093] rk808 0-001b: chip id: 0x0 [ 2.050311] rk808-regulator rk808-regulator: there is no dvs0 gpio [ 2.051099] rk808-regulator rk808-regulator: there is no dvs1 gpio [ 2.051909] DCDC_REG1: supplied by vcc3v3_sys [ 2.054482] DCDC_REG2: supplied by vcc3v3_sys [ 2.056273] DCDC_REG3: supplied by vcc3v3_sys [ 2.057717] DCDC_REG4: supplied by vcc3v3_sys [ 2.059676] LDO_REG1: supplied by vcc3v3_sys [ 2.062377] LDO_REG2: supplied by vcc3v3_sys [ 2.064819] LDO_REG3: supplied by vcc3v3_sys [ 2.067295] LDO_REG4: supplied by vcc3v3_sys [ 2.069814] LDO_REG5: supplied by vcc3v3_sys [ 2.072025] LDO_REG6: supplied by vcc3v3_sys [ 2.074589] LDO_REG7: supplied by vcc3v3_sys [ 2.076912] LDO_REG8: supplied by vcc3v3_sys [ 2.079340] SWITCH_REG1: supplied by vcc3v3_sys [ 2.080955] SWITCH_REG2: supplied by vcc3v3_sys [ 2.106183] dw_wdt ff848000.watchdog: No valid TOPs array specified [ 2.115216] cpufreq: cpufreq_online: CPU0: Running at unlisted freq: 200000 KHz [ 2.116359] cpufreq: cpufreq_online: CPU0: Unlisted initial frequency changed to: 408000 KHz [ 2.120003] cpufreq: cpufreq_online: CPU4: Running at unlisted freq: 12000 KHz [ 2.127224] cpufreq: cpufreq_online: CPU4: Unlisted initial frequency changed to: 408000 KHz [ 2.130427] sdhci: Secure Digital Host Controller Interface driver [ 2.130973] sdhci: Copyright(c) Pierre Ossman [ 2.131447] Synopsys Designware Multimedia Card Interface Driver [ 2.132481] dwmmc_rockchip fe310000.mmc: IDMAC supports 32-bit address mode. [ 2.133116] dwmmc_rockchip fe310000.mmc: Using internal DMA controller. [ 2.133699] dwmmc_rockchip fe310000.mmc: Version ID is 270a [ 2.134208] dwmmc_rockchip fe310000.mmc: DW MMC controller at irq 28,32 bit host data width,256 deep fifo [ 2.135179] dwmmc_rockchip fe310000.mmc: allocated mmc-pwrseq [ 2.135684] mmc_host mmc0: card is non-removable. [ 2.148675] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0) [ 2.162534] dwmmc_rockchip fe320000.mmc: IDMAC supports 32-bit address mode. [ 2.163167] dwmmc_rockchip fe320000.mmc: Using internal DMA controller. [ 2.163769] dwmmc_rockchip fe320000.mmc: Version ID is 270a [ 2.164279] dwmmc_rockchip fe320000.mmc: DW MMC controller at irq 29,32 bit host data width,256 deep fifo [ 2.165307] dwmmc_rockchip fe320000.mmc: Got CD GPIO [ 2.178851] mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0) [ 2.192848] sdhci-pltfm: SDHCI platform and OF driver helper [ 2.193938] mmc2: CQHCI version 5.10 [ 2.197270] random: fast init done [ 2.199874] mmc0: queuing unknown CIS tuple 0x80 (2 bytes) [ 2.202572] mmc0: queuing unknown CIS tuple 0x80 (3 bytes) [ 2.205142] mmc0: queuing unknown CIS tuple 0x80 (3 bytes) [ 2.209491] mmc0: queuing unknown CIS tuple 0x80 (7 bytes) [ 2.219274] mmc2: SDHCI controller on fe330000.sdhci [fe330000.sdhci] using ADMA [ 2.221236] ledtrig-cpu: registered to indicate activity on CPUs [ 2.222176] usbcore: registered new interface driver usbhid [ 2.222672] usbhid: USB HID core driver [ 2.224293] NET: Registered protocol family 17 [ 2.225014] Bluetooth: RFCOMM TTY layer initialized [ 2.225454] Bluetooth: RFCOMM socket layer initialized [ 2.225919] Bluetooth: RFCOMM ver 1.11 [ 2.226260] Bluetooth: HIDP (Human Interface Emulation) ver 1.2 [ 2.226786] Bluetooth: HIDP socket layer initialized [ 2.227257] Key type dns_resolver registered [ 2.227925] registered taskstats version 1 [ 2.228296] Loading compiled-in X.509 certificates [ 2.241965] input: gpio-keys as /devices/platform/gpio-keys/input/input0 [ 2.243276] ALSA device list: [ 2.243547] No soundcards found. [ 2.243983] dw-apb-uart ff1a0000.serial: forbid DMA for kernel console [ 2.245432] Freeing unused kernel memory: 2496K [ 2.257769] mmc_host mmc1: Bus speed (slot 0) = 50000000Hz (slot req 50000000Hz, actual 50000000HZ div = 0) [ 2.258631] mmc1: new ultra high speed SDR25 SDHC card at address b368 [ 2.259657] mmcblk1: mmc1:b368 CBADS 30.0 GiB [ 2.260766] Run /init as init process [ 2.261133] with arguments: [ 2.261134] /init [ 2.261136] earlyprintk [ 2.261137] with environment: [ 2.261138] HOME=/ [ 2.261139] TERM=linux [ 2.262134] mmcblk1: p1 p2 [ 2.275831] mmc_host mmc0: Bus speed (slot 0) = 148500000Hz (slot req 150000000Hz, actual 148500000HZ div = 0) [ 2.280539] usb 7-1: new high-speed USB device number 2 using xhci-hcd [ 2.327755] EXT4-fs (mmcblk1p2): warning: mounting unchecked fs, running e2fsck is recommended [ 2.356425] EXT4-fs (mmcblk1p2): mounted filesystem without journal. Opts: (null) [ 2.432064] usb 7-1: New USB device found, idVendor=2109, idProduct=2817, bcdDevice= 0.50 [ 2.432801] usb 7-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 2.433426] usb 7-1: Product: USB2.0 Hub
[ 2.433869] usb 7-1: Manufacturer: VIA Labs, Inc.
[ 2.492012] hub 7-1:1.0: USB hub found [ 2.492578] hub 7-1:1.0: 4 ports detected [ 2.586587] usb 8-1: new SuperSpeed Gen 1 USB device number 2 using xhci-hcd [ 2.666842] dwmmc_rockchip fe310000.mmc: Successfully tuned phase to 194 [ 2.669571] mmc0: new ultra high speed SDR104 SDIO card at address 0001 [ 2.678857] usb 8-1: New USB device found, idVendor=2109, idProduct=0817, bcdDevice= 0.50 [ 2.679593] usb 8-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 2.680223] usb 8-1: Product: USB3.0 Hub
[ 2.680744] usb 8-1: Manufacturer: VIA Labs, Inc.
[ 2.700162] hub 8-1:1.0: USB hub found [ 2.700810] hub 8-1:1.0: 4 ports detected [ 2.982077] systemd[1]: System time before build time, advancing clock. [ 3.280725] usb 7-1.4: new full-speed USB device number 3 using xhci-hcd [ 3.431393] usb 7-1.4: New USB device found, idVendor=062a, idProduct=4101, bcdDevice= 1.10 [ 3.432145] usb 7-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 3.432816] usb 7-1.4: Product: 2.4G Keyboard Mouse [ 3.433248] usb 7-1.4: Manufacturer: MOSART Semi. [ 3.517930] input: MOSART Semi. 2.4G Keyboard Mouse as /devices/platform/usb@fe900000/fe900000.usb/xhci-hcd.1.auto/usb7/7-1/7-1.4/7-1.4:1.0/0003:062A:4101.0001/input/input1 [ 3.577149] hid-generic 0003:062A:4101.0001: input: USB HID v1.10 Keyboard [MOSART Semi. 2.4G Keyboard Mouse] on usb-xhci-hcd.1.auto-1.4/input0 [ 3.581472] input: MOSART Semi. 2.4G Keyboard Mouse as /devices/platform/usb@fe900000/fe900000.usb/xhci-hcd.1.auto/usb7/7-1/7-1.4/7-1.4:1.1/0003:062A:4101.0002/input/input2 [ 3.583153] input: MOSART Semi. 2.4G Keyboard Mouse Consumer Control as /devices/platform/usb@fe900000/fe900000.usb/xhci-hcd.1.auto/usb7/7-1/7-1.4/7-1.4:1.1/0003:062A:4101.0002/input/input3 [ 3.645081] input: MOSART Semi. 2.4G Keyboard Mouse System Control as /devices/platform/usb@fe900000/fe900000.usb/xhci-hcd.1.auto/usb7/7-1/7-1.4/7-1.4:1.1/0003:062A:4101.0002/input/input4 [ 3.647018] input: MOSART Semi. 2.4G Keyboard Mouse as /devices/platform/usb@fe900000/fe900000.usb/xhci-hcd.1.auto/usb7/7-1/7-1.4/7-1.4:1.1/0003:062A:4101.0002/input/input5 [ 3.648703] hid-generic 0003:062A:4101.0002: input: USB HID v1.10 Mouse [MOSART Semi. 2.4G Keyboard Mouse] on usb-xhci-hcd.1.auto-1.4/input1 [ 3.783808] NET: Registered protocol family 10 [ 3.785470] Segment Routing with IPv6 [ 3.890805] systemd[1]: systemd 245.4-4ubuntu3.2 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid) [ 3.893387] systemd[1]: Detected architecture arm64. [ 3.929731] systemd[1]: Set hostname to . [ 4.428490] systemd[1]: /lib/systemd/system/dbus.socket:5: ListenStream= references a path below legacy directory /var/run/, updating /var/run/dbus/system_bus_socket \xe2\x86\x92 /run/dbus/system_bus_socket; please update the unit file accordingly. [ 4.522034] random: systemd: uninitialized urandom read (16 bytes read) [ 4.522786] systemd[1]: system-modprobe.slice: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling. [ 4.523901] systemd[1]: (This warning is only shown for the first unit using IP firewalling.) [ 4.526716] systemd[1]: Created slice system-modprobe.slice. [ 4.536825] random: systemd: uninitialized urandom read (16 bytes read) [ 4.538343] systemd[1]: Created slice system-serial\x2dgetty.slice. [ 4.548921] random: systemd: uninitialized urandom read (16 bytes read) [ 4.550485] systemd[1]: Created slice system-systemd\x2dfsck.slice. [ 4.561941] systemd[1]: Created slice User and Session Slice. [ 4.573186] systemd[1]: Started Dispatch Password Requests to Console Directory Watch. [ 4.585168] systemd[1]: Started Forward Password Requests to Wall Directory Watch. [ 4.597044] systemd[1]: Condition check resulted in Arbitrary Executable File Formats File System Automount Point being skipped. [ 4.598241] systemd[1]: Reached target Local Encrypted Volumes. [ 4.609049] systemd[1]: Reached target Paths. [ 4.620998] systemd[1]: Reached target Remote File Systems. [ 4.622340] systemd[1]: Reached target Slices. [ 4.633002] systemd[1]: Reached target Swap. [ 4.645445] systemd[1]: Listening on Syslog Socket. [ 4.657427] systemd[1]: Listening on fsck to fsckd communication Socket. [ 4.669203] systemd[1]: Listening on initctl Compatibility Named Pipe. [ 4.681665] systemd[1]: Listening on Journal Audit Socket. [ 4.683340] systemd[1]: Listening on Journal Socket (/dev/log). [ 4.697482] systemd[1]: Listening on Journal Socket. [ 4.709513] systemd[1]: Listening on udev Control Socket. [ 4.711111] systemd[1]: Listening on udev Kernel Socket. [ 4.723956] systemd[1]: Mounting Huge Pages File System... [ 4.739714] systemd[1]: Mounting POSIX Message Queue File System... [ 4.744679] systemd[1]: Mounting Kernel Debug File System... [ 4.756964] systemd[1]: Condition check resulted in Kernel Trace File System being skipped. [ 4.761326] systemd[1]: Starting Journal Service... [ 4.776058] systemd[1]: Starting Set the console keyboard layout... [ 4.781123] systemd[1]: Starting Create list of static device nodes for the current kernel... [ 4.796084] systemd[1]: Starting Load Kernel Module drm... [ 4.799664] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped. [ 4.800706] systemd[1]: Condition check resulted in File System Check on Root Device being skipped. [ 4.808484] systemd[1]: Starting Load Kernel Modules... [ 4.823590] systemd[1]: Starting Remount Root and Kernel File Systems... [ 4.836251] systemd[1]: Starting udev Coldplug all Devices... [ 4.841991] systemd[1]: Mounted Huge Pages File System. [ 4.853200] systemd[1]: Mounted POSIX Message Queue File System. [ 4.865536] systemd[1]: Mounted Kernel Debug File System. [ 4.878613] systemd[1]: Finished Create list of static device nodes for the current kernel. [ 4.890651] systemd[1]: Finished Load Kernel Modules. [ 4.901563] systemd[1]: Condition check resulted in FUSE Control File System being skipped. [ 4.905313] systemd[1]: Mounting Kernel Configuration File System... [ 4.919628] systemd[1]: Starting Apply Kernel Variables... [ 4.931115] systemd[1]: Mounted Kernel Configuration File System. [ 5.093010] systemd[1]: Started Journal Service. [ 5.117865] EXT4-fs (mmcblk1p2): re-mounted. Opts: commit=600,errors=remount-ro [ 5.618821] systemd-journald[194]: Received client request to flush runtime journal. [ 6.055909] rockchip-pcie f8000000.pcie: host bridge /pcie@f8000000 ranges: [ 6.055928] OF: /pcie@f8000000: Missing device_type [ 6.055942] rockchip-pcie f8000000.pcie: MEM 0x00fa000000..0x00fbdfffff -> 0x00fa000000 [ 6.055951] rockchip-pcie f8000000.pcie: IO 0x00fbe00000..0x00fbefffff -> 0x00fbe00000 [ 6.168461] rockchip-pcie f8000000.pcie: host bridge /pcie@f8000000 ranges: [ 6.168488] rockchip-pcie f8000000.pcie: MEM 0x00fa000000..0x00fbdfffff -> 0x00fa000000 [ 6.168497] rockchip-pcie f8000000.pcie: IO 0x00fbe00000..0x00fbefffff -> 0x00fbe00000 [ 6.168769] rk808-rtc rk808-rtc: registered as rtc0 [ 6.169326] rk808-rtc rk808-rtc: setting system clock to 2020-10-06T08:27:06 UTC (1601972826) [ 6.169759] rockchip-pcie f8000000.pcie: host bridge /pcie@f8000000 ranges: [ 6.169782] rockchip-pcie f8000000.pcie: MEM 0x00fa000000..0x00fbdfffff -> 0x00fa000000 [ 6.169792] rockchip-pcie f8000000.pcie: IO 0x00fbe00000..0x00fbefffff -> 0x00fbe00000 [ 6.174913] rockchip-pcie f8000000.pcie: host bridge /pcie@f8000000 ranges: [ 6.174940] rockchip-pcie f8000000.pcie: MEM 0x00fa000000..0x00fbdfffff -> 0x00fa000000 [ 6.174949] rockchip-pcie f8000000.pcie: IO 0x00fbe00000..0x00fbefffff -> 0x00fbe00000 [ 6.445018] rt5651 1-001a: Failed to reguest IRQ 0: -22 [ 6.445519] rockchip-pcie f8000000.pcie: host bridge /pcie@f8000000 ranges: [ 6.445542] rockchip-pcie f8000000.pcie: MEM 0x00fa000000..0x00fbdfffff -> 0x00fa000000 [ 6.445551] rockchip-pcie f8000000.pcie: IO 0x00fbe00000..0x00fbefffff -> 0x00fbe00000 [ 6.454951] vcc1v8_s3: supplied by vcc_1v8 [ 6.455026] vcca1v8_s3: supplied by vcc1v8_s3 [ 6.455950] rockchip-pcie f8000000.pcie: host bridge /pcie@f8000000 ranges: [ 6.455974] rockchip-pcie f8000000.pcie: MEM 0x00fa000000..0x00fbdfffff -> 0x00fa000000 [ 6.455983] rockchip-pcie f8000000.pcie: IO 0x00fbe00000..0x00fbefffff -> 0x00fbe00000 [ 6.681474] rockchip-pcie f8000000.pcie: host bridge /pcie@f8000000 ranges: [ 6.681501] rockchip-pcie f8000000.pcie: MEM 0x00fa000000..0x00fbdfffff -> 0x00fa000000 [ 6.681510] rockchip-pcie f8000000.pcie: IO 0x00fbe00000..0x00fbefffff -> 0x00fbe00000 [ 6.682006] rockchip-pcie f8000000.pcie: no vpcie12v regulator found [ 6.682019] rockchip-pcie f8000000.pcie: no vpcie3v3 regulator found [ 6.682132] vcca0v9_s3: supplied by vcc1v8_s3 [ 6.854707] Bluetooth: HCI UART driver ver 2.3 [ 6.854714] Bluetooth: HCI UART protocol H4 registered [ 6.854760] Bluetooth: HCI UART protocol LL registered [ 6.855018] Bluetooth: HCI UART protocol Broadcom registered [ 6.975811] dw-apb-uart ff180000.serial: failed to request DMA [ 7.063511] mc: Linux media interface: v0.10 [ 7.208597] rockchip-pcie f8000000.pcie: PCIe link training gen1 timeout! [ 7.209667] rockchip-pcie: probe of f8000000.pcie failed with error -110 [ 7.245123] Bluetooth: hci0: BCM: chip id 101 [ 7.245388] Bluetooth: hci0: BCM: features 0x2f [ 7.246422] Bluetooth: hci0: BCM4354A2 [ 7.246428] Bluetooth: hci0: BCM4356A2 (001.003.015) build 0000 [ 7.691571] Bluetooth: hci0: BCM4356A2 'brcm/BCM4356A2.hcd' Patch [ 7.994028] videodev: Linux video capture interface: v2.00 [ 8.009925] rk_gmac-dwmac fe300000.ethernet: IRQ eth_wake_irq not found [ 8.009933] rk_gmac-dwmac fe300000.ethernet: IRQ eth_lpi not found [ 8.010029] rk_gmac-dwmac fe300000.ethernet: PTP uses main clock [ 8.010204] rk_gmac-dwmac fe300000.ethernet: clock input or output? (input). [ 8.010209] rk_gmac-dwmac fe300000.ethernet: TX delay(0x28). [ 8.010214] rk_gmac-dwmac fe300000.ethernet: RX delay(0x11). [ 8.010221] rk_gmac-dwmac fe300000.ethernet: integrated PHY? (no). [ 8.010248] rk_gmac-dwmac fe300000.ethernet: cannot get clock clk_mac_speed [ 8.010873] rk_gmac-dwmac fe300000.ethernet: clock input from PHY [ 8.015894] rk_gmac-dwmac fe300000.ethernet: init for RGMII [ 8.016148] rk_gmac-dwmac fe300000.ethernet: User ID: 0x10, Synopsys ID: 0x35 [ 8.016159] rk_gmac-dwmac fe300000.ethernet: DWMAC1000 [ 8.016163] rk_gmac-dwmac fe300000.ethernet: DMA HW capability register supported [ 8.016167] rk_gmac-dwmac fe300000.ethernet: RX Checksum Offload Engine supported [ 8.016171] rk_gmac-dwmac fe300000.ethernet: COE Type 2 [ 8.016174] rk_gmac-dwmac fe300000.ethernet: TX Checksum insertion supported [ 8.016178] rk_gmac-dwmac fe300000.ethernet: Wake-Up On Lan supported [ 8.016245] rk_gmac-dwmac fe300000.ethernet: Normal descriptors [ 8.016249] rk_gmac-dwmac fe300000.ethernet: Ring mode enabled [ 8.016253] rk_gmac-dwmac fe300000.ethernet: Enable RX Mitigation via HW Watchdog Timer [ 8.016263] rk_gmac-dwmac fe300000.ethernet: device MAC address 22:68:e0:6d:bc:7e [ 8.016891] libphy: stmmac: probed [ 8.276540] random: crng init done [ 8.276544] random: 7 urandom warning(s) missed due to ratelimiting [ 8.386733] Bluetooth: hci0: BCM4356 37.4MHz AMPAK AP6356-0055 [ 8.386740] Bluetooth: hci0: BCM4356A2 (001.003.015) build 0266 [ 8.503606] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 8.512650] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 8.518146] asoc-simple-card rt5651-sound: ASoC: no DMI vendor name! [ 8.758490] panfrost ff9a0000.gpu: clock rate = 500000000 [ 8.758922] panfrost ff9a0000.gpu: mali-t860 id 0x860 major 0x2 minor 0x0 status 0x0 [ 8.758927] panfrost ff9a0000.gpu: features: 00000000,100e77bf, issues: 00000000,24040400 [ 8.758931] panfrost ff9a0000.gpu: Features: L2:0x07120206 Shader:0x00000000 Tiler:0x00000809 Mem:0x1 MMU:0x00002830 AS:0xff JS:0x7 [ 8.758933] panfrost ff9a0000.gpu: shader_present=0xf l2_present=0x1 [ 8.759813] panfrost ff9a0000.gpu: [drm:panfrost_devfreq_init [panfrost]] Failed to register cooling device [ 8.760096] [drm] Initialized panfrost 1.1.0 20180908 for ff9a0000.gpu on minor 0 [ 8.871118] asoc-simple-card spdif-sound: ASoC: no DMI vendor name! [ 8.923561] rockchip-vop ff8f0000.vop: Adding to iommu group 2 [ 8.924659] rockchip-vop ff900000.vop: Adding to iommu group 3 [ 8.928170] rockchip-drm display-subsystem: bound ff8f0000.vop (ops vop_component_ops [rockchipdrm]) [ 8.928210] [drm] unsupported AFBC format[3231564e] [ 8.929564] rockchip-drm display-subsystem: bound ff900000.vop (ops vop_component_ops [rockchipdrm]) [ 8.929709] dwhdmi-rockchip ff940000.hdmi: Detected HDMI TX controller v2.11a with HDCP (DWC HDMI 2.0 TX PHY) [ 8.930151] rockchip-drm display-subsystem: bound ff940000.hdmi (ops dw_hdmi_rockchip_ops [rockchipdrm]) [ 8.997630] Console: switching to colour frame buffer device 240x67 [ 9.033542] rockchip-drm display-subsystem: [drm] fb0: rockchipdrmfb frame buffer device [ 9.056891] [drm] Initialized rockchip 1.0.0 20140818 for display-subsystem on minor 1 [ 9.422596] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4356-sdio for chip BCM4356/2 [ 9.545824] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4356-sdio for chip BCM4356/2 [ 9.547709] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-11), device may have limited channels available [ 9.548292] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4356/2 wl0: Apr 18 2017 13:54:43 version 7.35.184.1.r5 (A2 Station/P2P) FWID 01-efd4ca0d [ 9.653132] rockchip_vdec: module is from the staging directory, the quality is unknown, you have been warned. [ 9.654785] rkvdec ff660000.video-codec: Adding to iommu group 1 [ 9.666754] asoc-simple-card hdmi-sound: ASoC: no DMI vendor name! [ 9.895225] hantro_vpu: module is from the staging directory, the quality is unknown, you have been warned. [ 9.898461] hantro-vpu ff650000.video-codec: Adding to iommu group 0 [ 9.899031] hantro-vpu ff650000.video-codec: registered rockchip,rk3399-vpu-enc as /dev/video1 [ 9.899128] hantro-vpu ff650000.video-codec: registered rockchip,rk3399-vpu-dec as /dev/video2 [ 10.051286] EXT4-fs (mmcblk1p1): mounted filesystem with ordered data mode. Opts: (null) [ 10.051311] ext4 filesystem being mounted at /boot supports timestamps until 2038 (0x7fffffff) [ 10.421569] rk_gmac-dwmac fe300000.ethernet eth0: PHY [stmmac-0:01] driver [RTL8211E Gigabit Ethernet] (irq=174) [ 10.434711] rk_gmac-dwmac fe300000.ethernet eth0: No Safety Features support found [ 10.434728] rk_gmac-dwmac fe300000.ethernet eth0: PTP not supported by HW [ 10.434739] rk_gmac-dwmac fe300000.ethernet eth0: configuring for phy/rgmii link mode [ 11.026553] zram0: detected capacity change from 0 to 168120320 [ 11.240574] Adding 164176k swap on /dev/zram0. Priority:5 extents:1 across:164176k SS [ 11.468901] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [ 11.468904] Bluetooth: BNEP filters: protocol multicast [ 11.468913] Bluetooth: BNEP socket layer initialized [ 13.445890] rk_gmac-dwmac fe300000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off [ 13.445942] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 33.768713] vcca0v9_s3: disabling

lorefx avatar Oct 06 '20 13:10 lorefx

The boot log should be from the one that does not boot, just to have a look and see why it hangs.

Can you run this test and report the output/result?:

    sudo ./drmgl

drmgl.tar.gz

avafinger avatar Oct 06 '20 13:10 avafinger

Try to grab the boot log using a TTL debug.

Regarding the non-booting image, I don't have a serial cable. Maybe I can let it boot and then recover directly from the sd the journal log? Is there any other mean to provide you the log?

Can you run this test and report the output/result?: sudo ./drmgl

sudo ./drmgl
[sudo] password for ubuntu: no connected connector! failed to initialize DRM

You need a special version of FFmpeg, https://github.com/Kwiboo/FFmpeg

I cloned the default branch (https://github.com/Kwiboo/FFmpeg/tree/v4l2-request-hwaccel-4.3) and tried to compile as ./configure --prefix=/usr --enable-nonfree --enable-gpl --enable-version3 --enable-libmp3lame --enable-libpulse --enable-libv4l2 --enable-v4l2-request --enable-v4l2-m2m --enable-libudev --enable-libdrm --enable-shared make -j2 '

and Ithe compilation stops with

libavcodec/v4l2_request.c:` In function 'v4l2_request_queue_decode': libavcodec/v4l2_request.c:284:90: error: 'V4L2_BUF_FLAG_M2M_HOLD_CAPTURE_BUF' undeclared (first use in this function) 284 | l2_request_queue_buffer(ctx, req->request_fd, &req->output, last_slice ? 0 : V4L2_BUF_FLAG_M2M_HOLD_CAPTURE_BUF); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

libavcodec/v4l2_request.c:284:90: note: each undeclared identifier is reported only once for each function it appears in libavcodec/v4l2_request.c: In function 'ff_v4l2_request_decode_slice': libavcodec/v4l2_request.c:368:37: error: 'V4L2_BUF_CAP_SUPPORTS_M2M_HOLD_CAPTURE_BUF' undeclared (first use in this function) 368 | if ((req->output.capabilities & V4L2_BUF_CAP_SUPPORTS_M2M_HOLD_CAPTURE_BUF) != V4L2_BUF_CAP_SUPPORTS_M2M_HOLD_CAPTURE_BUF) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [ffbuild/common.mak:59: libavcodec/v4l2_request.o] Error 1`

This makes me think that the kernel "maybe" is not providing the V4L2_BUF_CAP_SUPPORTS_M2M_HOLD_CAPTURE_BUF flag. Have you any advice on this?

I used the 1.39 vanilla release, made an apt update && upgrade and nothing else

lorefx avatar Oct 07 '20 07:10 lorefx

no connected connector!

Connectors

"A connector is the final destination of pixel-data on a device, and usually connects directly to an external display device like a monitor or laptop panel. A connector can only be attached to one encoder at a time. The connector is also the structure where information about the attached display is kept, so it contains fields for display data, EDID data, DPMS and connection status, and information about modes supported on the attached displays."

Really weird, maybe you have issues with the LCD display in use? Do You have HDMI connection (attached) and what is the resolution? Some unusual EDID information on a lower level I would think.

for p in /sys/class/drm/*/status; do con=${p%/status}; echo -n "${con#*/card?-}: "; cat $p; done Let's check what is connected (in my case): HDMI-A-1: connected

alex@svn:~$ ssh [email protected]
[email protected]'s password: 
Welcome to Ubuntu 20.04.1 LTS (GNU/Linux 5.9.0-rc7 aarch64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage
Last login: Tue Oct  6 19:56:36 2020
ubuntu@nanopi-m4:~$ for p in /sys/class/drm/*/status; do con=${p%/status}; echo -n "${con#*/card?-}: "; cat $p; done
HDMI-A-1: connected
ubuntu@nanopi-m4:~$ for i in $(ls -1 /sys/class/drm/*/modes); do echo "$i:"; cat $i; done
/sys/class/drm/card1-HDMI-A-1/modes:
1920x1080
1920x1080
1920x1080i
1920x1080i
1920x1080
1920x1080i
1920x1080
1920x1080
1920x1080
1280x1024
1280x720
1280x720
1280x720
1280x720
1024x768
800x600
720x576
720x480
720x480
ubuntu@nanopi-m4:~$ 

Also:

ubuntu@nanopi-m4:~$ dmesg | grep -i drm
[    7.240277] systemd[1]: Starting Load Kernel Module drm...
[    8.811073] panfrost ff9a0000.gpu: [drm:panfrost_devfreq_init [panfrost]] Failed to register cooling device
[    8.811359] [drm] Initialized panfrost 1.1.0 20180908 for ff9a0000.gpu on minor 0
[    8.888904] rockchip-drm display-subsystem: bound ff8f0000.vop (ops vop_component_ops [rockchipdrm])
[    8.889007] [drm] unsupported AFBC format[3231564e]
[    8.890543] rockchip-drm display-subsystem: bound ff900000.vop (ops vop_component_ops [rockchipdrm])
[    8.891332] rockchip-drm display-subsystem: bound ff940000.hdmi (ops dw_hdmi_rockchip_ops [rockchipdrm])
[    9.015120] rockchip-drm display-subsystem: [drm] fb0: rockchipdrmfb frame buffer device
[    9.034499] [drm] Initialized rockchip 1.0.0 20140818 for display-subsystem on minor 1
ubuntu@nanopi-m4:~$ 

and

ubuntu@nanopi-m4:~$ dmesg | grep Linux
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.9.0-rc7 (alex@svn) (aarch64-linux-gnu-gcc (Linaro GCC 7.5-2019.12-rc1) 7.5.0, GNU ld (Linaro_Binutils-2019.12-rc1) 2.28.2.20170706) #1 SMP PREEMPT Tue Sep 29 18:59:14 -03 2020
[    0.119690] pps_core: LinuxPPS API ver. 1 registered
[    0.120939] Advanced Linux Sound Architecture Driver Initialized.
[    0.476596] usb usb1: Manufacturer: Linux 5.9.0-rc7 ehci_hcd
[    0.500593] usb usb2: Manufacturer: Linux 5.9.0-rc7 ehci_hcd
[    0.572161] usb usb3: Manufacturer: Linux 5.9.0-rc7 ohci_hcd
[    0.640133] usb usb4: Manufacturer: Linux 5.9.0-rc7 ohci_hcd
[    0.648275] usb usb5: Manufacturer: Linux 5.9.0-rc7 xhci-hcd
[    0.655184] usb usb6: Manufacturer: Linux 5.9.0-rc7 xhci-hcd
[    0.662660] usb usb7: Manufacturer: Linux 5.9.0-rc7 xhci-hcd
[    0.669508] usb usb8: Manufacturer: Linux 5.9.0-rc7 xhci-hcd
[    8.222159] mc: Linux media interface: v0.10
[    8.477052] videodev: Linux video capture interface: v2.00
ubuntu@nanopi-m4:~$ 

Let's check what is your EDID (current modeset)

ubuntu@nanopi-m4:~$ sudo apt-get install edid-decode
[sudo] password for ubuntu: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  edid-decode
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 66.5 kB of archives.
After this operation, 198 kB of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports focal/universe arm64 edid-decode arm64 0.1~git20191209.e719d04-1build1 [66.5 kB]
Fetched 66.5 kB in 1s (49.6 kB/s)                           
Selecting previously unselected package edid-decode.
(Reading database ... 37349 files and directories currently installed.)
Preparing to unpack .../edid-decode_0.1~git20191209.e719d04-1build1_arm64.deb ...
Unpacking edid-decode (0.1~git20191209.e719d04-1build1) ...
Setting up edid-decode (0.1~git20191209.e719d04-1build1) ...
Processing triggers for man-db (2.9.1-1) ...
ubuntu@nanopi-m4:~$ edid-decode /sys/class/drm/card1-HDMI-A-1/edid 
edid-decode (hex):

00 ff ff ff ff ff ff 00 1e 6d 01 00 01 01 01 01 
01 17 01 03 80 a0 5a 78 0a ee 91 a3 54 4c 99 26 
0f 50 54 a1 08 00 31 40 45 40 61 40 71 40 81 80 
01 01 01 01 01 01 02 3a 80 18 71 38 2d 40 58 2c 
45 00 a0 5a 00 00 00 1e 66 21 50 b0 51 00 1b 30 
40 70 36 00 a0 5a 00 00 00 1e 00 00 00 fd 00 3a 
3e 1e 53 10 00 0a 20 20 20 20 20 20 00 00 00 fc 
00 4c 47 20 54 56 0a 20 20 20 20 20 20 20 01 42 

02 03 22 f1 4e 10 9f 04 13 05 14 03 02 12 20 21 
22 15 01 26 15 07 50 09 57 07 67 03 0c 00 20 00 
80 1e 01 1d 80 18 71 1c 16 20 58 2c 25 00 20 c2 
31 00 00 9e 01 1d 00 72 51 d0 1e 20 6e 28 55 00 
20 c2 31 00 00 1e 02 3a 80 18 71 38 2d 40 58 2c 
45 00 a0 5a 00 00 00 1e 01 1d 00 bc 52 d0 1e 20 
b8 28 55 40 c4 8e 21 00 00 1e 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 15 

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

EDID version: 1.3
Manufacturer: GSM Model 1 Serial Number 16843009
Made in week 1 of 2013
Digital display
Maximum image size: 160 cm x 90 cm
Gamma: 2.20
RGB color display
First detailed timing is preferred timing
Color Characteristics
  Red:   0.6396, 0.3300
  Green: 0.2998, 0.5996
  Blue:  0.1503, 0.0595
  White: 0.3125, 0.3291
Established Timings I & II
    720x400    70.082 Hz   9:5    31.467 kHz  28.320 MHz (IBM)
    640x480    59.940 Hz   4:3    31.469 kHz  25.175 MHz (DMT)
    800x600    60.317 Hz   4:3    37.879 kHz  40.000 MHz (DMT)
   1024x768    60.004 Hz   4:3    48.363 kHz  65.000 MHz (DMT)
Standard Timings
    640x480    59.940 Hz   4:3    31.469 kHz  25.175 MHz (DMT)
    800x600    60.317 Hz   4:3    37.879 kHz  40.000 MHz (DMT)
   1024x768    60.004 Hz   4:3    48.363 kHz  65.000 MHz (DMT)
   1152x864    60.000 Hz   4:3    53.700 kHz  81.624 MHz (GTF)
   1280x1024   60.020 Hz   5:4    63.981 kHz 108.000 MHz (DMT)
Detailed mode: Clock 148.500 MHz, 160 mm x 90 mm
               1920 2008 2052 2200 ( 88  44 148)
               1080 1084 1089 1125 (  4   5  36)
               +hsync +vsync
               VertFreq: 60.000 Hz, HorFreq: 67.500 kHz
Detailed mode: Clock 85.500 MHz, 160 mm x 90 mm
               1360 1424 1536 1792 ( 64 112 256)
                768  771  777  795 (  3   6  18)
               +hsync +vsync
               VertFreq: 60.015 Hz, HorFreq: 47.712 kHz
Display Range Limits
  Monitor ranges (GTF): 58-62 Hz V, 30-83 kHz H, max dotclock 160 MHz
Display Product Name: LG TV
Has 1 extension block
Checksum: 0x42

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

CTA-861 Extension Block Revision 3
Underscans PC formats by default
Basic audio support
Supports YCbCr 4:4:4
Supports YCbCr 4:2:2
1 native detailed modes
30 bytes of CTA data blocks
  Video Data Block
     1920x1080   60.000 Hz  16:9    67.500 kHz 148.500 MHz (VIC  16)
     1920x1080   50.000 Hz  16:9    56.250 kHz 148.500 MHz (VIC  31, native)
     1280x720    60.000 Hz  16:9    45.000 kHz  74.250 MHz (VIC   4)
     1280x720    50.000 Hz  16:9    37.500 kHz  74.250 MHz (VIC  19)
     1920x1080i  60.000 Hz  16:9    33.750 kHz  74.250 MHz (VIC   5)
     1920x1080i  50.000 Hz  16:9    28.125 kHz  74.250 MHz (VIC  20)
      720x480    59.940 Hz  16:9    31.469 kHz  27.000 MHz (VIC   3)
      720x480    59.940 Hz   4:3    31.469 kHz  27.000 MHz (VIC   2)
      720x576    50.000 Hz  16:9    31.250 kHz  27.000 MHz (VIC  18)
     1920x1080   24.000 Hz  16:9    27.000 kHz  74.250 MHz (VIC  32)
     1920x1080   25.000 Hz  16:9    28.125 kHz  74.250 MHz (VIC  33)
     1920x1080   30.000 Hz  16:9    33.750 kHz  74.250 MHz (VIC  34)
     1440x576i   50.000 Hz   4:3    15.625 kHz  27.000 MHz (VIC  21)
      640x480    59.940 Hz   4:3    31.469 kHz  25.175 MHz (VIC   1)
  Audio Data Block
    AC-3, max channels 6
      Supported sample rates (kHz): 48 44.1 32
      Maximum bit rate: 640 kb/s
    Linear PCM, max channels 2
      Supported sample rates (kHz): 192 96 48 44.1 32
      Supported sample sizes (bits): 24 20 16
  Vendor-Specific Data Block, OUI 0x000c03 (HDMI)
    Source physical address 2.0.0.0
    Supports_AI
    Maximum TMDS clock: 150 MHz
Detailed mode: Clock 74.250 MHz, 800 mm x 450 mm
               1920 2008 2052 2200 ( 88  44 148)
                540  542  547  562 (  2   5  15)
               +hsync +vsync
               VertFreq: 60.000i Hz, HorFreq: 33.750 kHz
Detailed mode: Clock 74.250 MHz, 800 mm x 450 mm
               1280 1390 1430 1650 (110  40 220)
                720  725  730  750 (  5   5  20)
               +hsync +vsync
               VertFreq: 60.000 Hz, HorFreq: 45.000 kHz
Detailed mode: Clock 148.500 MHz, 160 mm x 90 mm
               1920 2008 2052 2200 ( 88  44 148)
               1080 1084 1089 1125 (  4   5  36)
               +hsync +vsync
               VertFreq: 60.000 Hz, HorFreq: 67.500 kHz
Detailed mode: Clock 74.250 MHz, 708 mm x 398 mm
               1280 1720 1760 1980 (440  40 220)
                720  725  730  750 (  5   5  20)
               +hsync +vsync
               VertFreq: 50.000 Hz, HorFreq: 37.500 kHz
Checksum: 0x15
ubuntu@nanopi-m4:~$ 

avafinger avatar Oct 07 '20 13:10 avafinger

and finally, get current fbdev settings:

buntu@nanopi-m4:~$ sudo apt-get install fbset
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  fbset
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 117 kB of archives.
After this operation, 314 kB of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 fbset arm64 2.1-31 [117 kB]
Fetched 117 kB in 1s (79.6 kB/s)
Selecting previously unselected package fbset.
(Reading database ... 37354 files and directories currently installed.)
Preparing to unpack .../fbset_2.1-31_arm64.deb ...
Unpacking fbset (2.1-31) ...
Setting up fbset (2.1-31) ...
Processing triggers for man-db (2.9.1-1) ...
ubuntu@nanopi-m4:~$ fbset

mode "1920x1080"
    geometry 1920 1080 1920 1080 32
    timings 0 0 0 0 0 0 0
    accel true
    rgba 8/16,8/8,8/0,0/0
endmode

ubuntu@nanopi-m4:~$ 

avafinger avatar Oct 07 '20 13:10 avafinger

Really weird, maybe you have issues with the LCD display in use? Do You have HDMI connection (attached) and what is the resolution? Some unusual EDID information on a lower level I would think.

for p in /sys/class/drm//status; do con=${p%/status}; echo -n "${con#/card?-}: "; cat $p; done Let's check what is connected (in my case):

I'm currently using an hdmi connected to my full hd tv with a synthaplifier as man in the middle redirecting the nanopi output to the tv. Always used the same cable and tv and amplifier, even with all other versions based on the 4.4 kernel

Output:

ubuntu@nanopi-m4:~$ for p in /sys/class/drm/*/status; do con=${p%/status}; echo -n "${con#*/card?-}: "; cat $p; done
HDMI-A-1: connected

ubuntu@nanopi-m4:~$ for i in $(ls -1 /sys/class/drm/*/modes); do echo "$i:"; cat $i; done
/sys/class/drm/card1-HDMI-A-1/modes:
1920x1080
1920x1080
1920x1080i
1920x1080
1920x1080
1920x1080i
1920x1080
1920x1080
1920x1080
2880x576
2880x576i
2880x480
2880x480
1280x1024
1152x864
1280x720
1280x720
1280x720
1440x576
1024x768
1440x480
1440x480
800x600
720x576
720x480
720x480

ubuntu@nanopi-m4:~$  dmesg | grep -i drm
[    5.009420] systemd[1]: Starting Load Kernel Module drm...
[    8.991176] panfrost ff9a0000.gpu: [drm:panfrost_devfreq_init [panfrost]] Failed to register cooling device
[    8.991493] [drm] Initialized panfrost 1.1.0 20180908 for ff9a0000.gpu on minor 0
[    9.314008] rockchip-drm display-subsystem: bound ff8f0000.vop (ops vop_component_ops [rockchipdrm])
[    9.314046] [drm] unsupported AFBC format[3231564e]
[    9.315312] rockchip-drm display-subsystem: bound ff900000.vop (ops vop_component_ops [rockchipdrm])
[    9.315916] rockchip-drm display-subsystem: bound ff940000.hdmi (ops dw_hdmi_rockchip_ops [rockchipdrm])
[    9.436541] rockchip-drm display-subsystem: [drm] fb0: rockchipdrmfb frame buffer device
[    9.450408] [drm] Initialized rockchip 1.0.0 20140818 for display-subsystem on minor 1

ubuntu@nanopi-m4:~$ dmesg | grep Linux
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.9.0-rc7 (alex@svn) (aarch64-linux-gnu-gcc (Linaro GCC 7.5-2019.12-rc1) 7.5.0, GNU ld (Linaro_Binutils-2019.12-rc1) 2.28.2.20170706) #1 SMP PREEMPT Tue Sep 29 18:59:14 -03 2020
[    0.733113] pps_core: LinuxPPS API ver. 1 registered
[    0.739501] Advanced Linux Sound Architecture Driver Initialized.
[    1.901461] usb usb1: Manufacturer: Linux 5.9.0-rc7 ehci_hcd
[    1.937248] usb usb2: Manufacturer: Linux 5.9.0-rc7 ehci_hcd
[    2.017070] usb usb3: Manufacturer: Linux 5.9.0-rc7 ohci_hcd
[    2.092837] usb usb4: Manufacturer: Linux 5.9.0-rc7 ohci_hcd
[    2.112359] usb usb5: Manufacturer: Linux 5.9.0-rc7 xhci-hcd
[    2.125878] usb usb6: Manufacturer: Linux 5.9.0-rc7 xhci-hcd
[    2.145087] usb usb7: Manufacturer: Linux 5.9.0-rc7 xhci-hcd
[    2.158550] usb usb8: Manufacturer: Linux 5.9.0-rc7 xhci-hcd
[    6.924890] mc: Linux media interface: v0.10
[    7.633373] videodev: Linux video capture interface: v2.00

ubuntu@nanopi-m4:~$ sudo apt-get install edid-decode
[sudo] password for ubuntu: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  edid-decode
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 66.5 kB of archives.
After this operation, 198 kB of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports focal/universe arm64 edid-decode arm64 0.1~git20191209.e719d04-1build1 [66.5 kB]
Fetched 66.5 kB in 0s (323 kB/s)       
Selecting previously unselected package edid-decode.
(Reading database ... 49305 files and directories currently installed.)
Preparing to unpack .../edid-decode_0.1~git20191209.e719d04-1build1_arm64.deb ...
Unpacking edid-decode (0.1~git20191209.e719d04-1build1) ...
Setting up edid-decode (0.1~git20191209.e719d04-1build1) ...
Processing triggers for man-db (2.9.1-1) ...
ubuntu@nanopi-m4:~$ edid-decode /sys/class/drm/card1-HDMI-A-1/edid
edid-decode (hex):

00 ff ff ff ff ff ff 00 3d cb 62 0b 00 00 00 00 
00 15 01 03 80 10 09 78 0a ee 91 a3 54 4c 99 26 
0f 50 54 a1 08 00 71 4f 81 80 01 01 01 01 01 01 
01 01 01 01 01 01 02 3a 80 18 71 38 2d 40 58 2c 
45 00 a0 5a 00 00 00 1e 01 1d 00 72 51 d0 1e 20 
6e 28 55 00 a0 5a 00 00 00 1e 00 00 00 fc 00 54 
58 2d 4e 52 36 30 39 0a 20 20 20 20 00 00 00 fd 
00 3a 3e 1e 53 10 00 0a 20 20 20 20 20 20 01 97 

02 03 48 f1 55 10 1f 84 13 05 14 03 02 12 20 21 
22 15 01 0f 0e 1e 19 24 23 26 38 09 7f 07 0f 7f 
07 17 07 50 3f 06 c0 4d 02 00 57 06 00 5f 7e 01 
67 54 00 83 4f 00 00 6c 03 0c 00 41 00 b8 2d c0 
00 00 00 00 e3 05 03 01 02 3a 80 18 71 38 2d 40 
58 2c 45 00 10 09 00 00 00 1e 02 3a 80 d0 72 38 
2d 40 10 2c 45 80 10 09 00 00 00 1e 01 1d 00 72 
51 d0 1e 20 6e 28 55 00 10 09 00 00 00 1e 00 34 

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

EDID version: 1.3
Manufacturer: ONK Model 2914 Serial Number 0
Made in year 2011
Digital display
Maximum image size: 16 cm x 9 cm
Gamma: 2.20
RGB color display
First detailed timing is preferred timing
Color Characteristics
  Red:   0.6396, 0.3300
  Green: 0.2998, 0.5996
  Blue:  0.1503, 0.0595
  White: 0.3125, 0.3291
Established Timings I & II
    720x400    70.082 Hz   9:5    31.467 kHz  28.320 MHz (IBM)
    640x480    59.940 Hz   4:3    31.469 kHz  25.175 MHz (DMT)
    800x600    60.317 Hz   4:3    37.879 kHz  40.000 MHz (DMT)
   1024x768    60.004 Hz   4:3    48.363 kHz  65.000 MHz (DMT)
Standard Timings
   1152x864    75.000 Hz   4:3    67.500 kHz 108.000 MHz (DMT)
   1280x1024   60.020 Hz   5:4    63.981 kHz 108.000 MHz (DMT)
Detailed mode: Clock 148.500 MHz, 160 mm x 90 mm
               1920 2008 2052 2200 ( 88  44 148)
               1080 1084 1089 1125 (  4   5  36)
               +hsync +vsync
               VertFreq: 60.000 Hz, HorFreq: 67.500 kHz
Detailed mode: Clock 74.250 MHz, 160 mm x 90 mm
               1280 1390 1430 1650 (110  40 220)
                720  725  730  750 (  5   5  20)
               +hsync +vsync
               VertFreq: 60.000 Hz, HorFreq: 45.000 kHz
Display Product Name: TX-NR609
Display Range Limits
  Monitor ranges (GTF): 58-62 Hz V, 30-83 kHz H, max dotclock 160 MHz
Has 1 extension block
Checksum: 0x97

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

CTA-861 Extension Block Revision 3
Underscans PC formats by default
Basic audio support
Supports YCbCr 4:4:4
Supports YCbCr 4:2:2
1 native detailed modes
68 bytes of CTA data blocks
  Video Data Block
     1920x1080   60.000 Hz  16:9    67.500 kHz 148.500 MHz (VIC  16)
     1920x1080   50.000 Hz  16:9    56.250 kHz 148.500 MHz (VIC  31)
     1280x720    60.000 Hz  16:9    45.000 kHz  74.250 MHz (VIC   4, native)
     1280x720    50.000 Hz  16:9    37.500 kHz  74.250 MHz (VIC  19)
     1920x1080i  60.000 Hz  16:9    33.750 kHz  74.250 MHz (VIC   5)
     1920x1080i  50.000 Hz  16:9    28.125 kHz  74.250 MHz (VIC  20)
      720x480    59.940 Hz  16:9    31.469 kHz  27.000 MHz (VIC   3)
      720x480    59.940 Hz   4:3    31.469 kHz  27.000 MHz (VIC   2)
      720x576    50.000 Hz  16:9    31.250 kHz  27.000 MHz (VIC  18)
     1920x1080   24.000 Hz  16:9    27.000 kHz  74.250 MHz (VIC  32)
     1920x1080   25.000 Hz  16:9    28.125 kHz  74.250 MHz (VIC  33)
     1920x1080   30.000 Hz  16:9    33.750 kHz  74.250 MHz (VIC  34)
     1440x576i   50.000 Hz   4:3    15.625 kHz  27.000 MHz (VIC  21)
      640x480    59.940 Hz   4:3    31.469 kHz  25.175 MHz (VIC   1)
     1440x480    59.940 Hz  16:9    31.469 kHz  54.000 MHz (VIC  15)
     1440x480    59.940 Hz   4:3    31.469 kHz  54.000 MHz (VIC  14)
     1440x576    50.000 Hz  16:9    31.250 kHz  54.000 MHz (VIC  30)
     2880x576i   50.000 Hz   4:3    15.625 kHz  54.000 MHz (VIC  25)
     2880x480    59.940 Hz  16:9    31.469 kHz 108.000 MHz (VIC  36)
     2880x480    59.940 Hz   4:3    31.469 kHz 108.000 MHz (VIC  35)
     2880x576    50.000 Hz  16:9    31.250 kHz 108.000 MHz (VIC  38)
  Audio Data Block
    Linear PCM, max channels 2
      Supported sample rates (kHz): 192 176.4 96 88.2 48 44.1 32
      Supported sample sizes (bits): 24 20 16
    Linear PCM, max channels 8
      Supported sample rates (kHz): 192 176.4 96 88.2 48 44.1 32
      Supported sample sizes (bits): 24 20 16
    AC-3, max channels 8
      Supported sample rates (kHz): 48 44.1 32
      Maximum bit rate: 640 kb/s
    DTS, max channels 8
      Supported sample rates (kHz): 48 44.1
      Maximum bit rate: 1536 kb/s
    One Bit Audio, max channels 6
      Supported sample rates (kHz): 44.1
    Dolby Digital+, max channels 8
      Supported sample rates (kHz): 48 44.1
    DTS-HD, max channels 8
      Supported sample rates (kHz): 192 176.4 96 88.2 48 44.1
    MAT (MLP), max channels 8
      Supported sample rates (kHz): 192 96 48
  Speaker Allocation Data Block
    Speaker map:
      FL/FR - Front Left/Right
      LFE1 - Low Frequency Effects 1
      FC - Front Center
      BL/BR - Back Left/Right
      RLC/RRC - Rear Left/Right of Center (Deprecated)
  Vendor-Specific Data Block, OUI 0x000c03 (HDMI)
    Source physical address 4.1.0.0
    Supports_AI
    DC_36bit
    DC_30bit
    DC_Y444
    Maximum TMDS clock: 225 MHz
    Video latency: Unknown
    Audio latency: Unknown
    Interlaced video latency: Unknown
    Interlaced audio latency: Unknown
  Extended tag: Colorimetry Data Block
    xvYCC601
    xvYCC709
Detailed mode: Clock 148.500 MHz, 16 mm x 9 mm
               1920 2008 2052 2200 ( 88  44 148)
               1080 1084 1089 1125 (  4   5  36)
               +hsync +vsync
               VertFreq: 60.000 Hz, HorFreq: 67.500 kHz
Detailed mode: Clock 148.500 MHz, 16 mm x 9 mm
               1920 2448 2492 2640 (528  44 148)
               1080 1084 1089 1125 (  4   5  36)
               +hsync +vsync
               VertFreq: 50.000 Hz, HorFreq: 56.250 kHz
Detailed mode: Clock 74.250 MHz, 16 mm x 9 mm
               1280 1390 1430 1650 (110  40 220)
                720  725  730  750 (  5   5  20)
               +hsync +vsync
               VertFreq: 60.000 Hz, HorFreq: 45.000 kHz
Checksum: 0x34

ubuntu@nanopi-m4:~$ sudo apt-get install fbset
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  fbset
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 117 kB of archives.
After this operation, 314 kB of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 fbset arm64 2.1-31 [117 kB]
Fetched 117 kB in 0s (534 kB/s) 
Selecting previously unselected package fbset.
(Reading database ... 49310 files and directories currently installed.)
Preparing to unpack .../fbset_2.1-31_arm64.deb ...
Unpacking fbset (2.1-31) ...
Setting up fbset (2.1-31) ...
Processing triggers for man-db (2.9.1-1) ...
ubuntu@nanopi-m4:~$ fbset

mode "1920x1080"
    geometry 1920 1080 1920 1080 32
    timings 0 0 0 0 0 0 0
    accel true
    rgba 8/16,8/8,8/0,0/0
endmode

lorefx avatar Oct 07 '20 14:10 lorefx

Ok wait ... I don't know what I did but maybe turning on the M4 after the amplifier/tv changed something Now i see

ubuntu@nanopi-m4:~$ sudo ./drmgl
Using display 0xaaaad7e8dc10 with EGL version 1.4
EGL Version "1.4"
EGL Vendor "Mesa Project"
EGL Extensions "EGL_ANDROID_blob_cache EGL_EXT_buffer_age EGL_EXT_image_dma_buf_import EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_no_config_context EGL_KHR_partial_update EGL_KHR_reusable_sync EGL_KHR_surfaceless_context EGL_EXT_pixel_format_float EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_drm_image EGL_MESA_image_dma_buf_export EGL_MESA_query_driver EGL_WL_bind_wayland_display "
GL Extensions: "GL_EXT_blend_minmax GL_EXT_multi_draw_arrays GL_EXT_texture_format_BGRA8888 GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_rgb8_rgba8 GL_OES_stencil8 GL_OES_texture_3D GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_half_float GL_OES_EGL_image GL_OES_depth_texture GL_OES_packed_depth_stencil GL_EXT_texture_type_2_10_10_10_REV GL_OES_get_program_binary GL_APPLE_texture_max_level GL_EXT_discard_framebuffer GL_EXT_read_format_bgra GL_EXT_frag_depth GL_NV_fbo_color_attachments GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_vertex_array_object GL_EXT_occlusion_query_boolean GL_EXT_texture_rg GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer GL_NV_read_depth GL_NV_read_depth_stencil GL_NV_read_stencil GL_EXT_draw_buffers GL_EXT_map_buffer_range GL_KHR_debug GL_KHR_texture_compression_astc_ldr GL_OES_required_internalformat GL_OES_surfaceless_context GL_EXT_separate_shader_objects GL_EXT_compressed_ETC1_RGB8_sub_texture GL_EXT_draw_elements_base_vertex GL_EXT_texture_border_clamp GL_KHR_context_flush_control GL_OES_draw_elements_base_vertex GL_OES_texture_border_clamp GL_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d GL_KHR_parallel_shader_compile "
failed to set mode: Permission denied

Then I stopped Kodi and now the sudo ./drmgl shows tthe screen changing color in a loop with RGB values going alternatively from 0 to 1

and in the kodi log i see also something regarding permission denied for DRM magic

2020-10-07 16:43:49.724 T:1155     INFO <general>: RetroPlayer[RENDER]: Registering renderer factory for OpenGLES
2020-10-07 16:43:49.779 T:1155  WARNING <general>: CDRMUtils::FindPlane - could not find gui plane for crtc index 0
2020-10-07 16:43:49.780 T:1155    ERROR <general>: CDRMUtils::InitDrm - failed to authorize drm magic: Permission denied
2020-10-07 16:43:49.780 T:1155    ERROR <general>: CWinSystemGbm::InitWindowSystem - failed to initialize Atomic DRM
2020-10-07 16:43:49.780 T:1155    ERROR <general>: CDRMUtils::RestoreOriginalMode - failed to set original crtc mode
2020-10-07 16:43:49.839 T:1155  WARNING <general>: CDRMUtils::FindPlane - could not find gui plane for crtc index 0
2020-10-07 16:43:49.840 T:1155    ERROR <general>: CDRMUtils::InitDrm - failed to authorize drm magic: Permission denied
2020-10-07 16:43:49.840 T:1155    ERROR <general>: CWinSystemGbm::InitWindowSystem - failed to initialize Legacy DRM
2020-10-07 16:43:49.840 T:1155    ERROR <general>: CDRMUtils::RestoreOriginalMode - failed to set original crtc mode
2020-10-07 16:43:50.370 T:1155     INFO <general>: Found resolution 1280x720 with 1280x720 @ 50.000000 Hz
2020-10-07 16:43:50.376 T:1155     INFO <general>: EGL_VERSION = 1.4
2020-10-07 16:43:50.376 T:1155     INFO <general>: EGL_VENDOR = Mesa Project
2020-10-07 16:43:50.376 T:1155     INFO <general>: EGL_EXTENSIONS = EGL_ANDROID_blob_cache EGL_EXT_buffer_age EGL_EXT_image_dma_buf_import EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_no_config_context EGL_KHR_reusable_sync EGL_KHR_surfaceless_context EGL_EXT_pixel_format_float EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_image_dma_buf_export EGL_MESA_query_driver 
2020-10-07 16:43:50.376 T:1155     INFO <general>: EGL_CLIENT_EXTENSIONS = EGL_EXT_device_base EGL_EXT_device_enumeration EGL_EXT_device_query EGL_EXT_platform_base EGL_KHR_client_get_all_proc_addresses EGL_EXT_client_extensions EGL_KHR_debug EGL_EXT_platform_wayland EGL_EXT_platform_x11 EGL_MESA_platform_gbm EGL_MESA_platform_surfaceless EGL_EXT_platform_device
2020-10-07 16:43:50.397 T:1155     INFO <general>: Checking resolution 16
2020-10-07 16:43:50.398 T:1155  WARNING <general>: CGBMUtils::DestroySurface - surface already destroyed
2020-10-07 16:43:50.410 T:1155     INFO <general>: GL_VENDOR = VMware, Inc.
2020-10-07 16:43:50.410 T:1155     INFO <general>: GL_RENDERER = llvmpipe (LLVM 10.0.0, 128 bits)
2020-10-07 16:43:50.410 T:1155     INFO <general>: GL_VERSION = OpenGL ES 3.1 Mesa 20.0.8
2020-10-07 16:43:50.410 T:1155     INFO <general>: GL_SHADING_LANGUAGE_VERSION = OpenGL ES GLSL ES 3.10
2020-10-07 16:43:50.410 T:1155     INFO <general>: GL_EXTENSIONS = GL_EXT_blend_minmax GL_EXT_multi_draw_arrays GL_EXT_texture_compression_s3tc GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_format_BGRA8888 GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_stencil8 GL_OES_texture_3D GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_half_float GL_EXT_texture_sRGB_decode GL_OES_EGL_image GL_OES_depth_texture GL_OES_packed_depth_stencil GL_EXT_texture_type_2_10_10_10_REV GL_NV_conditional_render GL_OES_get_program_binary GL_APPLE_texture_max_level GL_EXT_discard_framebuffer GL_EXT_read_format_bgra GL_EXT_frag_depth GL_NV_fbo_color_attachments GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_vertex_array_object GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_EXT_occlusion_query_boolean GL_EXT_texture_rg GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer GL_NV_read_depth GL_NV_read_depth_stencil GL_NV_read_stencil GL_EXT_draw_buffers GL_EXT_map_buffer_range GL_KHR_debug GL_KHR_texture_compression_astc_ldr GL_OES_depth_texture_cube_map GL_OES_required_internalformat GL_OES_surfaceless_context GL_EXT_color_buffer_float GL_EXT_sRGB_write_control GL_EXT_separate_shader_objects GL_EXT_shader_implicit_conversions GL_EXT_shader_integer_mix GL_EXT_base_instance GL_EXT_compressed_ETC1_RGB8_sub_texture GL_EXT_copy_image GL_EXT_draw_buffers_indexed GL_EXT_draw_elements_base_vertex GL_EXT_polygon_offset_clamp GL_EXT_render_snorm GL_EXT_shader_io_blocks GL_EXT_texture_border_clamp GL_EXT_texture_buffer GL_EXT_texture_norm16 GL_EXT_texture_view GL_KHR_context_flush_control GL_NV_image_formats GL_OES_copy_image GL_OES_draw_buffers_indexed GL_OES_draw_elements_base_vertex GL_OES_shader_io_blocks GL_OES_texture_border_clamp GL_OES_texture_buffer GL_OES_texture_stencil8 GL_OES_texture_storage_multisample_2d_array GL_OES_texture_view GL_EXT_blend_func_extended GL_EXT_buffer_storage GL_EXT_float_blend GL_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d GL_OES_EGL_image_external_essl3 GL_OES_shader_image_atomic GL_EXT_clip_cull_distance GL_EXT_disjoint_timer_query GL_EXT_texture_compression_s3tc_srgb GL_MESA_shader_integer_functions GL_EXT_clip_control GL_EXT_texture_compression_bptc GL_KHR_parallel_shader_compile GL_EXT_EGL_image_storage GL_EXT_texture_sRGB_R8 GL_MESA_framebuffer_flip_y GL_EXT_depth_clamp GL_EXT_texture_query_lod 
2020-10-07 16:43:50.481 T:1155     INFO <general>: GLES: Maximum texture width: 8192

So I decided to launch Kodi with sudo to verify the permission issue, and as SUPERUSER IT WORKS So I've to understand what permission is needed as user (or in what group the user needs to be ... currently

root:x:0:ubuntu
daemon:x:1:
bin:x:2:
sys:x:3:
adm:x:4:syslog
tty:x:5:syslog
disk:x:6:
lp:x:7:
mail:x:8:
news:x:9:
uucp:x:10:
man:x:12:
proxy:x:13:
kmem:x:15:
dialout:x:20:
fax:x:21:
voice:x:22:
cdrom:x:24:
floppy:x:25:
tape:x:26:
sudo:x:27:ubuntu
audio:x:29:ubuntu
dip:x:30:
www-data:x:33:
backup:x:34:
operator:x:37:
list:x:38:
irc:x:39:
src:x:40:
gnats:x:41:
shadow:x:42:
utmp:x:43:
video:x:44:ubuntu
sasl:x:45:
plugdev:x:46:ubuntu
staff:x:50:
games:x:60:
users:x:100:ubuntu
nogroup:x:65534:
systemd-journal:x:101:ubuntu
systemd-network:x:102:
systemd-resolve:x:103:
systemd-timesync:x:104:
crontab:x:105:
messagebus:x:106:
input:x:107:ubuntu
kvm:x:108:
render:x:109:
syslog:x:110:
netdev:x:111:ubuntu
ubuntu:x:1000:
systemd-coredump:x:999:
ssh:x:112:
bluetooth:x:113:

lorefx avatar Oct 07 '20 14:10 lorefx

SOLVED: after adding the user to the render group it worked, now panfrost is used I had to disable in Kodi the DRM Prime rendering entirely otherwise the audio works but nothing is shown on screen during video playback

lorefx avatar Oct 07 '20 15:10 lorefx