12下一页
返回列表 发布新帖

[交流讨论] 通过动态加载内核模块,在绿联DH4300Plus上实现安卓云📱功能,让在NAS上玩手游不再梦

3942 14
发表于 2025-10-21 14:12:05 | 查看全部 阅读模式 IP:–海南

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
本帖最后由 AAA 于 2025-12-12 11:10 编辑

2025/11/3更新:通过大佬提供的加载动态模块文件,已实现在DH4300PLUS上玩游戏

game

game


安装binder_linux.ko 模块步骤:
  1. # 下载 binder_linux.ko 模块到 /lib/modules/6.1.84/kernel/extra/ 目录
  2. sudo wget https://github.com/hling110/binder_linux/releases/download/0.0.1/binder_linux.ko /lib/modules/6.1.84/kernel/extra/binder_linux.ko
  3. # 生成模块依赖关系
  4. sudo depmod
  5. # 加载模块
  6. sudo modprobe binder_linux
  7. # 运行 redroid 容器
  8. docker-compose up -d
  9. # Win/Mac 客户端使用命令行进行 scrcpy 连接,需要提前下载好 scrcpy(下载链接https://github.com/Genymobile/scrcpy)
  10. .\scrcpy.exe --tcpip=xx.xx.xx.xx:5555
复制代码
redroid项目介绍:
redroid(Remote an Droid)是一个 GPU 加速的 AIC(Android In Cloud)解决方案,支持arm64和amd64架构。 redroid适用于云游戏、虚拟化电话、自动化测试等。

目前已经有人编译出rk3588系列对应的镜像了https://github.com/CNflysky/redroid-rk3588,但是DH4300Plus的内核还缺少部分模块,官方还不支持,希望开发人员能尽快添加更新上!

redroid

redroid

代码贴一贴,通过动态加载内核文件,目前已在DH4300PLUS上成功运行,留作参考吧
  1. services:
  2.   redroid:
  3.     image: cnflysky/redroid-rk3588:lineage-20
  4.     container_name: redroid
  5.     restart: unless-stopped
  6.     privileged: true
  7.     ports:
  8.       - "5555:5555"
  9.     volumes:
  10.     - "~/redroid-data:/data"
  11.     command:
  12.       - "androidboot.redroid_width=1080"
  13.       - "androidboot.redroid_height=1920"
  14.       # uncomment following line to enable magisk
  15.       # - "androidboot.redroid_magisk=1"
  16.       # uncomment following line to enable fake wifi
  17.       # - "androidboot.redroid_fake_wifi=1"
  18.       # see https://source.android.com/docs/setup/create/new-device PRODUCT_CHARACTERISTICS
  19.       - "ro.build.characteristics=default"
复制代码

评论14

g74kWKLv.1 发表于 2025-10-31 23:01:43 | 查看全部 IP:–江西–南昌
放到这个目录 /lib/modules/6.1.84/kernel/extra/binder_linux.ko
然后 sudo depmod
sudo modprobe binder_linux
然后在docker中运行
.\scrcpy.exe --tcpip=xx.xx.xx.xx:5556
90b48be5-14ba-40ee-b038-8d8b4e3ec549.png
梦梦Lv.7绿联NAS社区会员用户 发表于 2025-10-21 14:35:16 来自手机 | 查看全部 IP:–湖南
听说在开发了,不知道何时能开发出来
AAA楼主Lv.1 发表于 2025-10-24 09:17:42 | 查看全部 IP:–广东–佛山–高明区
梦梦 发表于 2025-10-21 14:35
听说在开发了,不知道何时能开发出来

是吗,我没听到过任何官方打算开发安卓云📱的消息,你从哪儿打听到的啊
梦梦Lv.7绿联NAS社区会员用户 发表于 2025-10-26 11:36:20 来自手机 | 查看全部 IP:–江苏–苏州
AAA 发表于 2025-10-24 09:17
是吗,我没听到过任何官方打算开发安卓云📱的消息,你从哪儿打听到的啊 ...

