Forum Discussion

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

howto build an executable file for ftp to ram

I can compile an application, say "hello world", place it in my flash file system, and all is well. It runs fine. But if I ftp that same executable file into the ram fs (/var). It crashes, I think because the addressing in the executable is outside of the flash addressing range. I thought that I only needed to enable the -r flag during the compile/link. But I see that is already turned on. Thanks in advance. Alex

2 Replies

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

    Alex,

    I can download LeechFTP v1.3 and setup it in windows2000.Then set the usename and password as same as your board login name.(for example: usename:root;password:uClinux ).Set Host or URL as same as

    your board IP(It must be in the same network as your PC) and Port is 21.

    It FTP your board easy,have luck!

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

    I don't think there are problems in using ftp to upload executables to /var, as long as the executables can fit in the ramdisk. Make sure binary format, not ascii, is used when you upload the executable.