- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm using a Stratus II development board, and have a new installation of Linux using Setup.
Referring to the Nios II Linux Quickstart Guide, I'm stuck on Building the kernel and receive the below error messages. I have checked the .config file and it's set for the Stratus II. 1) The first question is why is there a request to "make mrproper", and this is for a clean build? ------------------------------------------------ Microtronix Linux Extensions Version 1.4, Built June 20, 2005 ------------------------------------------------ make: Entering directory `/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x' no emulation specific options. Using /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x as source for kernel /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x is not clean, please run 'make mrproper' in the '/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x' directory. make[1]: *** [prepare2] Error 1 make: *** [_all] Error 2 make: Leaving directory `/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x' 2) I went to the specified directory .../linux-2.6.x and did a "make mrproper", but received new errors, as seen below. Any ideas on how to fix this? C:\altera\kits\nios2\bin\eclipse\plugins\com.microtronix.nios2linux.kernel_1.4.0 >cd linux-2.6.x C:\altera\kits\nios2\bin\eclipse\plugins\com.microtronix.nios2linux.kernel_1.4.0 \linux-2.6.x>make mrproper Makefile:531: /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix. nios2linux.kernel_1.4.0/linux-2.6.x/arch/i386/Makefile: No such file or director y gcc: not found gcc: not found make: *** No rule to make target `/cygdrive/c/altera/kits/nios2/bin/eclipse/plug ins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/arch/i386/Makefile'. St op. C:\altera\kits\nios2\bin\eclipse\plugins\com.microtronix.nios2linux.kernel_1.4.0 \linux-2.6.x>make mrproper C:\altera\kits\nios2\bin\eclipse\plugins\com.microtronix.nios2linux.kernel_1.4.0 \linux-2.6.x>Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't know how far the changes of the official release go, but unless you are compiling for your host architecture, you need to provide a cross compiler and a architecture.
e.g. suppose I am running on a ia32 machine and want to compile a kernel for my machine I am running on, then I would do($ make mrproper)
$ make oldconfig
$ make dep
$ make
$ make modules
All have a very good meaning (some are not absolutely needed in 2.6 kernels, but are provided here for completeness). mrproper removes ALL configuration of a previous build (back-up your .config if you want to keep it); you start from a clean slate. However, when I want to compile e.g. for PowerPC (run the kernel on a PowerPC, target) on my machine (which is still a ia32 arch), I need to provide more options: $ make ARCH=ppc CROSS_COMPILE=powerpc-linux- mrproper
etc ...
the ARCH matches a dir in the arch dir of the kernel sources and the CROSS_COMPILE is the prefix for the compiler. Since you did not provide any of them in the first example, the build system is going to assume that you want to compile for your host arch with the default compiler (gcc). Since you provided a CROSS_COMPILE setting in the second example, the build system is going to prepend powerpc-linux- to gcc so you're going to use the powerpc-linux-gcc compiler. The build system will also figure out that you need the gcc compiler for creating some minor tools and utilities to build your kernel for your target, and for that you'll need your host compiler (gcc). Since you are using a less than ideal kernel development environment, you get those errors (last I know, Windows does not ship with gcc out of the box). I also have no clue if you need gcc in the shipped version of the nios2 devkit. In any case, I assume you need to adjust the settings to match your target: IIRC for Wintendo $ make ARCH=nios2nommu CROSS_COMPILE=nios2-elf- mrproper
If you have questions like this (I've seen some along these lines over the last weeks), your first reaction should be the kernel build howto (http://www.digitalhermit.com/linux/kernel-build-howto.html)... This covers all the basic Linux kernel building questions. Also, search google for cross compiling. It will return some interesting info.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It looks like the cygwin extensions didn't install properly on your system... I say this because it can't find gcc, and it thinks you're trying to build an i386 architecture.
Can you send me the following info? (1) the contents of: c:\Program Files\Microtronix Nios II Linux Distribution\install_settings.cache (2) The value of the following SYSTEM environment variable: $QUARTUS_ROOTDIR (3) Where your altera nios2 kit was installed (typically c:\altera\kits\nios2) (4) Where you installed Quartus II v5.0 For point (2), start up a Nios II SDK shell and type: echo $QUARTUS_ROOTDIR to retrieve the value I'm looking for. I should be able to get you up and running with the above info...
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