Forum Discussion
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- I've downloaded the uClinux to try to build a system with two cpus (cpu1 and cpu2). I'd want to use the cpu1 with linux and the cpu2 as support for some parallel applications. Due several issues, I understand (please correct me if I'm saying something wrong) that uClinux does not support smp. Is there a method to build a system with two cores wich include an operative system on one of them? If yes, can you tell me if there is a tutorial anywhere? --- Quote End --- This application is not SMP. You can run Linux on one of the cores, it's pretty straight-forward. If you have two processors you just need to make sure sopc-create-header-files and nios2-download use the right processor. If you name your cpu "Linux_cpu":
sopc-create-header-files --module Linux_cpu --single custom_fpga.h and nios2-download -g zImage --instance 1 && nios2-terminal IIRC you can only have a JTAG UART on one of the processors. The two processors will each have their own reset address and everything so you need to set them up separately to boot their software e.g. from flash. There's an example on Altera's site that explains how to have one processor load the software into the other's memory and reset it, if that's what you want to do.