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

uclinux_on_NiosII

Altera_Forum
Honored Contributor II
1,227 Views

Hi, 

 

I am a beginner for linux os and want to port uClinux on my board. 

 

The available hardware on my board is EP3C120F484C7 Cyclone Fpga,256MB SDRAM, EPCS64 Serial flash. 

 

According to the altera wiki , minimum hardware requirements to run uclinux are Nios II f/s core, SDRAM(minimum requirement 8MB), 4MB FLASH. 

 

In my board, Extra 4MB space in serial flash can be used for storing the Image and sdram to run the program. 

 

If I am not mistaken from the above concept point of view, I fulfill the hardware requirements. 

 

Coming to uClinux os implementation, I am facing hurdles. 

 

I am following the below steps to implement uclinux os in my board. 

 

1. I am using Colinux for linux environment on windows pc. 

 

2. Downloaded all required files and installed colinux. 

 

3. Login as root user(administrator) and installed the nios2gcc tools in the root directory. 

 

 

4. I downloaded Nios2-linux-20100621.tar and untar the file 

 

5. The directories with out files extracted. 

 

The instructions says "./checkout" command must be given to check out he source. 

 

I do not have prior knowledge on version control system. 

I do not have git software on my pc. 

 

Pls advice me how to progress further. Pls advice me to proceed further. 

 

 

Kind regards, 

Nag.
0 Kudos
17 Replies
Altera_Forum
Honored Contributor II
495 Views
0 Kudos
Altera_Forum
Honored Contributor II
495 Views

Download VMWare player -> Install linux on it -> All your problems are solved

0 Kudos
Altera_Forum
Honored Contributor II
495 Views

Hi, 

 

Thanks for the reply. 

I followed as per the guide lines from the wiki. 

right now I stuck at getting files (Nios2-linux : Checkout)from git server. 

 

Unable to checkout all files. In the middle of the process the following error's are coming 

"error: git-checkout-index: unable to write file openswan/testing/pluto/ikev2-x509-02/eastinit.sh 

error: git-checkout-index: unable to write file openswan/testing/pluto/ikev2-x509-02/final.sh 

 

fatal: cannot create directory at openswan/testing/pluto/inputs" 

 

 

I am still busy looking into this. 

 

Can I have a help to resolve these errors. 

 

Regards, 

Nag.
0 Kudos
Altera_Forum
Honored Contributor II
495 Views

Is problem solved?? I am also stuck in to same problem

0 Kudos
Altera_Forum
Honored Contributor II
495 Views

Hi, 

 

I increased gentoo file system image size from 5GB to 10GB. 

Able to checkout the files with above modification.  

 

I am following the Nios2Colinux procedure to implement uClinux on Nios2  

 

Looking for clarification on toolchain build.  

If I install nios2gcc-20080203.tar.bz2 binary tool chain , is it necessary to build toolchain from the nios2-linux-20100621.tar? 

 

I am getting toolchain build error with the nios2-linux-20100621 version. 

I didn't use patches. is the problem bec of patches or any thing else? 

 

regards, 

Nag
0 Kudos
Altera_Forum
Honored Contributor II
495 Views

I followed the instructions forONLY tool chain from the following paper, working fine  

 

embedded uclinux,thealterade2,and theshimcompiler 

(http://read.pudn.com/downloads158/ebook/704857/embedded_shim.pdf)
0 Kudos
Altera_Forum
Honored Contributor II
495 Views

Hi, 

 

I couldn't find the file uClinux-dist-20060803-nios2-02.diff.gz . 

Can u suggest the link from which I can download this file. 

 

 

Thanks in advance 

 

Nag.
0 Kudos
Altera_Forum
Honored Contributor II
495 Views

why dont you use nios2gcc-20080203.tar.bz2 from 

http://www.alterawiki.com/wiki/binarytoolchain 

then 

 

tar jxf nios2gcc.tar.bz2 -C / 

 

The cross gcc tools was expected to be installed in /opt/nios2 dir. But you may install in any other dirs. Then setup the PATH for the cross gcc, you can add a line at the end of file ~/.bash_profile (or ~/.profile on Debian/Ubuntu) ( the file is hidden, you have to use "ls -a" to find it . For "gedit" use open Location, and enter the file name)  

PATH=$PATH:/opt/nios2/bin 

 

 

I did this my compiler working fine
0 Kudos
Altera_Forum
Honored Contributor II
495 Views

They ddidnot provide patch any more What i search

0 Kudos
Altera_Forum
Honored Contributor II
495 Views

Hi, 

 

I am using prebuild binary toolchain(nios2gcc-20080203.tar.bz2). 

 

For uClinux-dist, uClinux-dist-20060803.tar.bz2 and uClinux-dist-20060803-nios2-02.diff.gz files are required 

 

Without patch file, build is giving error. Hope u understand my problem. 

 

Thanks 

Nag
0 Kudos
Altera_Forum
Honored Contributor II
495 Views

Why can't you use latest uClinux from 

 

http://www.uclinux.org/pub/uclinux/dist/ 

 

I dont think it needs nios patches ...
0 Kudos
Altera_Forum
Honored Contributor II
495 Views

Hi, 

 

Now I am using "nios2-linux-20100621.tar file". I failed toolchain build with this 

I am using prebuild binary toolchain. 

I struck at compile stage. 

I am able to generate header file for my sopc system. But I am not understanding how to proceed further to configure the kernel for my board. 

 

thanks, 

Nag
0 Kudos
Altera_Forum
Honored Contributor II
495 Views

>> nios2-linux-20100621.tar 

This file supposedly is too old to be useful out of the box. 

You need to use something else or use git to upgrade it to get more viable (and more supported) files.  

 

Linux on NIOS still is bleeding edge technology and you can only hope for creating a working system when using the most recent community stuff. 

 

-Michael
0 Kudos
Altera_Forum
Honored Contributor II
495 Views

Hi, 

 

I am one step ahead in my work. 

 

But failing in the final stage of the build compilation. 

 

I am working on uClinux without mmu. 

 

The following errors occurred during "make" the build. 

 

make[3]: *** [arch/nios2/kernel/asm-offsets.s] Error 1 

make[2]: *** [prepare0] Error 2 

make[1]: *** [sub-make] Error 2 

make[1]: Leaving directory '/home/knl/nios2-linux/linux-2.6' 

make: *** [linux] Error 1 

 

Can any one help me to resolve this issue. 

 

Regards, 

Nag
0 Kudos
Altera_Forum
Honored Contributor II
495 Views

The error is earlier ...

0 Kudos
Altera_Forum
Honored Contributor II
495 Views

can I have clarification on "problem is earlier"

0 Kudos
Altera_Forum
Honored Contributor II
495 Views

make is reporting that a command it run failed. 

You need the comamnd line and output of the failing command.
0 Kudos
Reply