Forum Discussion
107 Replies
- 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
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
hi hippo:
Today I find elf2flt_ld.zip in your# post1. do I must use the diff ? - 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
--- 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 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
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 Alex,
The ccache path is correct now in build0322.zip . And it is disabled by default. - Altera_Forum
Honored Contributor
Hi hippo,there is a pb:
[root@nios download]# cd ~/linux-2.6.16.1 [root@nios linux-2.6.16.1]# make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- hwselect SYSPTF=std_1c20.ptf Makefile:524: /root/linux-2.6.16.1/arch/nios2nommu/Makefile: 没有那个文件或目录 make: *** 没有规则可以创建目标“/root/linux-2.6.16.1/arch/nios2nommu/Makefile”。 停止。 [root@nios linux-2.6.x]# ls /root/linux-2.6.16.1/arch/ alpha cris i386 m68k parisc s390 sparc v850 arm frv ia64 m68knommu powerpc sh sparc64 x86_64 arm26 h8300 m32r mips ppc sh64 um xtensa there is no "nios2nommu" in that dir - Altera_Forum
Honored Contributor
I meet a pb ,when patch the busybox
[root@nios busybox-1.1.0]# patch -p1 <~/download/busybox-110.diff patching file Makefile Hunk# 1 FAILED at 213. 1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej --- Quote Start --- originally posted by hippo@Feb 6 2006, 09:17 AM hi cetic,2. missing elf2flt for busybox, download attached busybox_110.zip
add the elf2flt stuf to busybox makefile
cd ~/download unzip busybox_110.zip cd ~/buildroot/build_nios2/busybox-1.1.0 patch -p1 <~/download/busybox-110.diff rm busybox make cd ~/buildroot makecheck again with flthdr.
then rebuild kernel.
or you may try post#4, to rebuild toolchain.
hippo
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=12566)</div> --- Quote End ---