From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by ozlabs.org (Postfix) with ESMTP id BBD80DDEEF for ; Thu, 14 Feb 2008 05:49:38 +1100 (EST) Received: by py-out-1112.google.com with SMTP id z59so108174pyg.27 for ; Wed, 13 Feb 2008 10:49:37 -0800 (PST) Message-ID: <5ee408090802131049u652ef867wff034b4ccb1067f1@mail.gmail.com> Date: Wed, 13 Feb 2008 16:49:36 -0200 From: "Ricardo Ayres Severo" To: "David Baird" Subject: Re: TLB Miss booting linux kernel on ppc 405 In-Reply-To: <440abda90802131032l6e11eef7gbd7eb57352c2ce4@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 References: <5ee408090802130850w130ce09an507ca5c4d41cc5a8@mail.gmail.com> <440abda90802130917x79c3c990j6a1fc7c12ba05ed7@mail.gmail.com> <5ee408090802130938u7d069636g42a496e489fe5b80@mail.gmail.com> <440abda90802130951h7a23743asc85454bf089c7e55@mail.gmail.com> <5ee408090802131003m4b8e632cu931769bc77f9b439@mail.gmail.com> <440abda90802131032l6e11eef7gbd7eb57352c2ce4@mail.gmail.com> Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Executing without single step the exception doesn't occurs. But at __log_buf I get only trash, even after reseting the processor. How can I send some characters to uartlite on asm code? Thanks, On Feb 13, 2008 4:32 PM, David Baird wrote: > On Feb 13, 2008 11:03 AM, Ricardo Ayres Severo wrote: > > Here are the srr dump: > > srr0: c0002218 > > srr1: 00021030 > > srr2: 00001154 > > srr3: 00000000 > > Okay, SRR0 tells us that you did in fact have an exception at > 0xc0002218. And I am willing to bet that is the line you mentioned > (line 826 of start_here). You can match this up with your System.map > or an objdump -d of vmlinux. > > Someone who knows more than I do can correct me on this, but I have a > suspicion. As soon virtual (translation) mode is entered, I have had > a hard time using the normal debugging functions (e.g. single > instruction stepping and reading memory regions). While in virtual > mode, it seemed like I had to resort to these techniques: > > - Blinking some LEDs > - Spitting characters out of a uartlite > - When an exception occurs, the processor switches back into real mode > and therefore I can set breakpoints on the beginnings of various > exception handlers and be able to use normal debugging tools again > > So, I have another question. Can you set a breakpoint on 0x1100 (in > XMD: bps 0x1100 hw), then just let it run (i.e. do not single step!) > all the way until an exception happens. When the exception happens, > can you then paste the SRR0, SRR1, and the ESR (exception syndrome > register)? > > I hope I am not giving you a run-around here.... > > -David > > _______________________________________________ > Linuxppc-embedded mailing list > Linuxppc-embedded@ozlabs.org > https://ozlabs.org/mailman/listinfo/linuxppc-embedded > -- Ricardo Ayres Severo