Forum Discussion

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

uCLinux 2.6.12 in NIOS II-Microtronix IDE

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.

3 Replies