Forum Discussion
Altera_Forum
Honored Contributor
20 years agofrist, make sure you have the compiler build,
$ nios2-elf-gcc -v
Reading specs from /usr/local/lib/gcc/nios2-elf/3.4.1/specs
Configured with: ../../gcc/configure --target=nios2-elf --enable-languages=c
Thread model: single
gcc version 3.4.1 (Altera Nios II 5.1 b73) then, the hardware include header generation. note, this is a signle line command. make ARCH=nios2nommu O=/usr/local/src/nios2/build/kernel CROSS_COMPILE=nios2-elf- hwselect SYSPTF=/usr/local/src/nios2/build/yoursystem.ptf next the config, note, this is a signle line command. make ARCH=nios2nommu O=/usr/local/src/nios2/build/kernel CROSS_COMPILE=nios2-elf- menuconfig next, the compile, note, this is a signle line command. make ARCH=nios2nommu O=/usr/local/src/nios2/build/kernel CROSS_COMPILE=nios2-elf-