Forum Discussion
Altera_Forum
Honored Contributor
21 years agoSuccess!
Thank you very much for your help. I followed your lead and used the c,c++ compiler options for newlib. I don't know if this fixed the problem. I tend to think that all along it was just more carriage returns getting in the way. Your new script worked great. I now have the tools all built on my Linux box. The next issue I'm facing is getting compiled programs to run on my nios2 development board. A couple of the programs are: "cpuload" and "uart_send". I've created a few small programs, but when I try to run them on the target I get the following errors: -------------------------------------# ./cpuload & BINFMT_FLAT: bad magic/rev (0x10101ff, need 0x4) BINFMT_FLAT: bad magic/rev (0x10101ff, need 0x4) 27# ^ELF@@@^: not found # ./uart_send & BINFMT_FLAT: bad magic/rev (0x10101ff, need 0x4) BINFMT_FLAT: bad magic/rev (0x10101ff, need 0x4) 29# ^ELF@@@^: not found ------------------------------------ I couldn't copy some of the symbols verbatim. The ^ is actually a triange and the @ is actually a smiley face. Anyway, they are just binary. I am going to try again but this time compile them statically so I'll know if it is a compiler or a library problem.