From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ccomm-ex1.ccomm.com (unknown [207.158.3.3]) by ozlabs.org (Postfix) with ESMTP id 472A7DDF71 for ; Wed, 20 Feb 2008 05:04:51 +1100 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: RE: Frustrated question with insmod Date: Tue, 19 Feb 2008 10:04:49 -0800 Message-ID: From: "Sugathan, Rupesh" To: Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > 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//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