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

A problem when cross compile?

Altera_Forum
Honored Contributor II
1,057 Views

I write a simple “hello world” c program,and in linux using the following command 

code:# nios2-linux-uclibc-gcc -elf2flt -o hello hello.c# file hello 

hello : data 

 

why the format of \"hello\" isn\'t flat ? I download it to uclinux,and run ./hello ,it outputs \"permission dennied\",so what\'s my problem ? the excutable format on uclinux is flat,isn\'t it?
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
369 Views

the wiki is updated, 

"file" doesn't know about nios2 flat format. 

 

check on uclinux, ls -l /bin/hello
0 Kudos
Altera_Forum
Honored Contributor II
369 Views

I have tried as you told me ,however I can\'t see its format,and also \"./bin/hello\" is refused,\"permission denied\".Is the steps I follow right? 

 

--- Quote Start ---  

originally posted by hippo@Jul 30 2006, 12:41 PM 

the wiki is updated, 

\"file\" doesn\'t know about nios2 flat format. 

 

check on uclinux, ls -l /bin/hello 

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

--- quote end ---  

 

--- Quote End ---  

0 Kudos
Reply