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

Difference between revisions of "RockpiS/dev/adb"

< RockpiS‎ | dev
(Hardware and Software support)
(Hardware and Software support)
Line 29: Line 29:
 
Secondly, install rockchip-adb package.
 
Secondly, install rockchip-adb package.
  
   $ sudo apt-get install -y rockchip-adb
+
   $ sudo apt-get install -y rockchip-adb # >= 0.3
  
Thirdly, add the following lines in file /etc/rc.local
+
Finally, start rockcihp service
  
   $ /etc/init.d/adbd.sh start &
+
   $ sudo systemctl start rockchip-adb.service
 
+
Finally, reboot.
+
 
+
  $ sync
+
  $ sudo reboot
+
  
 
===How to use adb===
 
===How to use adb===

Revision as of 02:12, 19 February 2020

    ROCK Pi S >  Development >  Using adb 

Description

Rock Pi S 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 ROCK Pi S, and the other port connected to the Type-A socket of the PC.

Hardware and Software support

Support hardware platform:

  • ROCK Pi S V11
  • ROCK Pi S V12

You'd better follow the installation steps.

Firstly, update rockchip-overlay and kernel packages.

 $ sudo apt-get install -y rockchip-overlay # >= 2.2
 $ sudo apt-get install -y linux-4.4-rockpis # >= 4.4.143-34-rockchip

Secondly, install rockchip-adb package.

 $ sudo apt-get install -y rockchip-adb # >= 0.3

Finally, start rockcihp service

 $ sudo systemctl start rockchip-adb.service

How to use adb

When there is only one adb device on PC such as Linux Ubuntu.

Install necessary packags for adb.

 $ sudo apt-get install -y android-tools-adb

Check adb devices

 $ adb devices
 List of devices attached 
 0123456789ABCDEF	device

Login

 $ adb shell
 # 

And type /bin/bash followed by Enter key.

 $ adb shell
 # /bin/bash
 root@rockpis:/# 
 root@rockpis:/# 

Transmit files from PC to ROCK Pi S

 $ adb push <local path> <remote path>

Example:

On PC, start another new thermial

 $ adb push /tmp/meet-rockpis.md /home/rock
 0 KB/s (26 bytes in 0.045s)

Check on ROCK Pi S

 root@rockpis:/home/rock# cat meet-rockpis.md 
 How do you do! ROCK Pi S!

Transmit files from ROCK Pi S to PC

 $ adb pull <remote path> <local path>

Example:

 $ adb pull /home/rock/meet-pc.md /tmp/
 0 KB/s (19 bytes in 0.086s)
 
 $ cat /tmp/meet-pc.md 
 How do you do! PC!

FAQs

Troubleshooting

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