Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

Filesystem Sync w/ FTP

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

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi rfrenz,

    > If no, any recommendations?

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

    Regards,

    --Scott
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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