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

Filesystem Sync w/ FTP

Altera_Forum
Honored Contributor II
1,508 Views

I'd like to update files on my onboard flash via FTP. I have my flash mounted as ext2 at startup. I can FTP to the board and send my files, but I can't find a way to synchronize the filesystem without a command line (via telnet or JTAG -- by issuing 'sync'). In production a command line is out of the question. Without a sync, the filesystem becomes corrupt on a reboot or power cycle. So, questions: 

 

1) Is there a way to issue a 'sync' command via a Windows FTP client to the Nios FTPD? I'm guessing no after a cursory inspection of the cl options. 

2) If no, any recommendations? Surely someone else needs this. Where can I get the source to Nios ftpd? Is it stock GNU code? Is there a different FS type that would have this problem? 

 

 

Thanks in advance, 

 

Ryan 

Quantapoint
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
490 Views

Hi rfrenz, 

 

> If no, any recommendations? 

 

Can you use jffs2 rather than ext2? I believe it handles such issues by design. 

 

Regards, 

--Scott
0 Kudos
Altera_Forum
Honored Contributor II
490 Views

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

Can you use jffs2 rather than ext2? I believe it handles such issues by design.[/b] 

--- Quote End ---  

 

 

This works. Thanks, Scott.
0 Kudos
Reply