linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* abatron and kernel modules.
@ 2002-07-25 17:13 David Updegraff
  2002-07-25 19:45 ` Dan Malek
  2002-07-25 19:53 ` Wolfgang Denk
  0 siblings, 2 replies; 5+ messages in thread
From: David Updegraff @ 2002-07-25 17:13 UTC (permalink / raw)
  To: linuxppc-embedded


Hi.

We've been very happily using BDI2000 for kernel debugging on our 405GP
on a 2.4.2 kernel with builtin abatron MMU support (via PTBASE at 0xf0).

But I have not figured out how to get it deal with the address space of
a loaded kernel module: it claims that the region is missing from the
page tables.  Kernel addresses are in 0xC00xxxxx ranges, and when we load
the module, 'module_list' now points to 0xC340xxxx ranges.  BDI can
dump the physical addresses of my module, but cant talk to the virual
kernel address space of the loaded module.

Is there some page table magic that goes on with module loading that
is confusing both me and the BDI?

Thanx.

--
Dave Updegraff, Cray Inc. / dave@cray.com

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: abatron and kernel modules.
  2002-07-25 17:13 abatron and kernel modules David Updegraff
@ 2002-07-25 19:45 ` Dan Malek
  2002-07-25 20:11   ` John W. Linville
  2002-07-25 19:53 ` Wolfgang Denk
  1 sibling, 1 reply; 5+ messages in thread
From: Dan Malek @ 2002-07-25 19:45 UTC (permalink / raw)
  To: David Updegraff; +Cc: linuxppc-embedded


David Updegraff wrote:

> We've been very happily using BDI2000 for kernel debugging on our 405GP
> on a 2.4.2 kernel with builtin abatron MMU support (via PTBASE at 0xf0).

Hmmmm.....there was a time when we screwed up the kernel PTE by moving
around some bits and not telling the folks at Abatron we did that.....
I unfortunately don't remember the kernel versions nor the BDI2000
firmware versions that match.  All I know is the latest versions of
both work together :-)

There was also a version of the 2.4.2 kernel, perhaps even a MontaVista
snapshot, where I screwed up loading the address of the pte pointer
label during initialization.  This caused the BDI2000 to go looking into
the weeds for random bits that it tried to interpret as page tables.

I know that what you are trying to do will work when all of the bits
are lined up correctly.

If you could upgrade to a newer kernel, it would really help.

Thanks.


	-- Dan


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: abatron and kernel modules.
  2002-07-25 17:13 abatron and kernel modules David Updegraff
  2002-07-25 19:45 ` Dan Malek
@ 2002-07-25 19:53 ` Wolfgang Denk
  1 sibling, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2002-07-25 19:53 UTC (permalink / raw)
  To: David Updegraff; +Cc: linuxppc-embedded


Dear David,

in message <200207251713.MAA00232@mint.mw.cray.com> you wrote:
>
> We've been very happily using BDI2000 for kernel debugging on our 405GP
> on a 2.4.2 kernel with builtin abatron MMU support (via PTBASE at 0xf0).

There have been some changes in the way how the Linux kernel and  the
BDI2000  exchange  information  about the MMU state; I'd recommend to
use a more recent kernel (linuxppc_2_4_devel) with the latest version
of the Abatron firmware (afaik 1.08 for 4xx)

> But I have not figured out how to get it deal with the address space of
> a loaded kernel module: it claims that the region is missing from the
> page tables.  Kernel addresses are in 0xC00xxxxx ranges, and when we load
> the module, 'module_list' now points to 0xC340xxxx ranges.  BDI can
> dump the physical addresses of my module, but cant talk to the virual
> kernel address space of the loaded module.

We have a bit of documentation about this at
http://www.denx.de/doc/TQM8xxL/debugging.html#DEBUGGING-LINUX-KERNEL

Hope it helps,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
A person who is more than casually interested in computers should  be
well  schooled in machine language, since it is a fundamental part of
a computer.                                           -- Donald Knuth

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: abatron and kernel modules.
  2002-07-25 19:45 ` Dan Malek
@ 2002-07-25 20:11   ` John W. Linville
  2002-07-25 20:54     ` Dan Malek
  0 siblings, 1 reply; 5+ messages in thread
From: John W. Linville @ 2002-07-25 20:11 UTC (permalink / raw)
  To: linuxppc-embedded


Dan Malek wrote:

>
> There was also a version of the 2.4.2 kernel, perhaps even a MontaVista
> snapshot, where I screwed up loading the address of the pte pointer

I recall having to add the BDI support to the linux-2.4.2_hhl20 kernel
source here.  If the original poster doesn't want to use a later kernel
for whatever reason (e.g. no support contract), he should get some late
2.4 source, find the BDI references (there aren't that many), and port
them back to his 2.4.2-derived base.

Good luck!

John

--
John W. Linville
LVL7 Systems, Inc.


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: abatron and kernel modules.
  2002-07-25 20:11   ` John W. Linville
@ 2002-07-25 20:54     ` Dan Malek
  0 siblings, 0 replies; 5+ messages in thread
From: Dan Malek @ 2002-07-25 20:54 UTC (permalink / raw)
  To: John W. Linville; +Cc: linuxppc-embedded


John W. Linville wrote:


> I recall having to add the BDI support to the linux-2.4.2_hhl20 kernel
> source here.

There are a couple of different versions of that kernel :-)  The first
one was all PPC except 4xx.  There was one for 4xx, where I managed to
break some of the other PPCs (sorry).  There may be later ones that
include other processor architectures.  There are minor version numbers
contained in the packages, take a look at them as they are important.
Of course, the processor specific CD packages were all correct, just
be careful when mixing from one to another (which isn't recommend).


	-- Dan


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2002-07-25 20:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-25 17:13 abatron and kernel modules David Updegraff
2002-07-25 19:45 ` Dan Malek
2002-07-25 20:11   ` John W. Linville
2002-07-25 20:54     ` Dan Malek
2002-07-25 19:53 ` Wolfgang Denk

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