Page 1 of 1

MAX板 + buildroot 如何关闭ADB接口

Posted: 2024-08-07 15:21
by zhenglx7388
我希望能关闭MAX板 buildroot的ADB功能,请问如何操作?

Re: MAX板 + buildroot 如何关闭ADB接口

Posted: 2024-08-08 1:03
by Crocodile
您好 ADB功能是tools中添加的,需要关闭该功能将/etc/init.d/S50usbdevice中的ADN_EN属性改为off即可

Re: MAX板 + buildroot 如何关闭ADB接口

Posted: 2024-08-08 4:30
by zhenglx7388
Crocodile wrote: 2024-08-08 1:03 您好 ADB功能是tools中添加的,需要关闭该功能将/etc/init.d/S50usbdevice中的ADN_EN属性改为off即可
谢谢!如果再改回,是使用SSH恢复这个文件吗?

Re: MAX板 + buildroot 如何关闭ADB接口

Posted: 2024-08-08 5:59
by Crocodile
是的,需要重新开启该功能将ADB_EN设置为on即可

Re: MAX板 + buildroot 如何关闭ADB接口

Posted: 2024-08-08 8:41
by zhenglx7388
Crocodile wrote: 2024-08-08 5:59 是的,需要重新开启该功能将ADB_EN设置为on即可
将ADB-EN改为off后,再用SSH恢复文件时出现以下信息,恢复失败:
D:\adb>scp S50usbdevice root@172.32.0.93:/etc/init.d
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ED25519 key sent by the remote host is
SHA256:F9dCnrbYyXXBIjiENuwadcbIL1I6dHjKEc9hHLq+geI.
Please contact your system administrator.
Add correct host key in C:\\Users\\zhaoy/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in C:\\Users\\zhaoy/.ssh/known_hosts:3
Host key for 172.32.0.93 has changed and you have requested strict checking.
Host key verification failed.

Re: MAX板 + buildroot 如何关闭ADB接口

Posted: 2024-08-08 10:19
by Crocodile
这个是SSH的问题,您的ssh公钥对不上导致的,尝试执行 ssh-keygen -R "172.32.0.93" 解决如果有多个known_hosts 文件可以使用 -f 指定。您这种更新方法还需要考虑S50usbdevice 的权限问题,没有可执行权限在reboot后是无法生效USB设置的

Re: MAX板 + buildroot 如何关闭ADB接口

Posted: 2024-08-13 2:08
by zhenglx7388
Crocodile wrote: 2024-08-08 10:19 这个是SSH的问题,您的ssh公钥对不上导致的,尝试执行 ssh-keygen -R "172.32.0.93" 解决如果有多个known_hosts 文件可以使用 -f 指定。您这种更新方法还需要考虑S50usbdevice 的权限问题,没有可执行权限在reboot后是无法生效USB设置的
请问原系统build·root中的SSH公钥"luckfox",如何修改为自己设定的密码?

Re: MAX板 + buildroot 如何关闭ADB接口

Posted: 2024-08-13 2:16
by Crocodile