도와주세요!!
글 수 15,339
2008.07.10 14:49:17 (*.241.227.235)
28413
저번에 영문으로 질문 올렸던 사람입니다.
호주에 있는 엔지니어가 또 다시 질문을 해와서 다시 또 여쭤 봅니다.
호주에 있는 엔지니어가 또 다시 질문을 해와서 다시 또 여쭤 봅니다.
- We wish to send and receive files to Falinux board to be able to test our port. Can you ask for instructions to Falinux; how can we setup FTP or another way to exchange files with the board.
- The board has a default IP address: 192.168.0.102 where do they set this? I would like to change this address, can they help me.
- When we create a directory or file on the board (example: /opt), it gets deleted if we restart the board. Do they use a RAMdisk? Where can we store information so that it will not be deleted when we restart.
제품 사용법에 관한 내용인것 같습니다. 이번에도 답변좀 부탁드립니다.
제품 사용법에 관한 내용인것 같습니다. 이번에도 답변좀 부탁드립니다.
2008.07.11 11:55:02 (*.105.125.81)
- ftp 서버는 arm용으로 따로 컴파일해서 보드에 넣어 주어야 합니다.
- 보드의 IP를 변경하는 가장 편한 방법은 EZ-BOOT 모드에서 set 메뉴를 이용하여 Local IP를 변경하는 것입니다.
아래의 링크를 참고하여 주십시오.
http://forum.falinux.com/zbxe/?mid=ezboard&page=2&document_srl=405900
- 네, 램디스크 모드이기 때문에 부팅할 때마다 파일이 삭제됩니다만, yaffs 모드로 변경하면 NAND 영역을 이용하게 되므로 부팅을 해도 파일이 삭제되지 않습니다. 아래의 링크를 참고하여 주십시오.
http://forum.falinux.com/zbxe/?mid=ezboard&page=2&document_srl=405906
- We wish to send and receive files to Falinux board to be able to test our port. Can you ask for instructions to Falinux; how can we setup FTP or another way to exchange files with the board.
--->> 현재 제공되고 있는 EZ-X5 보드의 램디스크에는 FTP 가 설정되어 있지 않습니다.
작업하신 어플리케이션을 테스트하기 위한 방법으로는 두가지가 있습니다.
1번째 방법은 시리얼을 이용한 Zmodem으로 send와 receive를 할 수 있습니다.
rz 명령은 Receive files with ZMODEM/YMODEM/XMODEM protocol 입니다.
[root@ez-x5 /root]$ rz --help
rz version 0.12.20
Usage: rz [options] [filename.if.xmodem]
Receive files with ZMODEM/YMODEM/XMODEM protocol
(X) = option applies to XMODEM only
(Y) = option applies to YMODEM only
(Z) = option applies to ZMODEM only
-+, --append append to existing files
-a, --ascii ASCII transfer (change CR/LF to LF)
-b, --binary binary transfer
-B, --bufsize N buffer N bytes (N==auto: buffer whole file)
-c, --with-crc Use 16 bit CRC (X)
-C, --allow-remote-commands allow execution of remote commands (Z)
-D, --null write all received data to /dev/null
--delay-startup N sleep N seconds before doing anything
-e, --escape Escape control characters (Z)
-E, --rename rename any files already existing
--errors N generate CRC error every N bytes (debugging)
-h, --help Help, print this usage message
-m, --min-bps N stop transmission if BPS below N
-M, --min-bps-time N for at least N seconds (default: 120)
-O, --disable-timeouts disable timeout code, wait forever for data
--o-sync open output file(s) in synchronous write mode
-p, --protect protect existing files
-q, --quiet quiet, no progress reports
-r, --resume try to resume interrupted file transfer (Z)
-R, --restricted restricted, more secure mode
-s, --stop-at {HH:MM|+N} stop transmission at HH:MM or in N seconds
-S, --timesync request remote time (twice: set local time)
--syslog[=off] turn syslog on or off, if possible
-t, --timeout N set timeout to N tenths of a second
-u, --keep-uppercase keep upper case filenames
-U, --unrestrict disable restricted mode (if allowed to)
-v, --verbose be verbose, provide debugging information
-w, --windowsize N Window is N bytes (Z)
-X --xmodem use XMODEM protocol
-y, --overwrite Yes, clobber existing file if any
--ymodem use YMODEM protocol
-Z, --zmodem use ZMODEM protocol
short options use the same arguments as the long ones
sz 명령은 Send file(s) with ZMODEM/YMODEM/XMODEM protocol 입니다.
[root@ez-x5 /root]$ sz --help
sz version 0.12.20
Usage: sz [options] file ...
or: sz [options] -{c|i} COMMAND
Send file(s) with ZMODEM/YMODEM/XMODEM protocol
(X) = option applies to XMODEM only
(Y) = option applies to YMODEM only
(Z) = option applies to ZMODEM only
-+, --append append to existing destination file (Z)
-2, --twostop use 2 stop bits
-4, --try-4k go up to 4K blocksize
--start-4k start with 4K blocksize (doesn't try 8)
-8, --try-8k go up to 8K blocksize
--start-8k start with 8K blocksize
-a, --ascii ASCII transfer (change CR/LF to LF)
-b, --binary binary transfer
-B, --bufsize N buffer N bytes (N==auto: buffer whole file)
-c, --command COMMAND execute remote command COMMAND (Z)
-C, --command-tries N try N times to execute a command (Z)
-d, --dot-to-slash change '.' to '/' in pathnames (Y/Z)
--delay-startup N sleep N seconds before doing anything
-e, --escape escape all control characters (Z)
-E, --rename force receiver to rename files it already has
-f, --full-path send full pathname (Y/Z)
-i, --immediate-command CMD send remote CMD, return immediately (Z)
-h, --help print this usage message
-k, --1k send 1024 byte packets (X)
-L, --packetlen N limit subpacket length to N bytes (Z)
-l, --framelen N limit frame length to N bytes (l>=L) (Z)
-m, --min-bps N stop transmission if BPS below N
-M, --min-bps-time N for at least N seconds (default: 120)
-n, --newer send file if source newer (Z)
-N, --newer-or-longer send file if source newer or longer (Z)
-o, --16-bit-crc use 16 bit CRC instead of 32 bit CRC (Z)
-O, --disable-timeouts disable timeout code, wait forever
-p, --protect protect existing destination file (Z)
-r, --resume resume interrupted file transfer (Z)
-R, --restricted restricted, more secure mode
-q, --quiet quiet (no progress reports)
-s, --stop-at {HH:MM|+N} stop transmission at HH:MM or in N seconds
--tcp build a TCP connection to transmit files
--tcp-server open socket, wait for connection
-u, --unlink unlink file after transmission
-U, --unrestrict turn off restricted mode (if allowed to)
-v, --verbose be verbose, provide debugging information
-w, --windowsize N Window is N bytes (Z)
-X, --xmodem use XMODEM protocol
-y, --overwrite overwrite existing files
-Y, --overwrite-or-skip overwrite existing files, else skip
--ymodem use YMODEM protocol
-Z, --zmodem use ZMODEM protocol
short options use the same arguments as the long ones
[root@ez-x5 /root]$
2번째 방법은 NFS (Network File System) 을 이용하는 방법입니다.
이것은 network를 사용하므로 위의 시리얼을 사용하는 방법보다 훨씬 속도가 빠릅니다.
이 방법은 제공한 EZ-X5 책자의 개발환경 구축 부분을 보시면 나와 있습니다.
[ 참고 ]
만약 어플리케이션이 아닌 커널이미지, 램디스크이미지를 다운로드 할 경우에는 부트로더에서 다운로드를
해야 합니다. 커널이미지, 램디스크 이미지를 다운로드하기 위한 명령은 다음과 같습니다.
[ 부트로더에서 커널 이미지 다운로드 방법]
EZBOOT> zfk 또는 tfk
[부트로더에서 램디스크 이미지 다운로드 방법]
EZBOOT> zfr 또는 tfr
zfk, zfr 은 Zmodem을 이용한 다운로드입니다.
tfk, tfr은 TFTP를 이용한 다운로드 입니다.
- The board has a default IP address: 192.168.0.102 where do they set this? I would like to change this address, can they help me.
-->>> 부트로드에서 IP를 설정해 주시면 됩니다.
WELCOME EZBOOT.X5 V1.8...................for PXA255
Program by You Young-chang, fooji (FALinux Co.,Ltd)
Last Modify Feb 21 2007
Boot Flash Check ......................
Detect MX29LV400 (TOP)Flash : 22B9
SIZE 4M-BIT [512Kbyte]
NAND Chip Check .......................
Detect SAMSUNG [ec:76] 64MByte
BAD BLOCK SCAN -> Kernel, Ramdisk Bad Block [0]
CS8900 Init............................
Mac Address : [00 A2 55 F2 26 25]
Detect value : [3000:3000]
Chip ID : [0E63:000A]
Quickly Autoboot [ENTER] / Goto BOOT-MENU press [space bar]
EZBOOT>set
^^;
1. MAC Address [00:a2:55:f2:26:25]
2. LOCAL IP [192.168.10.155]
3. HOST IP [192.168.10.20]
4. Host tftp directory []
5. zImage file name [zImage.x5-480x272]
6. ram disk file name [ramdisk.x5-12M.gz]
7. boot loader file name [ezboot.x5]
A. Autoboot wait time [3]
B. Boot Menu Key [ ]
C. Copy Ramdisk [Y/N] [Y]
D. Architecture Number [303]
E. Serial FF/BT/ST(0/1/2) [2]
F. NAND-Partition MByte [1:5:58] (kernel:ramdisk:app)
W. Watchdog (sec, off=0) [0]
K. Kernel CMD 1st [initrd=0xa0800000,5M root=/dev/ram ramdisk=12288]
M. Kernel CMD 2nd [console=ttyS002,115200]
N. Kernel CMD 3rd []
L. Load Default
P. Apply & Exit
S. Save
0. Exit
Select >>2
2. LOCAL IP [192.168.10.155]
Newvalue : 192.168.0.102
^^;
1. MAC Address [00:a2:55:f2:26:25]
2. LOCAL IP [192.168.0.102]
3. HOST IP [192.168.10.20]
4. Host tftp directory []
5. zImage file name [zImage.x5-480x272]
6. ram disk file name [ramdisk.x5-12M.gz]
7. boot loader file name [ezboot.x5]
A. Autoboot wait time [3]
B. Boot Menu Key [ ]
C. Copy Ramdisk [Y/N] [Y]
D. Architecture Number [303]
E. Serial FF/BT/ST(0/1/2) [2]
F. NAND-Partition MByte [1:5:58] (kernel:ramdisk:app)
W. Watchdog (sec, off=0) [0]
K. Kernel CMD 1st [initrd=0xa0800000,5M root=/dev/ram ramdisk=12288]
M. Kernel CMD 2nd [console=ttyS002,115200]
N. Kernel CMD 3rd []
L. Load Default
P. Apply & Exit
S. Save
0. Exit
Select >>s
Erase : OK
Write : OK size=560
...Saved
^^;
1. MAC Address [00:a2:55:f2:26:25]
2. LOCAL IP [192.168.0.102]
3. HOST IP [192.168.10.20]
4. Host tftp directory []
5. zImage file name [zImage.x5-480x272]
6. ram disk file name [ramdisk.x5-12M.gz]
7. boot loader file name [ezboot.x5]
A. Autoboot wait time [3]
B. Boot Menu Key [ ]
C. Copy Ramdisk [Y/N] [Y]
D. Architecture Number [303]
E. Serial FF/BT/ST(0/1/2) [2]
F. NAND-Partition MByte [1:5:58] (kernel:ramdisk:app)
W. Watchdog (sec, off=0) [0]
K. Kernel CMD 1st [initrd=0xa0800000,5M root=/dev/ram ramdisk=12288]
M. Kernel CMD 2nd [console=ttyS002,115200]
N. Kernel CMD 3rd []
L. Load Default
P. Apply & Exit
S. Save
0. Exit
Select >>0
EZBOOT>
- When we create a directory or file on the board (example: /opt), it gets deleted if we restart the board. Do they use a RAMdisk? Where can we store information so that it will not be deleted when we restart.
--->> 부팅 후 /app 디렉토리를 사용하시면 리셋 후에도 데이타가 지워지지 않고 남아 있습니다.
Welcome to FALinux EZ-X5 ( www.falinux.com )
XScale(PXA255) Linux
ez-x5 login: root
[root@ez-x5 /root]$
[root@ez-x5 /root]$ df
Filesystem 1k-blocks Used Available Use% Mounted on
rootfs 11895 7959 3322 71% /
/dev/ram0 11895 7959 3322 71% /
/dev/mtdblock2 59376 4 59372 0% /app
[root@ez-x5 /root]$ cd /app
[root@ez-x5 /app]$ ls
lost+found
[root@ez-x5 /app]$
영문으로 바꾸시는 것은 직접하셨어 보내셔야 할 것 같네요... ( 위의 내용은 모두 제공한 EZ-X5 메뉴얼에 있는 내용입니다. )
참고하시기 바랍니다.
그럼 좋은 하루 되세요.