Forum Discussion

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

Problem running an application

Hi all,

I have built a hello world application with nios2 ide.

The application runs well if I copy the executable (hello.exe) and paste it onto a filesystem project (/bin) and upload the romfs.bin.

However, if I ftp the executable onto the target (/tmp), it does not run well.

I got the following error:

BINFMT_FLAT: reloc outside program 0x344000 (0 - 0x66fc/0x4140), killing hello.e

xe!

Does anyone know why??

Thanks in advance!

Kwok Wong

3 Replies

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

    Please verify if you ftp your files in ascii or binary mode. it should be binary ?!?

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

    I also have run into this problem, and aren't sure why. I have verified that I am transmitting in binary mode. I have just been recompiling the romfs each time to get around this.

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

    --- Quote Start ---

    originally posted by helmchen@Sep 5 2006, 10:33 AM

    please verify if you ftp your files in ascii or binary mode. it should be binary ?!?

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=18081)

    --- quote end ---

    --- Quote End ---

    You are right.

    I thought I have tried using binary mode to transfer file.

    Thank you.