<br><br> I created an NFS disk using devrocket 2.03, copied the kernel image from a devrocket build to the system.ace. I booted the ml403 board and did an nfs mount. I copied the kernel directory created under the devrocket
2.03 kernel project into /usr/src/linux<br><br> I created a simple module:<br>-----------------------------------------------------------------------------------------------------------------<br>root@ml403:/home/moduletest# cat
moduletest.c<br><br>#include <linux/kernel.h><br>#include <linux/init.h><br>#include <linux/module.h><br><br>MODULE_DESCRIPTION("Test Kernel Module");<br>MODULE_AUTHOR("wade maxfield (<a href="mailto:maxfield@ctelcom.net">
maxfield@ctelcom.net</a>)");<br>MODULE_LICENSE("$LICENSE$");<br><br>static int moduletest_init_module(void)<br>{<br> printk( KERN_DEBUG "Module moduletest init\nHello World!\n" );<br> return 0;
<br>}<br><br>static void moduletest_exit_module(void)<br>{<br> printk( KERN_DEBUG "Module moduletest exit\nGoodbye Cruel World!\n" );<br>}<br><br>module_init(moduletest_init_module);<br>module_exit(moduletest_exit_module);
<br>---------------------------------------------------------------------------------------------------------------------------<br> This has compiled under RHEL 4.0 and worked.<br><br> if I go do a build on the ml403 board I get the following (ignore the time problems)
<br>----------------------------------------------------------------------------------------------------------------------<br>root@ml403:/home/moduletest# make<br>make: Warning: File `Makefile' has modification time 1.2e+09
s in the future<br>make -C /lib/modules/2.6.10_mvl401-ml40x/build SUBDIRS=/home/moduletest modules<br>make[1]: Entering directory `/usr/src/linux'<br>Makefile:503: .config: No such file or directory<br>make[1]: Warning: File `/usr/src/linux/arch/ppc/Makefile' has modification time
1.2e+09 s in the future<br>make[2]: Warning: File `scripts/Makefile.lib' has modification time 1.1e+09 s in the future<br> CC [M] /home/moduletest/moduletest.o<br>/bin/sh: line 1: scripts/basic/fixdep: cannot execute binary file
<br>make[2]: *** [/home/moduletest/moduletest.o] Error 126<br>make[1]: *** [_module_/home/moduletest] Error 2<br>make[1]: Leaving directory `/usr/src/linux'<br>make: *** [default] Error 2<br>----------------------------------------------------------------------------------------------------------
<br><br> I think that "fixdep" was created as x86. Any suggestions as to getting fixdep to be powerpc executable?<br><br>thanks,<br>wade<br><br> <br>