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.
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.
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
I followed the instructions forONLY tool chain from the following paper, working fineembedded uclinux,thealterade2,and theshimcompiler (http://read.pudn.com/downloads158/ebook/704857/embedded_shim.pdf)
why dont you use nios2gcc-20080203.tar.bz2 fromhttp://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
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
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
>> nios2-linux-20100621.tarThis 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
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: *** [arch/nios2/kernel/asm-offsets.s] Error 1 make: *** [prepare0] Error 2 make: *** [sub-make] Error 2 make: Leaving directory '/home/knl/nios2-linux/linux-2.6' make: *** [linux] Error 1 Can any one help me to resolve this issue. Regards, Nag