From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from outbound8-sin-R.bigfish.com (outbound-sin.frontbridge.com [207.46.51.80]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.bigfish.com", Issuer "*.bigfish.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 03F65DDF09 for ; Thu, 13 Mar 2008 03:02:47 +1100 (EST) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C8845A.48A178CA" Subject: RE: XMD to debug Linux kernel 2.6 Date: Wed, 12 Mar 2008 10:01:07 -0600 In-Reply-To: <4f8c3030803120815o7dcf5e8xb74650c8b993d26d@mail.gmail.com> References: <4f8c3030803120815o7dcf5e8xb74650c8b993d26d@mail.gmail.com> From: "John Linn" To: "Ramkumar J" , Message-Id: <20080312160109.D39B8CB0058@mail174-sin.bigfish.com> List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. ------_=_NextPart_001_01C8845A.48A178CA Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Hi Ramkumar, =20 XMD can definitely be used to help debug a kernel. I use it to dump registers and to dump memory. I'm not sure on the TLB entries yet but will check into it. I'm sure that XMD does not handle any virtual address to physical conversions. =20 I use it to dump the log buff sometimes when the kernel doesn't come up. You may need to do a RST and then you need to use the physical address rather than the virtual address (Address - 0xC0000000). =20 You can do a help in XMD. =20 Thanks, John =20 ________________________________ From: linuxppc-embedded-bounces+john.linn=3Dxilinx.com@ozlabs.org [mailto:linuxppc-embedded-bounces+john.linn=3Dxilinx.com@ozlabs.org] On Behalf Of Ramkumar J Sent: Wednesday, March 12, 2008 9:15 AM To: linuxppc-embedded@ozlabs.org Subject: XMD to debug Linux kernel 2.6 =20 Hi All, I need to dump the TLB entries, i-cache and d-cache entries on a ML-403 board ( I use a PowerPc based design) using the Xilinx Parallel-4 Cable. When I download the zImage.elf using dow command on XMD, I m not able to access the TLB and cache address special memory mappings as displayed by the XMD. I suspect that XMD only allows the dump for sections inside the elf file. If its true, then how to access the sections of kernel. Could XMD be used to debug a linux kernel by dumping the registers, TLBs, cache entries,etc. Am I missing anything. Any pointers would be very helpful. Thanks and Regards, Ramkumar ------_=_NextPart_001_01C8845A.48A178CA Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable

Hi = Ramkumar,

 

XMD can definitely be used to help = debug a kernel.  I use it to dump registers and to dump memory. =  I’m not sure on the TLB entries yet but will check into it.  I’m = sure that XMD does not handle any virtual address to physical = conversions.

 

I use it to dump the log buff = sometimes when the kernel doesn’t come up.  You may need to do a RST = and then you need to use the physical address rather than the virtual address = (Address – 0xC0000000).

 

You can do a help in = XMD.

 

Thanks,

=

John

 


From: linuxppc-embedded-bounces+john.linn=3Dxilinx.com@ozlabs.org [mailto:linuxppc-embedded-bounces+john.linn=3Dxilinx.com@ozlabs.org] = On Behalf Of Ramkumar J
Sent: Wednesday, March = 12, 2008 9:15 AM
To: = linuxppc-embedded@ozlabs.org
Subject: XMD to debug = Linux kernel 2.6

 

Hi All,

I need to dump the TLB entries, i-cache and d-cache entries on a = ML-403 board ( I use a PowerPc based design) using the Xilinx Parallel-4 Cable. = When I download the zImage.elf using dow command on XMD, I m not able to = access the TLB and cache address special memory mappings as displayed by the = XMD. I suspect that XMD only allows the dump for sections inside the elf file. = If its true, then how to access the sections of = kernel.

Could XMD be used to debug a linux kernel by dumping the = registers, TLBs, cache entries,etc. Am I missing anything. Any pointers would be = very helpful.

Thanks and Regards,
Ramkumar

------_=_NextPart_001_01C8845A.48A178CA--