docs/android: Improve instructions for replacing driver

"adb remount -R" doesn't actually remount partitions read/write, it just
enables the overlayfs and it needs to be followed by "adb remount" after
rebooting to actually remount.

Also, patchelf seems to work for changing the soname and is probably
better than hacking meson.build.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28812>
This commit is contained in:
Connor Abbott 2024-04-18 08:51:18 -04:00 committed by Marge Bot
parent 57abef5af1
commit bfa189b6e8
1 changed files with 8 additions and 2 deletions

View File

@ -66,6 +66,7 @@ driver development, we need to unlock the device and remount
adb disable-verity adb disable-verity
adb reboot adb reboot
adb remount -R adb remount -R
adb remount
Now you can replace drivers as in: Now you can replace drivers as in:
@ -74,8 +75,13 @@ Now you can replace drivers as in:
adb push build-android-aarch64/src/freedreno/vulkan/libvulkan_freedreno.so /vendor/lib64/hw/vulkan.sdm710.so adb push build-android-aarch64/src/freedreno/vulkan/libvulkan_freedreno.so /vendor/lib64/hw/vulkan.sdm710.so
Note this command doesn't quite work because libvulkan wants the Note this command doesn't quite work because libvulkan wants the
SONAME to match. For now, in turnip we have been using a hack to the SONAME to match. You can use ``patchelf`` to fix this:
meson.build to change the SONAME.
.. code-block:: sh
cp build-android-aarch64/src/freedreno/vulkan/libvulkan_freedreno.so /tmp/vulkan.sdm710.so
patchelf --set-soname vulkan.sdm710.so /tmp/vulkan.sdm710.so
adb push /tmp/vulkan.sdm710.so /vendor/lib64/hw/
Replacing Android drivers on Chrome OS Replacing Android drivers on Chrome OS
-------------------------------------- --------------------------------------