Embedded Linux Development Board_Xunwei iTOP-4412 Elite Edition Getting Started (2)

Note: Continuation of the previous article "Embedded Linux Development Board_Xunwei iTOP-4412 Elite Edition Getting Started (1)"

Table of contents

Note: Continuation of the previous article "Embedded Linux Development Board_Xunwei iTOP-4412 Elite Edition Getting Started (1)"

3. Installation and learning of iTOP-4412 platform basic software

3.1 Installation and configuration of HyperTerminal

3.1.1 Install USB to serial port driver

3.1.2 Installation of HyperTerminal

3.1.3 HyperTerminal settings  

3.1.4 System configuration of HyperTerminal 

3.2 VMware下Ubuntu 16.04

3.2.1 Installation and configuration of VMware and Ubuntu

3.2.2 Virtual machine networking settings

3.3 Installation and use of SSH software

 3.3.1 SSH installation

 3.3.2 Connection failure handling

3.3.3 Use of SSH

4. Installation and configuration of Android ADB driver

4.1 Win7 system ADB offline installation

4.2 ADB offline installation in win10 system

4.3 Turn off win10 driver automatic update

 4.4 Online installation of ADB driver

4.5 Solutions to common problems with ADB driver installation


3. iTOP-4412 Installation and learning of platform basic software
3.1 HyperTerminal Installation and Configuration
3.1.1 Install USB to serial port driver

If the user directly connects the serial port COM3 of the development board to the serial port of the PC, he only needs to install the HyperTerminal software and does not need to install the USB to serial port driver.

If the user is using a laptop or a PC without a serial port, then a USB-to-serial port cable is needed to connect the development board and the PC, and a USB-to-serial port driver needs to be installed.

Download the compressed package of the USB to serial port driver, see the bundled resources:.

The following explains in detail the installation of the USB to serial port driver on a PC.

1) Unzip the compressed package to obtain the file, and select the corresponding installation package according to the operating system of your PC. The following takes WIN10 as an example:

As shown below, then double-click the above executable file to start installing the USB to serial driver.

2) As shown below, select Next to continue the installation.

3) As shown below, select to accept the installation agreement, and then click "Next" to continue the installation.

4) As shown below, the USB to serial port driver is being installed.​ 

5) As shown in the figure below, it will prompt that the driver installation has been completed. Click "Finish" to end the USB to serial port driver installation.

Then check whether the USB to serial port driver is installed correctly.

Taking the author's machine as an example, the screenshot below may be slightly different from the user interface.

6) Users do not need to connect the USB to serial port cable to the PC first, but directly enter the device manager of the operating system, as shown below, and open the "Port".

As shown in the picture below, the red rectangular box shows that the machine has only one serial port, COM1. The author's machine has its own serial port, so it has COM1.

7) Then connect the USB to serial cable to the USB interface of the computer. The device manager displays as shown in the picture below. Comparing the picture below with the picture above, you can find that there is more content in the red rectangular box in the picture below. The COM3 number is the serial port number assigned to you by the system after connecting to the USB of the computer. (It needs to be reminded here that the port number displayed will be different depending on the USB interface that the user plugs in. You only need to pay attention to the serial number that is added after the USB to serial port is inserted. This added serial number needs to be remembered. It will be used in the settings of HyperTerminal.)

At this point, the USB to serial cable driver is installed.

3.1.2 HyperTerminal Installation
HyperTerminal is also called serial port software or serial port assistant.
The HyperTerminal installation package provided by Xunwei is "hyperterminal- v2.4.8.zip".

 After unzipping the "hyperterminal-v2.4.8.zip" installation package, the software "hyper_terminal_latest.exe" will be generated. Then double-click the software "hyper_terminal_latest.exe" to start the installation. Detailed steps are shown in the figure below.

3.1.3 HyperTerminal settings  
Before connecting HyperTerminal to the development board, settings need to be made. The following explains in detail the settings of HyperTerminal on the PC.

Open the software "Hyper Terminal" installed in the previous section. 

Then execute the menu command "File (F)" --> "New Connection (N)", and the following interface will appear. It should be noted here that for COM3 below, users should select the serial port number according to the actual situation of their machine, click "OK" to continue setting.

3.1.4 System configuration of HyperTerminal 

On PC, users also need to set up the operating system. Taking WIN10 as an example, right-click My Computer/Properties, enter the Device Manager, and click the menu "Port".

Select the COM3 port, right-click Properties, and click "Port Settings". Click OK. 

