RockpiE/dev/adb
ROCK Pi E > Development > Using adb
Contents
Requirement
- ROCK Pi E mainboard
- eMMC module
- Power adapter
- USB Male A to Dupont cable.
- One port is Male A type and the other includes three Dupont lines.
- Hardware connection
ROCK Pi E 40-pin Header | USB Interface | USB Male A to Dupont Cable |
---|---|---|
PIN#18 | Data+ | Green wire |
PIN#16 | Data- | White wire |
PIN#14 | GND | Black wire |
Hardware support
Support hardware platform:
- ROCK Pi E V1.1 or later
You'd better follow the installation steps.
Installation
Windows
Refer Windows ADB
Linux
Refer Linux ADB
ADB Usage
When you have adb driver installed on PC, you should modify the /boot/uEnv.txt file to add the following
verbosity=7 console=ttyS2,1500000n8 overlays=rk3328-uart2 rk3328-usb-otg rootuuid=d8873f71-da3d-48f9-bab5-d1736409f170 initrdsize=0x6ed0f0 kernelversion=4.4.194-19-rockchip-g287ff75afc47 initrdimg=initrd.img-4.4.194-19-rockchip-g287ff75afc47 kernelimg=vmlinuz-4.4.194-19-rockchip-g287ff75afc47 fdtfile=rockchip/rk3328-rock-pi-e-rtl8211f.dtb
Check adb devices
$ adb devices List of devices attached 0123456789ABCDEF device
If adb device is not detected on host PC, try to ssh or use serial console first and try the following:
Firstly, update rockchip-overlay and kernel packages.
$ sudo apt-get install -y rockchip-overlay $ sudo apt-get install -y linux-4.4-rock-pi-e-latest
Secondly, install rockchip-adb package.
$ sudo apt-get install -y rockchip-adbd
Finally, start rockchip service
$ sudo systemctl start rockchip-adbd
Login/Shell
$ adb shell #
And type /bin/bash followed by Enter key to switch to bash shell.
$ adb shell # /bin/bash root@rockpie:/# root@rockpie:/#
Transmit files from PC to ROCK Pi E
$ adb push <local path> <remote path>
Example:
On PC, input the following in Terminal
$ adb push /tmp/meet-rockpie.md /home/rock 0 KB/s (26 bytes in 0.045s)
Check on ROCK Pi E
root@rockpie:/home/rock# cat meet-rockpie.md How do you do! ROCK Pi E!
Transmit files from ROCK Pi E 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!
Usage of rockchi-adb service
Start rockchip-adb service
$ sudo systemctl start rockchip-adbd
Stop rockchip-adb service
$ sudo systemctl stop rockchip-adbd
Reload rockchip-adb service
$ sudo systemctl reload rockchip-adbd or $ sudo systemctl restart rockchip-adbd
If you still have issue with adb, start a new post on the forum. https://forum.radxa.com/c/dev