Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

Difference between revisions of "Zero/dev/adb"

< Zero‎ | dev
(Usage of amlogic-adbd service)
(Installation)
Line 31: Line 31:
 
==== Windows ====
 
==== Windows ====
  
Refer [[Rock/windows_adb | Windows ADB]]
+
 
  
 
==== Linux ====
 
==== Linux ====

Revision as of 08:52, 1 November 2021

 Radxa Zero >  Development >>  Using ADB 

Description

Radxa Zero supports adb function.

One USB Type-C charging data cable can meet both power supply and adb requirement.

Here we use Type-C to Type-A USB cable with one port connected to the Type-C socket of Radxa Zero. And the other port connected to the Type-A socket of the PC.

Hardware support

Support hardware platform:

  • All Radxa Zero

Software

  • Kernel package version: >= 5.10.69-6-amlogic
  • amlogic-adbd package version: >=0.1


You'd better follow the installation steps.

Installation

Windows

Linux

Refer Linux ADB

ADB Usage

When you have adb driver installed on PC, below are some common used adb commands:

Check adb devices

radxa@x86-64:~$ adb devices
List of devices attached 
0123456789ABCDEF	device

Login/Shell

radxa@x86-64:~$ adb shell
# 

And type '/bin/bash' followed by Enter key to switch to bash shell.

radxa@x86-64:~$ adb shell
# /bin/bash
root@zero:/# 

Transmit files from PC to Radxa Zero

$ adb push <local path> <remote path>

Example:

On PC, input the following in Terminal

radxa@x86-64:~$ adb push /tmp/meet-radxa-zero.md /home/rock
/tmp/meet-radxa-zero.md: 1 file pushed. 0.0 MB/s (27 bytes in 0.001s)

Check on Radxa Zero

root@zero:/# cat /home/rock/meet-radxa-zero.md 
How do you do! Radxa Zero!

Transmit files from Radxa Zero to PC

$ adb pull <remote path> <local path>

Example:

radxa@x86-64:~$ adb pull /home/rock/meet-pc.md /tmp
/home/rock/meet-pc.md: 1 file pulled. 0.0 MB/s (24 bytes in 0.001s)
radxa@x86-64:~$ cat /tmp/meet-pc.md 
How do you do! Host PC!

Usage of amlogic-adbd service

Start amlogic-adbd service

$ sudo systemctl start amlogic-adbd

Stop amlogic-adbd service

$ sudo systemctl stop amlogic-adbd

Reload amlogic-adbd service

$ sudo systemctl reload amlogic-adbd
or
$ sudo systemctl restart amlogic-adbd

If you still have issue with adb, start a new post on the forum. https://forum.radxa.com/c/zero.