AI 摘要

Excerpt: This article discusses the use of redroid in conjunction with the rock5b platform. To prepare for the process, the kernel must have ANDROID_BINDERFS, ASHMEM, and PSI enabled. The article provides step-by-step instructions for enabling these features, as well as mounting binderfs and running a Docker container with the appropriate settings. The end result allows for running games such as Genshin Impact in medium quality on the rock5b platform.

redroid项目文档

准备工作

首先内核要保证开启了ANDROID_BINDERFS, ASHMEM, PSI

参照archwikianbox页 use binderfs 方式开启支持,ashmem不知道为什么无法以模块加入,这里直接enable。

scripts/config --enable  CONFIG_ASHMEM
scripts/config --enable  CONFIG_ANDROID
scripts/config --enable  CONFIG_ANDROID_BINDER_IPC
scripts/config --enable  CONFIG_ANDROID_BINDERFS
scripts/config --set-str CONFIG_ANDROID_BINDER_DEVICES ""
scripts/config --enable  CONFIG_PSI

参照wiki写好内核参数,挂载好binderfs。

docker run

image: chisbread/rk3588-gaming:redroid-firefly

镜像来源 malior-redroid | 容器虚拟安卓 — Firefly Wiki (t-firefly.com)

docker run -itd --rm --privileged \
    --pull always \
    -v /data:/data \
    -p 5555:5555 \
    chisbread/rk3588-gaming:redroid-firefly \
    androidboot.redroid_height=1600 \
    androidboot.redroid_width=2560 \
    androidboot.redroid_dpi=480 \
    androidboot.redroid_gpu_mode=host \
    --mount=type=bind,source=/dev/mali0,destination=/dev/mali0

效果

这里用QtScrcpy连接

rock5b使用redroid

能中画质运行原神!

僕と契約して、魔法少女になってよ!
最后更新于 2024-01-18