Forum Discussion
Altera_Forum
Honored Contributor
16 years agousing µclinux in board 2C35
hello,
I followed the step of the http://www.nioswiki.com/linux after this steps i arrived to3. The images created are, images/linux.initramfs.gz is the elf image with initramfs built-in images/zImge.initramfs.gz is the compressed elf image with initramfs built-in images/vmImage is compressed u-boot image images/rootfs.jffs2 is jffs2 image, eg, cp rootfs.jffs2 /dev/mtd0. This is available when jffs2 is selected in kernel. Please note the flash erase sector size on 3c120 dev board is 128KB, you will have to specify "MKFS_JFFS2_FLAGS = -l -p -e 128" at the beginning of your product Makefile. Connect USB Blaster cable to 3C120 dev board, download the sof and elf. nios2-configure-sof ../3c120_default/nios2_linux_3c120_125mhz_top.sof nios2-download -g images/linux.initramfs.gz nios2-terminal I would know if this version can work with 2c35 board (cyclone ii) ? and how can download the sof and elf in borad ,we should use commande in linux or start the quartus II ? because at know i'm not build our NIOS II processor with MMU
10 Replies
- Altera_Forum
Honored Contributor
The hardware is different.
Please use the example design for nios cyclone II dev board (not DE2), http://www.nioswiki.com/@api/deki/files/428/=2c35_cf_(1).zip There is prebuild kernel image which you may try out, nios2-configure-sof NiosII_cycloneII_2c35_full_featured.sof nios2-download -g zImage nios2-terminal - Hippo - Altera_Forum
Honored Contributor
Hello,Hippo
please i would know : the nios2-configure-sof NiosII_cycloneII_2c35_full_featured.sof is the design of the NIOS II processor with MMU? -nios2-download -g zImage is the kernel how i download in NIOS II -nios2-terminal ? espicially i would know how can download this kernel in my board 2C35, i use quartus II or linux commande ? in my pc host i use ubuntu 8.4 ,with quartus II 9.1 (beta) + NIOS 2 eds+ modelsim - Altera_Forum
Honored Contributor
Please unzip the zip file. There,
NiosII_cycloneII_2c35_full_featured.sof is the fpga configuration file, 2c35 with nios2 MMU. zImage is the kernel You should follow http://nioswiki.com/operatingsystems/uclinux/quartusforlinux to setup a shell script "n2sdk". Then run the commands under n2sdk. - Hippo - Altera_Forum
Honored Contributor
hello,Hippo
thank's for your help juste when i followed the step in http://nioswiki.com/operatingsystems...uartusforlinux (http://nioswiki.com/operatingsystems/uclinux/quartusforlinux) i setup a shell "n2sdk" ,i creat it in /opt for the "n2sdk" i juste change export PERL5LIB=/usr/lib/perl5/5.10.0 by export PERL5LIB=/usr/lib/perl5 because i work with ubuntu 8.4 when i execute ./n2sdk [NiosII EDS]$ quartus bash: quartus : commande not found /opt [NiosII EDS]$ also [NiosII EDS]$ jtagconfig bash: jtagconfig : commande not found /opt please if you have any solution for this problems juste for information i use quartus II 9.1 (beta) . - Altera_Forum
Honored Contributor
Please make sure you have installed bash. The default shell of ubuntu is no good with quartus.
- Hippo - Altera_Forum
Honored Contributor
Hello,Hippo
yes i followed the step On Ubuntu, check if the default shell is "bash" , (the default might be "dash", which won't work with install scripts) ls -l /bin/sh This should give "/bin/sh -> bash", Otherwise, change it with, sudo rm /bin/sh sudo ln -s bash /bin/sh i have a bash so,is not the cause ! - Altera_Forum
Honored Contributor
Check that you have the correct path to the quartus tools in your $PATH environment variable
- Altera_Forum
Honored Contributor
hello, Daixiwen
the, echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/altera9.1sp1/nios2-linux/toolchain-mmu/x86-linux2/bin:/opt/altera9.1sp1/nios2-linux/toolchain-build/build/nios2/bin:/home/bariko/bin:/opt/altera9.1/quartus/bin:/opt/altera9.1/quartus/linux the you think is the good PATH ? - Altera_Forum
Honored Contributor
Seems ok. Are the quartus and jtagconfig binaries in one of these folders?
- Altera_Forum
Honored Contributor
hello,
thank's yes i find a problem in PATH ,i changed to /opt/altera9.1sp1/quartus now when i execute ./n2sdk [NiosII EDS]$ quartus bash: quartus : (the quartus launched good) [NiosII EDS]$ the only problem is [NiosII EDS]$ jtagconfig bash: jtagconfig : commande not found /opt because he don't indicated that we should creat script jtagconfig in this link http://nioswiki.com/operatingsystems/uclinux/quartusforlinux so how can creat this script jtagconfig?