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++
12743 Discussions

error running self compiled program

Altera_Forum
Honored Contributor II
1,036 Views

Hello, 

 

I compiled netcat with the nios2 toolchain. configure and make have done well. But when I try to ru the program I get the following error: 

BINFMT: bad magic/rev (0x3000000, need 0x4) 

What does this mean? Where is the problem?
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
349 Views

Did you convert it from elf to flat format, using elf2flt?

0 Kudos
Altera_Forum
Honored Contributor II
349 Views

no, http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/huh.gif  

 

the other problem is, when I run make, it runs the compiler for cywin. How can I use the nios toolchain instead?
0 Kudos
Reply