Forum Discussion
Altera_Forum
Honored Contributor
16 years agomanualy uClinux without niosftp.com/pub/uclinux/ tar file
I am trying to build uClinux on my Neek board without a prebuilt binary tool chain.
Actually, i followed the CrossGcc toturial on nios wiki and then i have downloaded uClinux-dist-20090618 from uClinux.org. after setting the path environment variable correctly, i try to configure uClinux and build it by make menuconfig and make but i get error during the make. After searching in the forum i found this guy had the same error : singh11111 http://www.alteraforum.com/forum/showthread.php?t=18570 I want to know firstly if it s a correct method ? So in fact my goal is also to construct manualy the tar file on http://www.niosftp.com/pub/uclinux or linux starting with nios2-gnutools-9.0-SRC and uClinux-dist-20090618 only.13 Replies
- Altera_Forum
Honored Contributor
AFAIK, a non-binary toolchain is only available tor the noMMU version of the NIOS2 uClinux distribution, yet.
Do you really want to use this ? Several months ago I did compile the non-binary noMMU toolchain on Suse following the instructions in the NIOS Wiki: http://www.nioswiki.com/installnios2linux -Michael - Altera_Forum
Honored Contributor
Hi,
--- Quote Start --- I am trying to build uClinux on my Neek board without a prebuilt binary tool chain. --- Quote End --- You mean that you want to recompile the tool-chains? For MMU versions 'nios2gcc4', you need to modify several configure and make files, and I strongly recommend you to leave such time wasting tasks to experts. Kazu - Altera_Forum
Honored Contributor
Hi,
So yes "without a prebuilt binary tool chain" means that i will recompile my own toolchain. I know that the instructions in the NIOS Wiki: http://www.nioswiki.com/installnios2linux are exactly what i want to do but we have to use the nios-linux-20090730.tar pack. I would like to construct by myself this pack. To have the script that construct the pack even if i need to modify several configure and make files, and even if it is said that this is a task for experts (but maybe i will not be able to achieve my goal) In fact I d like to understand a full port of linux on nios2 for my master thesis and don't want to use a pack where everything is already done and where the only thing to do is only to follow the InstallNios2Linux instruction from the wiki. Thanks for your previous answers :) Am i more precise in what i want ? - Altera_Forum
Honored Contributor
--- Quote Start --- Am i more precise in what i want ? --- Quote End --- You did not state if you want to use the full MMU-based Linux. If yes you in fact need to build the complete Toolchain from scartch. And of course you should provide your work to Hippo, the current maintainer of the NIOS uCLinux distribution, as he of course wants to move to a non-binary distribution ASAP. If you don't want to use the MMU, I don't see what might be wrong with the procedure described in the Wiki. Here you use git to get the newest source code of all tool chain utilities and you can use the make script provided to build the tool chain. There is no sense in creating another version of the tool chain than that one. -Michael - Altera_Forum
Honored Contributor
Ok thanks Michael, so
1 with MMU : what do you mean about building the complete Toolchain from scartch ? Would you mean that inside de mmu distribution there is a prebuilt binary toolchain ? (am i right with the terme ?) 2 without MMU : Ok so this is a pack containing all source file (binutils, c library, kernel header and the kernel uClinux). And the make script you mention is the one lacated in the $HOME/nios2-linux/toolchain-build as mention in the InstallNios2Linux instructions (make gcc elf2flt gdb-host) ? - Altera_Forum
Honored Contributor
--- Quote Start --- 1 with MMU : what do you mean about building the complete Toolchain from scartch ? Would you mean that inside de mmu distribution there is a prebuilt binary toolchain ? (am i right with the terme ?) --- Quote End --- "Our" uCLinux distribution is supposed to provide as well a binary as a non binary tool chain. The binary tool chain is a "snapshot" done by the maintainers at a certain day. The non-binary tool chain can be fetched from the git repository and thus provides the most recent (and hopefully most bug-free) state of the distribution. The non-binary tool chain contains a make script that creates (compiles) the binary tool chain for you (this takes several hours), For the no-MMU version of the distribution you can get the non-binary tool chain as described in the Wiki. Unfortunately part of the MMU-version of the tool chain is not yet completely community-driven and we still need to use the version compiled by WindRiver that is available as a binary. --- Quote Start --- 2 without MMU : Ok so this is a pack containing all source file (binutils, c library, kernel header and the kernel uClinux). And the make script you mention is the one lacated in the $HOME/nios2-linux/toolchain-build as mention in the InstallNios2Linux instructions (make gcc elf2flt gdb-host) ? --- Quote End --- Yep. As described in the Wiki you just need to do "make ..." if all prerequisites are OK. -Michael - Altera_Forum
Honored Contributor
Bonjour Michael,
When you say "our distribution" you mean you are one of the developper ? :) Is the distribution for mmu version located in http://www.niosftp.com/pub/linux ? And the non-mmu distribution located in http://www.niosftp.com/pub/uclinux ? Good evening - Altera_Forum
Honored Contributor
--- Quote Start --- When you say "our distribution" you mean you are one of the developper ? :) --- Quote End --- No. I'm trying to help, but I'm not knowledgeable enough, yet. --- Quote Start --- Is the distribution for mmu version located in http://www.niosftp.com/pub/linux ? --- Quote End --- see http://www.nioswiki.com/linux --- Quote Start --- And the non-mmu distribution located in http://www.niosftp.com/pub/uclinux ? --- Quote End --- see http://www.nioswiki.com/operatingsystems/uclinux. It's all here: http://www.nioswiki.com/ -Michael - Altera_Forum
Honored Contributor
Hi
I have one more question. I work now with UClinux and with the guide on the wiki. It is said that we have to do ./checkout . This script is : for i in binutils gcc3 linux-2.6 toolchain-build uClibc elf2flt insight u-boot uClinux-dist do cd $i git checkout -f cd .. done and is enough easy. In each directory we do git checkout -f. After some research (because i heard speaking about git but i never used it) i found that this command extract the archive located in .git/objects/pack in order to obtain the original sources needed for compiling the toolchain. Is the content of that packs the original content of each source separately ? (because I try to start with nothing else than source code to build my toolchain) binutils : http://ftp.gnu.org/gnu/binutils/ gcc3 : http://ftp.gnu.org/gnu/gcc/ linux-2.6 : http://www.kernel.org/ toolchain-build : ? uClibc : http://www.uclibc.org/ elf2flt : ? insight : ? u-boot : ? http://www.denx.de/wiki/u-boot/sourcecode uClinux-dist : http://www.uclinux.org/ nb : I don't understand the purpose of the "?" directories. - Altera_Forum
Honored Contributor
I don't know the ? directories either. Maybe there lines are just meant to do nothing.
The MMU distribution does not provide these directories, while the no-MMu distribution has them -Michael