TinaV2.1 Development Introduction
TinaV2.1 开发说明
1.Use and installation of Adb tool
Adb工具的使用和安装
1.1 adb introduce
adb工具介绍
adb stands for Android Debug Bridge, which acts as a debugging bridge between PC and mobile phone, tablet, and development board. With the help of adb tool, we can manage the device and perform many operations, such as running shell commands and sending files to the development board.
adb全称Android Debug Bridge,对于PC和手机.平板.开发板之间,起到调试桥的作用。借助adb工具, 我们可以对设备进行管理,还可以进行很多操作,比如运行shell命令,向开发板发送文件等。
1.2 adb installation and configuration
adb工具的安装和配置
-
adb installation
adb 安装
sudo apt-get install android-tool-adb
-
adb configuration
adb 的配置
- Connect the development board and the computer correctly, start minicom or putty, and see the system in the development board start normally and enter the shell in the minicom terminal. If you have not programmed the Tina system to the development board, please first program the system
将开发板和电脑正确链接,启动minicom或putty,要在minicom终端里看见开发板里系统正常启动并进入shell,如果没有烧写Tina系统到开发板,请先烧写系统
2.Open the terminal on the computer, run the command lsusb, check the device, and find the serial port connected between the computer and the development board, as follows:
打开电脑上的终端,运行命令lsusb,查看设备,找到电脑和开发板相连接的串口,如下:
3.Use the command sudo vim /etc/udev/rules.d/50-android.rules to open the 50-android.rules file on the computer (create one if not) for configuration, so that the computer can recognize this serial port. The specific configuration is as follows (that is, write in this file):
使用命令 sudo vim /etc/udev/rules.d/50-android.rules 打开电脑上的50-android.rules文件(如果没有就创建一个)进行配置,这样电脑就能识别到此串口。具体配置如下(即在此文件里写入):
The SUBSYSTEM option remains unchanged, the ATTR{idVendor} option fills in the device ID (the device ID is shown in the figure above, fill in according to your own device), the ATTR{idProduct} fills in the device product ID (the device product ID is in the f