Forum Discussion
Altera_Forum
Honored Contributor
20 years ago-- 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 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 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.