AM335X-PAC Series User Manual version 2.0.1 Page: 63
Copyright © 2019 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
4.1.2. Introduction to Cross-Compilation
Generally, program compilation is performed by running a compiler on the build platform. The
compiled program will then run on the target platform. Usually, these two processes are intended
for use on the same platform. However, if the intended platform is different, the process is called
cross compilation
, where source code on one platform can be compiled into executable files to be
used on other
platforms. For example, if the ‘
arm-linux-gnueabihf-gcc
’
cross-compiler is used on
an x86 windows platform, the source code can be compiled into an executable file that can run on
an arm-linux platform.
So why use cross compilation? In fact, cross compilation is sometimes more complicated than
normal compilation, and errors are easier to make. Therefore, this method is often only employed
if the program cannot be compiled on the target system, or if the program being compiled is so
large that it requires more resources than the target system can provide. For many embedded
systems, cross compilation is the only possible approach.
4.1.3. Download the LinPAC AM335x SDK
For Windows systems: (
Extract the .exe file into to the
C:\ driver
.
)
LinPAC
Download Path
LP-22xx/52xx
ftp://ftp.icpdas.com/pub/cd/linpac/napdos/lp-5000/lp-52xx/lp-5231/sdk/lp52xx_am335x_sdk_f
LP-8x2x/9x2x
ftp://ftp.icpdas.com/pub/cd/linpac/napdos/lp-9x2x/sdk/linpac_am335x_sdk_for_windows.exe
For Linux systems: (
Extract the .bz2 file into to the
root ( / ) directory
.
)
LinPAC
Download Path
LP-22xx/52xx
ftp://ftp.icpdas.com/pub/cd/linpac/napdos/lp-5000/lp-52xx/lp-5231/sdk/lp52xx_am335x_sdk_f
LP-8x2x/9x2x
ftp://ftp.icpdas.com/pub/cd/linpac/napdos/lp-9x2x/sdk/linpac_am335x_sdk_for_linux.tar.bz2
Note
: We recommend user to change user ID to
become root by ‘sudo’ or ‘su’ command.