Forum Discussion
Altera_Forum
Honored Contributor
21 years agobuild uclinux kernel problem
hello everyone :
I download Linux 2.6 Distribution for Nios II from this website and installed to my computer, I created a linux kernel project follow the quick_start_guide.pdf, when I build the project, it show errors as follow: ------------------------------------------------ Microtronix Linux Extensions Version 1.1, Built Wed Jul 7 12:46pm EST 2004 ------------------------------------------------ make: Entering directory `/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x' /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x/Makefile:405: .config: No such file or directory Using /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x as source for kernel CHK include/linux/version.h 9: not found UPD include/linux/version.h SYMLINK include/asm -> include/asm-nios2nommu HOSTCC scripts/basic/fixdep /usr/local/bin/ld: cannot open crt0.o: No such file or directory collect2: ld returned 1 exit status make[3]: *** [scripts/basic/fixdep] Error 1 make[2]: *** [scripts_basic] Error 2 make[1]: *** [include/linux/autoconf.h] Error 2 make: Leaving directory `/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x' make: *** [all] Error 2 who can help me . thank you.6 Replies
- Altera_Forum
Honored Contributor
Open up a Nios II SDK Shell and give the command: "umount /usr/lib" and after that try again.
This fixed the problem for me. This problem has been encountered before and if the trick above does not help you, you can check out the answers I got when I asked about this in the General discussions. (Search general discussions for "Problem configuring kernel" and make sure you include posts older than 30 days too) -Tervis - Altera_Forum
Honored Contributor
Hi Tervis, I "umount /usr/lib" as you said and solved my problem, thank you very much. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/laugh.gif
--sarah - Altera_Forum
Honored Contributor
Hello everyone,
I have a problem similarly to Sarah problem. In particularly, during the building of the project, I’ve received the error message: Kind Status Priority Description Resource In Folder Location Error *** output directory "/cygdrive/d/altera/kits/nios2/bin/eclipse/workspace/kernel_1s10/build" does not exist. Stop.[Makefile] kernel_1s10 line 92 Is it possible that the problems depend on that I have installed Quartus on D disk? Moreover, the dos window is not as showed in the “microtronix nios II quick starting guide” during the Kernel configuration. I’ve tried to write “umount: /usr/lib” in the niosII sdk shell but the message is “umount: /usr/lib: No such file on directory” although I can the directrory “ ls /usr/lib”. Have I to reinstall the quartus in the “c:\altera\quartus41 directory”? Have I to copy the “"D:\altera\kits\nios2\” in another directory? Can someone help me? Thank you. - Altera_Forum
Honored Contributor
Hi, I'll attempt to re-create the problem and get back to you regarding this issue. Give me a day or so to setup a system here.
- Altera_Forum
Honored Contributor
Damn, I'm really sorry, I haven't been able to get around to setting up the environment here to help you out.
I'll see if I can get a response out today sometime. My apologies. - Altera_Forum
Honored Contributor
I've reinstalled the quartusII , niosII and mictotonix niosII in C disk.
Now it works correctly. Thank you Fabio P.