User`s manual

ThinkCore IA241/240 Linux User’s Manual Development Tool Chains
5-8
7. Click on OK to complete the installation process.
Using the BASH Shell
A command-line interface is used to develop applications with the tool chain. To access the
command line, you need to launch a BASH shell window.
To open a BASH shell window, choose Start Menu Æ Programs Æ UC Tool Chain Æ Moxa
Bash Shell, or lick on the desktop Moxa Bash Shell icon.
/
Your group is currently “mkpasswd”. This indicates that
The /etc/passwd (and possibly /etc/group) files should be rebuil
See the man pages for mkpasswd and mkgroup then, for example, ru
mkpasswd –l [-d] > /etc/passwd
mkpasswd –l [-d] > /etc/group
Note that the –d switch is necessary for domain users.
stephen_lin@abc-06d82fcbf1a /
$ ls –al
total 9
drwxr—xr-x 8 stephen_ mkpasswd 0 Jan 10 17:24 .
drwxr—xr-x 8 stephen_ mkpasswd 0 Jan 10 17:24 ..
drwxr—xr-x 2 stephen_ mkpasswd 0 Jan 10 19:48 bin
drwxr—xr-x 7 stephen_ mkpasswd 0 Jan 10 19:24 etc
-rw-r--r-- 1 stephen_ mkpasswd 3262 Jan 10 22:03 insight.ico
drwxr—xr-x 5 stephen_ mkpasswd 0 Jan 10 19:48 lib
-rwxr—xr-x 1 stephen_ mkpasswd 53 Jan 10 22:03 moxa.bat
-rw-r--r-- 1 stephen_ mkpasswd 3262 Jan 10 22:03 moxa.ico
drwxr—xr-x 2 stephen_ mkpasswd 0 Jan 10 19:48 tmp
drwxr—xr-x 14 stephen_ mkpasswd 0 Jan 10 19:48 usr
drwxr—xr-x 6 stephen_ mkpasswd 0 Jan 10 18:12 var
stephen_lin@abc-06d82fcbf1a /
$ _
Compilation for Applications
Windows tool chain is a cross compiler that can be used to compile Linux source code on a
Windows operating system, allowing programmers to develop projects on a Windows-based PC.
In this section, we describe the procedures you should follow to compile a project with the
Windows tool chain.
First, copy the source codes of your project in the Windows tool chain’s installation directory. In
the example shown here, we want to compile the hello example provided in our CD-ROM. We
will copy the source code to /UC which is the root directory of the Windows tool chain. Check the
root directory, where you can find the hello directory.