Skip to main content

Redroid running on ROCK 5B

· 2 min read

What is Redroid ?

ReDroid (Remote anDroid) is a GPU accelerated AIC (Android In Cloud) solution. You can boot many instances in Linux host (Docker, podman, k8s etc.). redroid supports both arm64 and amd64 architectures. ReDroid is suitable for Cloud Gaming, Virtualise Phones, Automation Test and more.

How to running on ROCK 5B

ROCK 5B user ZHZ shows in his blog how he got Redroid running on the ROCK 5B.Link to original article

商业转载请联系作者获得授权,非商业转载请注明出处。 For commercial use, please contact the author for authorization. For non-commercial use, please indicate the source. 协议(License):署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0) 作者(Author):終 链接(URL):https://zhz.moe/57/ 来源(Source):終's Blog

Preparation

First of all, the kernel should ensure that ANDROID_BINDERFS, ASHMEM, PSI are enabled.

Refer to archwikianbox page use binderfs way to open support, ashmem do not know why can not be added as a module, here directly 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

Write the kernel parameters according to the wiki and mount binderfs.

docker run

image: chisbread/rk3588-gaming:redroid-firefly
image source: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

result

Here the QtScrcpy connection is used. result_play_yuanshen