8,460
个编辑
更改
→使用type-c数据线连接adb
|}
</li>
<li><p>然'''后请确认下adbd已经启动了然后请确认下adbd已经启动了'''</p><p>{| class="wikitable" style="width:800px;"|-|orangepi@orangepi:~$ '''ps -ax | grep "adbd"'''</pbr><pspan style="margin-right: 80px;">808 ? </span><span style="margin-right: 60px;">Sl </span><span style="margin-right: 45px;">0:00 /usr/bin/adbd</pspan><br><pspan style="margin-right: 30px;">3707 ttyFIQ0 </span><span style="margin-right: 60px;">S+ </span><span style="margin-right: 50px;">0:00 grep --color=auto adbd</pspan><br>|}</li>
<li><p>然后在Ubuntu PC上安装下adb工具</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>test@test:~$ '''sudo apt-get update'''</p>
<p>test@test:~$ '''sudo apt-get install -y adb'''</p>|}</li>
<li><p>然后使用下面的命令查看下有没有识别到adb设备</p></li></ol>
{| class="wikitable" style="width:800px;"
|-
|
test@test:~$ '''adb devices'''
'''e0f9f71bc343c305 device'''
|}
<ol start="8" style="list-style-type: decimal;">
<li>然后使用下面的命令就可以登录开发板的linux系统</li></ol>
{| class="wikitable" style="width:800px;"
|-
|
test@test:~$ '''adb shell'''
'''root@orangepi5plus:/# <--- 看到这个提示符后说明已成功登录开发板'''
|}
<ol start="9" style="list-style-type: decimal;">
<li><p>使用adb上传文件到开发板的命令如下所示</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>test@test:~$ '''adb push filename /root'''</p>
<p>filename: 1 file pushed. 3.7 MB/s (1075091 bytes in 0.277s)</p>|}</li></ol>
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''如果您的Windows系统中没有adb工具,可以使用RKDevTool软件([[\lOrange Pi 5 Plus#使用RKDevTool烧录Linux镜像到TF卡中的方法|使用RKDevTool烧录Linux镜像到TF卡中的方法]]一小节有用到这个软件)中的adb程序。'''</big>
[[File:media/image233.png|576x131px]]
<big>'''在Windows中使用adb的示例如下所示:'''</big>
[[File:media/image235.png|576x304px]]
|}
<span id="上传文件到开发板linux系统中的方法"></span>