remote-android / redroid-doc

redroid (Remote-Android) is a multi-arch, GPU enabled, Android in Cloud solution. Track issues / docs here
4.14k stars 297 forks source link

在debian11 上运行sudo apt install linux-modules-extra-`uname -r`时报错找不到模块,该如何安装呢? #663

Open 521smilestar opened 5 months ago

521smilestar commented 5 months ago

在执行sudo apt install linux-modules-extra-uname -r时报错信息如下

Building dependency tree... Done Reading state information... Done E: Unable to locate package linux-modules-extra-5.10.160 E: Couldn't find any package by glob 'linux-modules-extra-5.10.160'

利用lsmod显示模块时无显示输出如下:

Module Size Used by

执行sudo modprobe binder_linux devices="binder,hwbinder,vndbinder"指令时结果如下

modprobe: FATAL: Module binder_linux not found in directory /lib/modules/5.10.160

在进入/lib/modules/中查看时,没有5.10.160文件夹只存在如下

5.10.0-28-arm64 5.4.0-152-generic

请问我这是什么原因呢?该如何解决呢?怎样下载内核模块呢?因为后续可以拉取redroid镜像但是无法adb链接 总是device offline。希望能得到解答,十分感谢!

skrlst commented 5 months ago

debian 系统吗,今天刚好看到一个用这系统安装的

https://www.nodeseek.com/post-45116-1

zhouziyang commented 5 months ago

Check https://github.com/remote-android/redroid-doc/tree/master/deploy

521smilestar commented 5 months ago

检查 https://github.com/remote-android/redroid-doc/tree/master/deploy

Hi!感谢您的回复,但是我还有些问题,是直接按照如下进行操作吗?我缺少binder模块,无法下载linux-modues-extra-uname -r,下面操作是直接把redroid里面的binder模块直接使用吗? `##############################

Debian 12

Debian 11

##############################

add binder devices

modprobe binder_linux devices=binder1,binder2,binder3,binder4,binder5,binder6 chmod 666 /dev/binder*

start redroid

docker run -itd --rm --privileged \ --pull always \ -v /dev/binder1:/dev/binder \ -v /dev/binder2:/dev/hwbinder \ -v /dev/binder3:/dev/vndbinder \ -v ~/data11:/data \ -p 5555:5555 \ --name redroid11 \ redroid/redroid:11.0.0-latest

NOTE:

try enable binderfs in kernel to run unlimited redroid containers

no need to mount binder devices if binderfs enabled

CONFIG_ANDROID_BINDER_IPC=y CONFIG_ANDROID_BINDERFS=y CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder"`

521smilestar commented 5 months ago

检查 https://github.com/remote-android/redroid-doc/tree/master/deploy

请问该如何将redroid-modules中的binder和ashmen模块利用docker装载在debian11上呢?我有些不懂该如何操作

zhouziyang commented 5 months ago

https://github.com/remote-android/redroid-modules is hacked out of tree binderfs kernel module; Not maintained recently, and typically need adjust to suit your kernel version.