Test Program-Developing Hello.c; Installing The Tool Chain (Linux) - Korenix JetBox 8100 User Manual

Embedded linux
Hide thumbs Also See for JetBox 8100:
Table of Contents

Advertisement

2.4 Test Program-Developing Hello.c

In this section, we use the standard "Hello" programming example to
illustrate how to develop a program for the JetBox 8100. In general,
program development involves the following seven steps.
Step 1:
Connect the JetBox8100 to a Linux PC.
Step 2:
Install Tool Chain (GNU Cross Compiler & glibc).
Step 3:
Set the cross compiler and glibc environment variables.
Step 4:
Code and compile the program.
Step 5:
Download the program to the JetBox 8100 Via FTP or NFS.
Step 6:
Debug the program
If bugs are found, return to Step 4.
If no bugs are found, continue with Step 7.
Step 7:
Back up the user directory (distribute the program to additional JetBox
8100 units if needed).

2.4.1 Installing the Tool Chain (Linux)

The Linux Operating System must be pre-installed in the PC before
installing the JetBox 8100 GNU Tool Chain. Fedora core or compatible
versions are recommended. The Tool Chain requires approximately
203 MB of hard disk space on your PC. The JetBox 8100 Tool Chain
software is located on the JetBox 8100 CD. To install the Tool Chain,
insert the CD into your PC and then issue the following commands:
#mount /dev/cdrom /mnt/cdrom
#tar jxvf /mnt/cdrom/toolchain/jetbox8100-toolchain.tar.bz2 -C /
Ps. To install the toolchain you must grant root permission
The Tool Chain will be installed automatically on your Linux PC within
a few minutes. Before compiling the program, be sure to set the
JetBox 8100 User Manaual_Linux_1.1
13

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Jetbox 8100-lJetbox 8100-lm

Table of Contents