User`s manual
Table Of Contents
- 1. Introduction
- 2. Getting Started
- Powering on the W406-LX
- Connecting the W406-LX to a PC
- Configuring the Ethernet Interface
- USB Port for Expansion
- SD Socket for Storage Expansion
- Setting Up the Wireless Module
- Configuring the SIM Card
- Entering the PIN Code
- Verifying the SIM Card Status
- Enabling or Disabling the PIN Code Authentication
- Changing the PIN Code
- Unlocking the SIM Card
- Connecting to the Internet
- Reconnecting to the Internet
- Disconnecting from the Internet
- Detecting an Internet Connection Error
- Sending and Reading an SMS Message
- Deleting an SMS Message
- Test Program—Developing Hello.c
- 3. Managing Embedded Linux
- 4. Managing Communications
- 5. Development Tool Chains
- 6. Programmer’s Guide
- 7. Software Lock
- A. System Commands

W406-LX Linux User’s Manual Development Tool Chains
5-2
Linux Tool Chain
The Linux tool chain contains a suite of cross compilers and other tools, as well as the libraries
and header files that are necessary to compile your applications. These tool chain components
must be installed in your host computer (PC) running Linux. We have confirmed that the
following Linux distributions can be used to install the tool chain.
Fedora 7, Debian 4
Steps for Installing the Linux Tool Chain
The tool chain needs about 1 GB of hard disk space. To install it, follow the steps.
1. Insert the package CD into your PC and then issue the following commands:
#mount /dev/cdrom /mnt/cdrom
#sh /mnt/cdrom/toolchain/arm-linux_2.1.sh
2. Wait for the installation process to complete. This should take a few minutes.
3. Add the directory /usr/local/arm-linux/bin to your path. You can do this for the current
login by issuing the following commands:
#export PATH=“/usr/local/arm-linux/bin:$PATH”
Alternatively, you can add the same commands to $HOME/.bash_profile to make it
effective for all login sessions.
Compilation for Applications
To compile a simple C application, use the cross compiler instead of the regular compiler:
#arm-linux-gcc –o example –Wall –g –O2 example.c
#arm-linux-strip –s example
#arm-linux-gcc -ggdb –o example-debug example.c
Most of the cross compiler tools are the same as their native compiler counterparts, but with an
additional prefix that specifies the target system. In the case of x86 environments, the prefix is
i386-linux-
and in the case of W406-LX ARM boards, it is
arm-linux-
.
For example, the native C compiler is
gcc
and the cross C compiler for ARM in the W406-LX is
arm-linux-gcc.