Forum Discussion
Altera_Forum
Honored Contributor
21 years agonewbie to uClinux, having install problem
Hello,
This is my first attempt with installing uClinux1.3. I am using Quartus 4.1 SP2 and nios II 1.01 currently. I am trying to run this on a stratix2s60 altera dev kit. When installing the uClinux1.3 it says it had some problem installing the cygwin extension and that i need to read some readme file to manually install it. I cannot find this readme file that talks about this yet. When I try to execute the install_cyg_ext.sh located in the supplemental directory of the uClinux install folders, it says it cannot find the install_setting.cache file. Since the cyg_extensions were not installed correctly, I was not able to follow the tutorials to getting a kernel configured nor compiled. How can I get the install to completely finish the install process? thanx, -Quan12 Replies
- Altera_Forum
Honored Contributor
Hi, the readme file can be accessed through the Start -> Programs -> Microtronix -> Nios II Linux Distribution -> Documentation.
Sorry for the late reply, we've been in the middle of a move and I'm just now starting to catch up with the Nios Forum... are you still experiencing difficulty? If you are still having problems with the cygwin extensions, pass me the following information and I can tell you how to manually install it. (1) Location of the Altera Nios II Distribution (defaults to c:\altera\kits\nios2) (2) Location of Quartus II (defaults to c:\altera\quartus42) (3) value of QUARTUS_ROOTDIR environment variable I think that's all I'll need to help you out. - Altera_Forum
Honored Contributor
Hi Ken,
I've just received the Nios2 v1.1 upgrade and installed that and then re-installed the uClinux v1.3 along with Quartus II v4.2. I do not experience the problem any more but still is related is that I cannot configure the kernel. A message pops up and goes away pretty quick, but I can make out some of the message. It was complaining about a missing file, first it was user.bashrc. I copied over an older user.bashrc file. Then at some other point, it was complaining about not haing a cr0t.0 file or something like that when it tried to perform an ld command. Below are the answers to your previous question, just incase it will help me out. (1) Location of the Altera Nios II Distribution (defaults to c:\altera\kits\nios2) C:\altera\kits\nios2 (2) Location of Quartus II (defaults to c:\altera\quartus42) C:\altera\quartus42 (3) value of QUARTUS_ROOTDIR environment variable C:\altera\quartus42 -Quan - Altera_Forum
Honored Contributor
I also have a similar problem. I started a new project this week, so I removed QuartusII 4.1, NiosII 1.01, and uClinux 1.2 off of my machine. Started off clean with QuartusII 4.2 SP1, NiosII 1.1, and uClinux 1.3. The Quartus and Nios IDE environments seem to be working correctly; however, when I installed uClinux 1.3 I received 2 errors at the end of the installation. Both were looking for cygwin.dll, and were unable to do so.
After several attempts, I tried to go back to uClinux 1.2. No luck here, it is specifically looking for NiosII 1.01. I tried the installation again, this time using add/remove programs instead of using "Run" from the start button. Perhaps this is the way you're supposed to do it anyway, please excuse my ignorance of windows. Anyway, the installtion went fine this time, no reported errors. When I try to "configure kernel." I also get an error that is too fast to catch. My user.bashrc reflects Version 1.3, Built December 30th, 2004. - Altera_Forum
Honored Contributor
I should have known better!!!!
Shut it all down and reboot. Open it all back up and off you go!! - Altera_Forum
Honored Contributor
Hello dcurry,
I've tried your suggestions with the re-install and rebooting. I've even gone as far as using regedit to find any instance of the linux distribution keys and removed them, rebooted, re-installed uclinux v1.3 and then rebooting. Still no good. Below is a capture of the output of the configure.bat file that is supposed to bring up the kernel config menu. The only thing left I can see that I have not tried is to totally un-install ALL of nios kits and quartus on my computer and then re-installing from scratch. That measure is quite extreme for me and will only perform if there is no choice left. -Quan <div class='quotetop'>QUOTE </div> --- Quote Start --- C:\altera\kits\nios2\examples\verilog\niosII_stratixII_2s60_ES\full_featured_qh software\kernel>C:/altera/quartus42/bin/cygwin/bin/bash.exe -c "source $QUARTUS_ ROOTDIR/sopc_builder/bin/nios_sh; source $SOPC_KIT_NIOS2/user.bashrc; KERNEL_PRO JECT=C:/altera/kits/nios2/examples/verilog/niosII_stratixII_2s60_ES/full_feature d_qh/software/kernel; make -C `cygpath -u C:/altera/kits/nios2/bin/eclipse/plugi ns/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x` O=`cygpath -u C:/altera/ kits/nios2/examples/verilog/niosII_stratixII_2s60_ES/full_featured_qh/software/k ernel/build` menuconfig; " ------------------------------------------------ Microtronix Linux Extensions Version 1.3, Built December 30th, 2004 ------------------------------------------------ make: Entering directory `/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com. microtronix.nios2linux.kernel_0.1.5/linux-2.6.x' HOSTCC scripts/basic/fixdep /usr/local/bin/ld: cannot open crt0.o: No such file or directory collect2: ld returned 1 exit status make[2]: *** [scripts/basic/fixdep] Error 1 make[1]: *** [scripts_basic] Error 2 make: *** [menuconfig] Error 2 make: Leaving directory `/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.m icrotronix.nios2linux.kernel_0.1.5/linux-2.6.x' C:\altera\kits\nios2\examples\verilog\niosII_stratixII_2s60_ES\full_featured_qh software\kernel>[/b] --- Quote End --- - Altera_Forum
Honored Contributor
Hi all,
I also have the same problem. I tried to flow "NIOS II Linux Quickstart Guide" instructions but I am unable to pass Kernel configuration step. I got a console terminal opening for about 5 seconds and then closing. It goes to fast and I cant read messages, but Linux menuconfig utility dont start. I suppose that the compilation script for this tool have a little problem but I am too unexperimented for solve this alone http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif Can someone give me help to solve this ? I use : - NIOS II Linux v1.3 - Quartus II v4.2 (location c:\altera\quartus42) - NIOS II v1.1 (location c:\altera\kits\nios2) And environnement variable QUARTUS_ROOTDIR = c:/altera/quartus42 Regards Fabrice - Altera_Forum
Honored Contributor
We have the same problem here: not able to find crt0.o
There are various crt0.o files on our system, but it seems that ld doesn't know what to do with them ("incorrect format") when copying either one of them to the /usr/local/lib dir. - Altera_Forum
Honored Contributor
Hey guys,
I think jmastron was onto something. I'm not very profiecient with linux but it looks like that process is looking in the wrong directory. If you go to /usr/lib and copy over the files crt0.o and libcygwin.a over into the /usr/local/lib folder, then you should be able to get onto the next stage of error, something about the curse.h file. And i believe that someone on this site has already figured that one out, gonna do a search. My guess is I have one or more of my settings incorrect somewhere... OOPS... had to remove stupid comment..... I'm off to find this curses.h file thing now. -Quan - Altera_Forum
Honored Contributor
I got the exact same problem too ...
Anyone at Microtronix ti figure that out ? Thomas - Altera_Forum
Honored Contributor
Hello,
for all who are experiencing the "cannot open crt0.o: No such file or directory" problem, open up a Nios II SDK shell window and run "mount" This will display your Cygwin's mount table. When you initially install Quartus II (and its included Cygwin), one of the mount entries is:
The Nios II Linux install process should remove this entry. If for some reason this mount entry still exists, you will experience the crt0.o problem. To remove this entry, simply unmount /usr/lib by running this command in a Nios II SDK shell window:C:\altera\quartus42\bin\cygwin\lib on /usr/lib type system (textmode)
I hope this helps.umount /usr/lib