Forum Discussion
Altera_Forum
Honored Contributor
21 years agoKernel development on Nios Linux 2.6 distribution
The Nios II Linux 2.6 distribution is not really biased for kernel development, but since this is all what I have, what way you suggest I should develop my drivers? I understood importing the s...
Altera_Forum
Honored Contributor
21 years agoHello,
I tried to build my kernel module hello.c as described in this contribution, using Makefile specified here. But make command executed from NIOSII shell returns following errors and, I understand that it needs appropriate ptf file, but I dont know what to do...$ make
make -C /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2l
inux.kernel_0.1.5/linux-2.6.x O=/cygdrive/c/altera/kits/nios2/bin/eclipse/worksp
ace/kernel_mod/build SUBDIRS=/cygdrive/c/altera/kits/nios2/bin/eclipse/workspace
/kernel_mod modules
make: Entering directory `/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/c
om.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x'
/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.ker
nel_0.1.5/linux-2.6.x/Makefile:461: .config: No such file or directory
no emulation specific options.
/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.ker
nel_0.1.5/linux-2.6.x/arch/nios2nommu/Makefile:124: *** Run "make hwselect SYSPT
F=<system.ptf>" first. Stop.
make: *** Error 2
make: Leaving directory `/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/co
m.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x'
make: *** Error 2
/cygdrive/c/altera/kits/nios2/bin/eclipse/workspace/kernel_mod
$ I hope someone can help, thank you, Jan