Forum Discussion

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

How to make applications run on nios2linux

Hi ,

How to make applications run on nios2linux by comman mount or ftpd.

because the kernel is romfs, I can't mount linux host and windows xp. I can't send files to filesystem by ftpd either.

Does somebody want to give a hand?

My QQ is 332418170. Waiting for you!!

15 Replies

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

    good, so you have the buildroot/gcc/uclibc/busybox successed?

    Use the mininal .config copied from the kernel.config or kernel2.config attached.

    Only change the console (either serial or jtag). DO NOT change any other setting. Change others only after you have a successful boot.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by hippo@Mar 10 2006, 09:46 AM

    good, so you have the buildroot/gcc/uclibc/busybox successed?

    use the mininal .config copied from the kernel.config or kernel2.config attached.

    only change the console (either serial or jtag). do not change any other setting. change others only after you have a successful boot.

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

    --- quote end ---

    --- Quote End ---

    Hi hippo.

    After I did, It likes follow:

    ~/buildroot/build_nios2/staging_dir/bin has tools .

    ~/buildroot/toolchain_build_nios2 has binutils-2.15 ,binutils-2.15-build,uClibc etd dirs.

    It&#39;s hard for me to make vmlinux.On sopc builder,I made a "nios2+jtag+onchipram+cfi+ext_flash" system, and get a ptf file.During config the kernel, I did what you said (oad kernel.config and just change the serial console to jtag). But it still can&#39;t succeed.

    The most errors are like :undefined reference to `__udivsi3&#39;

    undefined reference to `__modsi3&#39;

    Please give me some advice. is it because ptf file or config problems? I trid many ways , but failed.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    The problem should be in library binding. Which Linux distribution did you use?

    Do you have sdram on your board? you should run uclinux from it.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by hippo@Mar 10 2006, 08:59 AM

    hi mfm,

    we do it on linux with buildroot tools. jdhar and i had tried to do it on windows/cygwin but failed. that&#39;s the beginning of this story. http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/smile.gif

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

    --- quote end ---

    --- Quote End ---

    Hi hippo,

    after being unable to integrate my custom application in µClinux under windows http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/dry.gif I decided to take all the stuff under Linux (I can hear someone laughing http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/tongue.gif ) but I was shocked when I didn&#39;t found any quartus version for linux in our laboratory http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif and found only a nios II linux version, so now I&#39;m really in a big trouble. That&#39;s why I ask you if you can provide me with any little information on how to integrate the application in µClinux under windows I&#39;ll be infinitely gratefull.

    Warm Regards