Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12606 Discussions

Problem running an application

Altera_Forum
Honored Contributor II
936 Views

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
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
234 Views

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

0 Kudos
Altera_Forum
Honored Contributor II
234 Views

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.

0 Kudos
Altera_Forum
Honored Contributor II
234 Views

 

--- 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.
0 Kudos
Reply