From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Wed, 31 Oct 2012 17:08:26 -0500 Subject: [U-Boot] [PATCH v2 03/22] powerpc/mpc85xx: move debug tlb entry after TLB is in known state In-Reply-To: <5090C27B.6040904@freescale.com> (from prabhakar@freescale.com on Wed Oct 31 01:17:31 2012) Message-ID: <1351721306.13377.15@snotra> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 10/31/2012 01:17:31 AM, Prabhakar Kushwaha wrote: > On 10/31/2012 02:37 AM, Scott Wood wrote: >> On 10/30/2012 04:26:16 AM, Prabhakar Kushwaha wrote: >> I'd rather not see this split this up. This file is too much of a >> complicated ifdef mess already. >> >> The window during which you won't be able to use breakpoints is not >> that large. >> There are other debugging techniques that can be used. > > Can you please share the other techniques. It will help us in future. For debugging early boot hangs I usually put a branch-to-self somewhere in the sequence, and use CCS to see if we're spinning there or if we went off to some exception or other badness. Then I do a binary search, moving the branch to self around, to determine where things went wrong. -Scott