From: fachkar.datawind@gmail.com (f. achkar)
To: linux-arm-kernel@lists.infradead.org
Subject: [Solved] Re: [Openocd-development] debugging linux kernel on arm926ejs targetvia openocd-0.4.0
Date: Fri, 28 May 2010 09:35:20 -0400 [thread overview]
Message-ID: <4BFFC698.8080207@gmail.com> (raw)
In-Reply-To: <70E876B0EA86DD4BAF101844BC814DFE08E055C848@Cloud.RL.local>
many thanks to everyone ...
-----------------------------------------------------------
On 05/27/2010 11:56 PM, Jon Povey wrote:
> f. achkar wrote:
>
>> is there a good reference on how to properly debug the linux kernel
>> via openocd/gdb for an arm target on a linux hot machine?
>>
> I have been debugging with this kind of setup over the past few days.
> I don't think you can just load your image like you are doing: it is loading at 0xc... which is a virtual address and the MMU hasn't been setup yet.
>
> Instead try doing your steps 1-6 but instead of "load" do:
> hbreak start_kernel
> cont
>
> then in u-boot boot the kernel from uImage over TFTP or from flash. Your debugger will break near the start of kernel execution and you can debug from there using software breakpoints (MMU will be on).
>
> If you need to debug the early stuff before MMU is on try
> hbreak 0x80008000
> instead of start_kernel and have a look at
> arm-none-linux-gnueabi objdump -S arch/arm/boot/compressed/head.o
>
> --
> Jon Povey
> jon.povey at racelogic.co.uk
>
> Racelogic is a limited company registered in England. Registered number 2743719 .
> Registered Office Unit 10, Swan Business Centre, Osier Way, Buckingham, Bucks, MK18 1TB .
>
> The information contained in this electronic mail transmission is intended by Racelogic Ltd for the use of the named individual or entity to which it is directed and may contain information that is confidential or privileged. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email so that the sender's address records can be corrected. The views expressed by the sender of this communication do not necessarily represent those of Racelogic Ltd. Please note that Racelogic reserves the right to monitor e-mail communications passing through its network
>
>
>
parent reply other threads:[~2010-05-28 13:35 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <70E876B0EA86DD4BAF101844BC814DFE08E055C848@Cloud.RL.local>]
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=4BFFC698.8080207@gmail.com \
--to=fachkar.datawind@gmail.com \
--cc=linux-arm-kernel@lists.infradead.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).