- ページ 6

産業用PC Artila Matrix 522のPDF ユーザーマニュアルをオンラインで閲覧またはダウンロードできます。Artila Matrix 522 10 ページ。 Arm9-based linux ready industrial computer

Install GNU Tool Chain
Find a PC with Linux OS installed as followed:
Fedore 7, ubuntu 7.04, OpenSUSE 10.2, Mandriva 2008,
Debian 5.0, Centos (RedHat) 5 and above.
Login as a root user then copy the arm-linux-4.3.2.tar.gz to root
directory of PC. Under root directory, type following command
to install the Matrix 522 Tool Chain
#tar -xvfj arm-linux-4.3.3.tar.bz2
The tool chain file name are
arm-linux-gnueabi-gcc
arm-linux-gnueabi-g++
arm-linux-gnueabi-strip
Version: gcc 4.3.3, glibc 2.9, binutils 2.18
For Windows user, please download the toolchain from
CodeSourcery at
http://www.codesourcery.com/sgpp/lite/arm/portal/
package4547/public/arm-none-linux-gnueabi/arm-2009q1-203-
arm-none-linux-gnueabi.exe
The tool chain file name are
arm-none-linux-gnueabi-gcc
arm-none-linux-gnueabi-g++
arm-none-linux-gnueabi-strip
Version: gcc 4.3.3, glibc 2.8, binutils 2.19
Getting started with the Hello program
There are many example programs in Artila CD. To compile the
sample you can use the Make file and type
make
To compile and link the library. Once done, use ftp command
ftp 192.168.2.127
Then login with password. Use bin command to set transfer
mode to binary
ftp>bin
to transfer the execution file to Matrix 504 user disk (/home/
guest) and use
chmod +x file.o
To change it to execution mode and
./file.o
to run the program
Auto start program on boot:
To start a program on boot, you can use /etc/rc.local
For example to use vi to edit rc.local
hello &
exit 0
Hello will be executed after system boot up. rc.local has the
similar function as /etc/rc in Matrix-522
Artila Utility Software:
The introduction of Artila utility software as follow:
1. update : update loader, environment file and kernel image.
Type update—help to find the command usage
Update can only operated under supervisor mode (password :
root). Please use command su and login as root
2. setuart: configure serial port setting. An example show as
followed to configure port 1 as RS-485 interface with baud rate
921600.
3. setconsole: Unlike Matrix-510 which shares the serial
console port with the serial port 3, Matrix-522 uses dedicated
pins for serial console (debug port). setconsole command
allows user to redirect the serial console port to any one of the
four serial port of Matrix-522. Therefore user can avoid
opening the metal case to access the serial console.
3. version: find out the version of OS.
4. gpioctl: The gpio can be configured by gpioctl and the
usage is as shown followed.