3.2 VMware下Ubuntu 16.04
3.2.1 Installation and configuration of VMware and Ubuntu
Please refer to the following for the detailed process:
VMware installation of Ubuntu 16.04 (full graphic tutorial)_ubuntu-16.04.7-desktop-amd64.iso-CSDN Blog  
https://blog.csdn.net/Passerby_Wang/article/details/123745479?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522169311779716800180694361%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=169311779716800180694361&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduend~default-1-123745479-null-null.142^v93^chatsearchT3_2&utm_term=vmware%20ubuntu16.04%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B&spm=1018.2226.3001.4187
3.2.2 Virtual machine networking settings
1. As shown in the figure below, this is a general configuration method, applicable to networks with routers that can automatically assign IPs. "Bridge mode" requires the router to dynamically allocate IP. For many companies or some campus network users that use fixed IP, this method is unable to connect to the Internet.

A virtual machine configured in bridged network connection mode will be treated as part of the Ethernet network where the host is located. The relationship between the virtual system and the host is like two computers connected to the same Hub. They can access all shared resources and network connections in the Ethernet like the host, and can also directly access the Internet.
Mutual access is possible between the host and virtual machines, as well as between virtual machines. The corresponding virtual machine is treated as an independent physical machine on the Ethernet network where the host is located. Each virtual machine is connected to the host Ethernet through the default VMnet0 network card, and the virtual network between virtual machines is VMnet0. At this time, your virtual machine is like an independent physical machine in the LAN. The operating system in the virtual machine can ping other hosts, and conversely other hosts can ping the virtual machine.
2. As shown below, select "Host Only Mode", which is a closed mode. In this mode, it can only be used for communication between the host and Ubuntu, and the virtual machine cannot access the Internet. In the absence of a network, the host cannot access the Internet. In order to achieve communication between the host and the virtual machine, this mode can be used to set it.

 3. As shown below, select the "Custom" mode and select the network "VMnet8 (NAT)". This mode is suitable for some companies and campus networks with fixed IP. When installing a virtual machine, it will install two additional virtual network cards on the PC, one of which is VMnet8", which is equivalent to the PC building a virtual LAN. When the virtual machine and the PC are connected to the network, connect to The local area network is connected, and then the PC is connected to the external network.

For more detailed virtual machine network configuration instructions, users can check the information online. Generally speaking, if you master the above three setting methods, there will be no problem with the network settings of the virtual machine.
3.3 ​​ Installation and use of SSH software
 3.3.1 SSH installation

Users can install "SSH software", through which communication between the host and the virtual machine can be easily achieved. SSH software must be installed not only on Windows, but also on Ubuntu systems.

1. Find the bound resource. After decompressing ssh, double-click SSHSecureShellClient-3.2.9.exe in the folder and install it step by step according to the following process.

Generate 2 desktop icons, one for transferring files and one for entering commands. You can switch back and forth without switching interfaces. Entering commands in the SSH Secure Shell is equivalent to the terminal of the Ubuntu system.

 2. SSH software must also be installed in the virtual machine system. The command is as follows:

sudo apt-get install ssh

The installation process is as follows:

To view the IP address of the Ubuntu system in the virtual machine, the command is as follows:

ifconfig

From this we can see that Ubuntu’s IP address is

In "File/Quick Connect" in "SSH Secure Files Transfer", enter the IP address and root in the pop-up window as shown below, and then click Connect.

Click Yes in the new pop-up window. connection succeeded.

As shown in the figure below, the left part of "SSH Secure File Transfer" is the file directory of the host, and the right part is the directory of the Ubuntu system.​ 

The connection method of "SSH Secure Shell" is the same, and the connection is successful as shown in the figure below.​ 

 3.3.2 Connection failure handling

 Note: If there is a connection failure prompt as shown below.

For processing methods, please refer to the article:

Server responded "Algorithm negotiation failed" error solution_It’s only after you’ve been drunk that you know how strong your wine is-tiger’s blog-CSDN blog https://blog.csdn.net/qq_27937043/article/details/123760527 

Server responded "Algorithm negotiation failed"[SSH Secure link server error]_vMars_K's blog-CSDN blog https://blog.csdn.net/vMars_K/article/details/95592451

3.3.3 Use of SSH

The SSH Secure Shell connection method is the same as above. After connecting, enter the picture below and you can enter commands. It is called the SSH console, which is equivalent to giving commands to the system in the Ubuntu terminal.

Using this tool can not only transfer files, but also save you the trouble of switching between virtual machines and hosts, improving efficiency. If you use SSH to connect to Ubuntu and find that the newly created folder is not there, you only need to disconnect and connect again to display it.

Regarding how to use SSH, as shown in the interface below, to transfer files between the two systems, just drag and drop with the mouse.

4. Android ADB driver installationand configuration
 iTOP-4412 Development Board OTG programming (or fastboot programming) uses the ADB driver.
4.1 win7 system ADB offline installation

