LinuxÏÂrz/sz°²×°¼°Ê¹Ó÷½·¨
1) ¹¤¾ß˵Ã÷
ÔÚSecureCRTÕâÑùµÄsshµÇ¼Èí¼þÀï, ͨ¹ýÔÚLinux½çÃæÀïÊäÈërz/szÃüÁîÀ´ÉÏ´«/ÏÂÔØÎļþ. ¶ÔÓÚRHEL5, rz/szĬÈÏûÓа²×°ËùÒÔÐèÒªÊÖ¹¤°²×°.
sz: ½«Ñ¡¶¨µÄÎļþ·¢ËÍ(send)µ½±¾µØ»úÆ÷;
rz£ºÔËÐиÃÃüÁî»áµ¯³öÒ»¸öÎļþÑ¡Ôñ´°¿Ú, ´Ó±¾µØÑ¡ÔñÎļþÉÏ´«µ½·þÎñÆ÷(receive).
ÏÂÔØ°²×°°ülrzsz-0.12.20.tar.gz: http://www.ohse.de/uwe/software/lrzsz.html
2) Èí¼þ°²×°
Ê×ÏÈͨ¹ýsftp¹¤¾ß°Ñ°²×°ÎļþÉÏ´«µ½/tmpĿ¼ÏÂ.
# cd /tmp
# tar zxvf lrzsz-0.12.20.tar.gz && cd lrzsz-0.12.20
# ./configure && make && make install
ÉÏÃæ°²×°¹ý³ÌĬÈÏ°ÑlszºÍlrz°²×°µ½ÁË/usr/local/bin/Ŀ¼ÏÂ, ÏÂÃæ´´½¨ÈíÁ´½Ó, ²¢ÃüÃûΪrz/sz:
# cd /usr/bin
# ln -s /usr/local/bin/lrz rz
# ln -s /usr/local/bin/lsz sz
3) ʹÓÃ˵Ã÷
´ò¿ªSecureCRTÈí¼þ -> Options -> session options -> X/Y/Zmodem Ï¿ÉÒÔÉèÖÃÉÏ´«ºÍÏÂÔصÄĿ¼; È»ºóÔÚÓÃSecureCRTµÇ½linuxÖն˵Äʱºò:
# sz filename (·¢ËÍÎļþµ½¿Í»§¶Ë,zmodem½ÓÊÕ¿ÉÒÔ×ÔÐÐÆô¶¯)
# rz (´Ó¿Í»§¶ËÉÏ´«Îļþµ½linux·þÎñ¶Ë)
:)
Ïà¹ØÎĵµ£º
1. Linux ½Å±¾±àд»ù´¡
1.1 Óï·¨»ù±¾½éÉÜ
1.1.1 ¿ªÍ·
³ÌÐò±ØÐëÒÔÏÂÃæµÄÐпªÊ¼£¨±ØÐë·½ÔÚÎļþµÄµÚÒ»ÐУ©£º
#!/bin/sh
¡¡¡¡·ûºÅ#!ÓÃÀ´¸æËßϵͳËüºóÃæµÄ²ÎÊýÊÇÓÃÀ´Ö´ÐиÃÎļþµÄ³ÌÐò¡£ÔÚÕâ¸öÀý×ÓÖÐÎÒÃÇʹÓÃ/bin/shÀ´Ö´ÐгÌÐò¡£
¡¡¡¡µ±±à¼ºÃ½Å±¾Ê±£¬Èç¹ûÒªÖ´Ðиýű¾£¬»¹±ØÐëʹÆä¿ÉÖ´ÐС£
¡¡¡¡ÒªÊ¹½Å±¾¿ÉÖ´ÐУº
±àÒ ......
linuxϵÄÎļþ½á¹¹£¬¿´¿´Ã¿¸öÎļþ¼Ð¶¼ÊǸÉÂðÓõÄ
/bin ¶þ½øÖÆ¿ÉÖ´ÐÐÃüÁî
/dev É豸ÌØÊâÎļþ
/etc ϵͳ¹ÜÀíºÍÅäÖÃÎļþ
/etc/rc.d Æô¶¯µÄÅäÖÃÎļþºÍ½Å±¾
/home Óû§Ö÷Ŀ¼µÄ»ùµã£¬±ÈÈçÓû§userµÄÖ÷Ŀ¼¾ÍÊÇ/home/user£¬¿ÉÒÔÓÃ~user±íʾ
/lib ±ê×¼³ÌÐòÉè¼Æ¿â£¬Óֽж¯Ì¬Á´½Ó¹²Ïí¿â£¬×÷ÓÃÀàËÆwindowsÀïµÄ.dllÎļþ
/ ......
i
nt send( SOCKET s, const char FAR *buf, int len, int flags );
²»ÂÛÊÇ¿Í»§»¹ÊÇ·þÎñÆ÷Ó¦ÓóÌÐò¶¼ÓÃsendº¯ÊýÀ´ÏòTCPÁ¬½ÓµÄÁíÒ»¶Ë·¢ËÍÊý¾Ý¡£
¿Í»§³ÌÐòÒ»°ãÓÃsendº¯ÊýÏò·þÎñÆ÷·¢ËÍÇëÇ󣬶ø·þÎñÆ÷Ôòͨ³£ÓÃsendº¯ÊýÀ´Ïò¿Í»§³ÌÐò·¢ËÍÓ¦´ð¡£
¸Ãº¯ÊýµÄµÚÒ»¸ö²ÎÊýÖ¸¶¨·¢ËͶËÌ ......
ÉÕд2410£S linux ²Ù×÷ϵͳ£º
ÔÚwindows xpϽøÐУ¬ÐèÒªµÄÎļþÔÚ¹âÅÌÖеÄimgĿ¼ºÍflashviviĿ¼ÏÂÌṩ¡£
ÉÕд2410£S linux ²Ù×÷ϵͳ°üÀ¨ÉÕдvivi,kernel,rootÈý¸ö²½Ö裬³ý´ËÎÒÃÇ»¹ÒªÉÕдyaffs.tar£¬ÕâËĸöÎļþÔÚimgĿ¼ÖС£
vivi ----linux²Ù×÷ϵͳÆô¶¯µÄbootloader;
zImage----linu ......