Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

uCLinux 2.6.12 in NIOS II-Microtronix IDE

Altera_Forum
Honored Contributor II
1,265 Views

I want to use NIOS II IDE under Windows to debug linux-2.6.12. 

(It could be the same for other kernels) 

I succeded to compile it under Linux and it works but I want to modify kernel for my applications. 

 

 

nios ii ide : 

I downloaded sources linux-2.6.12-0.2.tar.bz2. 

I renamed it in the directory com.microtronix.nios2linux.kernel_1.4.0 

linux-2.6.12 -----> linux-2.6.x. 

 

I added : dos2unix $(depfile); in ./Makefile, ./scripts/Makefile.build, ./scripts/Makefile.lib 

I didn't modify : depmod_opts := -b $(INSTALL_MOD_PATH)/lib/modules -r 

 

Then, I created a new microtronix kernel project. 

When I launched Configure kernel, nothing happens. 

So I tried the command configure.bat in a SDK Shell 

 

c:/quartus51/bin/cygwin/bin/bash.exe -c "source $QUARTUS_ROOTDIR/sopc_builder/bin/nios_sh; source $SOPC_KIT_NIOS2/user.bashrc; KERNEL_PROJECT=C:/christophe/Noyau/LinuxAdeosWin/kernel; make -C `cygpath -u c:/altera/kits/nios2_51/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1 

.4.0/linux-2.6.x/` O=`cygpath -u C:/christophe/Noyau/LinuxAdeosWin/kernel/build 

` menuconfig; " 

 

I've got this message of errors 

[SOPC Builder]$ make menuconfig 

no emulation specific options. 

HOSTCC scripts/basic/fixdep 

scripts/basic/.fixdep.d: done. 

HOSTCC scripts/basic/split-include 

scripts/basic/.split-include.d: done. 

HOSTCC scripts/basic/docproc 

scripts/basic/.docproc.d: done. 

HOSTLD scripts/kconfig/mconf 

scripts/kconfig/zconf.tab.o(.text+0x924e):zconf.tab.c: undefined reference to `_ 

imp__gettext' 

scripts/kconfig/zconf.tab.o(.text+0x9b60):zconf.tab.c: undefined reference to `_ 

imp__gettext' 

scripts/kconfig/zconf.tab.o(.text+0xe0a6):zconf.tab.c: undefined reference to `_ 

imp__gettext' 

collect2: ld returned 1 exit status 

make[1]: *** [scripts/kconfig/mconf] Error 1 

make: *** [menuconfig] Error 2 

 

I did the same under NIOS II SDK Shell. 

 

 

nios ii sdk shell 

 

I copied .config and linux.ptf in my kernel directory. 

I use the following commands, slightly different as linux ones. 

>> make hwselect SYSPTF=./linux.ptf 

>> make menuconfig 

 

Linux Kernel v2.6.12-uc0 configuration window opens, and I can make my configuration. 

 

------ 

 

* Is it possible to do all the configuration and build of linux-2.6.12 under NIOS II-Microtronix IDE? 

* Which files do we have to modify? 

* Is there a moan to use linux-2.6.12 instead of linux-2.6.x? 

 

Thank you in advance for your help.
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
525 Views
0 Kudos
Altera_Forum
Honored Contributor II
525 Views

Thank you for your answer, 

 

Yes, indeed. Linux is better to developp or modify kernel. 

 

I would like to use NIOS II-Microtronix IDE because of the very efficient tool to debug include in it. 

I would like to import kernel source and add breakpoints in differents files entry.S, main.c, watch and poll registers... 

Could we do the same under Linux?
0 Kudos
Altera_Forum
Honored Contributor II
525 Views

There is GDB for that purpose. 

But I don't use them. I would prefer debug by print.
0 Kudos
Reply