- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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? thxLink Copied
6 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- 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't find a way to compile it using the toolchain under linux. Could you suggest a clue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- 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'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 .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yeah, it seems NIOS2 IDE has stdlibc++, I compile it and use elf2flt to convert it to flat format. but it couldn'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'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?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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't fix the problem. ) . the tools from Microtronix costs $900, but I think it should be based on buildroot and should be GPL?
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page