From: Magnus Hjorth <mh@omnisys.se>
To: Bruce_Leonard@selinc.com
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: Frustrated question with insmod
Date: Sun, 17 Feb 2008 13:04:22 +0100 [thread overview]
Message-ID: <1203249862.5245.11.camel@magnus-desktop> (raw)
In-Reply-To: <OFE029FE92.B8F9D4B0-ON882573F2.002B93E9-882573F2.002C385D@selinc.com>
On Sun, 2008-02-17 at 00:03 -0800, Bruce_Leonard@selinc.com wrote:
> >
> > 'cat /proc/modules' perhaps?
>
> I tried that, but it gives me an odd address (at least I think it's an odd
> address): 0xE1188000. I use that address in GDB for adding the symbol
> table (i.e., add-symbol-file mymodule 0xE1188000), but then the BDI
> reports "*** MMU: address translation for 0xE118822C failed" when I try to
> set a breakpoint in the probe function. Admittedly I'm new to driver
> writing, but shouldn't the address be somewhere in the 0xC0xxxxxx range?
I believe the modules live in the kernel's dynamically allocated memory
area in the 0xExxxxxxx range..
Can you set breakpoints anywhere in the kernel? Try picking a function address from System.map and set a breakpoint there.
I have little experience with what you're doing, but my guess is that you're setting the breakpoint in the wrong context, probably standing in userspace..
>
> >
> > //Magnus
> >
> >
> > On Fri, 2008-02-15 at 17:06 -0800, Bruce_Leonard@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?
> > >
> > > Thanks.
> > >
> > > Bruce
> > > _______________________________________________
> > > Linuxppc-embedded mailing list
> > > Linuxppc-embedded@ozlabs.org
> > > https://ozlabs.org/mailman/listinfo/linuxppc-embedded
> >
next prev parent reply other threads:[~2008-02-17 12:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1203249862.5245.11.camel@magnus-desktop \
--to=mh@omnisys.se \
--cc=Bruce_Leonard@selinc.com \
--cc=linuxppc-embedded@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).