重新问过了目前不做
g74kWKLv.1 发表于 2025-10-29 21:42:09 | 查看全部 IP:–江西–南昌
services:
  redroid-arm64:
    image: iceblacktea/redroid-arm64:12.0.0-250116
    container_name: redroid-arm64
    restart: unless-stopped
    privileged: true
    ports:
        - "5556:5555"
    volumes:
        - "redroid_data:/data"
        - type: bind
          source: /dev/mali0
          target: /dev/mali0
        - type: bind
          source: /dev/dma_heap/system
          target: /dev/dma_heap/system
        - type: bind
          source: /dev/dma_heap/cma
          target: /dev/dma_heap/cma
        - type: bind
          source: /dev/dma_heap/system
          target: /dev/dma_heap/system-uncached-dma32
        - type: bind
          source: /dev/dma_heap/system
          target: /dev/dma_heap/system-uncached
    command:
        - "androidboot.redroid_width=1206"
        - "androidboot.redroid_height=2622"
        - "androidboot.redroid_dpi=441"
        - "androidboot.redroid_gpu_mode=mali"#mali guest
        - "ro.build.characteristics=default"
volumes:
  redroid_data:
g74kWKLv.1 发表于 2025-10-29 22:09:57 | 查看全部 IP:–江西–南昌
我编译的binder_linux.ko
  1. services:
  2.   redroid-arm64:
  3.     image: iceblacktea/redroid-arm64:12.0.0-250116
  4.     container_name: redroid-arm64
  5.     restart: unless-stopped
  6.     privileged: true
  7.     ports:
  8.         - "5556:5555"
  9.     volumes:
  10.         - "redroid_data:/data"
  11.         - type: bind
  12.           source: /dev/mali0
  13.           target: /dev/mali0
  14.         - type: bind
  15.           source: /dev/dma_heap/system
  16.           target: /dev/dma_heap/system
  17.         - type: bind
  18.           source: /dev/dma_heap/cma
  19.           target: /dev/dma_heap/cma
  20.         - type: bind
  21.           source: /dev/dma_heap/system
  22.           target: /dev/dma_heap/system-uncached-dma32
  23.         - type: bind
  24.           source: /dev/dma_heap/system
  25.           target: /dev/dma_heap/system-uncached
  26.     command:
  27.         - "androidboot.redroid_width=1206"
  28.         - "androidboot.redroid_height=2622"
  29.         - "androidboot.redroid_dpi=480"
  30.         - "androidboot.redroid_gpu_mode=mali"#mali guest
  31.         - "ro.build.characteristics=default"
  32. volumes:
  33.   redroid_data:

复制代码


运行起来有点问题 你试试呢
AAA楼主Lv.1 发表于 2025-10-30 19:11:15 | 查看全部 IP:–广东–佛山–高明区
g74kWK 发表于 2025-10-29 22:09
我编译的binder_linux.ko

我也不行,看来还是需要重新编译内核了,以下是参考案例https://www.liaomz.top/2023/08/2 ... un-shou-ji/#Redroid
AAA楼主Lv.1 发表于 2025-11-1 20:25:06 | 查看全部 IP:–广东–佛山–高明区
g74kWK 发表于 2025-10-31 23:01
放到这个目录 /lib/modules/6.1.84/kernel/extra/binder_linux.ko
然后 sudo depmod
sudo modprobe binder_ ...

哥们,是个人物(๑•̀ㅂ•́)و✧我看Mail-G610也都映射成功了,太迪奥了

你是把缺失的模块补齐打包后全都动态加载了吗

redroid

redroid

UleeLv.4 发表于 2025-11-2 16:01:28 | 查看全部 IP:–浙江–杭州
g74kWK 发表于 2025-10-29 22:09
我编译的binder_linux.ko

换到x86架构上能不能跑的通呀?

评论

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Copyright © 2026 绿联NAS私有云社区 版权所有 All Rights Reserved. 粤公网安备44030002002555号| 粤ICP备12028978号
关灯 在本版发帖
联系技术支持
返回顶部
快速回复 返回顶部 返回列表