Search the Community
Showing results for 'panfrost'.
-
🏆 Become a sponsor, help to add other boards in armbian standart, you don't need to be a programmer to help the community, just need a copy of the ARM BOARD and a x86 computer to compile new versions. If you like what you see here and want to help: Donate Armbian the like button only costs a few dollars. Armbian Needs you help! This Armbian adventure was summarized in my Public Github Repository. H96 MAX V56 RK3566 8gb Ram SD-Card unofficial images: Tutorial SD-Card Version v0.5 ARMBIAN BETA unofficial H96 MAX V56 RK3566 8gb EMMC Chainloader to mainline HotnikQ unofficial images: Tutorial EMMC Version V0.7 ARMBIAN BETA unofficial H96 MAX V56 RK3566 8gb EMMC Mainline Boot Hzdm unofficial images: Tutorial EMMC Version v0.8 ARMBIAN unofficial H96 MAX V56 RK3566 8gb EMMC Mainline Boot Hzdm unofficial images: Tutorial EMMC Version v0.9 ARMBIAN BETA unofficial H96 MAX V56 RK3566 8gb EMMC Chainloader to mainline HotnikQ unofficial images: Tutorial EMMC Version v1.0 ARMBIAN unofficial H96 MAX V56 RK3566 8gb EMMC Hzdm Mainline Boot Custom unofficial images: Tutorial Build Your own Armbian EMMC unofficial image H96 MAX V56 RK3566 EMMC Raspiblitz HotnikQ unofficial images: Tutorial Build Raspiblitz on EMMC Armbian Bullseye unofficial H96 MAX V56 RK3566 8gb EMMC Hzdm Mainline Boot unofficial images: Tutorial Build Your own V1.1 Armbian EMMC unofficial image H96 MAX V56 RK3566 8gb Vendor Kernel 5.1.16 Tutorial Build Your own Armbian Rockchip Kernel vendor Kernel 5.1.16 Armbian Joshua Riek Ubuntu Rockchip Images kernel 5.1 H96 MAX V56 RK3566 8gb Vendor Kernel 6.1.43 Tutorial Build Your own Armbian Rockchip Kernel vendor Kernel 6.1.43 Armbian Joshua Riek Ubuntu Rockchip Images Kernel 6.1 H96 MAX V56 RK3566 8gb EMMC Ning Mainline Kernel: Armbian EMMC official image Armbian Desktop Gnome kernel The Latest official Debian BookWorm Server Kernel Minimal The Latest official Desktop Test Images: Pre-Build Desktop 22.04 Armbian Test Image (PT-BR) Community Official Images: Armbian_community_25.2.0-trunk.410_H96-tvbox-3566_bookworm_current_6.12.11_minimal.img.xz Armbian_community_25.2.0-trunk.410_H96-tvbox-3566_noble_current_6.12.11_gnome_desktop.img.xz Bleding Edge images: Armbian-unofficial_25.02.0-trunk_H96-tvbox-3566_noble_edge_6.13.0_cinnamon_desktop.tar.xz Armbian-unofficial_25.02.0-trunk_H96-tvbox-3566_jammy_edge_6.13.0_cinnamon_desktop.tar.xz Armbian-unofficial_25.02.0-trunk_H96-tvbox-3566_bookworm_edge_6.13.0_cinnamon_desktop.tar.xz Armbian-unofficial_25.02.0-trunk_H96-tvbox-3566_noble_edge_6.13.0_minimal.tar.xz Armbian-unofficial_25.02.0-trunk_H96-tvbox-3566_bookworm_edge_6.13.0_minimal.tar.xz Armbian-unofficial_25.02.0-trunk_H96-tvbox-3566_jammy_edge_6.13.0_minimal.tar.xz Joshua-Riek Vendor Images: Joshua-Riek-ubuntu-22.04-preinstalled-desktop-arm64-h96max-v56 Joshua-Riek-ubuntu-22.04-preinstalled-server-arm64-h96max-v56 Joshua-Riek-ubuntu-24.04-preinstalled-desktop-arm64-h96max-v56 Joshua-Riek-ubuntu-24.04-preinstalled-server-arm64-h96max-v56 Software description: V0.5 = @armbian The Armbian SD card image "Compiled From Armbian Project" V0.8 = @hzdm Project with Mainline Bootloader "Boot the 64gb Emmc Armbian with Mainline Rockchip" V0.9 = @hzdm Release Mainline Bootloader "Boot the 32gb and 64gb Emmc Armbian with Mainline Rockchip" V1.0 = @hotnikq The Armbian SD card inside the Android Legacy Rockchip Image "Two Original Glued Images: Android boot for Linux" V1.2 = @ning Release Device Tree and Bootloader to longterm 6.6.27 Kernel "Boot with Mainline Rockchip" V1.3 = @Hqnicolas Github PR Enable h96 Rk3566 TV-Box device for Kernel 6.8 V1.4 = @pocosparc Github PR Enable OpenVFD and IR controller V1.5 = @dfahren Github PR Update U-boot 2025.01 for Kernel 6.12+ Video drivers: https://developer.arm.com/downloads/-/mali-drivers/bifrost-kernel https://docs.mesa3d.org/download.html https://docs.mesa3d.org/drivers/panfrost.html Wifi Driver: https://drive.google.com/file/d/1B1LmAylalETcnBEWiPiJHL0MjK5xlIV4/view?usp=sharing UEFI: https://github.com/hqnicolas/h96v56_uefi/releases/tag/v1.2.1 Or Just Live install Wifi Driver: cd /lib/firmware/brcm/ sudo wget https://github.com/CoreELEC/brcmfmac_sdio-firmware-aml/raw/master/firmware/brcm/fw_bcm4335b0_ag.bin sudo ln -s fw_bcm4335b0_ag.bin brcmfmac4335-sdio.h96-TVbox,rk3566.bin sudo reboot now nmcli dev wifi sudo rmmod brcmfmac_wcc brcmfmac brcmutil modprobe brcmfmac Topic description: This topic aims to demonstrate the path taken to the Armibian EMMC solution. In our path we create a lot of ready-to-use ROM files, some users burn an use this images without learning with the Linux compilation process. the name of the topic is efforts but that's no effort at all, you should try compile your own images. Device Capability Test: Using Rockchip SoCs NPU. Drivers: https://github.com/rockchip-linux/rknpu2 User Guide: https://github.com/rockchip-linux/rknpu2/blob/master/doc/Rockchip_RKNPU_User_Guide_RKNN_API_V1.4.0_EN.pdf OpenCV: https://opencv.org/blog/2022/11/29/working-with-neural-processing-units-npus-using-opencv/ A discussion on Reddit: https://www.reddit.com/r/OrangePI/comments/12b3jmj/accessing_the_npu_on_the_orange_pi/ Transformers models: https://github.com/usefulsensors/useful-transformers Usage: https://www.crowdsupply.com/useful-sensors/ai-in-a-box/ Usage: https://youtu.be/pN8mKZ5wpdQ
-
Armbian Weekly Highlights This summary highlights key updates to the Armbian build repository, including kernel adjustments, tooling fixes, and configuration changes. These contributions reflect ongoing efforts from the community to ensure system stability, compatibility, and enhanced performance across supported platforms. Rockchip: Fixing Broken EDGE Kernel Patch Commit by: @Igor Pecovnik View Commit › Add “Out of Date” Notice to Example Config Author: EvilOlaf View Commit › UFS Devices: Add Sector Size Variable Author: FantasyGmm View Commit › Update prepare-host.sh “This doesn’t feel right. The package exists across all main distros. Probably not needed in every case… but it’s toolchain-related, so worth revisiting if merged.” Author: Werner View Commit › Add New Host Build Dependency for Noble Author: EvilOlaf View Commit › rockchip64: Fix ATF Build & Bump to Latest Author: Werner View Commit › Allwinner: Bump to Latest Author: Igor Pecovnik View Commit › Fix ORAS Tooling Download – Add wget Moved wget to basic dependencies Cleaned up spacing Author: Werner View Commit › ZRAM Service Fix – mkfs Deprecation Author: Igor Pecovnik View Commit › Auto-Sync Board Config Status Author: Igor Pecovnik View Commit › Fix jq Filter Usage in apt-utils Author: Franklyn Tackitt View Commit › AIC Wi-Fi Driver Adjustment for Rockchip Author: Igor Pecovnik View Commit › BananaPi SM1: Fix Patch Naming “Do to my laziness these patches were submitted ugly. My bad.” Author: Patrick Yavitz View Commit › Btrfs Root on Subvolume Support Author: Igor Velkov View Commit › U-Boot v2025 for Sunxi: H616 Fixes, DTS Updates Author: The-going View Commit › Sunxi 6.13 Series Re-export Patches b10d00d Fix EMAC0/MDIO0 (rtl8211F) 61ad7ce Zero2W: Add Missing Nodes c019129 Update to v6.13.11 83d866a Add Sound Support for H616/618 c5fc8be PWM Nodes & Overlays f61dc0c Enable TV Output & Zero2W Patches 481b407 Cedrus V4L2: Add More Formats + DMA Update f2c4d41 Panfrost: Rework Power Domain Patches (v2) c129052 Switch from rkr5 to rkr5.1 Author: Mecid View Commit › Improve Example Config Handling Add BUILD_DESKTOP Automation 1469fda Fix Link & Create Proper Example c93edf5 Copy Example Config at First Start 554580a Remove Deprecated lib.config 1d9c78a Armbian is a community-driven project maintained by a group of dedicated individuals in their limited free time. We provide the platform and tools for collaboration, but fixing every bug is beyond our capacity. Even large, well-funded teams face similar limits. That’s why we rely on the community—not just for reporting issues, but for actively helping to resolve them. file:///tmp/lu1588574hd9ee8.tmp/lu1588574hd9fat_tmp_858a6d92.png View all commits and contribute at github.com/armbian/build file:///tmp/lu1588574hd9ee8.tmp/lu1588574hd9fat_tmp_7111f4e6.png Support Armbian development: Donate Today! The post Armbian Weekly Highlights first appeared on Armbian. View the full article
-
Efforts to develop firmware for H96 MAX M9 RK3576 TV Box 8G/128G
cmuki replied to Hqnicolas's topic in Rockchip CPU Boxes
Good news and bad news - I found the culprit for the kernel panic, but it's the GPU - once I blacklisted the panfrost module, it booted and completed the initial setup. The rknpu driver is v0.9.8, so it should be usable with the immich ML. Probably will try to investigate the GPU issue, but not anytime soon. -
Hello, this quick tutorial is to introduce an experimental Debian and Ubuntu APT repository to install ffmpeg compiled with v4l2request and v4l2drmprime patches developed by Linux kernel, LIbreELEC and Kodi folks to allow hardware video decoding on stateless decoders like those implemented in Rockchip and Allwinner SoCs for h.264, h.265, vp8 and vp9 codecs. The repository introduces a new ffmpeg package that integrates and substitues the base ffmpeg package and its related packages. Preconditions: Mainline kernel 6.1 or more recent armhf or arm64 architecture Supported distributions: Debian 12 - Bookworm Debian 13 - Trixie (only arm64) Ubuntu 22.04 - Jammy Ubuntu 24.04 - Noble Rockchip and Allwinner have already been tested, but this should work on other platforms with stateless decoders supported in kernel APT REPOSITORY SETUP To install the repository, just copy and paste the lines in a terminal: $ sudo wget http://apt.undo.it:7242/apt.undo.it.asc -O /etc/apt/trusted.gpg.d/apt.undo.it.asc $ . /etc/os-release && echo "deb http://apt.undo.it:7242 $VERSION_CODENAME main" | sudo tee /etc/apt/sources.list.d/apt.undo.it.list $ echo -e "Package: *\nPin: release o=apt.undo.it\nPin-Priority: 600" | sudo tee /etc/apt/preferences.d/apt-undo-it INSTALL FFMPEG AND MPV PACKAGES $ sudo apt update $ sudo apt install ffmpeg mpv SETUP MPV CONFIG FILE $ sudo mkdir -p /etc/mpv $ echo -e "hwdec=drm\ndrm-drmprime-video-plane=primary\ndrm-draw-plane=overlay" | sudo tee /etc/mpv/mpv.conf You can now play your videos using mpv and they should run with hardware decoding if supported, either in virtual terminals or in X11/Wayland windows! Enjoy! Notes: your mileage may vary a lot: the more recent is the kernel version, the better is support (you may need edge kernel) bug: when rendered in X11/Wayland window, video may show scattered tiles during frames bug: Lima driver (Mali 400/450) shows a red/pink tint when video is played in X11/Wayland (see https://github.com/mpv-player/mpv/issues/12968) (workaround below: https://forum.armbian.com/topic/32449-repository-for-v4l2request-hardware-video-decoding-rockchip-allwinner/?do=findComment&comment=177968) you may want to add --gpu-hwdec-interop=drmprime-overlay to the mpv command line if used in pure virtual terminal (no X, no Wayland) to use direct-to-overlay output Panfrost driver should work flawlessy 10 bit HEVC are generally supported on all Rockchip devices (rk322x, rk3288, rk33x8, rk3399), but Allwinner H3 have no hardware support for that
-
hi, I tested also xfce on the system, have some notes to installation (also others available uefi-x86 images) and will continue here as armbian newbie describing experiences. for now, quick notes: grub config - tiny: would be nice to have here some most used items explicitly defined as help/doc too - mainly delay(?) ... as a newbie, will be easy to modify existing item than search for it boot - selecting locale - when I was finding CZ, it is in some images listed as 98, somewhere as 99 ... probably the list is not consistent (I dont know if it was goal, but having this list stable can be handy) - tiny quirk - some images miss board logo, debian images even miss armbian logo and there is debian 12 default, okay )) armbian-config - storage - install should have probably alphabetically sorted items, as in some case nvme1 is listed first and selected by default, better nvme0, of course 🙂 - also, it seems that in some images, desktop icon for this launches using sudo and elsewhere without it, some images failed storage-install from icon, by sudo from terminal, okay (I also realized that uefi-x86 has obviously drastically simple armbian-config vs arm sbc boards, sure ... had chatgpt involved in discussion what all to possible configure on armbian installed systems - if its possible to trust all what it replied, will see ... I am totally new to GPU related things like mesa, panfrost, wayland etc etc ... gpt is good source of comparison info, imho, I ued it as teacher available 24/7, expecting also invented halucinations, sure )) Xfce - gparted was unable to launch from menu?? dont know why yet I am making these notes here for myself also, can try to peek inside armbian-config sources soon to learn how things are done and try to solve it, if possible (few years ago I did my very first bash work related to John Winans Z80retro! as CP/M firmware change/backup toolkit for midnight commander, so far so good experience, bash is okay) cheers Petr
-
After testing it with verbosity=7 on both vendor and current, there's nothing suspicious in the kernel logs -- on vendor, I get: root@radxa-zero3:~# journalctl -k -b 0 | grep -iE 'hdmi|drm|gpu|edid|cec' Apr 08 11:26:19 radxa-zero3 kernel: OF: fdt: Reserved memory: failed to reserve memory for node 'drm-logo@0': base 0x0000000000000000, size 0 MiB Apr 08 11:26:19 radxa-zero3 kernel: OF: fdt: Reserved memory: failed to reserve memory for node 'drm-cubic-lut@0': base 0x0000000000000000, size 0 MiB Apr 08 11:26:19 radxa-zero3 kernel: platform fe040000.vop: Fixed dependency cycle(s) with /hdmi@fe0a0000 Apr 08 11:26:19 radxa-zero3 kernel: platform fe0a0000.hdmi: Fixed dependency cycle(s) with /vop@fe040000 Apr 08 11:26:19 radxa-zero3 kernel: [drm] all windows should be assigned, full plane mask: Cluster0 | Cluster1 | Esmart0 | Esmart1 | Smart0 | Smart1[0x3f], current plane mask: [0x0 Apr 08 11:26:19 radxa-zero3 kernel: [drm] use default plane mask Apr 08 11:26:19 radxa-zero3 kernel: rockchip-vop2 fe040000.vop: [drm:vop2_bind] vp0 assign plane mask: Cluster0 | Cluster1 | Esmart0 | Esmart1 | Smart0 | Smart1[0x3f], primary plane phy id: Smart0[4] Apr 08 11:26:19 radxa-zero3 kernel: rockchip-vop2 fe040000.vop: [drm:vop2_bind] vp1 assign plane mask: [0x0], primary plane phy id: INVALID[-1] Apr 08 11:26:19 radxa-zero3 kernel: rockchip-vop2 fe040000.vop: [drm:vop2_bind] vp2 assign plane mask: [0x0], primary plane phy id: INVALID[-1] Apr 08 11:26:19 radxa-zero3 kernel: [drm] failed to init overlay plane Cluster0-win1 Apr 08 11:26:19 radxa-zero3 kernel: rockchip-drm display-subsystem: bound fe040000.vop (ops 0xffff80000939a0c0) Apr 08 11:26:19 radxa-zero3 kernel: dwhdmi-rockchip fe0a0000.hdmi: Looking up avdd-0v9-supply from device tree Apr 08 11:26:19 radxa-zero3 kernel: dwhdmi-rockchip fe0a0000.hdmi: Looking up avdd-0v9-supply property in node /hdmi@fe0a0000 failed Apr 08 11:26:19 radxa-zero3 kernel: dwhdmi-rockchip fe0a0000.hdmi: Looking up avdd-1v8-supply from device tree Apr 08 11:26:19 radxa-zero3 kernel: dwhdmi-rockchip fe0a0000.hdmi: Looking up avdd-1v8-supply property in node /hdmi@fe0a0000 failed Apr 08 11:26:19 radxa-zero3 kernel: dwhdmi-rockchip fe0a0000.hdmi: Detected HDMI TX controller v2.11a with HDCP (DWC HDMI 2.0 TX PHY) Apr 08 11:26:19 radxa-zero3 kernel: dwhdmi-rockchip fe0a0000.hdmi: registered DesignWare HDMI I2C bus driver Apr 08 11:26:19 radxa-zero3 kernel: dwhdmi-rockchip fe0a0000.hdmi: error -ENXIO: IRQ index 1 not found Apr 08 11:26:19 radxa-zero3 kernel: rockchip-drm display-subsystem: bound fe0a0000.hdmi (ops 0xffff8000093b2958) Apr 08 11:26:19 radxa-zero3 kernel: [drm] Initialized rockchip 4.0.0 20140818 for display-subsystem on minor 0 Apr 08 11:26:19 radxa-zero3 kernel: rockchip-drm display-subsystem: failed to parse loader memory Apr 08 11:26:19 radxa-zero3 kernel: EDID block 0 is all zeroes Apr 08 11:26:19 radxa-zero3 kernel: EDID block 0 is all zeroes Apr 08 11:26:19 radxa-zero3 kernel: dwhdmi-rockchip fe0a0000.hdmi: failed to get edid Apr 08 11:26:19 radxa-zero3 kernel: EDID block 0 is all zeroes Apr 08 11:26:19 radxa-zero3 kernel: dwhdmi-rockchip fe0a0000.hdmi: failed to get edid Apr 08 11:26:19 radxa-zero3 kernel: rockchip-vop2 fe040000.vop: [drm:vop2_crtc_atomic_enable] Update mode to 1280x720p60, type: 11(if:HDMI0, flag:0x0) for vp0 dclk: 74250000 Apr 08 11:26:19 radxa-zero3 kernel: rockchip-vop2 fe040000.vop: [drm:vop2_crtc_atomic_enable] set dclk_vop0 to 74250000, get 74250000 Apr 08 11:26:19 radxa-zero3 kernel: EDID block 0 is all zeroes Apr 08 11:26:19 radxa-zero3 kernel: rockchip-drm display-subsystem: [drm] fb0: rockchipdrmfb frame buffer device Apr 08 11:26:19 radxa-zero3 kernel: rockchip-drm display-subsystem: [drm] run display error_event monitor Apr 08 11:26:19 radxa-zero3 kernel: Registered IR keymap rc-cec Apr 08 11:26:19 radxa-zero3 kernel: rc rc0: dw_hdmi as /devices/platform/fe0a0000.hdmi/rc/rc0 Apr 08 11:26:19 radxa-zero3 kernel: input: dw_hdmi as /devices/platform/fe0a0000.hdmi/rc/rc0/input0 Apr 08 11:26:19 radxa-zero3 kernel: input: hdmi_cec_key as /devices/platform/fe0a0000.hdmi/dw-hdmi-cec.1.auto/input/input1 Apr 08 11:26:19 radxa-zero3 kernel: vdd_gpu: supplied by vcc_sys Apr 08 11:26:19 radxa-zero3 kernel: vdd_gpu: 500 <--> 1350 mV at 900 mV, enabled Apr 08 11:26:19 radxa-zero3 kernel: rockchip-pm-domain fdd90000.power-management:power-controller: Looking up gpu-supply from device tree Apr 08 11:26:19 radxa-zero3 kernel: rockchip-pm-domain fdd90000.power-management:power-controller: Looking up gpu-supply property in node /power-management@fdd90000/power-controller failed Apr 08 11:26:19 radxa-zero3 kernel: mali fde60000.gpu: Kernel DDK version g25p0-00eac0 Apr 08 11:26:19 radxa-zero3 kernel: mali fde60000.gpu: error -ENXIO: IRQ JOB not found Apr 08 11:26:19 radxa-zero3 kernel: mali fde60000.gpu: error -ENXIO: IRQ MMU not found Apr 08 11:26:19 radxa-zero3 kernel: mali fde60000.gpu: error -ENXIO: IRQ GPU not found Apr 08 11:26:19 radxa-zero3 kernel: mali fde60000.gpu: Insufficient register space, will override to the required size Apr 08 11:26:19 radxa-zero3 kernel: mali fde60000.gpu: Register window unavailable Apr 08 11:26:19 radxa-zero3 kernel: mali fde60000.gpu: Failed to map registers Apr 08 11:26:19 radxa-zero3 kernel: mali fde60000.gpu: Register map failed error = -5 Apr 08 11:26:19 radxa-zero3 kernel: mali fde60000.gpu: Device initialization failed Apr 08 11:26:19 radxa-zero3 kernel: mali: probe of fde60000.gpu failed with error -5 Apr 08 11:26:19 radxa-zero3 kernel: EDID block 0 is all zeroes Apr 08 11:26:19 radxa-zero3 kernel: #0: rockchip-hdmi0 Apr 08 11:26:19 radxa-zero3 systemd[1]: Starting modprobe@drm.service - Load Kernel Module drm... Apr 08 11:26:19 radxa-zero3 systemd[1]: modprobe@drm.service: Deactivated successfully. Apr 08 11:26:19 radxa-zero3 systemd[1]: Finished modprobe@drm.service - Load Kernel Module drm. Apr 08 11:26:19 radxa-zero3 kernel: panfrost fde60000.gpu: clock rate = 594000000 Apr 08 11:26:19 radxa-zero3 kernel: panfrost fde60000.gpu: bus_clock rate = 500000000 Apr 08 11:26:19 radxa-zero3 kernel: panfrost fde60000.gpu: Looking up mali-supply from device tree Apr 08 11:26:19 radxa-zero3 kernel: panfrost fde60000.gpu: mali-g52 id 0x7402 major 0x1 minor 0x0 status 0x0 Apr 08 11:26:19 radxa-zero3 kernel: panfrost fde60000.gpu: features: 00000000,00000cf7, issues: 00000000,00000400 Apr 08 11:26:19 radxa-zero3 kernel: panfrost fde60000.gpu: Features: L2:0x07110206 Shader:0x00000002 Tiler:0x00000209 Mem:0x1 MMU:0x00002823 AS:0xff JS:0x7 Apr 08 11:26:19 radxa-zero3 kernel: panfrost fde60000.gpu: shader_present=0x1 l2_present=0x1 Apr 08 11:26:19 radxa-zero3 kernel: [drm] Initialized panfrost 1.2.0 20180908 for fde60000.gpu on minor 1 Apr 08 11:29:48 radxa-zero3 kernel: EDID block 0 is all zeroes Apr 08 11:29:48 radxa-zero3 kernel: dwhdmi-rockchip fe0a0000.hdmi: failed to get edid And on the failing one, just the same old: Apr 09 22:04:32 radxa-zero3 kernel: /vop@fe040000: Fixed dependency cycle(s) with /hdmi@fe0a0000 Apr 09 22:04:32 radxa-zero3 kernel: /hdmi@fe0a0000: Fixed dependency cycle(s) with /vop@fe040000 Apr 09 22:04:32 radxa-zero3 kernel: /hdmi@fe0a0000: Fixed dependency cycle(s) with /hdmi-con Apr 09 22:04:32 radxa-zero3 kernel: /hdmi-con: Fixed dependency cycle(s) with /hdmi@fe0a0000 Apr 09 22:04:32 radxa-zero3 kernel: rockchip-drm display-subsystem: bound fe040000.vop (ops vop2_component_ops [rockchipdrm]) Apr 09 22:04:32 radxa-zero3 kernel: dwhdmi-rockchip fe0a0000.hdmi: Detected HDMI TX controller v2.11a with HDCP (DWC HDMI 2.0 TX PHY) Apr 09 22:04:32 radxa-zero3 kernel: dwhdmi-rockchip fe0a0000.hdmi: registered DesignWare HDMI I2C bus driver Apr 09 22:04:32 radxa-zero3 kernel: rockchip-drm display-subsystem: bound fe0a0000.hdmi (ops dw_hdmi_rockchip_ops [rockchipdrm]) Apr 09 22:04:32 radxa-zero3 kernel: [drm] Initialized rockchip 1.0.0 for display-subsystem on minor 0 Apr 09 22:04:32 radxa-zero3 kernel: rockchip-drm display-subsystem: [drm] Cannot find any crtc or sizes Apr 09 22:04:32 radxa-zero3 kernel: rockchip-drm display-subsystem: [drm] Cannot find any crtc or sizes So I suspect there's some EDID problem. (I'll try forcing EDID next, but I have a few more boards ordered to see if it's a hardware problem or not (or is this a sneaky way of making me buy more CAD$60 boards...)
-
Here are the logs on the vendor side (grepping for drm and edid): root@radxa-zero3:~# journalctl -k -b 0 | grep -e hdmi -e drm Apr 08 11:26:19 radxa-zero3 kernel: OF: fdt: Reserved memory: failed to reserve memory for node 'drm-logo@0': base 0x0000000000000000, size 0 MiB Apr 08 11:26:19 radxa-zero3 kernel: OF: fdt: Reserved memory: failed to reserve memory for node 'drm-cubic-lut@0': base 0x0000000000000000, size 0 MiB Apr 08 11:26:19 radxa-zero3 kernel: platform fe040000.vop: Fixed dependency cycle(s) with /hdmi@fe0a0000 Apr 08 11:26:19 radxa-zero3 kernel: platform fe0a0000.hdmi: Fixed dependency cycle(s) with /vop@fe040000 Apr 08 11:26:19 radxa-zero3 kernel: [drm] all windows should be assigned, full plane mask: Cluster0 | Cluster1 | Esmart0 | Esmart1 | Smart0 | Smart1[0x3f], current plane mask: [0x0 Apr 08 11:26:19 radxa-zero3 kernel: [drm] use default plane mask Apr 08 11:26:19 radxa-zero3 kernel: rockchip-vop2 fe040000.vop: [drm:vop2_bind] vp0 assign plane mask: Cluster0 | Cluster1 | Esmart0 | Esmart1 | Smart0 | Smart1[0x3f], primary plane phy id: Smart0[4] Apr 08 11:26:19 radxa-zero3 kernel: rockchip-vop2 fe040000.vop: [drm:vop2_bind] vp1 assign plane mask: [0x0], primary plane phy id: INVALID[-1] Apr 08 11:26:19 radxa-zero3 kernel: rockchip-vop2 fe040000.vop: [drm:vop2_bind] vp2 assign plane mask: [0x0], primary plane phy id: INVALID[-1] Apr 08 11:26:19 radxa-zero3 kernel: [drm] failed to init overlay plane Cluster0-win1 Apr 08 11:26:19 radxa-zero3 kernel: rockchip-drm display-subsystem: bound fe040000.vop (ops 0xffff80000939a0c0) Apr 08 11:26:19 radxa-zero3 kernel: dwhdmi-rockchip fe0a0000.hdmi: Looking up avdd-0v9-supply from device tree Apr 08 11:26:19 radxa-zero3 kernel: dwhdmi-rockchip fe0a0000.hdmi: Looking up avdd-0v9-supply property in node /hdmi@fe0a0000 failed Apr 08 11:26:19 radxa-zero3 kernel: dwhdmi-rockchip fe0a0000.hdmi: Looking up avdd-1v8-supply from device tree Apr 08 11:26:19 radxa-zero3 kernel: dwhdmi-rockchip fe0a0000.hdmi: Looking up avdd-1v8-supply property in node /hdmi@fe0a0000 failed Apr 08 11:26:19 radxa-zero3 kernel: dwhdmi-rockchip fe0a0000.hdmi: Detected HDMI TX controller v2.11a with HDCP (DWC HDMI 2.0 TX PHY) Apr 08 11:26:19 radxa-zero3 kernel: dwhdmi-rockchip fe0a0000.hdmi: registered DesignWare HDMI I2C bus driver Apr 08 11:26:19 radxa-zero3 kernel: dwhdmi-rockchip fe0a0000.hdmi: error -ENXIO: IRQ index 1 not found Apr 08 11:26:19 radxa-zero3 kernel: rockchip-drm display-subsystem: bound fe0a0000.hdmi (ops 0xffff8000093b2958) Apr 08 11:26:19 radxa-zero3 kernel: [drm] Initialized rockchip 4.0.0 20140818 for display-subsystem on minor 0 Apr 08 11:26:19 radxa-zero3 kernel: rockchip-drm display-subsystem: failed to parse loader memory Apr 08 11:26:19 radxa-zero3 kernel: dwhdmi-rockchip fe0a0000.hdmi: failed to get edid Apr 08 11:26:19 radxa-zero3 kernel: dwhdmi-rockchip fe0a0000.hdmi: failed to get edid Apr 08 11:26:19 radxa-zero3 kernel: rockchip-vop2 fe040000.vop: [drm:vop2_crtc_atomic_enable] Update mode to 1280x720p60, type: 11(if:HDMI0, flag:0x0) for vp0 dclk: 74250000 Apr 08 11:26:19 radxa-zero3 kernel: rockchip-vop2 fe040000.vop: [drm:vop2_crtc_atomic_enable] set dclk_vop0 to 74250000, get 74250000 Apr 08 11:26:19 radxa-zero3 kernel: rockchip-drm display-subsystem: [drm] fb0: rockchipdrmfb frame buffer device Apr 08 11:26:19 radxa-zero3 kernel: rockchip-drm display-subsystem: [drm] run display error_event monitor Apr 08 11:26:19 radxa-zero3 kernel: rc rc0: dw_hdmi as /devices/platform/fe0a0000.hdmi/rc/rc0 Apr 08 11:26:19 radxa-zero3 kernel: input: dw_hdmi as /devices/platform/fe0a0000.hdmi/rc/rc0/input0 Apr 08 11:26:19 radxa-zero3 kernel: input: hdmi_cec_key as /devices/platform/fe0a0000.hdmi/dw-hdmi-cec.1.auto/input/input1 Apr 08 11:26:19 radxa-zero3 kernel: #0: rockchip-hdmi0 Apr 08 11:26:19 radxa-zero3 systemd[1]: Starting modprobe@drm.service - Load Kernel Module drm... Apr 08 11:26:19 radxa-zero3 systemd[1]: modprobe@drm.service: Deactivated successfully. Apr 08 11:26:19 radxa-zero3 systemd[1]: Finished modprobe@drm.service - Load Kernel Module drm. Apr 08 11:26:19 radxa-zero3 kernel: [drm] Initialized panfrost 1.2.0 20180908 for fde60000.gpu on minor 1 Apr 08 11:28:40 radxa-zero3 kernel: dwhdmi-rockchip fe0a0000.hdmi: failed to get edid root@radxa-zero3:~# This happens on multiple monitors and cables.
-
Efforts to develop firmware for H96 MAX M9 RK3576 TV Box 8G/128G
cmuki replied to Hqnicolas's topic in Rockchip CPU Boxes
Hello, Yesterday I decided to revisit this project, found out that the VPU actually WORKS with Jellyfin for HW Transcoding (I did use nyanmisaka's docker image here), but mainly to get Immich ML working on the NPU. Tried to compile a new image using the defconfig and csc given in this thread, but the boot process didn't resume after this error in u-boot: optee check api revision fail: -1.0 optee api revision is too low ### ERROR ### Please RESET the board ### Then I checked and saw that there are some differences in the defconfig and csc for sige 5 - some new and also some deleted stuff. It seems that Armsom no longer add OP-TEE to their defconfig. Also the Panfrost GPU driver is no longer blacklisted - https://github.com/armbian/build/pull/7307/files. The only way to restore the board to a working state was through rkdevtool and MASKROM mode. @hzdm, would you be able to compile new images with the latest version (6.1.99) of the kernel? I also did try compiling with the mesa-vpu extension. @Pavel S - in the 4PDA forum I saw some mentions of a serial number, but haven't checked them myself - https://4pda.to/forum/index.php?showtopic=1095643 @DeadOfGamers - check Hqnicolas' post above yours - https://forum.armbian.com/topic/40483-efforts-to-develop-firmware-for-h96-max-m9-rk3576-tv-box-8g128g/page/3/#findComment-212665 -
Long Boot Delay on Banana Pi M5 in Headless Mode
alex_laco replied to alex_laco's topic in Banana Pi M5
This dmesg log is when HDMI is connected and it's working properly https://paste.next.armbian.com/urucidibas.yaml And this dmesg log is when HDMI is Disconnected and boot delayed for aprox. 4 minutes. https://paste.next.armbian.com/idivonoyol.yaml Im getting this error 8 times with significant delay: [ 200.158193] meson-drm ff900000.vpu: [drm] *ERROR* flip_done timed out [ 200.158211] meson-drm ff900000.vpu: [drm] *ERROR* [CRTC:43:meson_crtc] commit wait timed out [ 210.398133] meson-drm ff900000.vpu: [drm] *ERROR* flip_done timed out [ 210.398147] meson-drm ff900000.vpu: [drm] *ERROR* [CONNECTOR:33:Composite-1] commit wait timed out [ 220.638124] meson-drm ff900000.vpu: [drm] *ERROR* flip_done timed out [ 220.638139] meson-drm ff900000.vpu: [drm] *ERROR* [PLANE:37:meson_primary_plane] commit wait timed out [ 220.742126] ------------[ cut here ]------------ [ 220.742135] [CRTC:43:meson_crtc] vblank wait timed out [ 220.742189] WARNING: CPU: 2 PID: 1334 at drivers/gpu/drm/drm_atomic_helper.c:1682 drm_atomic_helper_wait_for_vblanks.part.0+0x278/0x29c [ 220.742216] Modules linked in: snd_soc_hdmi_codec snd_soc_meson_g12a_toacodec snd_soc_meson_axg_tdmout snd_soc_meson_g12a_tohdmitx polyval_ce snd_soc_meson_codec_glue polyval_generic snd_soc_meson_axg_sound_card panfrost gpu_sched snd_soc_meson_card_utils drm_shmem_helper meson_vdec(C) snd_soc_meson_axg_toddr meson_gxbb_wdt snd_soc_meson_axg_frddr snd_soc_meson_axg_fifo videobuf2_dma_contig snd_soc_meson_axg_tdmin meson_ir rc_core v4l2_mem2mem videobuf2_memops videobuf2_v4l2 dw_hdmi_i2s_audio meson_ddr_pmu_g12 snd_soc_meson_t9015 videodev snd_soc_meson_axg_tdm_interface videobuf2_common snd_soc_meson_axg_tdm_formatter mc snd_soc_core snd_compress ac97_bus snd_pcm_dmaengine snd_pcm snd_timer snd soundcore zram zsmalloc binfmt_misc sch_fq_codel efi_pstore dm_mod autofs4 meson_gxl smsc meson_saradc rtc_meson_vrtc axg_audio sclk_div reset_meson_audio_arb realtek clk_phase meson_rng dwmac_generic dwmac_meson8b nvmem_meson_efuse adc_keys [ 220.742412] CPU: 2 UID: 0 PID: 1334 Comm: setfont Tainted: G WC 6.12.21-current-meson64 #1 [ 220.742426] Tainted: [W]=WARN, [C]=CRAP [ 220.742430] Hardware name: Banana Pi BPI-M5 (DT) [ 220.742435] pstate: 60400009 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 220.742444] pc : drm_atomic_helper_wait_for_vblanks.part.0+0x278/0x29c [ 220.742457] lr : drm_atomic_helper_wait_for_vblanks.part.0+0x278/0x29c [ 220.742467] sp : ffff80008321b5e0 [ 220.742471] x29: ffff80008321b5e0 x28: 0000000000000007 x27: 0000000000000000 [ 220.742484] x26: 0000000000000001 x25: 0000000000000038 x24: ffff000009203000 [ 220.742497] x23: 0000000000000001 x22: 0000000000000000 x21: ffff000004e5af80 [ 220.742509] x20: ffff000009205880 x19: 0000000000000000 x18: ffffffffffffffff [ 220.742522] x17: 0000000000000000 x16: 00000000000007ff x15: ffff80008220dbf4 [ 220.742534] x14: 0000000000000000 x13: 000000000000036a x12: 00000000ffffffea [ 220.742546] x11: 0000000000000001 x10: 0000000000000001 x9 : ffff8000820c4838 [ 220.742559] x8 : 0000000000017fe8 x7 : c0000000ffffefff x6 : 0000000000057fa8 [ 220.742571] x5 : ffff0000e07d1488 x4 : 0000000000000000 x3 : ffff80005eab6000 [ 220.742583] x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff0000026e8000 [ 220.742595] Call trace: [ 220.742599] drm_atomic_helper_wait_for_vblanks.part.0+0x278/0x29c [ 220.742611] drm_atomic_helper_commit_tail_rpm+0x84/0xa0 [ 220.742623] commit_tail+0xa0/0x188 [ 220.742632] drm_atomic_helper_commit+0x16c/0x180 [ 220.742642] drm_atomic_commit+0xb4/0xec [ 220.742653] drm_client_modeset_commit_atomic+0x204/0x264 [ 220.742662] drm_client_modeset_commit_locked+0x5c/0x194 [ 220.742670] drm_fb_helper_pan_display+0xdc/0x214 [ 220.742682] fb_pan_display+0x98/0x110 [ 220.742692] bit_update_start+0x20/0x48 [ 220.742700] fbcon_switch+0x3e8/0x530 [ 220.742710] redraw_screen+0x148/0x244 [ 220.742720] fbcon_do_set_font+0x25c/0x344 [ 220.742730] fbcon_set_font+0x230/0x26c [ 220.742740] con_font_op+0x294/0x400 [ 220.742748] vt_ioctl+0xac8/0x1370 [ 220.742758] tty_ioctl+0x21c/0xa8c [ 220.742768] __arm64_sys_ioctl+0xa8/0xec [ 220.742780] invoke_syscall+0x48/0x110 [ 220.742792] el0_svc_common.constprop.0+0xc8/0xe8 [ 220.742802] do_el0_svc+0x20/0x2c [ 220.742810] el0_svc+0x30/0xd0 [ 220.742823] el0t_64_sync_handler+0x13c/0x158 [ 220.742829] el0t_64_sync+0x190/0x194 [ 220.742838] ---[ end trace 0000000000000000 ]--- -
Hi @Ryzer I had the same issue with network unreachable error. looks like they updated the repository (25-Mar-2025 16:19). I guess it's still updating? Everything you need is here. http://apt.undo.it:7241/debian/pool/main/f/ffmpeg-v4l2request/ Edit: ffmpeg-v4l2request repository works now. They reverted back to the original files. I don't see the (25-Mar-2025 16:19) updates anymore. I tried all these patches and they all applied cleanly. I haven't noticed any "DRM_IOCTL_MODE_CREATE_DUMB" errors. I don't need the cma changes anymore. 1080p videos still shuttering using the official build and these patches. https://github.com/NickAlilovic/build/tree/v20250306/patch/kernel/archive/warpme-6.12 patches.armbian/0126-drm-panfrost-dvfs-switch-gov-to-performance.patch patches.armbian/0553-media-cedrus-Don-t-CPU-map-source-buffers.patch patches.armbian/0554-media-Add-NV12-and-P010-AFBC-compressed-formats.patch patches.armbian/0555-media-cedrus-add-format-filtering-based-on-depth-and.patch patches.armbian/0556-media-cedrus-Implement-AFBC-YUV420-formats-for-H265.patch patches.armbian/0557-media-cedrus-Increase-H6-clock-rate.patch patches.armbian/0558-media-verisilicon-g2-fix-chroma-offset-calculation.patch patches.armbian/0563-hantro-Add-quirk-for-NV12-NV12_4L4-capture-format.patch
-
Armbian doesnt seem to see sata harddrives.
Popolon replied to DontMindMe's topic in Radxa Rock 5 ITX
Hi, same problem here, however kwankiu archlinux that use the same release of the kernel has working SATA. Maybe it's patchs or options could be used as references? Didn't looked at the reboot issue. On the other side Arch for ARM is far more limited than other Arch Linux flavor I use (x86_64 and RISC-V), strangely there is not even GL acceleration (only vulkan-panfrost is compiled). Armbian as far more complete package set. I would like to have a Trixie version to cross compile some RISC-V things, as GCC12 included in Bookworm What, uname sees as kernel: Armbian (no SATA but GL acceleration): Linux rock-5-itx 6.1.99-vendor-rk35xx #1 SMP Wed Mar 19 11:16:36 UTC 2025 aarch64 GNU/Linux Archlinux (SATA, but no GL acceleration) Linux armitx 6.1.99-rockchip #1 SMP Fri Feb 28 19:07:25 HKT 2025 aarch64 GNU/Linux zgrep SATA give the same options set: <pre> $ zgrep SATA config.gz CONFIG_SATA_HOST=y CONFIG_SATA_PMP=y CONFIG_SATA_AHCI=y CONFIG_SATA_MOBILE_LPM_POLICY=0 CONFIG_SATA_AHCI_PLATFORM=y # CONFIG_SATA_INIC162X is not set # CONFIG_SATA_ACARD_AHCI is not set # CONFIG_SATA_SIL24 is not set $ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS sda 8:0 0 1,8T 0 disk ├─sda1 8:1 0 47,7G 0 part ├─sda2 8:2 0 47,7G 0 part ├─sda3 8:3 0 1,7T 0 part └─sda4 8:4 0 6G 0 part sdb 8:16 0 2,7T 0 disk ├─sdb1 8:17 0 50G 0 part ├─sdb2 8:18 0 2,7T 0 part └─sdb3 8:19 0 2G 0 part mtdblock0 31:0 0 16M 0 disk mmcblk0 179:0 0 7,3G 0 disk ├─mmcblk0p1 179:1 0 16M 0 part ├─mmcblk0p2 179:2 0 300M 0 part └─mmcblk0p3 179:3 0 7G 0 part mmcblk0boot0 179:32 0 4M 1 disk mmcblk0boot1 179:64 0 4M 1 disk mmcblk1 179:96 0 28,9G 0 disk ├─mmcblk1p1 179:97 0 16M 0 part └─mmcblk1p2 179:98 0 28,8G 0 part / nvme0n1 259:0 0 238,5G 0 disk └─nvme0n1p1 259:1 0 236,1G 0 part </pre> -
@going There might be a clue to the sound problem in the following: sysadmin@orangepizero3:~$ sudo dmesg | grep -iE 'audio|ahub|video|codec|hdmi|drm' [ 0.079206] /soc/hdmi@6000000: Fixed dependency cycle(s) with /soc/tcon-top@6510000 [ 0.079254] /soc/tcon-top@6510000: Fixed dependency cycle(s) with /soc/hdmi@6000000 [ 0.084097] /soc/hdmi@6000000: Fixed dependency cycle(s) with /soc/tcon-top@6510000 [ 0.084454] /soc/hdmi@6000000: Fixed dependency cycle(s) with /soc/tcon-top@6510000 [ 0.084604] /soc/tcon-top@6510000: Fixed dependency cycle(s) with /soc/hdmi@6000000 [ 0.086562] /soc/hdmi@6000000: Fixed dependency cycle(s) with /connector [ 0.086632] /connector: Fixed dependency cycle(s) with /soc/hdmi@6000000 [ 0.912097] sun4i-codec 5096000.codec: Failed to get the module clock [ 0.912123] sun4i-codec 5096000.codec: probe with driver sun4i-codec failed with error -2 [ 1.893626] sun4i-drm display-engine: bound 1100000.mixer (ops 0xffff8000811bd460) [ 1.893826] sun4i-drm display-engine: bound 6510000.tcon-top (ops 0xffff8000811c2200) [ 1.894162] sun4i-drm display-engine: bound 6515000.lcd-controller (ops 0xffff8000811ba228) [ 1.894226] sun8i-dw-hdmi 6000000.hdmi: supply hvcc not found, using dummy regulator [ 1.894461] sun8i-dw-hdmi 6000000.hdmi: Detected HDMI TX controller v2.12a with HDCP (DWC HDMI 2.0 TX PHY) [ 1.894775] sun8i-dw-hdmi 6000000.hdmi: EVENT=plugin [ 1.895002] sun8i-dw-hdmi 6000000.hdmi: registered DesignWare HDMI I2C bus driver [ 1.895247] sun4i-drm display-engine: bound 6000000.hdmi (ops 0xffff8000811bc528) [ 1.895741] [drm] Initialized sun4i-drm 1.0.0 for display-engine on minor 0 [ 1.895777] sun8i-dw-hdmi 6000000.hdmi: read_hpd result: 1 [ 2.082951] sun4i-drm display-engine: [drm] fb0: sun4i-drmdrmfb frame buffer device [ 6.372421] systemd[1]: Starting modprobe@drm.service - Load Kernel Module drm... [ 6.470837] systemd[1]: modprobe@drm.service: Deactivated successfully. [ 6.471579] systemd[1]: Finished modprobe@drm.service - Load Kernel Module drm. [ 7.573250] videodev: Linux video capture interface: v2.00 [ 7.688212] cedrus 1c0e000.video-codec: Device registered as /dev/video0 [ 7.887240] [drm] Initialized panfrost 1.3.0 for 1800000.gpu on minor 1 [ 9.349292] sun8i-dw-hdmi 6000000.hdmi: EVENT=plugout [ 9.349334] sun8i-dw-hdmi 6000000.hdmi: read_hpd result: 2 [ 9.498174] sun8i-dw-hdmi 6000000.hdmi: EVENT=plugin [ 9.498214] sun8i-dw-hdmi 6000000.hdmi: read_hpd result: 1 [ 9.498316] sun8i-dw-hdmi 6000000.hdmi: EVENT=plugin [ 19.333441] hdmi-audio-codec hdmi-audio-codec.5.auto: Only one simultaneous stream supported! [ 19.333474] hdmi-audio-codec hdmi-audio-codec.5.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -22 [ 19.333494] ahub_plat-i2s-hifi: ASoC: error at __soc_pcm_open on ahub_plat-i2s-hifi: -22 [ 29.107222] hdmi-audio-codec hdmi-audio-codec.5.auto: Only one simultaneous stream supported! [ 29.107251] hdmi-audio-codec hdmi-audio-codec.5.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -22 [ 29.107270] ahub_plat-i2s-hifi: ASoC: error at __soc_pcm_open on ahub_plat-i2s-hifi: -22 [ 941.536296] sun8i-dw-hdmi 6000000.hdmi: EVENT=plugin [ 1049.709728] sun8i-dw-hdmi 6000000.hdmi: EVENT=plugout [ 1049.709779] sun8i-dw-hdmi 6000000.hdmi: read_hpd result: 2 [ 1049.859960] sun8i-dw-hdmi 6000000.hdmi: EVENT=plugin [ 1049.859997] sun8i-dw-hdmi 6000000.hdmi: read_hpd result: 1 [ 1049.860100] sun8i-dw-hdmi 6000000.hdmi: EVENT=plugin [ 1066.819613] sun8i-dw-hdmi 6000000.hdmi: EVENT=plugin [ 1463.903829] sun8i-dw-hdmi 6000000.hdmi: EVENT=plugout [ 1463.903883] sun8i-dw-hdmi 6000000.hdmi: read_hpd result: 2 [ 1464.055245] sun8i-dw-hdmi 6000000.hdmi: EVENT=plugin [ 1464.055282] sun8i-dw-hdmi 6000000.hdmi: read_hpd result: 1 [ 1464.055381] sun8i-dw-hdmi 6000000.hdmi: EVENT=plugin
-
I think so. sysadmin@orangepizero3:~$ lsmod | grep lima lima 65536 0 gpu_sched 49152 2 lima,panfrost drm_shmem_helper 24576 2 lima,panfrost sysadmin@orangepizero3:~$ lsmod | grep gpu_sched gpu_sched 49152 2 lima,panfrost sysadmin@orangepizero3:~$ glxinfo -B name of display: :0 display: :0 screen: 0 direct rendering: Yes Extended renderer info (GLX_MESA_query_renderer): Vendor: Panfrost (0xffffffff) Device: Mali-G31 (Panfrost) (0xffffffff) Version: 22.3.6 Accelerated: yes Video memory: 1975MB Unified memory: yes Preferred profile: core (0x1) Max core profile version: 3.1 Max compat profile version: 3.1 Max GLES1 profile version: 1.1 Max GLES[23] profile version: 3.1 OpenGL vendor string: Panfrost OpenGL renderer string: Mali-G31 (Panfrost) OpenGL core profile version string: 3.1 Mesa 22.3.6 OpenGL core profile shading language version string: 1.40 OpenGL core profile context flags: (none) OpenGL version string: 3.1 Mesa 22.3.6 OpenGL shading language version string: 1.40 OpenGL context flags: (none) OpenGL ES profile version string: OpenGL ES 3.1 Mesa 22.3.6 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10 ********* display show gears running.*********** sysadmin@orangepizero3:~$ glxgears Running synchronized to the vertical refresh. The framerate should be approximately the same as the monitor refresh rate. 303 frames in 5.0 seconds = 60.491 FPS 301 frames in 5.0 seconds = 60.000 FPS 301 frames in 5.0 seconds = 60.000 FPS 300 frames in 5.0 seconds = 59.994 FPS ^C ************** Display show G3D **************** sysadmin@orangepizero3:~$ g3dviewer Gtk-Message: 09:52:52.184: Failed to load module "canberra-gtk-module" (g3dviewer:3131): LibG3D-WARNING **: 09:52:52.232: libg3d: plugins: failed to load /usr/lib/aarch64-linux-gnu/libg3d/plugins/import/imp_vrml.so: /usr/lib/aarch64-linux-gnu/libg3d/plugins/import/imp_vrml.so: undefined symbol: yywrap ** (g3dviewer:3131): CRITICAL **: 09:52:53.802: add_objects: assertion 'object->name != NULL' failed screenshot "g3dviewer-screenshot-g3d.ac.png" saved.
-
sunxi-6.12: leo@bananapim4berry:~$ uname -r 6.12.19-current-sunxi64 leo@bananapim4berry:~$ dmesg | grep -iE 'audio|ahub|video|codec|hdmi|drm' [ 0.099396] /soc/hdmi@6000000: Fixed dependency cycle(s) with /soc/tcon-top@6510000 [ 0.099455] /soc/tcon-top@6510000: Fixed dependency cycle(s) with /soc/hdmi@6000000 [ 0.104244] /soc/hdmi@6000000: Fixed dependency cycle(s) with /soc/tcon-top@6510000 [ 0.104620] /soc/hdmi@6000000: Fixed dependency cycle(s) with /soc/tcon-top@6510000 [ 0.104780] /soc/tcon-top@6510000: Fixed dependency cycle(s) with /soc/hdmi@6000000 [ 0.107433] /soc/hdmi@6000000: Fixed dependency cycle(s) with /connector [ 0.107516] /connector: Fixed dependency cycle(s) with /soc/hdmi@6000000 [ 1.946257] sun4i-drm display-engine: bound 1100000.mixer (ops 0xffff80008119ae90) [ 1.946454] sun4i-drm display-engine: bound 6510000.tcon-top (ops 0xffff80008119fc60) [ 1.946768] sun4i-drm display-engine: bound 6515000.lcd-controller (ops 0xffff800081197ab0) [ 1.947062] sun8i-dw-hdmi 6000000.hdmi: Detected HDMI TX controller v2.12a with HDCP (DWC HDMI 2.0 TX PHY) [ 1.949760] sun8i-dw-hdmi 6000000.hdmi: registered DesignWare HDMI I2C bus driver [ 1.950030] sun4i-drm display-engine: bound 6000000.hdmi (ops 0xffff800081199f58) [ 1.950535] [drm] Initialized sun4i-drm 1.0.0 for display-engine on minor 0 [ 1.950566] sun8i-dw-hdmi 6000000.hdmi: read_hpd result: 1 [ 2.438265] sun8i-dw-hdmi 6000000.hdmi: EVENT=plugin [ 4.012109] sun4i-drm display-engine: [drm] fb0: sun4i-drmdrmfb frame buffer device [ 9.311566] systemd[1]: Starting modprobe@drm.service - Load Kernel Module drm... [ 9.583263] systemd[1]: modprobe@drm.service: Deactivated successfully. [ 9.590683] systemd[1]: Finished modprobe@drm.service - Load Kernel Module drm. [ 11.222612] [drm] Initialized panfrost 1.2.0 for 1800000.gpu on minor 1 [ 11.336128] videodev: Linux video capture interface: v2.00 [ 11.672804] cedrus 1c0e000.video-codec: Device registered as /dev/video0 [ 36.607644] sun8i-dw-hdmi 6000000.hdmi: EVENT=plugin [ 37.501202] sun8i-dw-hdmi 6000000.hdmi: EVENT=plugin [ 39.278755] hdmi-audio-codec hdmi-audio-codec.5.auto: Only one simultaneous stream supported! [ 39.278791] hdmi-audio-codec hdmi-audio-codec.5.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -22 [ 39.278816] ahub_plat-i2s-hifi: ASoC: error at __soc_pcm_open on ahub_plat-i2s-hifi: -22 [ 57.559744] hdmi-audio-codec hdmi-audio-codec.5.auto: Only one simultaneous stream supported! [ 57.559772] hdmi-audio-codec hdmi-audio-codec.5.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -22 [ 57.559789] ahub_plat-i2s-hifi: ASoC: error at __soc_pcm_open on ahub_plat-i2s-hifi: -22 pkg for test: sunxi64-6.12.19
-
OK, this is great, sounds logical that KMS somehow needs to be used but I did not realize. A quick test on my NanoPi-R6C dumping to a .ts file (format mpegts) with ffmpeg from the jellyfin ffmpeg7 Debian package works fine, that is: I use multi-user.target, so CLI only, therefore only clear screen with Armbian bash login prompt with blinking cursor. CPU load is almost 0, CPU clock 408Mhz. The Armbian installation is Bookworm with beta repo enabled, and I know it runs KDE Plasma as well since some months (with both latest vendor and latest mainline kernels). I have not looked at panfrost, I probably did half a year ago, but will need to look at my notes. So it is mainly an out-of-the-box action, except the installation of external jellyfin ffmpeg7 which has rkmpp included. There might indeed be performance issues, but that is not really a surprise to me; An RK3566 is a cost-cut, lowest cost RK35xx, only (lower clocked) 4x Cortex-A55, you cannot expect too much of it compared to 4x Cortex-A55 + 4x Cortex-A76 + faster DRAM, etc found in RK3588. It all depends on what else it running, e.g. libreoffice slideshow or a heavy game.
-
Ok so here is the definitive solution : You need panfrost so use the correct armbian version with vendor kernel, then you are going to need to compile ffmpeg for rockchip, just follow those instructions : https://github.com/nyanmisaka/ffmpeg-rockchip/wiki/Compilation Once it is done, you might have some performance issues when capturing the screen with either x11 or Wayland, BUT ffmpeg allows you to capture directly from the device through kmsgrab sudo setcap cap_sys_admin+ep /usr/bin/ffmpeg sudo ffmpeg -device /dev/dri/card0 -f kmsgrab -i - -r 60 -vcodec h264_rkmpp -f rtp rtp://localhost:8004 There I am streaming to a rtp server but you can write into a file. Do not forget to use the -vcodec h264_rkmpp which will use hardware encoding through VPU.
-
@dfahren My box is some what smooth than yours. But only GUI part. I don't see much laggy. Mouse cursoe, dragging windows all work fine. But I still don't get smooth web video decoding. There is nothing special, just make sure you have correct package and kernel mod installed. root@h96-tvbox-3566:~# lsmod|grep panf panfrost 73728 0 gpu_sched 36864 1 panfrost drm_shmem_helper 16384 1 panfrost root@h96-tvbox-3566:~# lsmod|grep hantr hantro_vpu 249856 0 v4l2_vp9 20480 1 hantro_vpu v4l2_jpeg 12288 1 hantro_vpu v4l2_h264 16384 2 hantro_vpu,rockchip_vdec2 videobuf2_dma_contig 20480 2 hantro_vpu,rockchip_vdec2 v4l2_mem2mem 24576 3 hantro_vpu,rockchip_rga,rockchip_vdec2 videobuf2_v4l2 20480 4 hantro_vpu,rockchip_rga,rockchip_vdec2,v4l2_mem2mem videodev 237568 5 videobuf2_v4l2,hantro_vpu,rockchip_rga,rockchip_vdec2,v4l2_mem2mem videobuf2_common 53248 8 videobuf2_dma_contig,videobuf2_v4l2,hantro_vpu,rockchip_rga,videobuf2_dma_sg,rockchip_vdec2,v4l2_mem2mem,videobuf2_memops mc 53248 6 videodev,videobuf2_v4l2,hantro_vpu,videobuf2_common,rockchip_vdec2,v4l2_mem2mem root@h96-tvbox-3566:~# dpkg -l|grep mesa ii glx-alternative-mesa 1.2.2 arm64 allows the selection of MESA as GLX provider ii libegl-mesa0:arm64 25.0.1-2 arm64 free implementation of the EGL API -- Mesa vendor library ii libgl1-mesa-dri:arm64 25.0.1-2 arm64 free implementation of the OpenGL API -- DRI modules ii libgl1-mesa-glx:arm64 22.3.6-1+deb12u1 arm64 transitional dummy package ii libglu1-mesa:arm64 9.0.2-1.1+b3 arm64 Mesa OpenGL utility library (GLU) ii libglx-mesa0:arm64 25.0.1-2 arm64 free implementation of the OpenGL API -- GLX vendor library ii libosmesa6:arm64 25.0.1-2 arm64 Mesa Off-screen rendering extension ii mesa-drm-shim:arm64 25.0.1-2 arm64 DRM shim libraries ii mesa-libgallium:arm64 25.0.1-2 arm64 shared infrastructure for Mesa drivers ii mesa-opencl-icd:arm64 25.0.1-2 arm64 free implementation of the OpenCL API -- ICD runtime ii mesa-utils 9.0.0-2+b1 arm64 Miscellaneous Mesa utilities -- symlinks ii mesa-utils-bin:arm64 9.0.0-2+b1 arm64 Miscellaneous Mesa utilities -- native applications ii mesa-va-drivers:arm64 25.0.1-2 arm64 Mesa VA-API video acceleration drivers ii mesa-vdpau-drivers:arm64 25.0.1-2 arm64 Mesa VDPAU video acceleration drivers ii mesa-vulkan-drivers:arm64 25.0.1-2 arm64 Mesa Vulkan graphics drivers
-
[ 9.527925] videodev: Linux video capture interface: v2.00 [ 9.539551] panfrost 1800000.gpu: clock rate = 432000000 [ 9.539593] panfrost 1800000.gpu: bus_clock rate = 200000000 [ 9.540215] panfrost 1800000.gpu: mali-g31 id 0x7093 major 0x0 minor 0x0 status 0x0 [ 9.540250] panfrost 1800000.gpu: features: 00000000,000027f7, issues: 00000000,00000400 [ 9.540262] panfrost 1800000.gpu: Features: L2:0x07100206 Shader:0x00000000 Tiler:0x00000209 Mem:0x1 MMU:0x00002821 AS:0xff JS:0x7 [ 9.540274] panfrost 1800000.gpu: shader_present=0x1 l2_present=0x1 [ 9.544584] [drm] Initialized panfrost 1.2.0 for 1800000.gpu on minor 1 Thank you for the information provided! A simple clarification. Does it work on an h616 processor with the patch disabled? For the h618 processor, I was unable to get the GPU to work with or without this patch. It remains to be seen whether this patch plays a positive role for the h6 processor. If there is no positive effect, then I'd better turn it off.
-
I think so, yes root@pihole-v2:~# dmesg|grep -i gpu [ 5.922915] panfrost 1800000.gpu: clock rate = 432000000 [ 5.922952] panfrost 1800000.gpu: bus_clock rate = 200000000 [ 5.923733] panfrost 1800000.gpu: mali-t720 id 0x720 major 0x1 minor 0x1 status 0x0 [ 5.923762] panfrost 1800000.gpu: features: 00000000,00000408, issues: 00000000,21054400 [ 5.923770] panfrost 1800000.gpu: Features: L2:0x07110206 Shader:0x00000000 Tiler:0x00000809 Mem:0x1 MMU:0x00002821 AS:0xf JS:0x7 [ 5.923779] panfrost 1800000.gpu: shader_present=0x3 l2_present=0x1 [ 5.931337] [drm] Initialized panfrost 1.2.0 for 1800000.gpu on minor 1
-
Rockchip has released bsp kernel 5.10 for rk356x and rk3588. Since multimedia support is not fully supported by mainline kernel, a legacy kernel would be good if you want h264/hevc hardware decode. To make kodi support hardware decoding, you need: 1, ffmpeg supporting rkmpp. I've packaged it in my ppa: https://launchpad.net/~liujianfeng1994/+archive/ubuntu/rockchip-multimedia, which is based on the patch from https://github.com/JeffyCN/FFmpeg/. 2, kodi built with gles render system, which is also in my ppa 3, a gpu driver supporting gles. For rk356x you can use mainline panfrost driver. For rk3588 you can use panfork-mesa from my ppa: https://launchpad.net/~liujianfeng1994/+archive/ubuntu/panfork-mesa I've tested that kodi can support hardware decoding on both 3568 and 3588. Here is the steps for rock5b to install kodi: 1, download the image I build with panfork-mesa and malig610 firmware: https://github.com/amazingfate/armbian-rock5b-images, and install it on your rock5b. 2, add my rockchip multimedia ppa: https://launchpad.net/~liujianfeng1994/+archive/ubuntu/rockchip-multimedia: sudo add-apt-repository ppa:liujianfeng1994/rockchip-multimedia 3, create a udev rule to enable the permission ofrockchip's mpp device: KERNEL=="mpp_service", MODE="0660", GROUP="video" KERNEL=="rga", MODE="0660", GROUP="video" KERNEL=="system-dma32", MODE="0666", GROUP="video" KERNEL=="system-uncached-dma32", MODE="0666", GROUP="video" RUN+="/usr/bin/chmod a+rw /dev/dma_heap" wirte the above rules to /etc/udev/rules.d/11-rockchip-multimedia.rules 4, install kodi: sudo apt install kodi 5, move kodi from xsession to wayland-session: sudo mv /usr/share/xsessions/kodi.desktop /usr/share/wayland-sessions/kodi-wayland.desktop 6, reboot the board: sudo reboot 7, in the lightdm greeter, select kodi and login 8, After starting kodi, in Settings -> Player -> Videos, enable "Allow using DRM PRIME decoder" and "Allow hardware acceleration with DRM PRIME". And set "PRIME Render Method" to "Direct To Plane" 9, Then you can play h264/h265 8 bit/10bit videos up to 4K. ============Updated on 20230206=================== rockchip-multimedia has become a universal ppa for rockchip legacy kernel. Here is the introduction: https://forum.radxa.com/t/introduction-to-rockchip-multimedia-ppa-for-ubuntu-jammy/14537 I provide a new package rockchip-multimedia-config to do all the system configs such as udev rules, chromium v4l2 devices creation. Just install this package and reboot, you are good to go.
-
There is a uwe5621ds WiFi module on my rk3576 development board. I burned the system image of armsom-cm5-io. After booting, calling the modprobe sprdwl_ng command will encounter the following kernel pannic [ 71.088504] Unable to handle kernel NULL pointer dereference at virtual address 00000000000001d0 [ 71.089376] Mem abort info: [ 71.089655] ESR = 0x0000000096000004 [ 71.090002] EC = 0x25: DABT (current EL), IL = 32 bits [ 71.090490] SET = 0, FnV = 0 [ 71.090784] EA = 0, S1PTW = 0 [ 71.091069] FSC = 0x04: level 0 translation fault [ 71.091509] Data abort info: [ 71.091772] ISV = 0, ISS = 0x00000004 [ 71.092147] CM = 0, WnR = 0 [ 71.092432] user pgtable: 4k pages, 48-bit VAs, pgdp=0000000102e2e000 [ 71.093018] [00000000000001d0] pgd=0000000000000000, p4d=0000000000000000 [ 71.093635] Internal error: Oops: 0000000096000004 [#1] SMP [ 71.094144] Modules linked in: sprdwl_ng(+) sprdbt_tty bnep rk805_pwrkey ufs_rockchip nvmem_rockchip_otp rockchip_cpuinfo ufshcd_pltfrm joydev input_leds ufshcd_core uio_pdrv_genirq uio zram zsmalloc binfmt_misc sch_fq_codel fuse ip_tables ipv6 pwm_blpanel_simple panfrost drm_shmem_helper gpu_sched [ 71.096551] CPU: 5 PID: 2071 Comm: modprobe Not tainted 6.1.84-vendor-rk35xx #1 [ 71.097217] Hardware name: ArmSoM CM5 IO (DT) [ 71.097614] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 71.098246] pc : get_loopcheck_status+0x18/0x20 [ 71.098662] lr : start_marlin+0x7c/0xc4 [ 71.099023] sp : ffff80000e8137d0 [ 71.099330] x29: ffff80000e8137d0 x28: ffff80000a31a910 x27: 0000000000000000 [ 71.099976] x26: 0000000000000000 x25: ffff80000a44e000 x24: ffff80000a670310 [ 71.100621] x23: 0000000000000000 x22: ffff80000a575fa8 x21: 0000000000000002 [ 71.101265] x20: ffff0000c4671810 x19: ffff800009466f1f x18: 0000000000000000 [ 71.101910] x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000 [ 71.102555] x14: 0000000000000000 x13: 5d494649575f4e49 x12: 4c52414d5b206e69 [ 71.103201] x11: 0000000000000000 x10: 0000000000000000 x9 : ffff800009205260 [ 71.103846] x8 : 00000817c200001f x7 : 696c72616d5f7472 x6 : 617473203a4e4357 [ 71.104492] x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000000 [ 71.105136] x2 : 0000000000000000 x1 : ffff0000c24aeac0 x0 : 0000000000000000 [ 71.105781] Call trace: [ 71.106011] get_loopcheck_status+0x18/0x20 [ 71.106397] sprdwl_probe+0x2c/0x330 [sprdwl_ng] [ 71.106881] platform_probe+0x70/0xc0 [ 71.107224] really_probe+0x1cc/0x390 [ 71.107570] __driver_probe_device+0x140/0x158 [ 71.107980] driver_probe_device+0x48/0xd0 [ 71.108356] __device_attach_driver+0x110/0x124 [ 71.108775] bus_for_each_drv+0xa4/0xd0 [ 71.109129] __device_attach+0xf0/0x174 [ 71.109482] device_initial_probe+0x1c/0x28 [ 71.109870] bus_probe_device+0x38/0x9c [ 71.110223] device_add+0x558/0x694 [ 71.110545] platform_device_add+0xe0/0x218 [ 71.110931] unisoc_wlan_init+0x54/0x1000 [sprdwl_ng] [ 71.111441] do_one_initcall+0x94/0x1e8 [ 71.111799] do_init_module+0x58/0x1dc [ 71.112152] load_module+0x1820/0x18d4 [ 71.112494] __do_sys_finit_module+0xfc/0x120 [ 71.112894] __arm64_sys_finit_module+0x24/0x30 [ 71.113315] invoke_syscall+0x8c/0x128 [ 71.113656] el0_svc_common.constprop.0+0xd8/0x124 [ 71.114097] do_el0_svc+0xa8/0xb8 [ 71.114406] el0_svc+0x2c/0x54 [ 71.114694] el0t_64_sync_handler+0xac/0x13c [ 71.115082] el0t_64_sync+0x19c/0x1a0 [ 71.115424] [ 71.115424] PC: 0xffff800008ac54c8:
-
May I know how do you enable Panrost support Ubuntu 24.04 on Khadas Edge2? By Khadas SDK, I have built image which failed with followings: 1. Enabled Panfrost in defconfig. 2. Add kisak-mesa ppa, apt update and upgrade. 3. Replace mali_csffw.bin by Armbian mali firmware. After these, the gnome-settings shows the GPU is software vendoring. Hope to get your help~ Thanks!
-
I have been trying to research this and have come up a bit blank. I am trying to figure out if I need to do anything special to enable panfrost. I have built a jammy and bookworm image using the stable kernel. Both boot fine, but are both using llvmpipe. It does look like its trying to use panfrost. Inside of dmesg: [ 20.098662] panfrost fde60000.gpu: clock rate = 594000000 [ 20.098685] panfrost fde60000.gpu: bus_clock rate = 500000000 [ 20.098820] panfrost fde60000.gpu: Looking up mali-supply from device tree [ 20.099041] panfrost fde60000.gpu: _of_add_opp_table_v2: no supported OPPs [ 20.099287] panfrost fde60000.gpu: devfreq init failed -2 [ 20.099301] panfrost fde60000.gpu: Fatal error during GPU init [ 20.099458] panfrost: probe of fde60000.gpu failed with error -2 I tried building with a newer kernel, but was having issues on boot. I haven't dug into that further yet. Anyone have any thoughts or advise? Thanks
-
GPU driver installation problem on Rock5B (Armbian Bookworm Minimal)
alimbada replied to Norbert Kett's topic in Rockchip
@Andyshrk Is your How-to still relevant given the instructions here: https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/docs/drivers/panfrost.rst -
The first release candidate of Mesa 25.0 has recently shipped, bringing with it multiple updates to Panfrost, and most notably to PanVK, the open source Vulkan driver for Arm Mali GPUs. View the full article