Forum Discussion

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

about NET-SNMP port in nios2-uclinux

Hi all:

I want run a snmp agent in my product. My product use nios2 cpu with nios2 uclinux 2.6. What should I port NET-SNMP in nios2 uclinux?

3 Replies

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

    Have you tried simply crosscompiling?

    Usually it's enough to just recompile from source for the new architecture.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by wgoossens@Nov 3 2005, 02:55 AM

    have you tried simply crosscompiling?

    usually it's enough to just recompile from source for the new architecture.

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

    --- quote end ---

    --- Quote End ---

    I didn&#39;t do it.

    Becaue NIOS2 uCLINUX use NIOS2 5.0 IDE.

    Should I compile NET-SNMP souce code directly use NIOSW 5.0 IDE?

    Thanks a lot.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I&#39;m not sure how hard it is to do under cygwin...

    I *think* you should be able to run under linux:# ./configure --target=nios2-linux

    OR# ./configure --host=nios2-linux

    OR under cygwin I think it is:# ./configure --target=nios2-elf

    OR# ./configure --host=nios2-elf

    You probably have to add nios2 information to the config.sub file in the section which begins with:

    case $basic_machine in

    then you can make and make install as normal.

    But I never had much succes using cygwin, so if you have the chance get a linux machine with marc&#39;s crosscompiler (http://scorpius.homelinux.org/~marc/nios2.html)!!