Using a detected USB RNDIS gadget as network adapter
by somanyquestions from LinuxQuestions.org on (#5MR0S)
I have a RaspberyPi module, with USB connected to another module computer (as USB host) running a down-sized Linux. The RasPi is configured as USB ethernet gadget.
Once I boot the RasPi, and enter dmesg on the host computer, I see:
Code:[ 3.077758] dwc3-of-simple ff9d0000.usb0: dwc3_simple_set_phydata: Can't find usb3-phy
[ 3.091950] dwc3-of-simple ff9e0000.usb1: dwc3_simple_set_phydata: Can't find usb3-phy
[ 3.115028] usb0: HOST MAC 46:01:81:46:ba:bb
[ 3.119307] usb0: MAC e2:8d:53:c9:16:82
...
[ 2918.585759] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[ 2918.738352] usb 1-1: New USB device found, idVendor=0525, idProduct=a4a2, bcdDevice= 5.10
[ 2918.746521] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2918.753649] usb 1-1: Product: RNDIS/Ethernet Gadget
[ 2918.758523] usb 1-1: Manufacturer: Linux 5.10.17-v7+ with 3f980000.usbSo the Raspi is detected as gadget on the USB host computer.
Although I wonder why a "usb0" is indeed assigned a MAC address, and the "usb 1-1" thing is the gadget. Those seem to be different meanings ("name spaces"), as "usb0" has no space before the number, right?
But unlike a previous experiment, where I used yet another RaspberryPi as the host, where it also detected the 1st raspi as gadget and created a usb0 network adapter and assigned an IP configuration to it, this is not the case here. No usb-anything under ifconfig -a. Not listing it with the -a option means that no network device usb0 exists, configured or not, right?
The current host computer runs a rather down-sized Linux based on buildroot/busybox.
Is there perhaps a certain configuration missing that allows using this detected RNDIS gadget for networking - which just happens to be done automatically on the default Raspi Linux distribution - but not necessarily on the buildroot configuration I have?
Once I boot the RasPi, and enter dmesg on the host computer, I see:
Code:[ 3.077758] dwc3-of-simple ff9d0000.usb0: dwc3_simple_set_phydata: Can't find usb3-phy
[ 3.091950] dwc3-of-simple ff9e0000.usb1: dwc3_simple_set_phydata: Can't find usb3-phy
[ 3.115028] usb0: HOST MAC 46:01:81:46:ba:bb
[ 3.119307] usb0: MAC e2:8d:53:c9:16:82
...
[ 2918.585759] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[ 2918.738352] usb 1-1: New USB device found, idVendor=0525, idProduct=a4a2, bcdDevice= 5.10
[ 2918.746521] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2918.753649] usb 1-1: Product: RNDIS/Ethernet Gadget
[ 2918.758523] usb 1-1: Manufacturer: Linux 5.10.17-v7+ with 3f980000.usbSo the Raspi is detected as gadget on the USB host computer.
Although I wonder why a "usb0" is indeed assigned a MAC address, and the "usb 1-1" thing is the gadget. Those seem to be different meanings ("name spaces"), as "usb0" has no space before the number, right?
But unlike a previous experiment, where I used yet another RaspberryPi as the host, where it also detected the 1st raspi as gadget and created a usb0 network adapter and assigned an IP configuration to it, this is not the case here. No usb-anything under ifconfig -a. Not listing it with the -a option means that no network device usb0 exists, configured or not, right?
The current host computer runs a rather down-sized Linux based on buildroot/busybox.
Is there perhaps a certain configuration missing that allows using this detected RNDIS gadget for networking - which just happens to be done automatically on the default Raspi Linux distribution - but not necessarily on the buildroot configuration I have?