Forum Discussion
Altera_Forum
Honored Contributor
20 years agobuildroot to build toolchain on Linux
TO_BE_DONE
107 Replies
- Altera_Forum
Honored Contributor
I have alreay install nios2 toolchain use build0320.and it work fine.
I finded a small question. The mxapp.diff patch failed, because the diff not cp to ~/apps.but you can handwork the step later. the other question: I port a ncurses program to nios2 uclinux. I writed the Makefile follow ~/apps/ftpd/Makefile. Compile it successed. But the nios2 uclinux will restart when I exec it. - Altera_Forum
Honored Contributor
hi hippo:
I find the http://ccache.samba.org/ftp/ccache/ccache-2.4.tar.gz (http://ccache.samba.org/ftp/ccache/ccache-2.4.tar.gz) change to http://samba.org/ftp/ccache/ccache-2.4.tar.gz (http://samba.org/ftp/ccache/ccache-2.4.tar.gz) I want to rewrite it. How can I do it? I don't find the cmd "wget http:// cache.samba.org/ftp/ccache/ccache-2.4.tar.gz" in your build file. - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by hippo@Feb 17 2006, 12:40 AM hi alex,1. the ccache is not required, you can disable it.
cd ~/buildroot
make menuconfig
toolchain options--> [ ] enable ccache support?
make
2. ignore the watchdog patch fail of the new kernel. you can update the watchdog makefile later.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=12762)
--- quote end ---
--- Quote End --- Hi hippo: 1)I am install nios2 toolchains on PC of my home.In process, I meet the question of not to concect the ccache download web again. follow you above guide , I disable the option of ccache support, then make it again. But make failed. 2)suggest: can you change the ccache download web site in the builld fille,or download all *.tar.bz2, *.tar.gz to download dir from interrelated web site before exec the step "./build0207".Because In sometimes some case of build fail by some websites not steady. the other way can you give the method of how to instead the original connect web site in your build file? Thank you.
- Altera_Forum
Honored Contributor
Hi alex,
It is not needed. It is for c++ only. And c++ still has problems yet. - Altera_Forum
Honored Contributor
hi hippo:
Today I find elf2flt_ld.zip in your# post1. do I must use the diff ? - Altera_Forum
Honored Contributor
I can verify that the 2.6.15.6 kernel builds, and the SMC91111 driver works OK.
Well done hippo and atlenisse - Altera_Forum
Honored Contributor
-- updated the kernel3 is removed, and use the kernel in post#1
Here is the updated kernel, which still need more testing. It included zImage, epcs mtd, avalon watchdog, and altera pci host. Download the attached kernel3.zip to ~/download dir.
To use EPCS as MTD, and mount jffs2 on it, check the very nice doc, http://via.dynalias.org/svn/uclinux/doc/trunk/epcs-ug.pdf (http://via.dynalias.org/svn/uclinux/doc/trunk/epcs-ug.pdf) To enable altera pci host bridge support, in kernel config, Bus options (PCI, PCMCIA, EISA, MCA, ISA) [*] PCI support [*] Altera PCI host bridge You have to update arch/nios2nommu/drivers/pci/altpci.c , look at "FIX ME". eg, update the number of irqn in sample hardware design to 8. http://forum.niosforum.com/forum/index.php?showtopic=3059 (http://forum.niosforum.com/forum/index.php?showtopic=3059) dev0 is sdram, dev1 is your pci device1, using irqn_0 to irqn_3 for inta..intd dev2 is your pci device2, using irqn_4 to irqn_7 for inta..intd I shall write more doc of them when I have time.# to prepare new kernel source cd ~/download echo "prepare new kernel source" unzip kernel3.zip wget -N http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.15.6.tar.bz2 wget -N http://www.uclinux.org/pub/uClinux/uClinux-2.6.x/linux-2.6.15-uc0.patch.gz cd ~ tar jxf ~/download/linux-2.6.15.6.tar.bz2 cd ~/linux-2.6.15.6 zcat ~/download/linux-2.6.15-uc0.patch.gz | patch -p1 patch -p0 <~/download/linux-2.6.15.6-nios2-01.diff cp ~/download/kernel2.config .config - Altera_Forum
Honored Contributor
Hi hippo,
as you asked me in "ohs900 and 2.6.11, Opencore USB 1.1 Port to 2.6.11" thread, I attach the code of the USB driver. It comes from Steve Fielding on Opencores, but there is no update since kernel 2.6.10 or so and I am not very familiar with the USB drivers... If you have time to take a look it would be great. Well, I apparently cannot attach a .tar.bz2 file... anyway you can find the files on http://www.opencores.org/pdownloads.cgi/list/usbhostslave (http://www.opencores.org/pdownloads.cgi/list/usbhostslave) it is the ohs900.zip file, there is a small explanation on how to add it in 2.6.10 Thanks a lot, Best regards Pierre-Olivier - Altera_Forum
Honored Contributor
We have problems in some of the apps port in uClinux-dist. Here is how to use the Microtroni'sx port of apps. There are patches for the Makefile of inetd,ftpd and boa. You can look at the patches and update other apps yourself. Note you have to prepare proper config files to run these apps.
Download attached mx140apps.zip to ~/download,
build the apps, and install to rootfscd ~/download unzip mx140apps.zip mkdir ~/apps cp -a ~/download/mx140/examples/software/linux/apps/* ~/apps cd ~/apps patch -p1 <mx140apps.diff
Then rebuild the kernel for initramfs. Run them on nios2 uclinux, ftpd will be invoked by inetd.cd ~/apps/inetd make make install cd ~/apps/ftpd make make install cd ~/apps/boa/src make make installifconfig eth0 192.168.1.100 route add default gw 192.168.1.254 inetd& boa& - Altera_Forum
Honored Contributor
Atle,
Awesome ! Welcome and best thanks.