Forum Discussion

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

2 Replies

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

    Dear ZZH

    Now I have Porting a APPS into NIOS2 . I thinks i maybe help you .

    First we should thank the help of hippo . he tell me how to do it .

    Second you should develop nios2 in the linux ,not Windows IDE . beacuse it will give you the a ramdisk of kerner . how to create the toolchain . you can read the article of HIPPO . i will write a chinese version .

    I thinks we should use the windowsXP to develop . So many friend and me don't like use the X-Window system in linux . so i suggest you install the Vmware tool .you can install the Fedroa Core 4 in windows . ( i install the VMware Workstation.

    thirst you can get the next information in the article of HIPPO

    <div class='quotetop'>QUOTE </div>

    --- Quote Start ---

    11. Add user apps ported to uClinux from uClinux-dist.

    CODEcd ~/uClinux-dist-test

    make menuconfig

    In menuconfig, select

    Kernel/Library/Defaults Selection ---> [*] Customize Vendor/User Settings (NEW)

    Then <exit>,<exit>,<yes>.

    It will enter user apps select, make your selection.

    It has pre-selected, BOA(httpd), dhcpd, and net-snmp for testing.

    compile

    CODEmake subdirs

    copy apps to ~/rootfs

    CODEmake romfs

    cd romfs

    cp -a bin usr var ~/rootfs[/b]

    --- Quote End ---

    Fourth when you have finish create the Tool chain . you can find a directory ,it&#39;s name uClinux-dist-test in" ~/". here you can cd to the document of dir you will find a file "Add-User-apps -HOWTO ". Read it . you will find it is easy to port a apps in linux .

    have you fun !
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by zzh@Mar 8 2006, 08:24 AM

    hi ,

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

    because the kernel is romfs, i can&#39;t mount linux host and windows xp. i can&#39;t send files to filesystem by ftpd either.

    does somebody want to give a hand?

    my qq is 332418170. waiting for you!!

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

    --- quote end ---

    --- Quote End ---

    I&#39;ve never used ftpd ever , but I use NFS very efficiently. On the DE2 board , I use usb-blaster to download Image file under windows ,and at the same time another computer to builde and compile kernel or my own app under Linux throuht nfs (ethnet Interface),I use uclinux. It&#39;s very simple ,following hippo&#39;s particle step

    by step ,.you may try.

    And make sure that your firewall is disabled when you mount or ftpd.