linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Rakesh jagota <j.rakesh@gdatech.co.in>
To: linuxppc-embedded@lists.linuxppc.org
Subject: couldn't find the kernel version the module was compiled for
Date: Mon, 20 Oct 2003 18:35:34 +0530	[thread overview]
Message-ID: <200310201305.IAA20143@lists.linuxppc.org> (raw)


Hi all,
I am working on mpc8245 based board. I ahve compiled he rtc driver as a
seperate modules. I have 2 function in assembly file i2c2.S. Its getting
compiled but when I am inserting the module I am getting the above mentioned
error.

i2c2.o: couldn't find the kernel version the module was compiled for
x1226.o: Unresolved symbol load_runtime_reg
x1226.o: Unresolved symbol store_runtime_reg


The assembly file is like this:
/**************************************
 *
 * copyright @ Motorola, 1999
 *
 **************************************/

#include <linux/config.h>
#define CONFIG_HARD_I2C
#ifdef CONFIG_HARD_I2C
//#include <ppc_asm.tmpl>
#include <linux/ppc_asm.tmpl>

#include <asm/mmu.h>
/**********************************************************
 * function: load_runtime_reg
 *
 * input:  r3 - value of eumbbar
 *         r4 - register offset in embedded utility space
 *
 * output: r3 - register content
 **********************************************************/
      .text
      .align 2
      .globl load_runtime_reg
load_runtime_reg:
	      lwbrx r3,r4,r3
	      sync
 	      bclr 20, 0

/****************************************************************
 * function: store_runtime_reg
 *
 * input: r3 - value of eumbbar
 *        r4 - register offset in embedded utility space
 *        r5 - new value to be stored
 *
 ****************************************************************/
           .text
           .align 2
           .global store_runtime_reg
store_runtime_reg:
	      stwbrx r5,  r4, r3
	      sync
              bclr   20,0

/*
_GLOBAL(load_runtime_reg)
	      lwbrx r3,r4,r3
	      sync
 	      bclr 20, 0

_GLOBAL(store_runtime_reg)
	      stwbrx r5,  r4, r3
	      sync
              bclr   20,0
*/
#endif /* CONFIG_HARD_I2C */

How can I avoid this.

Thanks & Regards,

rakesh

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

             reply	other threads:[~2003-10-20 13:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-20 13:05 Rakesh jagota [this message]
2003-10-20 15:08 ` couldn't find the kernel version the module was compiled for Wolfgang Denk

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=200310201305.IAA20143@lists.linuxppc.org \
    --to=j.rakesh@gdatech.co.in \
    --cc=linuxppc-embedded@lists.linuxppc.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).