* Possibly OT: bdi2000 virtual memory on 2.6 kernel
@ 2006-11-14 3:17 Robin Gilks
2006-11-14 17:39 ` Dan Malek
0 siblings, 1 reply; 3+ messages in thread
From: Robin Gilks @ 2006-11-14 3:17 UTC (permalink / raw)
To: ppc embedded list
Greetings
Debugging a 2.6.18 kernel on a powerpc target with a bdi2000, I'm
hitting a problem with not being able to read virtual addresses (i.e.
those starting 0xc......). I get errors in gdb of the form:
Cannot access memory at address 0xc023634c
I have CONFIG_BDI_SWITCH set and in the bdi config file I have MMU set
to XLAT to (I thought) get the effective address.
I can set breakpoints OK and using ddd I get to the correct place in the
source file but I can't then check and variables or structure due to
this addressing problem.
I'm sure its something simple, I just can't see it at present!!
--
Robin
=======================================================================
This email, including any attachments, is only for the intended
addressee. It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
altered or corrupted during transmission.
=======================================================================
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Possibly OT: bdi2000 virtual memory on 2.6 kernel
2006-11-14 3:17 Possibly OT: bdi2000 virtual memory on 2.6 kernel Robin Gilks
@ 2006-11-14 17:39 ` Dan Malek
2006-11-14 21:32 ` Robin Gilks
0 siblings, 1 reply; 3+ messages in thread
From: Dan Malek @ 2006-11-14 17:39 UTC (permalink / raw)
To: robin.gilks; +Cc: ppc embedded list
On Nov 13, 2006, at 10:17 PM, Robin Gilks wrote:
> Debugging a 2.6.18 kernel on a powerpc target
Which processor, specifically?
What do your MMU XLAT and PTBASE configuration
lines look like?
Thanks.
-- Dan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Possibly OT: bdi2000 virtual memory on 2.6 kernel
2006-11-14 17:39 ` Dan Malek
@ 2006-11-14 21:32 ` Robin Gilks
0 siblings, 0 replies; 3+ messages in thread
From: Robin Gilks @ 2006-11-14 21:32 UTC (permalink / raw)
To: Dan Malek; +Cc: ppc embedded list
Dan Malek wrote:
>
> On Nov 13, 2006, at 10:17 PM, Robin Gilks wrote:
>
>> Debugging a 2.6.18 kernel on a powerpc target
>
> Which processor, specifically?
> What do your MMU XLAT and PTBASE configuration
> lines look like?
>
> Thanks.
>
> -- Dan
>
Hi Dan
Running a 859T processor with the following bdi2000 config lines
MMU XLAT
PTBASE 0xf0
WSPR 149 0x0082000F
in .config (for the kernel build) I have
CONFIG_BDI_SWITCH=y
Memory dumping 0xf0 - its pointing to abatron_pteptrs which contains the
pointer to swapper_pg_dir as expected so it all looks OK.
What I'm NOT doing is using a hardware breakpoint to get beyond the
decompress stage and then loading the vmlinux image before proceeding.
I'm just loading up vmlinux in ddd, allowing uboot to tftp the kernel
binary in and decompressing it and then just letting it rip. This
approach seems OK as far as maintaining breakpoints across multiple runs
goes, so I assume its OK.
--
Robin
=======================================================================
This email, including any attachments, is only for the intended
addressee. It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
altered or corrupted during transmission.
=======================================================================
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-11-14 21:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-14 3:17 Possibly OT: bdi2000 virtual memory on 2.6 kernel Robin Gilks
2006-11-14 17:39 ` Dan Malek
2006-11-14 21:32 ` Robin Gilks
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).