Forum Discussion

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

linux

Hey,

Do you guys support a linux build environment for building nios2 uClinux applications? I'm currently trying to switch over to my linux workstation for all development (I'm getting tired of cygwin's being so anemic), and while I've got the IDE up the uClinux distribution is initially looking windows-specific. Am I missing something?

Many thanks.

1 Reply

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

    I've created a Linux specific build and compiler toolchain with gcc 3.4.3. I am in the process of testing this, but up till now, all looks fine.

    just

    $ ARCH=nois2nommu CROSS_COMPILE=nios2-linux-uclibc- make

    (for the kernel)

    $ ./configure --host=nios2-linux-uclibc
    $ make

    for userspace with autotools.

    etc, ...

    It links against uclibc instead of newlib which result in smaller binaries.

    http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/ph34r.gif Mail me if you&#39;re interested, I&#39;ll send the sources/archive of the toolchain.