Forum Discussion
Altera_Forum
Honored Contributor
20 years agoLittle Driver Module
Hello! I want to compile this little programm: #include <linux/module.h># include <linux/kernel.h># include <linux/init.h>
static int __init hello_init(void)
{
printk("---------...
Altera_Forum
Honored Contributor
20 years agoHello!
Ups! I've forget a TAB-sign ahead the make command in Makefile. Now the compiler produce this: make -k allmake -c /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x m=`pwd` o=/cygdrive/c/entwicklung/nios/workspace3/linux_kernel_full/build modules
make[1]: entering directory `/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x'
no emulation specific options.
building modules, stage 2.
modpost
scripts/mod/modpost: not found
make[3]: *** [__modpost] error 127
make[3]: target `_modpost' not remade because of errors.
make[2]: *** [modules] error 2
make[1]: *** [modules] error 2
make[1]: leaving directory `/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x'
make: *** [all] error 2 The modpost.exe is in directory $(BUILDDIR)\scripts\mod I think it should be found there, but it's not working? Bye, Lothar.