Artila Matrix 504 빠른 설치 매뉴얼 - 페이지 5

{카테고리_이름} Artila Matrix 504에 대한 빠른 설치 매뉴얼을 온라인으로 검색하거나 PDF를 다운로드하세요. Artila Matrix 504 7 페이지. Arm9-based embedded computer

Install GNU Tool Chain
Find a PC with Linux 2.6.X Kernel installed and login as a root
user then copy the arm-linux-3.3.2.tar.gz to root directory of
PC. Under root directory, type following command to install the
Matrix 504 Tool Chain
#tar zxvf arm-linux-3.3.2.tar.gz
Getting started with the Hello program
There are many example programs in Artila CD. To compile the
sample you can use the Make file to and type
make
To compile and link the library. Once done, use ftp command
ftp 192.168.2.127
And 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
/guest/hello &
exit 0
Hello will be executed after system boot up. rc.local has the
similar function as /etc/rc in Matrix-500
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)
2. setuart: configure serial port setting. An example show as
followed to configure port 1 as RS-485 interface with baud rate
921600.
3. version: find out the version of OS.
4. gpioctl: The gpio can be configured by gpioctl and the usage
is as shown followed. The default setting is digital input with
75K ohm pull up resistor.