This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Porting FTP Client/Server software to NDK

Hi,

One of our customer is using DM6437.
This is a very old project based on the below software.

NDK 2.0
CCS v3.3.81.6
BIOS 5.33.06
CGT v6.0.19

Currently we need to add FTP Client/Server feature to this application.
We understand that TFTP(client) only is supported on the NDK 2.0.

So we planning to port some open source FTP(RFC959) protocol to NDK 2.0.
We need some advice if it is possible to port the FTP protocol to NDK 2.0
and please let us know if there are any recommended middleware(third party if any) solutions on this.

Regards.
Prad

  • Prad,

    This should be possible.  I don't know of any third party solutions that you could use, off the top of my head.

    My first thought at how you should go about this would be to use the TFTP module as a model.  I would make a new "ftp" directory that sits next to the "ti/ndk/src/nettools/tftp" directory.  This new directory would be the placeholder for the code of your new "ftp" module that you are adding.

    Then, using the existing "tftp" as a model, I would see how it ties into the stack and, using the open source FTP code you have, add it into the "ftp" directory, and try to get it to build the same as the tftp directory does.

    One hurdle I can foresee is that the NDK 2.0.0 product did not ship with proper build scripts, but I believe NDK 2.0.1 did ship with them.

    I would recommend installing NDK 2.0.1, which has the build scripts.  Or, if possible, move to an even newer NDK, which has improved build scripts.  (NDK 2_20_07_36 is the latest release that still supports DSP/BIOS 5.x).

    Once you do that, try to following the steps of rebuilding the NDK as part of studying how it builds, and the scripts used to build it.

    Then, you could update the scripts to also build the new "ftp" directory, alongside "tftp" and the rest of the NDK.

    Steve

  • Hi Steve,

    Thank you very much for the details.
    And I am sorry for the delay.

    Few clarifications on the comments.

    You have mentioned about NDK 2.0.1 but I couldn't find in the dowload website.
    is it NDK 2.01.00 version downloadable from the below website?
    http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/ndk/index.html

    If possible could you please let me know, where do I find the details
    of the build scripts that you have mentioned.

    Regards
    Prad

  • Hi,

    There's this wiki showing how to rebuild NDK 2.20. Maybe it can help you.

    http://processors.wiki.ti.com/index.php/Rebuilding_the_NDK_Core

    Regards

    J

  • Prad,

    Prad1 said:
    You have mentioned about NDK 2.0.1 but I couldn't find in the dowload website.
    is it NDK 2.01.00 version downloadable from the below website?
    http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/ndk/index.html

    Yes, this is the correct version.  That was a typo in the version number in my previous post.  NDK 2.1.0 has build RTSC/XDC build scripts.  The main one is ti/ndk/package.bld.  You can find instructions for how to build in the NDK 2.1.0 release notes.

    Or, you can try to re-build NDK 2.20.x using the wiki that Johannes pointed out.

    Steve

  • Hello Prad

    I am also interested in adding FTP to the NDK.

    Did you end up getting this working?

    If so how difficult was it to attached 3rd party FTP code to the NDK?

    Thanks

    Barry