您尚未登录。

楼主 # 2022-06-02 18:02:52

johnatia
会员
注册时间: 2022-05-15
已发帖子: 5
积分: 20

problem while activating ssh on mangopi-r3 based on F1C200S

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

totalsteps.jpeg


I set a static ip in windows11

staticip.jpeg

when trying to connect using ssh,  I got that!

ssh.jpeg

also when trying

 ping 10.42.0.2

I got

 Request timed out.

What's the problem?

离线

#1 2022-06-02 18:16:48

哇酷小二
管理员
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,388
积分: 1902
个人网站

Re: problem while activating ssh on mangopi-r3 based on F1C200S

disabled other network card on PC?





离线

楼主 #2 2022-06-03 01:17:36

johnatia
会员
注册时间: 2022-05-15
已发帖子: 5
积分: 20

Re: problem while activating ssh on mangopi-r3 based on F1C200S

哇酷小二 说:

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.

离线

#3 2022-06-03 09:29:52

哇酷小二
管理员
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,388
积分: 1902
个人网站

Re: problem while activating ssh on mangopi-r3 based on F1C200S





离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn