2685 views|1 replies

164

Posts

0

Resources
The OP
 

Xunwei IMX6 development board non-device tree source code compilation environment construction (I) [Copy link]

This section applies to the system compilation of ITOP-IMX6Q (commercial grade 2G+16G), ITOP-IMX6Q (industrial grade 1G+8G), and ITOP-IMX6D (commercial grade 1G+8G)
with kernel version 3.0.35.
13.1 Compilation environment description
The compilation environment provides you with a compiled development environment. We can compile successfully in the compiled environment, so
it is recommended that you use the compiled environment.
This also introduces how the built environment is built step by step from the native environment. If you want to
build it on your own development environment, you can also refer to this section. However, since the version of Ubuntu you use is different from ours, you may encounter various
problems in the middle. This requires a strong development and debugging ability, so it is recommended that you use the compiled environment we provide
.
13.2 Build the compilation environment yourself (not recommended)
It should be noted that all kinds of software used in the construction process need to be consistent with the version mentioned in the manual. If you use
the "built image", you can skip this section.
13.2.1 Ubuntu System Installation1
For Ubuntu system installation, please refer to Section 6.2 "Loading Ubuntu Image on Virtual Machine" and for virtual machine installation, please refer to Section 6.1.1 "Installing Virtual
Machine VMware"
2 Install common software and enter the following commands:
sudo apt-get install vim
sudo apt-get install ssh
sudo apt-get install uboot-mkimage
sudo apt-get install git git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev
sudo apt-get install lib32ncurses5-dev x11proto-core-dev libx11-dev
sudo apt-get install lib32z-dev libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown
sudo apt-get install libxml2-utils xsltproc gcc-multilib lib32readline5-dev
13.2.2 Install the cross compiler13.2.2.1
Copy the cross compiler tool to Ubuntu
1 The cross compiler tool is required for compilation. The arm-2009q3 compiler is installed here. It is in the network disk directory
"iTOP-i.MX6 development board data summary (excluding CD data)\02_iTOP-iMX6 development board compilation system required tool package, etc.
\05_arm-2009q3 compiler", as shown in the following figure:


2 Use the SSH tool to copy the cross compiler tool to the folder "usr"-->"local"-->"arm" of the Ubuntu12.04.2 system.
There is no arm folder under local by default. You can create a new one, as shown in the following figure:

3 After copying the compiler, it is shown in the following figure.

4 Then unzip the compressed package to the current directory in the Ubuntu system. Use the following command to enter the /usr/local/arm folder, and then use
the decompression command to decompress the compressed package, as shown in the figure below.
cd /usr/local/arm/
tar -vxf arm-2009q3.tar.bz2

13.2.2.2 Modify environment variables
1 In the Ubuntu command line, execute the commands "cd /root" and "vim .bashrc" to open the environment variable file ".bashrc", as shown in the figure below.

2 Then add the following information to the last line of the ".bashrc" file, as shown in the figure below. After the modification is completed, save and exit.
export PATH=$PATH:/usr/local/arm/arm-2009q3/bin

3 Execute the following command to update the command of the environment variable "source .bashrc", as shown in the figure below.

4 Finally, enter the command "arm" in the Ubuntu command line, and then press the TAB key. If you can see
the information of the arm compiler in the command line, it means that the cross-compilation tool has been installed successfully, as shown in the figure below.

13.2.3 JDK installation
1 For the convenience of users, the installation commands of the library files and JDK are made into script files. Users only need to execute two scripts to install the library files
and JDK. These two scripts are in the compressed package "Android_JDK.tar.bz2" under the folder "iTOP-i.MX6 development board information summary (excluding CD information)\02_iTOP-iMX6 development
board compilation system required tool package, etc.\03_linux_tools" in the user's network disk information.
2 The user copies the compressed package to the Ubuntu system, and decompressing the compressed package will generate a folder "Android_JDK", as shown in the figure below.

3 Use the cd command to enter the unzipped "Android_JDK" -> "jdk6" folder and run the script file "install-sun-java6.sh".
It should be noted that it may take more than 15 minutes to complete this command. Execute the "./install-sun-java6.sh" script, as shown in the figure below:

4 When executing the above command, enter the "Enter" command as prompted. After the upgrade is completed, it will be as shown in the figure below.

This post is from ARM Technology

Latest reply

Thanks for sharing!   Details Published on 2021-6-17 15:45
 

7462

Posts

2

Resources
2
 

Thanks for sharing!

This post is from ARM Technology
 
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list