From: "Wade Maxfield" <wmaxfield@gmail.com>
To: ppc <linuxppc-embedded@ozlabs.org>
Subject: ML403: module make fails with interesting error
Date: Mon, 21 Aug 2006 16:28:48 -0500 [thread overview]
Message-ID: <45a1b53e0608211428x645bea26t5e199db93acbf9ab@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2359 bytes --]
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.03kernel project into /usr/src/linux
I created a simple module:
-----------------------------------------------------------------------------------------------------------------
root@ml403:/home/moduletest# cat moduletest.c
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/module.h>
MODULE_DESCRIPTION("Test Kernel Module");
MODULE_AUTHOR("wade maxfield (maxfield@ctelcom.net)");
MODULE_LICENSE("$LICENSE$");
static int moduletest_init_module(void)
{
printk( KERN_DEBUG "Module moduletest init\nHello World!\n" );
return 0;
}
static void moduletest_exit_module(void)
{
printk( KERN_DEBUG "Module moduletest exit\nGoodbye Cruel World!\n"
);
}
module_init(moduletest_init_module);
module_exit(moduletest_exit_module);
---------------------------------------------------------------------------------------------------------------------------
This has compiled under RHEL 4.0 and worked.
if I go do a build on the ml403 board I get the following (ignore the
time problems)
----------------------------------------------------------------------------------------------------------------------
root@ml403:/home/moduletest# make
make: Warning: File `Makefile' has modification time 1.2e+09 s in the future
make -C /lib/modules/2.6.10_mvl401-ml40x/build SUBDIRS=/home/moduletest
modules
make[1]: Entering directory `/usr/src/linux'
Makefile:503: .config: No such file or directory
make[1]: Warning: File `/usr/src/linux/arch/ppc/Makefile' has modification
time 1.2e+09 s in the future
make[2]: Warning: File `scripts/Makefile.lib' has modification time
1.1e+09s in the future
CC [M] /home/moduletest/moduletest.o
/bin/sh: line 1: scripts/basic/fixdep: cannot execute binary file
make[2]: *** [/home/moduletest/moduletest.o] Error 126
make[1]: *** [_module_/home/moduletest] Error 2
make[1]: Leaving directory `/usr/src/linux'
make: *** [default] Error 2
----------------------------------------------------------------------------------------------------------
I think that "fixdep" was created as x86. Any suggestions as to getting
fixdep to be powerpc executable?
thanks,
wade
[-- Attachment #2: Type: text/html, Size: 2849 bytes --]
reply other threads:[~2006-08-21 21:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45a1b53e0608211428x645bea26t5e199db93acbf9ab@mail.gmail.com \
--to=wmaxfield@gmail.com \
--cc=linuxppc-embedded@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).