linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* kernel thread
@ 2001-01-24 20:19 Meena Ramamoorthi
  2001-01-24 21:59 ` Frank Rowand
  0 siblings, 1 reply; 3+ messages in thread
From: Meena Ramamoorthi @ 2001-01-24 20:19 UTC (permalink / raw)
  To: linuxppc-embedded; +Cc: Meenakshi Ramamoorthi


  Hi all,


 Has anybody tried using kernel_thread under montavista - IBM 405GP PPC
hardhat LINUX kernel. ( 2.4 )  If so could you please reply to this. We have
problem in exporting this. kernel_thread unresolved.

  Early answer appreciated

 Thanks and best regards,
 Meenakshi


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: kernel thread
  2001-01-24 20:19 kernel thread Meena Ramamoorthi
@ 2001-01-24 21:59 ` Frank Rowand
  2001-01-25  0:53   ` Meena Ramamoorthi
  0 siblings, 1 reply; 3+ messages in thread
From: Frank Rowand @ 2001-01-24 21:59 UTC (permalink / raw)
  To: Meena Ramamoorthi; +Cc: linuxppc-embedded, frowand

[-- Attachment #1: Type: text/plain, Size: 488 bytes --]

Meena Ramamoorthi wrote:
>
>   Hi all,
>
>  Has anybody tried using kernel_thread under montavista - IBM 405GP PPC
> hardhat LINUX kernel. ( 2.4 )  If so could you please reply to this. We have
> problem in exporting this. kernel_thread unresolved.
>
>   Early answer appreciated
>
>  Thanks and best regards,
>  Meenakshi

The symbol is there.  I'll attach a trivial module that accesses the symbol
successfully.

-Frank
--
Frank Rowand <frank_rowand@mvista.com>
MontaVista Software, Inc

[-- Attachment #2: hello.c --]
[-- Type: text/plain, Size: 709 bytes --]

#include <linux/module.h>
#include <linux/version.h>
#include <asm/processor.h>

#define VUFX "00.12.12.b"

#ifdef MODULE
static int demo;
MODULE_PARM(demo, "i");
MODULE_PARM_DESC(demo ,"Demo of messages");
MODULE_DESCRIPTION("Demo driver");
MODULE_AUTHOR("Frank Rowand");
#endif

static int other_data;

void cleanup_module(void)
{
	printk("<1>\nGoodbye cruel world\n\n");
	other_data = 666;
}

int init_module(void)
{
	other_data = 333;
	printk("<1>\nHello World  " VUFX "\n");
	if (demo == 0) {
	    printk("<1>setting demo to default value\n");
	    demo = 42;
	}
	printk("<1>the demo var = %d\n",demo);
	printk("<1>\n");
	printk("kernel_thread() = 0x%p\n", kernel_thread);
	printk("<1>\n");
	return 0;
}

[-- Attachment #3: Makefile --]
[-- Type: text/plain, Size: 1023 bytes --]

CC=/opt/hardhat/devkit/ppc/4xx/bin/ppc_4xx-gcc
LD=/opt/hardhat/devkit/ppc/4xx/bin/ppc_4xx-ld

INCLUDEDIR=/opt/hardhat/devkit/ppc/4xx/powerpc-hardhat-linux/include

CFLAGS = -g -D__KERNEL__ -DMODULE  -o  -Wall  -I$(INCLUDEDIR)

INSTALL_ROOT=/opt/hardhat/devkit/ppc/4xx/target
INSTALL_USER_ROOT=$(INSTALL_ROOT)/home/$(USER)


# Extract version number from headers

VER = $(shell awk  -F\" '/REL/  {print $$2}' $(INCLUDEDIR)/linux/version.h)

OBJS = hello.o

all: hello_module.o

hello_module.o: $(OBJS)
	$(LD) -r  $^ -o $@

install:
	install -c hello_module.o $(INSTALL_USER_ROOT)
#	install -d $(INSTALL_ROOT)/lib/modules/misc
#	install -d $(INSTALL_ROOT)/lib/modules/$(VER)/misc
#	install -c hello_module.o $(INSTALL_ROOT)/lib/modules/$(VER)/misc
#	install -c hello_module.o $(INSTALL_ROOT)/lib/modules/misc

clean_target:
	rm $(INSTALL_USER_ROOT)/hello_module.o
#	rm $(INSTALL_ROOT)/lib/modules/$(VER)/misc/hello_module.o
#	rm $(INSTALL_ROOT)/lib/modules/misc/hello_module.o

clean: clean_target
	rm $(OBJS) hello_module.o

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: kernel thread
  2001-01-24 21:59 ` Frank Rowand
@ 2001-01-25  0:53   ` Meena Ramamoorthi
  0 siblings, 0 replies; 3+ messages in thread
From: Meena Ramamoorthi @ 2001-01-25  0:53 UTC (permalink / raw)
  To: frowand, support; +Cc: linuxppc-embedded, viswak


 Hi Frank,

 I tried this program. When i do insmod hello.o or hello_module.o  it says
unresolved symbol kernel_thread. So the problem is still not resolved.

 Thanks
 Meenakshi


-----Original Message-----
From: owner-linuxppc-embedded@lists.linuxppc.org
[mailto:owner-linuxppc-embedded@lists.linuxppc.org]On Behalf Of Frank
Rowand
Sent: Wednesday, January 24, 2001 2:00 PM
To: Meena Ramamoorthi
Cc: linuxppc-embedded@lists.linuxppc.org; frowand@mvista.com
Subject: Re: kernel thread


Meena Ramamoorthi wrote:
>
>   Hi all,
>
>  Has anybody tried using kernel_thread under montavista - IBM 405GP PPC
> hardhat LINUX kernel. ( 2.4 )  If so could you please reply to this. We
have
> problem in exporting this. kernel_thread unresolved.
>
>   Early answer appreciated
>
>  Thanks and best regards,
>  Meenakshi

The symbol is there.  I'll attach a trivial module that accesses the symbol
successfully.

-Frank
--
Frank Rowand <frank_rowand@mvista.com>
MontaVista Software, Inc


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-01-25  0:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-24 20:19 kernel thread Meena Ramamoorthi
2001-01-24 21:59 ` Frank Rowand
2001-01-25  0:53   ` Meena Ramamoorthi

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).