From: David Updegraff <hidden> Date: 2002-07-25 17:13:37
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/
From: Dan Malek <hidden> Date: 2002-07-25 19:45:48
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/
From: John W. Linville <hidden> Date: 2002-07-25 20:11:43
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/
From: Dan Malek <hidden> Date: 2002-07-25 20:54:30
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/