Forum Discussion
9 Replies
- Altera_Forum
Honored Contributor
trout,
uClinux only cares about the architecture (Nios II ISA), not the FPGA. As long as you have a working platform for Nios II and the resources to support the OS (flash, ram), you can run uClinux. Doug - Altera_Forum
Honored Contributor
It should, but there is a little problem...
The FPGA required to be programmed in order to access the flash memory. This is usually where the kernel and filesystem will go. However, V1.4 doesn't package with sof file for EP2S30 (can be found in C:\altera\kits\nios2\components). If the source files are in this directory, you can recompile, but there are no where to be found! I am having the same problem with EP2S60. My problem is the pre-package is EP2S60ES! I have spoken to someone at Altera about my problem. SM - Altera_Forum
Honored Contributor
Hi all
This is not a problem. All you guys have to do is create your own SOPC builder cpu component (or copy and edit the existing one) for the specific FPGA. Add this to a VHDL project with the PLL and other logic of your own and compile the stuff. After this you can compile NIOS2 Linux kernels, file systems and projects for that cpu you created. Most or all of the nitty gritty stuff like IO sizes(Like how much leds, flash drivers ect) are taken care of by Linux. When you define a processor in the Kernel configuration tool, just select the closest one with almost the same perifferals as the ones you have. Enable and disable functions and modules in the configuration tool as you need. I did the same for the EP2C35 which doesn't have the stuff either. The stuff works great. Good luck Rual http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif - Altera_Forum
Honored Contributor
that is to say,if i builde a system on my board with sopcbuilder,then builde linux on this platform,then the linux can work?
- Altera_Forum
Honored Contributor
Yes, you have to build your system hardware on SOPC builder, it will create a ptf file. Then compile the hardware on quartusII to a sof file.
You will have the ptf and sof, they must match. Then you can download the sof to your hardware with quartusII programmer. and use the ptf for your linux kernel hwselect. after you compile the kernel, you can run uClinux on your hardware. You'd better follow this thread and work on Linux, http://forum.niosforum.com/forum/index.php?showtopic=3174 (http://forum.niosforum.com/forum/index.php?showtopic=3174) - Altera_Forum
Honored Contributor
thank you very much!!
- Altera_Forum
Honored Contributor
i builde a system with sopcbuilder on ep2c35,then i builde linux on it.so far,there are no erro,but when i run linux,
nios2-terminal: connected to hardware target using JTAG UART on cable nios2-terminal: "USB-Blaster [USB-0]", device 1, instance 0 nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate) the linux can not start.i don not know why?could you tell me ? thank you!! - Altera_Forum
Honored Contributor
Is your board a custom board?
Have you tested with a simple hello from sdram on sdk/hal ? - Altera_Forum
Honored Contributor
yes! my board ever can work!
the hello world example can run on it! can it relate to software?