我是PCPentiun机,在上面挂了个硬盘,想在Target上加载FTP_SERVER文件服务,我加载后连接看不到Target上的文件和目录。为什么???
谁能帮帮我?QQ:22915614
急急急!!!
我用的ata(硬盘)启动,加载VxWorks成功。VxWorks下Target上加载FTP_SERVER后,通过PC机连接后看不到目录和文件。只看到Target的名字:lizaojun:
下面是我启动时通过串口看到的:
VxWorks System Boot
Copyright 1984-2002 Wind River Systems, Inc.
CPU: PC PENTIUM Version: VxWorks5.5.1 BSP version: 1.2/3 Creation date: Nov 10 2004, 11:29:58
0x2d93dc (tBoot): sysNvRamGet: open failed
Press any key to stop auto-boot... 0 auto-booting...
boot device : ata=0,0 unit number : 0 processor number : 0 host name : lizaojun file name : /ata0/vxWorks inet on ethernet (e) : 10.10.0.100 host inet (h) : 10.10.0.70 user (u) : lizaojun ftp password (pw) : 760913 flags (f) : 0x0 target name (tn) : targetname other (o) : rtl
Attaching to ATA disk device... done. Loading /ata0/vxWorks...696272 Starting at 0x308000...
Attached TCP/IP interface to rtl unit 0 Attaching interface lo0...done
VxWorks
Copyright 1984-2002 Wind River Systems, Inc.
CPU: PC PENTIUM Runtime Name: VxWorks Runtime Version: 5.5 BSP version: 1.2/2 Created: Nov 10 2004, 11:44:35 WDB Comm Type: WDB_COMM_NETWORK WDB: Ready.
ftpd running...
Path is: lizaojun:
New Path is: lizaojun:
其中的最后三行时我自己在usrAppInit (void)后面加的:
char UserName[256] = "sanhuan"; char Password[256] = "123456"; char pw[256]; char *pPathName;
if ( ftpdInit( (FUNCPTR)NULL, 0 ) == OK ) printf( "ftpd running...\n" ); else printf( "ftpd failed!...\n" ); /* create Ftp user */ ioDefPathGet( pPathName ); printf( "\nPath is: %s\n", pPathName ); loginDefaultEncrypt( Password, pw ) ; loginUserAdd( UserName, pw ); ioDefPathSet( "/c:" ); ioDefPathGet( pPathName ); printf( "\nNew Path is: %s\n", pPathName );
通过LeapFTP2.7.4连接:User:sanhuan Password:123456 FTPServer:10.10.0.100
自己用的PC机的IP:10.10.0.70
最后看到的结果:
Connecting to 10.10.0.100, Port 21 (#1) Connected. Waiting for response. 220 VxWorks (VxWorks5.5) FTP server ready USER lizoajun 331 Password required PASS xxxxxx 230 User logged in SYST 500 Command not recognized REST 100 500 Command not recognized PWD 257 Current directory is "lizaojun:" TYPE A 200 Type set to A, ASCII mode PORT 10,10,0,70,5,108 200 Port set okay LIST 150 Opening ASCII mode data connection 550 No files found or invalid directory or permission problem
通过FlashFXP连接的结果:
WinSock 2.0 -- OpenSSL 0.9.7d 17 Mar 2004 [左] 正在连接到 10.10.0.100 -> IP=10.10.0.100 PORT=21 [左] 已连接到 10.10.0.100 [左] 220 VxWorks (VxWorks5.5) FTP server ready [左] USER sanhuan [左] 331 Password required [左] PASS (hidden) [左] 230 User logged in [左] SYST [左] 500 Command not recognized [左] FEAT [左] 500 Command not recognized [左] REST 100 [左] 500 Command not recognized [左] 该站点可能不允许文件续传 [左] PWD [左] 257 Current directory is "lizaojun:" [左] TYPE A [左] 200 Type set to A, ASCII mode [左] PASV [左] 227 Entering Passive Mode (10,10,0,100,4,0) [左] 正在打开数据连接 IP: 10.10.0.100 端口: 1024 [左] LIST -al [左] 150 Opening ASCII mode data connection [左] 550 No files found or invalid directory or permission problem [左] 列表错误 [左] PASV [左] 227 Entering Passive Mode (10,10,0,100,4,11) [左] 正在打开数据连接 IP: 10.10.0.100 端口: 1035 [左] LIST -al [左] 150 Opening ASCII mode data connection [左] 550 No files found or invalid directory or permission problem [左] 列表错误
谁能帮帮我吗?
QQ:22915614
Email:lizaojun76@163.com
非常感谢!!!!
有奖活动 | |
---|---|
【有奖活动】分享技术经验,兑换京东卡 | |
话不多说,快进群! | |
请大声喊出:我要开发板! | |
【有奖活动】EEPW网站征稿正在进行时,欢迎踊跃投稿啦 | |
奖!发布技术笔记,技术评测贴换取您心仪的礼品 | |
打赏了!打赏了!打赏了! |