- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Look in the nios wiki and work on Linux, http://nioswiki.jot.com/wikihome/operating...ms/%c2%b5clinux (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is GDB for that purpose.
But I don't use them. I would prefer debug by print.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page