hello there
I'm trying to activate otg usb as RNDIS to communicate with MangoPi using ssh
I'm using the following buildroot linux image
buildroot-mangopi-r
by default the otg is working as storage device , I did the following steps to activate otg as RNDIS to work with ssh
make menuconfig
Target packages --->
Networking application --->
[*] openssh
Target packages --->
Package managers --->
[*] opkg
[*] gnupg support
Target packages --->
Text editors and viewers
[*] nano
[*] optimize for size (NEW)
then type
make linux-menuconfig
device dervicers -->
[*] USB support --->
<*> USB Gadget support --->
<*> USB Gadget precomposed configurations
[*] RNDIS support (NEW)
[*] Ethernet Emulation Model (EEM) support
after booting linux
check the usb RNDIS is working by
ip a
now, change the file the interfaces file in /etc/network/interfaces
nano /etc/network/interfaces
auto usb0
#I tried also to comment the following line but it doesn't work.
allow-hotplug usb0
# The address, gateway and netmask are necessary.
iface usb0 inet static
address 10.42.0.2
netmask 255.255.255.252
dns-search mangopi.edu
dns-namesevers 8.8.8.8 128.83.185.40, 128.83.185.41
the total steps
I set a static ip in windows11
when trying to connect using ssh, I got that!
also when trying
ping 10.42.0.2
I got
Request timed out.
What's the problem?
离线
disabled other network card on PC?
no but I connected my raspberrypi zero using the same way by assigning static ip and it worked for me.
so I assume the problem in the mangoPi not the pc
I also tried to connect my mangoPi to linux pc and assigning static ip but no change.
离线