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++

build uclinux kernel problem

Altera_Forum
Honored Contributor II
2,038 Views

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.
0 Kudos
6 Replies
Altera_Forum
Honored Contributor II
533 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
533 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
533 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
533 Views

Hi, I&#39;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.

0 Kudos
Altera_Forum
Honored Contributor II
533 Views

Damn, I&#39;m really sorry, I haven&#39;t been able to get around to setting up the environment here to help you out. 

 

I&#39;ll see if I can get a response out today sometime. 

 

My apologies.
0 Kudos
Altera_Forum
Honored Contributor II
533 Views

I&#39;ve reinstalled the quartusII , niosII and mictotonix niosII in C disk. 

Now it works correctly. 

Thank you 

Fabio P.
0 Kudos
Reply