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

question about nios2 bin file

Altera_Forum
Honored Contributor II
949 Views

hi: 

 

I use nios2 toolchains compile a ap from open source.Compile success and make  

 

the bin file. 

 

I copy the bin file to ~/rootfs/bin, and rebuild kernel . I download zImage to dvb  

 

and exec , i execed the bin file,but fail. 

 

the erro informatin: the bad ......file 

 

I use nios2-linux-uclibc-flthdr ,nios2-linux-uclibc elf2flt cmd to exchanger the file 

 

format.But failed. 

 

How can I do?thanks a lot.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
283 Views

 

--- Quote Start ---  

originally posted by alex824@May 8 2006, 01:02 PM 

hi: 

 

i use nios2 toolchains  compile a ap from open source.compile success and make  

 

the bin file. 

 

i copy the bin file to ~/rootfs/bin, and rebuild kernel . i download zimage to dvb   

 

and exec , i execed the bin file,but fail. 

 

the erro informatin: the bad ......file 

 

i use nios2-linux-uclibc-flthdr ,nios2-linux-uclibc  elf2flt cmd to exchanger the file 

 

format.but failed. 

 

how can i do?thanks a lot. 

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

--- quote end ---  

 

--- Quote End ---  

 

You should add "-elf2flt" during objects linking. 

It won&#39;t work if you use them on an elf.
0 Kudos
Altera_Forum
Honored Contributor II
283 Views

If you didn&#39;t see the "CPIO" and "GZIP" in compile message, the initramfs is not updated. You will have to remove the file usr/initramfs_list in kernel dir, and compile again to force the update of initramfs.

0 Kudos
Reply