Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I enable the ethernet over USB drivers on Android Things?

I have a USB dongle that uses ethernet over USB to act as a network adapter. On Ubuntu it makes use of the usbnet driver and as soon as I plug the dongle in, the OS recognizes it and gets a new network interface. However, on Android Things it only get recognized as a USB device.

I installed busybox and tried using modprobe to activate g_ether or usbnet but modprobe complains that /lib/modules doesn't exist. Furthermore, I tried using the lsmod command to find out which drivers are active but lsmod doesn't work either because /proc/modules doesn't exist.

I have located the directories /sys/module/usb_f_rndis and /sys/bus/usb/drivers/cdc_ether which leads me to believe that it should be possible to somehow activate the ethernet over USB functionality.

Does anyone have any experience working with ethernet over USB on Android Things? Can anyone guide me through the process of activating the necessary drivers to make this work? Do I have to rebuild the kernel? Thank you for any advice you can offer.

like image 548
David Piskula Avatar asked Oct 29 '22 03:10

David Piskula


1 Answers

Seems You can't do it now: only when support of USB<->Ethernet devices will be implemented in Android Things or the source code of Android Things becomes available (then You can add Your USB driver support manually as You wrote).

like image 193
Andrii Omelchenko Avatar answered Nov 09 '22 08:11

Andrii Omelchenko