Artila M-508 Скачать руководство пользователя страница 6

Mounting External Storage Memory 

To find out the device name of the external memory device 
which plug into M-508, you can use the command  

/dmesg | grep sd    

or  

/dmesg | grep mmc 

Type 

mount /dev/sda1 

to mount the USB disk and  

mount /dev/mmc0 

to mount SD card 

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 
M-508 Tool Chain 

#tar zxvf arm-linux-3.3.2.tar.gz 

Welcome Message 

To modify the welcome message, user can use text edit to 
modify the /etc/motd.  

Web Page Directory 

The web pages are placed at /home/httpd and  the boa.conf 
contains the boa web server settings.  The home page name 
should be 

index.html 

Getting started 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 M-508 user disk (/disk) and use 

chmod +x  file.o 

Change it to execution mode and 

 ./file.o  

to run the file 

Adjust the system time 

To adjust the RTC time, you can follow the command 
/

date MMDDhhmmYYYY 

where 

MM=Month (01~12) 
DD=Date (01~31) 
hh=Hour 
mm=minutes 
YYYY= Year 
/hwclock –w 

To write the date information to RTC 
User can also use NTP client utility in Artila CD to adjust the 
RTC time. 
/

ntpclient [time server ip] 

SSH Console 

M-508 support SSH.  If you use Linux computer, you can use 
SSH command to login M-508.  The configuration of SSH and 
key are located at 
/etc/config/ssh 
The key generation program is available at Artila CD 
/matrix and ipac /utility/ssh_keygen 
User can copy this program to M-508 to generate the key 

Содержание M-508

Страница 1: ...100 Mbps Ethernet 6 Two USB 2 0 full speed 12 Mbps Host Ports 7 Multimedia Card Interface for SD memory card 8 Four RS 232 485 ports software selectable 9 Port 4 also supports RS 422 10 32 General Pur...

Страница 2: ...GND Serial Console Port Serial console port is used for accessing M 508 using RS 232 At factory serial console port is disabled because serial console port shares the Port 3 connector with the pin de...

Страница 3: ...n an internal Modem to work with M 508 JP2 Boot manager selection JP2 is boot selection jumper near CN1 Set to position 2 3 always Change the setting will cause incorrectly boot up USB Client connecto...

Страница 4: ...e and etc directory are configured as Flash Disk To find out the file system information please use command mount as shown as below In addition use command df to find out the disk space of the disk Th...

Страница 5: ...ial port setting An example show as followed to configure port 1 as RS 485 interface with baud rate 921600 Please note only port 1 support 9 bit data at RS 485 How to make more utility software You mi...

Страница 6: ...gram 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 c...

Страница 7: ...u forgot the M 508 IP address you can use the Java Manager available in Artila CD to search the IP address of M 508 Or use serial console port to find out the IP address by ifconfig Enable Serial Cons...

Отзывы: