linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Frustrated question with insmod
@ 2008-02-16  1:06 Bruce_Leonard
  2008-02-16  4:42 ` Magnus Hjorth
  2008-02-17 12:28 ` Wolfgang Grandegger
  0 siblings, 2 replies; 9+ messages in thread
From: Bruce_Leonard @ 2008-02-16  1:06 UTC (permalink / raw)
  To: linuxppc-embedded

Sorry if this is the wrong place to post this question.  I'm developing a 
NAND flash driver and I need to do some detailed dubugging using GDB with 
a BDI2K.  According to the Denx web site, to find out the address that the 
module is loading at you load it using the -m parameter to insmod (i.e., 
"insmod -m mymodule").  However, every version of insmod I've tried 
doesn't recognize ANY options much less -m.  Can anyone please point me in 
the right direction, or give me another way of knowing what the load 
address of my module is?

Thanks.

Bruce

^ permalink raw reply	[flat|nested] 9+ messages in thread
* RE: Frustrated question with insmod
@ 2008-02-19 18:04 Sugathan, Rupesh
  0 siblings, 0 replies; 9+ messages in thread
From: Sugathan, Rupesh @ 2008-02-19 18:04 UTC (permalink / raw)
  To: Bruce_Leonard; +Cc: linuxppc-embedded


> Bruce_Leonard@selinc.com wrote:
> > Sorry if this is the wrong place to post this question.  I'm
developing a=20
> > NAND flash driver and I need to do some detailed dubugging using GDB
with=20
> > a BDI2K.  According to the Denx web site, to find out the address=20
> > that
the=20
> > module is loading at you load it using the -m parameter to insmod
(i.e.,=20
> > "insmod -m mymodule").  However, every version of insmod I've tried=20
> > doesn't recognize ANY options much less -m.  Can anyone please point
me in=20
> > the right direction, or give me another way of knowing what the load

> > address of my module is?
>=20
> # cat /sys/module/<name>/sections/.text
>=20
> Do not forget to enable CONFIG_KALLSYMS.

Although this may not solve your problem, I once had to build insmod
with CONFIG_FEATURE_INSMOD_LOAD_MAP (this is not enabled by default)
option in its configuration to enable the -m option.

Thanks
..
Rupesh Sugathan

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

end of thread, other threads:[~2008-02-20 19:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-16  1:06 Frustrated question with insmod Bruce_Leonard
2008-02-16  4:42 ` Magnus Hjorth
2008-02-17  8:03   ` Bruce_Leonard
2008-02-17 12:04     ` Magnus Hjorth
2008-02-17 12:28 ` Wolfgang Grandegger
2008-02-19  0:22   ` Bruce_Leonard
2008-02-20 14:04     ` Wolfgang Grandegger
2008-02-20 19:41       ` Bruce_Leonard
  -- strict thread matches above, loose matches on Subject: below --
2008-02-19 18:04 Sugathan, Rupesh

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