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 agoHi Lothar
you're almost there... a) you do not need rules.mak in your file http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/cool.gif You are building for an i386 architecture. Look a bit closer at error log. there is something like <div class='quotetop'>QUOTE </div> --- Quote Start --- Makefile:531: /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/arch/i386/Makefile[/b] --- Quote End --- You must tell the Kbuild-Sys that you want to build for Nios: When you are defining a make target with 'Create new make tage', the command line should look likeARCH=nios2nommu CROSS_COMPILE=nios2-elf- all but its just one way to do... c) about the modpost i don't know... maybe this error goes away, when you have done the changes above. Best Regards