lanefu changed the topic of #armbian-rockchip to: Armbian - Linux for ARM development boards | Rockchip SoC | www.armbian.com | This channel is relayed to the equivalent Discord channel | this channel is logged
<DC-IRC> [Discord] <catloaf0> ok, the chromium that comes with the distro is 131 unfortunately, also, do I need to create /dev/video-dec0 and /dev/video-enc0 on mainline? If so what chmod should I run on them
<DC-IRC> [Discord] <stonededge> I see. So the only way then is to edit the opp table for every single unit?
<DC-IRC> [Discord] <stonededge> Seems weird.
<DC-IRC> [Discord] <amazingfate> armbian has udev rules to generate /dev/video-dec* for chromium before v132.
<DC-IRC> [Discord] <q4a> @mecoblock @gin_kage Hi. Looks like I'm missing something and I can't run mali blob on latest Armbian desktop image on Rock 5B.
<DC-IRC> [Discord] <q4a> Looks like all necessary kernel commits are present:
<DC-IRC> [Discord] <q4a> ```
<DC-IRC> [Discord] <q4a> q@rock-5b:~$ apt show linux-image-vendor-rk35xx | grep git
<DC-IRC> [Discord] <q4a> version "6.1.84" git revision "854dda7f3eeb4ce6c92ad08bd7d165d4a3395680" codename "Curry Ramen" drivers hash "6d0ed4a1_2af55cb0" patches hash "2b955c38e435e85b" .config hash "26e69fe0d425ec0b" .config hook hash "eb5188a7bccc3e13" variables hash "c22207b66dc5dd57157df2cd7b9c20559b2ed8ac44b9c3c3b9704002c06b8921" framework bash hash "341702db5f597da2"
<DC-IRC> [Discord] <q4a> q@rock-5b:~$ uname -a
<DC-IRC> [Discord] <q4a> Linux rock-5b 6.1.84-vendor-rk35xx #1 SMP Thu Jan 9 02:09:01 UTC 2025 aarch64 aarch64 aarch64 GNU/Linux
<DC-IRC> [Discord] <q4a> ```
<DC-IRC> [Discord] <q4a> I builded https://github.com/ginkage/vulkan-wsi-layer with `-DSELECT_EXTERNAL_ALLOCATOR=dma_buf_heaps` (because ion.h - looks legacy header) and installed it to `/etc/vulkan/implicit_layer.d/`:
<DC-IRC> [Discord] <q4a> ```
<DC-IRC> [Discord] <q4a> q@rock-5b:~$ ls /etc/vulkan/implicit_layer.d/
<DC-IRC> [Discord] <q4a> libVkLayer_window_system_integration.so VkLayer_window_system_integration.json
<DC-IRC> [Discord] <q4a> ```
<DC-IRC> [Discord] <q4a> I tried to install `libmali-valhall-g610-g24p0-wayland-gbm_1.9-1_arm64.deb` and `libmali-valhall-g610-g24p0-x11-gbm_1.9-1_arm64.deb` - but still getting `No mali devices found`:
<DC-IRC> [Discord] <q4a> ```
<DC-IRC> [Discord] <q4a> $ vulkaninfo
<DC-IRC> [Discord] <q4a> No mali devices found
<DC-IRC> [Discord] <q4a> Segmentation fault
<DC-IRC> [Discord] <q4a> ```
<DC-IRC> [Discord] <q4a> Did I missing something important? Like disable kernel panthor module or else?
<DC-IRC> [Discord] <monkablyat> yes you need to build without panthor overlay
<DC-IRC> [Discord] <monkablyat> there is also upstream mali firmware and BSP you will need the BSP
<DC-IRC> [Discord] <monkablyat> but i think the firmware is now included in the libmali .deb
<DC-IRC> [Discord] <gin_kage> Yes, you need to disable Panthor overlay.
<DC-IRC> [Discord] <q4a> I'm not sure how to do it? As I can see:
<DC-IRC> [Discord] <q4a> `CONFIG_DRM_PANTHOR=m`
<DC-IRC> [Discord] <q4a> So I can just blacklist it and reboot?
<DC-IRC> [Discord] <gin_kage> No need to blacklist it, just make sure you don't have the overlay enabled in bootEnv.txt
<DC-IRC> [Discord] <q4a> Yes, firmware included:
<DC-IRC> [Discord] <q4a> ```
<DC-IRC> [Discord] <q4a> $ sudo dpkg -L libmali-valhall-g610-g24p0-x11-gbm |grep .bin
<DC-IRC> [Discord] <q4a> /lib/firmware/mali_csffw.bin
<DC-IRC> [Discord] <q4a> ```
<DC-IRC> [Discord] <gin_kage> No need to blacklist it, just make sure you don't have the overlay enabled in armbianEnv.txt
<DC-IRC> [Discord] <gin_kage> Firmware is built into the kernel now.
<DC-IRC> [Discord] <q4a> Thanks! remving 1 line from `/boot/armbianEnv.txt` helped)
<DC-IRC> [Discord] <q4a> ```
<DC-IRC> [Discord] <q4a> $ vulkaninfo --summary | grep driverInfo
<DC-IRC> [Discord] <q4a> driverInfo = v1.g24p0-00eac0.4388bae05e8d93b62450e27521ab98fa
<DC-IRC> [Discord] <q4a> ```
<DC-IRC> [Discord] <monkablyat> would be less complicated if somebody build the WSI layer as a ready to use .deb
<DC-IRC> [Discord] <q4a> About WSI layer - I build it with `-DSELECT_EXTERNAL_ALLOCATOR=dma_buf_heaps`. Should I use ion because of:
<DC-IRC> [Discord] <q4a> ```
<DC-IRC> [Discord] <q4a> vkcube-wayland
<DC-IRC> [Discord] <q4a> arm_release_ver: g24p0-00eac0, rk_so_ver: 6
<DC-IRC> [Discord] <q4a> Selected GPU 0: Mali-G610, type: IntegratedGpu arm_release_ver: g24p0-00eac0, rk_so_ver: 6 ERROR(/media/q/arm/git/vulkan-wsi-layer/wsi/wayland/swapchain.cpp: <clipped message>
<DC-IRC> [Discord] <q4a> 115): Failed to create wsi allocator.
<DC-IRC> [Discord] <q4a> ```
<DC-IRC> [Discord] <q4a> About WSI layer - I build it with `-DSELECT_EXTERNAL_ALLOCATOR=dma_buf_heaps`. Should I use ion because of:
<DC-IRC> [Discord] <q4a> ```
<DC-IRC> [Discord] <q4a> $ vkcube-wayland
<DC-IRC> [Discord] <q4a> arm_release_ver: g24p0-00eac0, rk_so_ver: 6
<DC-IRC> [Discord] <q4a> Selected GPU 0: Mali-G610, type: IntegratedGpu arm_release_ver: g24p0-00eac0, rk_so_ver: 6 ERROR(/media/q/arm/git/vulkan-wsi-layer/wsi/wayland/swapchain.cpp: <clipped message>
<DC-IRC> [Discord] <q4a> 115): Failed to create wsi allocator.
<DC-IRC> [Discord] <q4a> ```
<DC-IRC> [Discord] <gin_kage> What do you see in `ls /dev/dma_heap`?
<DC-IRC> [Discord] <q4a> `reserved system system-uncached`
<DC-IRC> [Discord] <gin_kage> You need to add one more parameter, `-DWSIALLOC_MEMORY_HEAP_NAME=reserved`
<DC-IRC> [Discord] <gin_kage> The problem is that the heap name may vary between systems... But, yeah, that can be solved too.
<DC-IRC> [Discord] <q4a> Still `ERROR(/media/q/arm/git/vulkan-wsi-layer/wsi/wayland/swapchain.cpp:115): Failed to create wsi allocator.`
<DC-IRC> [Discord] <monkablyat> yeah building the layer was a pain and the worst part
<DC-IRC> [Discord] <q4a> Tried clean build, replacing in CMakeList.txt and checked CMakeCache.txt:
<DC-IRC> [Discord] <q4a> `WSIALLOC_MEMORY_HEAP_NAME:STRING=reserved`
<DC-IRC> [Discord] <q4a> My config command:
<DC-IRC> [Discord] <q4a> `cmake .. -G Ninja -DBUILD_WSI_HEADLESS=0 -DBUILD_WSI_WAYLAND=1 -DSELECT_EXTERNAL_ALLOCATOR=dma_buf_heaps -DKERNEL_HEADER_DIR="/usr/src/linux-headers-6.1.84-vendor-rk35xx"`
<DC-IRC> [Discord] <q4a> My config command:
<DC-IRC> [Discord] <q4a> `cmake .. -G Ninja -DBUILD_WSI_HEADLESS=0 -DBUILD_WSI_WAYLAND=1 -DWSIALLOC_MEMORY_HEAP_NAME=reserved -DSELECT_EXTERNAL_ALLOCATOR=dma_buf_heaps -DKERNEL_HEADER_DIR="/usr/src/linux-headers-6.1.84-vendor-rk35xx"`
<DC-IRC> [Discord] <q4a> `system` works better
<DC-IRC> [Discord] <q4a> So my wsi build steps:
<DC-IRC> [Discord] <q4a> ```
<DC-IRC> [Discord] <q4a> $ sudo apt install pkgconf git gcc cmake ninja-build libvulkan-dev linux-headers-vendor-rk35xx libdrm-dev libwayland-dev wayland-protocols libxcb1-dev
<DC-IRC> [Discord] <q4a> $ git clone https://github.com/ginkage/vulkan-wsi-layer
<DC-IRC> [Discord] <q4a> $ mkdir vulkan-wsi-layer/build && cd vulkan-wsi-layer/build
<DC-IRC> [Discord] <q4a> $ cmake .. -G Ninja -DBUILD_WSI_HEADLESS=0 -DBUILD_WSI_WAYLAND=1 -DWSIALLOC_MEMORY_HEAP_NAME=system -DSELECT_EXTERNAL_ALLOCATOR=dma_buf_heaps -DKERNEL_HEADER_DIR="/usr/src/linux-headers-6.1.84-vendor-rk35xx"
<DC-IRC> [Discord] <q4a> $ ninja
<DC-IRC> [Discord] <q4a> [26/26] Linking CXX shared library libVkLayer_window_system_integration.so
<DC-IRC> [Discord] <q4a> Copy libVkLayer_window_system_integration.so and VkLayer_window_system_integration.json to ~/.config/vulkan/implicit_layer.d
<DC-IRC> [Discord] <q4a> ```
<DC-IRC> [Discord] <q4a> So my vulkan-wsi-layer build steps:
<DC-IRC> [Discord] <q4a> ```
<DC-IRC> [Discord] <q4a> $ sudo apt install pkgconf git gcc cmake ninja-build libvulkan-dev linux-headers-vendor-rk35xx libdrm-dev libwayland-dev wayland-protocols libxcb1-dev
<DC-IRC> [Discord] <q4a> $ git clone https://github.com/ginkage/vulkan-wsi-layer
<DC-IRC> [Discord] <q4a> $ mkdir vulkan-wsi-layer/build && cd vulkan-wsi-layer/build
<DC-IRC> [Discord] <q4a> $ cmake .. -G Ninja -DBUILD_WSI_HEADLESS=0 -DBUILD_WSI_WAYLAND=1 -DWSIALLOC_MEMORY_HEAP_NAME=system -DSELECT_EXTERNAL_ALLOCATOR=dma_buf_heaps -DKERNEL_HEADER_DIR="/usr/src/linux-headers-6.1.84-vendor-rk35xx"
<DC-IRC> [Discord] <q4a> $ ninja
<DC-IRC> [Discord] <q4a> [26/26] Linking CXX shared library libVkLayer_window_system_integration.so
<DC-IRC> [Discord] <q4a> Copy libVkLayer_window_system_integration.so and VkLayer_window_system_integration.json to ~/.config/vulkan/implicit_layer.d
<DC-IRC> [Discord] <q4a> ```
<DC-IRC> [Discord] <gin_kage> I do
<DC-IRC> [Discord] <gin_kage> ```
<DC-IRC> [Discord] <gin_kage> cmake . -DCMAKE_BUILD_TYPE=Release -DBUILD_WSI_HEADLESS=0 -DBUILD_WSI_WAYLAND=0 -DBUILD_WSI_X11=1 -DSELECT_EXTERNAL_ALLOCATOR=dma_buf_heaps -DKERNEL_HEADER_DIR="whatever" -DWSIALLOC_MEMORY_HEAP_NAME=cma
<DC-IRC> [Discord] <gin_kage> ```
<DC-IRC> [Discord] <gin_kage> (my heap name is different)
<DC-IRC> [Discord] <gin_kage> I do
<DC-IRC> [Discord] <gin_kage> ```
<DC-IRC> [Discord] <gin_kage> cmake . -DCMAKE_BUILD_TYPE=Release -DBUILD_WSI_HEADLESS=0 -DBUILD_WSI_WAYLAND=1 -DBUILD_WSI_X11=0 -DSELECT_EXTERNAL_ALLOCATOR=dma_buf_heaps -DKERNEL_HEADER_DIR="whatever" -DWSIALLOC_MEMORY_HEAP_NAME=cma
<DC-IRC> [Discord] <gin_kage> ```
<DC-IRC> [Discord] <q4a> Mali blob vkmark Score: 2523. Full result here: https://gist.github.com/q4a/adee2e06ebb81adda3f2d3b03266a952
<DC-IRC> [Discord] <gin_kage> Cool, you did it. 🙂
<DC-IRC> [Discord] <gin_kage> vkmark score doesn't mean much though, it doesn't have any heavy test to really stress your GPU, it mostly tests your DE/WSI at this point.
<DC-IRC> [Discord] <smallspin> Hello. im having issues on my orange pi plus 5
<DC-IRC> [Discord] <smallspin> I cant seem to boot anything. I have my OS on SD-CARD but my board doesnt boot
<DC-IRC> [Discord] <monkablyat> Unfortunately the black magic crystal ball is currently out of service so good old UART logs would be helpful to know why
<DC-IRC> [Discord] <smallspin> my bad i’m kinda new. got it to boot. it just took forever to boot? i had ubuntu working pretty fast last night though
<DC-IRC> [Discord] <mecoblock> can you add this to the readme on your wsi layer fork?
<DC-IRC> [Discord] <menu> with no diagnostic output it's impossible to say why
<DC-IRC> [Discord] <smallspin> how can I provide this. sorry linux is new to me and so is arm.
<DC-IRC> [Discord] <monkablyat> It's better to use panvk and report problems than this very poorly ported closed source android vulkan blob which is rather frustrating to use anyway
<DC-IRC> [Discord] <gospod13337> If youre new to linux, theres almost no chance that your microsd card is not shit. Go for endurance microsd cards only or ssds. Mind you that endurance cards can quickly also become very slow but atleast they dont die
<DC-IRC> [Discord] <gospod13337> If youre new to linux, theres almost no chance that your microsd card is not shit. Go for endurance microsd cards only or better, ssds. Mind you that endurance cards can quickly also become very slow but atleast they dont die
<DC-IRC> [Discord] <smallspin> im not new to tech, I have a cl10 Im just trying to create a crypto node to mine to. ubuntu was giving me issues cause i couldnt use latest rust version.. Armbian seems to allow me to use latest but the boot time is so odd.
<DC-IRC> [Discord] <smallspin> im not new to tech, I have a cl10 Im just trying to create a crypto node to mine to. ubuntu was giving me issues cause i couldnt use latest stable* rust version.. Armbian seems to allow me to use latest but the boot time is so odd.
<DC-IRC> [Discord] <gospod13337> For some, linux is tech, for others linux is new
<DC-IRC> [Discord] <gospod13337> What exactly should cl10 mean in your situation?
<DC-IRC> [Discord] <mecoblock> probably class 10, which doesn’t make it a suitable SD card still
<DC-IRC> [Discord] <gospod13337> I know, i wanted to hear it from him
<DC-IRC> [Discord] <mecoblock> just wanted to +1 your point about endurance sd cards
<DC-IRC> [Discord] <smallspin> would it be more beneficial to boot off nvme? the orange pi documentation only mentioned sd cards
<DC-IRC> [Discord] <gospod13337> Ofcourse
<DC-IRC> [Discord] <smallspin> will report back
<DC-IRC> [Discord] <gospod13337> Theres no need I already claimed my victory