Note: The development board takes the IMX6ULL PRO development board as an example! ! !
text:
1. Connect the development board
1. As shown in the figure
2. Install the USB serial port module driver
Open the device manager to view the port: let Windows install automatically, if the computer does not display the port number, you need to manually install the driver (using the driver wizard). Download a driver wizard from the official website of the driver wizard, install, run, and test, and the serial port driver will be automatically installed.
2. Connect the terminal MobaXterm to open the serial port
1. Open MobaXterm, click "Session" in the upper left corner, select "Serial" in the pop-up interface, and select the port number as shown in the figure below (the port number COM21 shown in the device manager in the front), baud Rate (Speed 115200), flow control (Flow Control: none), and finally click "OK". The steps are shown in the figure below.
2. Then a black window is displayed. At this time, turn on the power switch of the board, and you will receive the data from the serial port of the board . After waiting for a while, enter the password: root, press Enter to log in successfully, and then you can execute various Linux Ordered
imx6ull login: root
3. Verify the development board network
Check the application development complete manual, Chapter 6, Section 6.4
1. Use the ifconfig command on the terminal to check whether the IP is automatically obtained.
2. If the IP is not obtained automatically, you can try to obtain the IP with udhcpc;
if it fails, perform the following Command to manually set the IP:
ifconfig eth0 192.168.1.130 // Assuming that the IP of the development board is set to 192.168.1.130
Execute ifconfig here and you can see that the IP of eth0 is set to 192.168.1.130
3. Get the IP of the windows network card
4. Try to ping windows and the development board
. After setting up, you can ping the IP of the development board on the Windows command line; or ping the IP of the Windows network card in the serial port of the development board . If only one direction is open, it means there is no problem.
Ping the IP of the development board in windows:
open the search in the lower left corner: cmd to open the windows command line, enter ping 192.168.1.130:
The result above shows that the network connection is successful.
If so, please reconnect the network cable!
Fourth, use MobaXterm to remotely log in to the development board
Seven, preparation before programming
7.1 Use GIT to download the source code
slightly
7.2 Use repo to download kernel and toolchain, etc.
book@100ask:~$ git config --global user.email "[email protected]"book@100ask:~$ git config --global user.name "100ask"
git config --list
book@100ask:~$ git clone https://e.coding.net/codebug8/repo.gitbook@100ask:~$ mkdir -p 100ask_imx6ull-sdk && cd 100ask_imx6ull-sdkbook@100ask:~/100ask_imx6ull-sdk$ ../repo/repo init -u https://e.coding.net/weidongshan/manifests.git -b linux-sdk -m imx6ull/100ask_imx6ull_linux4.9.88_release.xml --no-repo-verifybook@100ask:~/100ask_imx6ull-sdk$ ../repo/repo sync -j4
vim ~/.bashrc
export ARCH=armexport CROSS_COMPILE=arm-linux-gnueabihf-export PATH=$PATH:/home/book/100ask_imx6ull-sdk/ToolChain/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin
export ARCH=armexport CROSS_COMPILE=arm-linux-gnueabihfexport PATH=$PATH:/home/book/100ask_imx6ull-sdk/ToolChain/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin
book@100ask:~$ echo $ARCHarmbook@100ask:~$ echo $CROSS_COMPILEarm-linux-gnueabihf-
book@100ask:~$ arm-linux-gnueabihf-gcc -v
3. View the definition of a function or variable in the
file After opening the file, while holding down the ctrl key, click the function or variable with the mouse to jump to the position
where it was defined . When you need to return to the original code, press Alt +, shortcut key to return to the code of the original calling function
4. Find function or variable references
double-click function, right-click on the pop-up dialog box, select the "lookup reference"; after or double-click function, use shortcut keys "ctrl + /" to find references