Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

some problem when make ModuleProgarmming

http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/laugh.gif Hi all,

I make ModuleProgarmming fowing the http://nioswiki.jot.com/wikihome/operating...duleprogarmming (http://nioswiki.jot.com/wikihome/operatingsystems/moduleprogarmming).

But I met some problem:Could anyone tell me where is wrong?

The following is some messages in the red hat linux when I run "make odules_install" afer I run "rm user/busybox/busybox" and "make":

INSTALL drivers/misc/hello.ko

if [ -r System.map -a -x ../user/busybox/examples/depmod.pl ]; then ../user/busybox/examples/depmod.pl -k vmlinux -ae -F System.map -b /home/w/uClinux-dist-test/romfs/lib/modules -r 2.6.16-uc0; fi

Unknown option: ae

Unknown option: r

make[1]: Leaving directory `/home/w/uClinux-dist-test/linux-2.6.x&#39;

The following is the messagesb in the nios2 command shell:

/> modprobe hello

insmod: cannot insert `/lib/modules/2.6.16-uc0/kernel/drivers/misc/hello.ko&#39;: Invalid module format (-1):

Exec format error

modprobe: failed to load module hello

/>
No RepliesBe the first to reply