Forum Discussion

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

how to ftp file to board

I setup linux on the board. And my PC can access "ftp" and "http" directory in the flash of the board, howerver they can be only read. How to access the compact flash of the board using ftp service?

Thanks!

8 Replies

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

    Hi,

    Which board are you using?

    You can use a compact flash card and create a filesystem on it, as described in the Microtronix distribution document. Then you can mount the CF card under say /mnt/ide0 and write files to it.

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

    --- Quote Start ---

    originally posted by tlaskowski@Oct 19 2004, 04:50 PM

    hi,

    which board are you using?

    you can use a compact flash card and create a filesystem on it, as described in the microtronix distribution document. then you can mount the cf card under say /mnt/ide0 and write files to it.

    -thomas

    --- Quote End ---

    I am using stratix 1s40 professional board. Yes, I have already created a filesystem on compact flash and am able to access it from nios II system. However, I can not access compact flash by my PC. The document mentions that PC can access the filesystem by using ftp. I set up the ftp service on the board successfully. But my PC only can see two directory, ftp and http, which are the romfs system on flash. could you tell me how to access the compact flash card by PC?

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

    the problem has been solved. If use ftp command from windows, I can transfer the files to the board.

    I can not use cutftp software to do the transfer.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by cloud@Oct 19 2004, 10:21 PM

    the problem has been solved. if use ftp command from windows, i can transfer the files to the board.

    i can not use cutftp software to do the transfer.

    --- Quote End ---

    How do you solve this program?Would you like share with everybody?Thanks!
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    in windows, go to the directory where the files you want to transfter to the board and then type command: ftp "board ip address". In windows ftp command enviroment, go to the mounted compact flash partitions(be aware that you may need to change the mode of the partition to writable) and then type: put "the file name in the windows directory"(be careful that you need to set the file type before transfer under ftp command, such as command binary and accII etc. Use help to view the command functionality).

    The files can be easily transferred to compact flash.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    FYI, I have used LeechFtp sucessfully with the board, without having to use the command line ftp.

    You have to make sure you log in as a 'root' user in order to see all the directories.

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

    Re: Advanced FTP clients... (i.e. anything better than Windows 2000 FTP)

    Sometimes the advanced clients will tack on extra commandline parameters when communicating with the FTP server. I know for a fact that SmartFTP has a few extra parameters turned on when using the LS command that confuses the default ftp server shipped with Nios II Linux.

    So, if you're having problems with your favourite FTP client, take a look at the commands that its sending to the server. If you see any suspicious parameters being passed for various commands, turn them off and try again.

    Hope this helps...
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by tlaskowski@Oct 20 2004, 09:31 AM

    hi,

    fyi, i have used leechftp sucessfully with the board, without having to use the command line ftp.

    you have to make sure you log in as a 'root' user in order to see all the directories.

    -thomas

    --- Quote End ---

    Hi, Yes, I tried to log in using root. But I don't know the password for root. I only know the usr:nios and password: uClinux. Otherwise, I can transfer the file using ftp by IE directly. Could you tell me how to log in with root?

    thanks!