Forum Discussion
Altera_Forum
Honored Contributor
14 years agouclinux_on_NiosII
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.17 Replies
- Altera_Forum
Honored Contributor
- Altera_Forum
Honored Contributor
Download VMWare player -> Install linux on it -> All your problems are solved
- Altera_Forum
Honored Contributor
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. - Altera_Forum
Honored Contributor
Is problem solved?? I am also stuck in to same problem
- Altera_Forum
Honored Contributor
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 - Altera_Forum
Honored Contributor
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) - Altera_Forum
Honored Contributor
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. - Altera_Forum
Honored Contributor
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 - Altera_Forum
Honored Contributor
They ddidnot provide patch any more What i search
- Altera_Forum
Honored Contributor
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