Altera_Forum
Honored Contributor
21 years agoCompiling Nios II Linux Distribution v1.1
After upgrading to Quartus II 4.0 + SP1, the NIOS II core (eval version), and the NIOS II Linux distribution v1.1, I am struggling to compile the kernel for my Cyclone EP1C20. I’ve followed the quick start guide to the letter but no joy at all.
The NIOS II IDE briefly opens a command line window (e:\quartus\bin\cywin\bash.exe) but it never goes to the menuconfig. I’ve installed cygwin and added e:\cygwin\bin to my path, but when in the NIOS II SDK shell the gcc command is still not recognized. This led me to believe that SOPC Builder 4.0 cannot compile or make anything on its own. ( linux wise, nios2-build works fine ) What am I missing? How do I integrate a compiler? Is there a way to compile the kernel from the NIOS II SDK, I’m still getting used to the IDE - but I think it works cool though. The configure.bat file: @start E:/quartus/bin/cygwin/bin/bash.exe -c "source $QUARTUS_ROOTDIR/sopc_builder/bin/nios_sh; source $SOPC_KIT_NIOS2/user.bashrc; KERNEL_PROJECT=c:/altera/kits/nios2/bin/eclipse/workspace/kernel_1c20; make -C `cygpath -u C:/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x` O=`cygpath -u c:/altera/kits/nios2/bin/eclipse/workspace/kernel_1c20/build` menuconfig; " Any help would be cool I’m sure I\m just missing something but for the life of me I don’t know what. It may even be a complete software package but I don’t have a clue at this stage. Thanks to all.