Forum Discussion
Altera_Forum
Honored Contributor
20 years agoproblem with modules
I follow http://nioswiki.jot.com/wikihome/operating...duleprogarmming (http://nioswiki.jot.com/wikihome/operatingsystems/moduleprogarmming) but when I type in "modprobe hello" what I get is "modprobe...
Altera_Forum
Honored Contributor
20 years agoThanks to you both, hello.ko is now included!
But now I getinsmod: cannot insert `/lib/modules/2.6.16-uc0/kernel/drivers/misc/hello.ko': Invalid module format (-1): Exec format error
modprobe: failed to load module hellowhen I try to modprobe it. Do I need a flag or something during making the kernel? During "make modules_install" I got these, after "INSTALL drivers/misc/hello.ko" and right before the end of the make:if ; then ../user/busybox/examples/depmod.pl -l vmlinux -ae -F System.map -b /root/uClinux-dist-test/romfs/lib/modules -r 2.6.16-uc0; fi
Unknown option: ae
Unknown option: r Yes, I work under root http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/wink.gif . I set up the linux just for this project, so no one else is using the computer and I can always reinstall linux if I manage to do some real damage http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif