8,367
edits
Changes
→adb3.9.2. Use type-c data cable to connect to adb
</div></li>
<li><p>Then run the following command to set the Type-C interface to '''device''' mode</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>orangepi@orangepi:~$ '''sudo set_device.sh'''</p>
|}
<p>If the '''set_device.sh''' script does not exist in the Linux system, please use the following command directly:</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>orangepi@orangepi:~$ '''sudo bash -c "echo device > /sys/kernel/debug/usb/fc000000.usb/mode"'''</p>
<p>orangepi@orangepi:~$ '''sudo systemctl restart usbdevice'''</p>|}</li>
<li><p>'''Then please confirm that adbd has been started'''</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>orangepi@orangepi:~$ '''ps -ax | grep "adbd"'''</p>
<p>808 ? Sl 0:00 /usr/bin/adbd</p><p>3707 ttyFIQ0 S+ 0:00 grep --color=auto adbd</p>|}</li>
<li><p>Then install the adb tool on the Ubuntu PC</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>Then use the following command to check whether the adb device is recognized</p></li></ol>
{| class="wikitable" style="width:800px;" |-|
test@test:~$ '''adb devices'''
'''e0f9f71bc343c305 device'''
|}
<ol start="8" style="list-style-type: decimal;">
<li>Then use the following command to log in to the linux system of the development board</li></ol>
{| class="wikitable" style="width:800px;" |-|
test@test:~$ '''adb shell'''
'''root@orangepi5plus:/# <--- After seeing this prompt, it means that you have successfully logged in to the development board'''
|}
<ol start="9" style="list-style-type: decimal;">
<li><p>The command to upload files to the development board using adb is as follows</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>'''If there is no adb tool in your Windows system, you can use the adb program in the RKDevTool software (this software is useful in the section on [[Orange Pi 5 Plus#How to use RKDevTool to burn Linux image to TF card|'''how to use RKDevTool to burn the Linux image to the TF card''']]).'''</big>
[[File:media/image244.png|576x131px]]
<big>'''An example using adb in Windows looks like this:'''</big>
[[File:media/image246.png|576x304px]]
|}
</ol>
<span id="the-method-of-uploading-files-to-the-linux-system-of-the-development-board"></span>
== The method of uploading files to the Linux system of the development board ==