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++
12605 Discussions

inetd or ftpd does not display file listing of directory

Altera_Forum
Honored Contributor II
1,572 Views

Hi, All! 

 

I use inetd & (how it is written in nioswiki) and the ftpd service work fine (about 2-2.5MB/s), but i am not able to perform dir or list - listing files of actual directory. 

Could you tell me why ? What could be set in inetd.conf or ftpd...? 

 

Thank you very much. 

 

Jan Naceradsky, Czech Republic
0 Kudos
16 Replies
Altera_Forum
Honored Contributor II
564 Views

hi naceradsky, 

 

I've got the same problem... 

What board do you use ?
0 Kudos
Altera_Forum
Honored Contributor II
564 Views

Hi, 

I use the Stratix II DSP Development Board - DK-DSP-EP2S180N now and before this on CycloneII NiosII development board i had had the same problem. 

 

Jan
0 Kudos
Altera_Forum
Honored Contributor II
564 Views

it's not a board problem. 

 

add the ls from the busybox and it works ;)
0 Kudos
Altera_Forum
Honored Contributor II
564 Views

I understand, that it si not a board problem, but i have add ls in Busybox in Coreutils, but it doesnt work ... i use sash shell. 

 

Jjan
0 Kudos
Altera_Forum
Honored Contributor II
564 Views

is there a "ls" in your /bin/ folder?

0 Kudos
Altera_Forum
Honored Contributor II
564 Views

 

--- Quote Start ---  

Ii use sash shell.Jjan 

--- Quote End ---  

sash provides ls as an internal command, so even if "ls" works in a script or on the command line, ftp needs ls to be a file based command (in /bin), (e.g. activated in busybox).  

 

BTW sash is depreciated, you should convert to msh (see Wiki). 

 

-Michael
0 Kudos
Altera_Forum
Honored Contributor II
564 Views

I have ls in /bin, but it is only link .... but when i use busybox, every commands, which i add in busybox, are links. 

Dont work in sash or msh shell, why ?  

Like ftp client use totalcommander. 

 

Jan
0 Kudos
Altera_Forum
Honored Contributor II
564 Views

 

--- Quote Start ---  

I have ls in /bin, but it is only link .... but when i use busybox, every commands, which i add in busybox, are links. 

--- Quote End ---  

 

All busybox generated commands are links to busybox. That is the "busybox trick". You don't need to bother, it just works (though slow, see the Wiki on "Haserl"). 

 

--- Quote Start ---  

Dont work in sash or msh shell, why ?  

--- Quote End ---  

I don't understand what you mean. 

 

--- Quote Start ---  

Like ftp client use totalcommander. 

--- Quote End ---  

You might try some decent Linux program, too, but of course TotalCommander should work if ls is decently enabled. 

-Michael
0 Kudos
Altera_Forum
Honored Contributor II
564 Views

Sorry, I mean, that ls was add in sash shell - it doesnt work and when i used msh shell with ls, it doesnt work too. 

I try any other linux program... 

I can try hush shell with ls in busybox. 

 

Jan
0 Kudos
Altera_Forum
Honored Contributor II
564 Views

what do you mean by "it does not work" Does ls work with the shell ? The shell has noting to do with if ls works for ftp or not.  

 

-Michael
0 Kudos
Altera_Forum
Honored Contributor II
564 Views

Hello, 

ls in all shell work. Listing in ftp client doesn´t work. 

Maybe the error is in other parts of uClinux. 

 

Jan
0 Kudos
Altera_Forum
Honored Contributor II
564 Views

 

--- Quote Start ---  

ls in all shell work. Listing in ftp client doesn´t work. 

--- Quote End ---  

 

This is a well known problem. many shells have ls as a built-in command. ftp needs ls as an executable (or link to an executable) in (if I remember correctly) "/bin.  

 

try  

/bin/ls 

 

and 

 

/bin/ls -l 

 

does this work ?  

--- Quote Start ---  

Maybe the error is in other parts of uClinux. 

--- Quote End ---  

 

Unlikely ! 

-Michael
0 Kudos
Altera_Forum
Honored Contributor II
564 Views

It works ! :-) 

 

Jan
0 Kudos
Altera_Forum
Honored Contributor II
564 Views

/bin/ls 

 

and 

 

/bin/ls -l 

 

works. 

 

Ftp dir (listing) doesn´t. 

 

Jan
0 Kudos
Altera_Forum
Honored Contributor II
564 Views

are you trying to use the command "dir" to show the listing of the ftp?

0 Kudos
Altera_Forum
Honored Contributor II
564 Views

In C:\Windows\system32\ftp.exe the command ls in ok, but only file or directory name without extended info about files. Dir or ls -l does not list anything. 

 

Jan
0 Kudos
Reply