Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

question about nios2 bin file

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.

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- 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.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.