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

Why there is no response for my app on uclinux

Altera_Forum
Honored Contributor II
2,073 Views

I manage to make my code running on uclinux, but there is no response. 

just as follow: 

 

/>./test.bflt 

/> 

/> 

 

why does this happen? 

I build it on nios IDE for windows, and use 

# nios2-linux-uclibc-elf2flt test -R test.o 

 

to convert it to flat format. And got an error, reloc outside, then 

# nios2-linux-uclibc-flthdr -r test.bflt 

 

upload using ftp client in uclinux and run with no response? 

 

Is there some suggestion? 

thx
0 Kudos
6 Replies
Altera_Forum
Honored Contributor II
427 Views

I think if it did not run you would get an error stating that it was not an executable or something like that? 

 

What kind of output does it normally have?
0 Kudos
Altera_Forum
Honored Contributor II
427 Views

 

--- Quote Start ---  

originally posted by hippo@Jul 26 2006, 10:19 PM 

see the wiki, 

http://nioswiki.jot.com/wikihome/operating...ms/compilehello (http://nioswiki.jot.com/wikihome/operatingsystems/compilehello

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

--- quote end ---  

 

--- Quote End ---  

 

 

I want to port a C++ program to uclinux. But I can&#39;t find a way to compile it using the toolchain under linux. 

Could you suggest a clue?
0 Kudos
Altera_Forum
Honored Contributor II
427 Views

 

--- Quote Start ---  

originally posted by spaceli+jul 27 2006, 11:20 am--><div class='quotetop'>quote (spaceli @ jul 27 2006, 11:20 am)</div> 

--- quote start ---  

<!--quotebegin-hippo@Jul 26 2006, 10:19 PM 

see the wiki, 

http://nioswiki.jot.com/wikihome/operating...ms/compilehello (http://nioswiki.jot.com/wikihome/operatingsystems/compilehello

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

--- quote end ---  

 

--- Quote End ---  

 

 

I want to port a C++ program to uclinux. But I can&#39;t find a way to compile it using the toolchain under linux. 

Could you suggest a clue? 

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

[/b] 

--- Quote End ---  

 

The libstdc++, which I built with buildroot, still has problem to run. 

 

Microtronix sell a linux toolchain with C++ support .
0 Kudos
Altera_Forum
Honored Contributor II
427 Views

yeah, it seems NIOS2 IDE has stdlibc++, I compile it and use elf2flt to convert it to flat format. but it couldn&#39;t work. Sometimes it tell me reloc outside, sometimes no response. So I get confuse. Maybe CDK from Microtronix could help. 

thx for your clue. 

So there is no perfect way (of course for free-fee) to make a C++ toolchain,  

is it? 

 

By the way, does elf2flt -r means to run with out load? 

I&#39;m confuse about the parameters in elf2flt. 

And someone said elf2flt just strips the symbol and debug info from elf and make the header simple, is that right?
0 Kudos
Altera_Forum
Honored Contributor II
427 Views

1. the libstdc++ in IDE is for newlib, it can not run in uClinux. 

2. the elf2flt needs several steps, and there are some variation between arch. 

for nios2, you should use -elf2flt flag for linkage. 

it is difficult to use elf2flt and flthdr alone. 

3. it is possible to work out c++ with buildroot. The c++ is compiled and linked, but crashed after c++ func calls. ( I am not a c++ user, I can&#39;t fix the problem. ) . 

the tools from Microtronix costs $900, but I think it should be based on buildroot and should be GPL?
0 Kudos
Reply