Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

FTP Server Can't List File

Altera_Forum
Honored Contributor II
1,334 Views

Hi, All! 

 

The FTP server in the uClinux of our Nios II platform has worked successfully. But  

when I use the FlashFXP ftp client to list the exist file in the ftp server, I can't 

see anything. In actually, there are some files in the FTP server. If I access the FTP server in the MS-DOS mode, everything is OK! 

 

Could anybody tell me WHY!!!
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
597 Views

May i know how you access it in ms-dos prompt? 

 

C:\Documents and Settings\JWLAM>ftp 192.168.1.12 Connected to 192.168.1.12. 220- Welcome to the uClinux ftpd! 220 uClinux FTP server (GNU inetutils 1.4.1) ready. User (192.168.1.12:(none)): ftp 500 'USER ftp': command not understood. Login failed. ftp> quit 500 'USER ftp': command not understood. C:\Documents and Settings\JWLAM> 

 

i keep getting this error no matter wat i input. Pls advise. 

 

Thx!
0 Kudos
Msg06484
Beginner
128 Views

Hi,

I got the iniche to work with the ucossi.

I am trying to start the FTP server.

I get strange answers such as

 

PS C:\Users\123> ftp 192.168.xxx.xxx

Connected to 192.168.xxx.xxx.

220 Service ready

500 Unsupported command

User (192.168.xxx.xxx:(none)): guest

Connection closed by remote host.

PS C:\Users\123> ftp 192.168.xxx.xxx

Connected to 192.168.xxx.xxx.

220 Service ready

500 Unsupported command

User (192.168.xxx.xxx:(none)): anonymous

Connection closed by remote host

 

I am not sure why it is doing that.

I do not have any sample code to get this to work.

Essentially I figured out how to get the FTP_SERVER preprocessor define into the bsp, then added a call to ftps_init();

There may be more I need to do.

Any suggestions would help thanks.

Martin 

0 Kudos
Altera_Forum
Honored Contributor II
597 Views

 

--- Quote Start ---  

originally posted by jwlam@Mar 2 2007, 12:06 AM 

may i know how you access it in ms-dos prompt? 

 

c:\documents and settings\jwlam>ftp 192.168.1.12 connected to 192.168.1.12. 220- welcome to the uclinux ftpd! 220 uclinux ftp server (gnu inetutils 1.4.1) ready. user (192.168.1.12:(none)): ftp 500 'user ftp': command not understood. login failed. ftp> quit 500 'user ftp': command not understood. c:\documents and settings\jwlam> 

 

i keep getting this error no matter wat i input. pls advise. 

 

thx! 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=21955)</div> 

--- Quote End ---  

 

 

In MS-DOS mode: 

 

ftp 192.168.0.192 

 

Connected to 192.168.0.192. 

220- Welcome to the uClinux ftpd! 

220 uClinux FTP server (GNU inetutils 1.4.1) ready. 

User (192.168.0.192:(none)): anonymous 

331 Guest login ok, type your name as password. 

Password: 

230 Guest login ok, access restrictions apply. 

ftp> ls 

200 PORT command sucessful. 

550 No files found. 

ftp> quit 

221 Goodbye.
0 Kudos
Altera_Forum
Honored Contributor II
597 Views

ftp 192.168.1.12 Connected to 192.168.1.12. 220- Welcome to the uClinux ftpd! 220 uClinux FTP server (GNU inetutils 1.4.1) ready. User (192.168.1.12:(none)): anonymous 500 &#39;USER anonymous&#39;: command not understood. Login failed. ftp> quit 500 &#39;USER anonymous&#39;: command not understood. 

i keep getting the &#39;command not understood&#39; error. mind to help me check if my settings below are correct? 

 

/> netstat -a Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address           Foreign Address         State tcp        0      0 *:http                  *:*                     LISTEN tcp        0      0 *:ftp                   *:*                     LISTEN tcp        0      0 *:telnet                *:*                     LISTEN Active UNIX domain sockets (servers and established) Proto RefCnt Flags       Type       State         I-Node Path /> cat /etc/group root:x:0: ftp:x:50: /> cat /etc/passwd root:x:0:0:root:/:/bin/sh ftp:x:14:50:FTP User:/home/ftp: /> 

Thx!
0 Kudos
Altera_Forum
Honored Contributor II
597 Views

hi ganssle, 

i can login to the ftp server now. but i also cant list files. have u found any solution to that? 

 

Regards
0 Kudos
Reply