Last active
July 10, 2025 09:09
-
-
Save q4a/8b17952cdef5399b885c8adf99f46f71 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
change | |
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" | |
to | |
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash radeon.cik_support=0 amdgpu.cik_support=1" | |
3. Update grub | |
$ sudo grub-mkconfig -o /boot/grub/grub.cfg | |
4. Check if grub ok | |
$ cat /boot/grub/grub.cfg | grep amd | |
linux /boot/vmlinuz-5.15.0-53-generic root=UUID=44682c35-772e-4f1a-bf74-4da1aad4a4f3 ro quiet splash radeon.cik_support=0 amdgpu.cik_support=1 $vt_handoff | |
linux /boot/vmlinuz-5.15.0-53-generic root=UUID=44682c35-772e-4f1a-bf74-4da1aad4a4f3 ro quiet splash radeon.cik_support=0 amdgpu.cik_support=1 $vt_handoff | |
echo 'Loading initial ramdisk ...' | |
echo 'Loading initial ramdisk ...' | |
linux /boot/vmlinuz-5.15.0-52-generic root=UUID=44682c35-772e-4f1a-bf74-4da1aad4a4f3 ro quiet splash radeon.cik_support=0 amdgpu.cik_support=1 $vt_handoff | |
echo 'Loading initial ramdisk ...' | |
echo 'Loading initial ramdisk ...' | |
5. Create 2 files: | |
$ cat /etc/modprobe.d/amdgpu.conf | |
options amdgpu si_support=1 | |
options amdgpu cik_support=1 | |
$ cat /etc/modprobe.d/radeon.conf | |
options radeon si_support=0 | |
options radeon cik_support=0 | |
6. Reboot | |
7. 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: amdgpu | |
Kernel modules: radeon, amdgpu | |
--- | |
{ | |
"ICD": { | |
"api_version": "1.3.230", | |
"library_path": "/usr/lib/x86_64-linux-gnu/libvulkan_radeon.so" | |
}, | |
"file_format_version": "1.0.0" | |
} | |
--- | |
{ | |
"ICD": { | |
"api_version": "1.1.230", | |
"library_path": "/usr/lib/x86_64-linux-gnu/libvulkan_lvp.so" | |
}, | |
"file_format_version": "1.0.0" | |
} | |
--- | |
https://forum.xda-developers.com/t/editing-system-img-inside-super-img-and-flashing-our-modifications.4196625/ | |
https://github.com/q4a/android-simg2img | |
https://github.com/q4a/lpunpack_and_lpmake |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment