Forum Discussion
Altera_Forum
Honored Contributor
21 years agoLinux development environment
Does anyone know if the Nios II port of uClinux is available as a simple tarball (i.e. tar.gz or .tgz) that can be downloaded to a Linux machine and configured and built using the nios2-elf-gcc cross...
Altera_Forum
Honored Contributor
21 years ago<div class='quotetop'>QUOTE </div>
--- Quote Start --- Shouldn't I just be able to use "nios2-elf-gcc" to compile a program and have it run on the nios2?[/b] --- Quote End --- not if you run the program on uClinux. Under uClinux, we are using a FLAT binary format, not ELF (which could not run on uClinux). You need a tool, elf2flt, to convert ELF format to FLAT format. Please check the userland Rules.mak for details. You also need the source code of elf2flt (with Nios II support) so that you can rebuilt it on Linux. Regards, wentao Microtronix.