Forum Discussion
Altera_Forum
Honored Contributor
14 years agoHi, Lanzones
I finally opted for using and old uClinux distribution (Linux version 2.6.19-uc1 from www.uclinux.org) and using also an old toolchain gcc version 3.4.6. You can get the tool from http://www.alterawiki.com/wiki/binarytoolchain you can decompress the archive http://www.niosftp.com/pub/gnutools/nios2gcc-20080203.tar.bz2 in any place you wish (i.e /opt/nios2-toolchain) You have to put in the 'path' the path to binaries in your bashrc file i.e: PATH_TOOLCHAIN_NIOS2=/opt/nios2-toolchain/build_nios2/staging_dir/bin/ PATH=$PATH:$PATH_TOOLCHAIN_NIOS2 export PATH to compile my old version of linux I have to do something like this: M_ARCH=nios2nommu M_SYSPTF=$M_DIR_BASE/ptf/NIOS.ptf # toolchain (builroot) M_TOOLCHAIN=/opt/nios2-toolchain/build_nios2/staging_dir/bin/nios2-linux- # hardware assign make ARCH=${M_ARCH} CROSS_COMPILE=${M_TOOLCHAIN} vendor_hwselect SYSPTF=${M_SYSPTF} # compile make ARCH=${M_ARCH} CROSS_COMPILE=${M_TOOLCHAIN} This is valid for old uClinux dist so you will have to tune for your distribution. good luck