Installation Manual

Linux Configuration
Intel® Edison
Quick Start Guide September 2014
18 Intel Confidential Document Number: EQSG-ww29
Figure 10 Intel® Edison board
4.4 Cross-compile “hello world”
To build a native application for the target using the cross-compilation toolchain, do the following:
1. Extract the script from the zip, which should be in the format Edison-sdk-linux-weekly-51.zip. Run the script
with sudo, which should prompt for a target install directory. Install the cross-compiler in a directory of your
choice, which by default is /opt/poky-edison/1.6.
sudo ./poky-edison-eglibc-x86_64-edison-image-core2-32-toolchain-1.6.sh
Enter target directory for SDK (default: /opt/poky-edison/1.6):
2. Initialize the environment to use the proper cross-compiler:
source /opt/poky-edison/1.6/environment-setup-core2-32-poky-linux
3. Build a “helloworld” C program:
/* Hello World program */
#include<stdio.h>
main()
{
printf("Hello World\n");
}
4. Save it as helloworld.c.
5. Compile the helloworld.c program and deploy it on the device. This is an example of how to do so over
RNDIS.
$CC -o helloworld helloworld.c
scp helloworld root@192.168.2.15:/home/root
§