小编Dav*_*ula的帖子

如何在 Android Things 上通过 USB 驱动程序启用以太网?

我有一个 USB 加密狗,它通过 USB 使用以太网作为网络适配器。在 Ubuntu 上,它使用 usbnet 驱动程序,一旦我插入加密狗,操作系统就会识别它并获得一个新的网络接口。但是,在 Android Things 上,它只能被识别为 USB 设备。

我安装了 busybox 并尝试使用 modprobe 来激活 g_ether 或 usbnet 但 modprobe 抱怨/lib/modules不存在。此外,我尝试使用 lsmod 命令找出哪些驱动程序处于活动状态,但 lsmod 也不起作用,因为/proc/modules它不存在。

我找到了目录/sys/module/usb_f_rndis/sys/bus/usb/drivers/cdc_ether这让我相信应该可以通过 USB 功能以某种方式激活以太网。

有没有人有在 Android Things 上通过 USB 使用以太网的经验?任何人都可以指导我完成激活必要驱动程序以使其工作的过程吗?我必须重建内核吗?感谢您提供的任何建议。

linux android driver android-things

5
推荐指数
1
解决办法
3525
查看次数

标签 统计

android ×1

android-things ×1

driver ×1

linux ×1