Frustrated question with insmod

Sugathan, Rupesh rs at carriercomm.com
Wed Feb 20 05:04:49 EST 2008


> Bruce_Leonard at selinc.com wrote:
> > 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?
> 
> # cat /sys/module/<name>/sections/.text
> 
> 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


More information about the Linuxppc-embedded mailing list