Skip to content

Instantly share code, notes, and snippets.

View q4a's full-sized avatar
🔍
Looking for C++/Linux job

Aleksey Komarov q4a

🔍
Looking for C++/Linux job
View GitHub Profile
@q4a
q4a / tinker-downgrade.log
Last active December 15, 2020 04:36
tinker downgrade
q@tinkerboard:/var/cache/apt/archives$ dpkg-deb -I linux-image-current-rockchip_20.11_armhf.deb
new Debian package, version 2.0.
size 27169880 bytes: control archive=50048 bytes.
403 bytes, 12 lines control
194536 bytes, 1942 lines md5sums
428 bytes, 15 lines * postinst #!/bin/bash
299 bytes, 12 lines * postrm #!/bin/bash
932 bytes, 34 lines * preinst #!/bin/bash
297 bytes, 12 lines * prerm #!/bin/bash
Package: linux-image-current-rockchip
Ubuntu 22.04, AMD Kabini APU - switch to amdgpu kernel driver.
1. Check current driver:
$ lspci -k | grep -A 3 -E "(VGA|3D)"
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Kabini [Radeon HD 8400 / R3 Series]
Subsystem: Samsung Electronics Co Ltd Kabini [Radeon HD 8400 / R3 Series]
Kernel driver in use: radeon
Kernel modules: radeon, amdgpu
---
if "Kernel driver in use: radeon" - you need to switch.
2. $ sudo featherpad /etc/default/grub
<<< Sysinfo Summary (English) >>>
DB Device Model: < unknown >
Manufacturer: rockchip
Model: rk3588_box
Brand: rockchip
Board: rk30sdk
Device: rk3588_box
Hardware: rk30board
Platform: rk3588
download home_q4a_key.gpg from
https://build.opensuse.org/projects/home:q4a/signing_keys
cat ~/Downloads/home_q4a_key.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/obs-q4a.gpg
echo "deb [signed-by=/etc/apt/trusted.gpg.d/obs-q4a.gpg] https://download.opensuse.org/repositories/home:/q4a/xUbuntu_24.10/ ./" | sudo tee -a /etc/apt/sources.list.d/obs-q4a.list > /dev/null
---
sudo apt install xfce4-sensors-plugin xfce4-xkb-plugin qt5ct qt5-style-plugins python3-pip gcc gdb cmake ninja-build meld juffed qterminal pcmanfm-qt featherpad muon midori vlc
v2:
sudo apt install qt5-style-kvantum python3-pip gcc gdb cmake ninja-build meld featherpad muon gnome-shell-extension-manager vlc
---
mkdir git && cd git
@q4a
q4a / Rock5b-Vulkan.md
Created January 18, 2025 17:29
Rock 5B Vulkan benchmarks and tests

vkmark Mali blob 2025.01.18

$ uname -a
Linux rock-5b 6.1.84-vendor-rk35xx #1 SMP Thu Jan  9 02:09:01 UTC 2025 aarch64 aarch64 aarch64 GNU/Linux
$ apt show linux-image-vendor-rk35xx | grep git
 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"
$ vkmark
ERROR:             VkInstanceCreateInfo::pApplicationInfo::apiVersion has value of 0 which is not permitted. If apiVersion is not 0, then it must be greater than or equal to the value of VK_API_VERSION_1_0 [VUID-VkApplicationInfo-apiVersion]                                                                                                                                         
arm_release_ver: g24p0-00eac0, rk_so_ver: 6