Download resources Click the software "android_drv_90000_64.exe" to start the installation.

As shown in the picture below, if anti-virus software is installed, a dialog box will pop up, directly select the trust or installation option to continue the installation.

A warning may pop up again, continue to choose options such as trust or installation. 

When the prompt "...can be used" appears in the rectangular box in the above picture (the prompt in the rectangular box may be different on different systems), it means that the driver installation is successful. After the driver is installed, it is best to restart the computer.
Let's confirm whether the ADB driver can be used. First enter the task manager of the operating system. The picture below is the device manager of the Win7-64-bit operating system.

Start the development board and enter the Android system. Then connect the development board to the USB interface of the computer using an OTG cable, as shown in the figure below. If "Android Phone" appears in a red rectangular box, it means that the driver has been installed.

4.2 ADB offline installation in win10 system

 Install the "Driver Wizard" software under win10, and the ADB driver will be automatically installed when OTG connects to the development board. Or install it using a resource package. Double-click to install and follow the remaining steps to install.

4.3 Turn off win10 driver automatic update

 Since the win10 system will automatically update the driver, if the driver updates itself, the driver will become unavailable. Here is a method to disable the system from automatically updating the driver. Press the win+R key to open and run as shown below.

Enter "gpedit.msc" to open the group policy and find Computer Configuration - Management Templates - System - Device Installation - Device Installation Restrictions as shown below.

Then find "Prevent the installation of devices using drivers that match the following device installation program classes" on the right, double-click the right button and "Edit" or double-click to open the settings dialog box. Check "Enabled" and click "Show" to enter the device's class GUID .

How to find the class GUID, right-click on This PC - Device Manager, and in the opened Device Manager, find the properties of the device you want to disable updating by right-clicking on it. For example, a USB serial port device is as shown below.

Select the "Details" tab and you can find the corresponding data in the "Properties" drop-down list, as shown below. Just enter this value in Group Policy.

 4.4 ADB Driver online installation
Because there are too many versions of Windows, it is impossible to provide all ADB offline installation packages. Some users use the offline installation packages provided by Xunwei, which may not work properly. In this case, online installation can be used.
There are many software that can be installed online. I tested several common PC software and the ADB driver can be installed almost automatically. 360 series software, qq and Tencent Butler, Baidu Butler and Baidu Antivirus, Baofeng Video, Driver Genie and Kingsoft series, etc. The author recommends using "Driver Wizard", and the success rate of installation using Driver Wizard is very high.
First download the driver wizard from the Internet, install the driver wizard software on your PC, and open the driver wizard after installation.
Then find an Android phone and connect the OTG of the phone to the USB of the PC through the OTG cable (if the development board is an Android system, after the development board enters the Android system, you can use the OTG cable to connect the OTG interface of the development board Connect to the USB port of the PC, Be sure to start the Android system first and then connect the OTG cable! ), the driver wizard will prompt that there is a new one< a i=3> Driver device (if the PC has not connected to the mobile phone before, the PC will prompt a new device in the lower right corner of the Windows system). It may take 1 to 2 minutes for the driver wizard to recognize that the new device does not have a driver, and then it will automatically Install.
After the automatic installation is completed, if the driver wizard prompts you to restart the PC, just restart the PC. If there is no prompt, do not restart.
What needs to be noted here is that after the driver wizard is automatically installed, two situations may appear in the device manager after the phone is connected to the PC.
Scenario 1: In the device manager, portable devices may appear, as shown in the figure below.

For the portable device as shown in the picture above, if there is no yellow exclamation mark, it is generally installed.
Second case: If the picture below appears and there is no yellow exclamation mark, it means the driver installation is successful.

4.5 Solutions to common problems with ADB driver installation

 After using "Offline Installation" and "Online Installation", the ADB driver may still be abnormal. The author has repeatedly tested and found that 99% of the cases are caused by the software on the PC "fighting" and rushing to connect to the development board. At this time, users need to be a little patient and use Baidu, as shown below.

 The keywords that users may use found in the current test are as follows:

Disable 360 ​​to automatically connect to the phone; disable qq to automatically connect to the phone; disable Tencent Butler to automatically connect to the phone; disable Wandoujia to automatically connect to the phone; disable Baofengyingyin to automatically connect to the phone; disable Driver Wizard to automatically connect to the phone; disable Kingsoft Internet Security to automatically connect to the phone

……
……
Users need to check which software needs to prohibit automatic connection to the mobile phone based on the actual situation. Generally, if there are two software that automatically connect, there is a high chance that it cannot be used normally. In addition, many other software will automatically connect to the mobile phone, resulting in the failure to connect correctly.

Guess you like

Origin blog.csdn.net/Eva20192020/article/details/132958838