Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: banny52@yahoo.com (Ginny E. Kim)
Subject: Re: Load loadable kernel driver
Date: 1 Jul 2001 23:39:42 -0700	[thread overview]
Message-ID: <2f6bec0a.0107012239.13e110b6@posting.google.com> (raw)
In-Reply-To: 3B3C86C6.D19FDE67@zk3.dec.com

Joe Mario <mario@zk3.dec.com> wrote in message news:<3B3C86C6.D19FDE67@zk3.dec.com>...
> "Ginny E. Kim" wrote:
> > 
> > My system is "OSF1 Tru64UNIX V4.0F 1229 alpha".
> > I have one loadable kernel module and I want to load it.
> > I've already read documents(Creating Dynamically Configurable Kernel
> > Subsystems)
> > I did as they suggested..but, I couldn't succeed it.
> > 
> > My method
> > 1. if I put attributes of my module in /etc/sysconfigtab, and put my
> > module in /sys/BINARY/ directory and /subsys/
> >    I got following error after excuting "sysconfig -c mymodule"
> >    framework error : unresolved symbol name
> > ...
> > How can I do to load my module to kernel?
> > and How can I compile my module(mymodule.mod)?
> 
> Your loadable module won't load if there is an unresolved symbol.
> The name of the unresolved symbol should be reported to the
> console window.  
> 
> If you want to see the name of the unresolved symbol reported to a 
> file, you can stop kloadsrv and then restart it with the following 
> syntax:
>  /sbin/kloadsrv -log /tmp/kls.log -d 15 < /dev/console > /dev/console
> 2>&1
> 
> Joe Mario
> Compaq Tru64 UNIX Development Environment


I did it as your advice...and,
As results of "syslog -c mymodule ", I got same message-framework
error : unresolved symbol name..and I got console message following...

=============================
cfgmgr: starting
protocol version: 2
request from user: root
request from host: compaq2
waiting for new packet
packet received->
	subsystem:		mymodule
	operation:		CFG_OP_CONFIGURE
	data size:		0
looking for method /subsys/mymodule.mth
looking for method /var/subsys/mymodule.mth
executing method for preconfiguration:
/var/subsys/mymodule.mth preconfigure mymodule 1
device.mth: preconfiguration started for the "mymodule" device driver
device.mth: Warning: Unable to find a Module_Config line in the
sysconfigtab database
device.mth:          Psuedo Driver configured, no kernel topology
structure created for this driver.
device.mth: preconfigure returned successfully
calling kmodcall to configure mymodule
calling kloadsrv to load mymodule
attaching to kloadsrv
ldr_flag=0x100
requesting kloadsrv to perform load
recognizer: 
	Warning: /subsys/mymodule.mod is improperly built.
	This module was built without the recommended kernel switches.
	The -Wf,-static flag was not specified during the compilation.
	Unpredictable runtime behavior may result without the correct
	flags.  See the example in /usr/examples/cfgmgr/README for the
	correct compile and link flags. 

kloadsrv: kernel_load("/subsys/mymodule.mod", x, module) = 256
ldr_resolve_symbol: error looking up package kernel symbol fr_checkp:
Unresolved symbol name
kloadsrv load return 93
load failed: unresolved symbol name
sending reply packet
waiting for new packet
cfgmgr: read failed
 (errno 93)
============================

So, After Seeing the example in /usr/examples/cfgmgr/README, I comiled
mymodule for same comilpe and link flags.
(#cc -c -Wb,-static -Wco,-nofloat mymodule.c
 #ld -r -dc -o mymodule.mod mymodule.o)

Do you have solutions?.....I really want to get the solutions.....


  reply	other threads:[~2001-07-02  6:39 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-28  8:36 Load loadable kernel driver Ginny E. Kim
2001-06-29 12:03 ` Andrew Duane USG
2001-07-06  6:50   ` Ginny E. Kim
2001-06-29 13:46 ` Joe Mario
2001-07-02  6:39   ` Ginny E. Kim [this message]
2001-07-06 19:55     ` Joe Mario
2001-07-09  2:10       ` Ginny E. Kim
2001-07-09 14:08         ` Brian Haley
2001-07-10  4:29           ` Ginny E. Kim
2001-07-10 15:46             ` Brian Haley
2001-07-09 14:57         ` Joe Mario
2001-06-29 20:58 ` Sean Davidson
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox