Difference between revisions of "IoTGateway/BSP/Linux/AM335x/AM335x LBV6 User Guide"

From ESS-WIKI
Jump to: navigation, search
(Getting Started)
(Configure your Linux Host)
Line 5: Line 5:
 
Generally,to do Linux development, you’ll need a host PC running Linux. In the development with the advantech SDK, it would be strongly recommend to use Ubuntu 12.04 LTS 64 bit/ Ubuntu 14.04 LTS 64 bit as developing environment. Because we have successfully tested our BSP on these OS version. Please install the Ubuntu 12.04 LTS 64 bit / Ubuntu 14.04 LTS 64 bit at your PC/NB in advance.
 
Generally,to do Linux development, you’ll need a host PC running Linux. In the development with the advantech SDK, it would be strongly recommend to use Ubuntu 12.04 LTS 64 bit/ Ubuntu 14.04 LTS 64 bit as developing environment. Because we have successfully tested our BSP on these OS version. Please install the Ubuntu 12.04 LTS 64 bit / Ubuntu 14.04 LTS 64 bit at your PC/NB in advance.
 
==<span style="color:#0070c0;">'''Configure your Linux Host'''</span>==
 
==<span style="color:#0070c0;">'''Configure your Linux Host'''</span>==
 +
After installed this OS, you must install some essential libraries on your host PC for building these source code. We will describe how to install them as follow:<br>
 +
*'''1. build-essential'''
 +
If you have a new Ubuntu system where you have not installed anything for building. The build-essential library is necessary. The command as follow:
 +
<pre>
 +
# sudo apt-get install build-essential
 +
</pre>
 +
*'''2. 32-bit compatibility libraries'''
 +
As we known, the host PC is 64-bit Ubuntu, but some tools are a 32-bit tool. To make them work, you must install this 32-bit compatibility libraries. The command is follow on 64 bit Ubuntu14.04:
 +
<pre>
 +
# cd /etc/apt/sources.list.d
 +
# echo "deb http://archive.ubuntu.com/ubuntu/ raring main restricted universe multiverse" > ia32-libs-raring.list
 +
# sudo apt-get update
 +
# sudo apt-get install ia32-libs
 +
# sudo rm ia32-libs-raring.list
 +
# sudo apt-get update
 +
</pre>
 +
On the 64-bit Ubuntu12.04, you need to type the following command:
 +
<pre>
 +
#sudo apt-get install ia32-libs
 +
</pre>
 +
*'''3. Some essential tools for BSP building '''
 +
After step1 and step2, you can build some application based linux. But if you want to build BSP source code, you need to install these following tools on ubuntu14.04.
 +
<pre>
 +
# sudo apt-get update libncurses5-dev autoconf automake dos2unix u-boot-tools
 +
</pre>
 
===<span style="color:#0070c0;">To install required packages</span>===
 
===<span style="color:#0070c0;">To install required packages</span>===
  
 
=Developement Guide=
 
=Developement Guide=

Revision as of 11:17, 18 September 2016

Start your Linux Development

Generally,to do Linux development, you’ll need a host PC running Linux. In the development with the advantech SDK, it would be strongly recommend to use Ubuntu 12.04 LTS 64 bit/ Ubuntu 14.04 LTS 64 bit as developing environment. Because we have successfully tested our BSP on these OS version. Please install the Ubuntu 12.04 LTS 64 bit / Ubuntu 14.04 LTS 64 bit at your PC/NB in advance.

Configure your Linux Host

After installed this OS, you must install some essential libraries on your host PC for building these source code. We will describe how to install them as follow:

  • 1. build-essential

If you have a new Ubuntu system where you have not installed anything for building. The build-essential library is necessary. The command as follow:

 # sudo apt-get install build-essential
  • 2. 32-bit compatibility libraries

As we known, the host PC is 64-bit Ubuntu, but some tools are a 32-bit tool. To make them work, you must install this 32-bit compatibility libraries. The command is follow on 64 bit Ubuntu14.04:

 # cd /etc/apt/sources.list.d
 # echo "deb http://archive.ubuntu.com/ubuntu/ raring main restricted universe multiverse" > ia32-libs-raring.list
 # sudo apt-get update
 # sudo apt-get install ia32-libs 
 # sudo rm ia32-libs-raring.list
 # sudo apt-get update 

On the 64-bit Ubuntu12.04, you need to type the following command:

 #sudo apt-get install ia32-libs
  • 3. Some essential tools for BSP building

After step1 and step2, you can build some application based linux. But if you want to build BSP source code, you need to install these following tools on ubuntu14.04.

 # sudo apt-get update libncurses5-dev autoconf automake dos2unix u-boot-tools

To install required packages

Developement Guide