Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

66%
+2 −0
Q&A How to use a detected USB RNDIS gadget as network adapter

I was looking through the unpacked file that I find in /proc/config.gz on the host system. There was: # CONFIG_USB_NET_DRIVERS is not set What I also found is that, the host side counterpart to t...

posted 2y ago by sktpin‭

Answer
#1: Initial revision by user avatar sktpin‭ · 2021-08-02T11:56:04Z (over 2 years ago)
I was looking through the unpacked file that I find in /proc/config.gz on the host system.

There was: _# CONFIG_USB_NET_DRIVERS is not set_

What I also found is that, the host side counterpart to the gadget device's _g_ether_ driver, is supposedly the _cdc_ether_ driver.
I found mentions of _CONFIG_USB_NET_CDCETHER_ , _CONFIG_USB_USBNET_ and other USB_NET options that supposedly need to be onm in other posts elsewhere.
My config file does not contain that text except for the mentioned CONFIG_USB_NET_DRIVERS - but apparently, dependant options of a main option are not always also put into the config text file.

Generating a new kernel image, with the following items added to the kernel configuration, helped, and I now get a "usb0" interface shown under _ifconfig -a_ :

* CONFIG_USB_NET_DRIVERS
* CONFIG_USB_USBNET
* CONFIG_USB_NET_CDCETHER
* CONFIG_USB_NET_CDC_EEM

next to options generally enabling USB and enable it as a host (or dual role).
I'm not sure whether the last one is necessary, haven't tried. [Its description](https://cateee.net/lkddb/web-lkddb/USB_NET_CDC_EEM.html) sounded like it could be relevant, as it mentions a _usbX_ interface name, which I knew from the Raspi4-as-host experiment.