<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On Sep 3, 2007, at 7:02 AM, dnl wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><P><FONT size="2">Hi all,<BR> <BR> I am using uboot and montavista kernel for our custom MPC8555CDS board.<BR></FONT></P></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV>You should contact MontaVista first, since we really</DIV><DIV>don't know what your source code looks like. I'm</DIV><DIV>assuming it's a ppc, not powerpc, although the patch</DIV><DIV>is similar for either choice. I'd suggest this as a starting</DIV><DIV>point:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>diff -Naru linux-2.6.21/arch/ppc/kernel/head_fsl_booke.S linux-2.6.21-dbg/arch/ppc/kernel/head_fsl_booke.S</DIV><DIV>--- linux-2.6.21/arch/ppc/kernel/head_fsl_booke.S 2007-07-05 13:08:16.000000000 -0800</DIV><DIV>+++ linux-2.6.21-dbg/arch/ppc/kernel/head_fsl_booke.S 2007-07-10 03:45:33.000000000 -0800</DIV><DIV>@@ -317,6 +322,16 @@</DIV><DIV> /* clear any residual debug events */</DIV><DIV> li r2,-1</DIV><DIV> mtspr SPRN_DBSR,r2</DIV><DIV>+#else </DIV><DIV>+ /* Enable BDI200 debugging beyond this point for "normal"</DIV><DIV>+ * kernel debugging. If you are debugging code prior to this</DIV><DIV>+ * point, it needs to be done with more specific set up</DIV><DIV>+ * of configuration files and boot rom.</DIV><DIV>+ */</DIV><DIV>+ mfmsr r2</DIV><DIV>+ ori r2, r2, MSR_DE</DIV><DIV>+ mtmsr r2</DIV><DIV>+ isync</DIV><DIV> #endif</DIV><DIV><BR><BLOCKQUOTE type="cite"></BLOCKQUOTE></DIV>Your first breakpoint should be a hard breakpoint<DIV>at the label start_kernel. You can then switch to</DIV><DIV>soft breakpoints and continue your debugging.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Ultimate Solutions have some useful white papers</DIV><DIV>on kernel debugging with the BDI2000 (that some</DIV><DIV>people have plagiarized). Check out ultsol.com</DIV><DIV><BR><DIV>Good Luck.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>-- Dan</DIV><DIV><BR class="khtml-block-placeholder"></DIV></DIV></BODY></HTML>