<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>beginner with u-boot</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Hello,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I start using Abatron BDI2000/gdb for BDM. I have EST SBC8260 board and try to put u-boot onto this board.</FONT>
<BR><FONT SIZE=2 FACE="Arial">Take me a while to create a correct est8260.cfg file and now I able to "prog 00xFE000000 u-boot.bin BIN"</FONT>
<BR><FONT SIZE=2 FACE="Arial">onto this board at the flash 0xFE000000. After I "reset run", look like u-boot does not relocate to RAM.</FONT>
<BR><FONT SIZE=2 FACE="Arial">I can tell it maps to 0x40000000:</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">BDI>md 0x40000000</FONT>
<BR><FONT SIZE=2 FACE="Arial">40000000 : 0e0e0e0e 0e0e0e0e 34343434 34343434 ........44444444</FONT>
<BR><FONT SIZE=2 FACE="Arial">40000010 : 8e8e8e8e 8e8e8e8e 05050505 05050505 ................</FONT>
<BR><FONT SIZE=2 FACE="Arial">BDI>md 0x40000100</FONT>
<BR><FONT SIZE=2 FACE="Arial">40000100 : 3aa00001 60000000 48000010 00000000 :...`...H.......</FONT>
<BR><FONT SIZE=2 FACE="Arial">40000110 : 3aa00002 48000004 7ca000a6 4800305d :...H...|...H.0]</FONT>
<BR><FONT SIZE=2 FACE="Arial">40000120 : 3c60f001 80830104 38a07fff 7c842838 <`......8...|.(8</FONT>
<BR><FONT SIZE=2 FACE="Arial">40000130 : 90830104 3c604000 60630000 38630148 ....<`@.`c..8c.H</FONT>
<BR><FONT SIZE=2 FACE="Arial">40000140 : 7c6803a6 4e800020 3c60f000 60613f80 |h..N.. <`..`a?.</FONT>
<BR><FONT SIZE=2 FACE="Arial">40000150 : 38000000 9401fffc 9401fffc 48000005 8...........H...</FONT>
<BR><FONT SIZE=2 FACE="Arial">40000160 : 7dc802a6 800e33fc 7dc07214 48003899 }.....3.}.r.H.8.</FONT>
<BR><FONT SIZE=2 FACE="Arial">40000170 : 7ea3ab78 48004629 00000000 00000000 ~..xH.F)........</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">BDI>md 0 </FONT>
<BR><FONT SIZE=2 FACE="Arial">00000000 : 00000000 00000000 00000000 00000000 ................</FONT>
<BR><FONT SIZE=2 FACE="Arial">00000010 : 00000000 00000000 00000000 00000000 ................</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">BDI>i</FONT>
<BR><FONT SIZE=2 FACE="Arial"> Target CPU : MPC82xx (Groucho)</FONT>
<BR><FONT SIZE=2 FACE="Arial"> Target state : debug mode</FONT>
<BR><FONT SIZE=2 FACE="Arial"> Debug entry cause : <reserved 0></FONT>
<BR><FONT SIZE=2 FACE="Arial"> Current PC : 0x00000210</FONT>
<BR><FONT SIZE=2 FACE="Arial"> Current CR : 0x20000002</FONT>
<BR><FONT SIZE=2 FACE="Arial"> Current MSR : 0x00000000</FONT>
<BR><FONT SIZE=2 FACE="Arial"> Current LR : 0x40003c0c</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Look like it stops at 0x00000210. Also I could not able to write to 0x0.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I followed section 10.1.1 Debugging of U-boot before relocation and got some error:</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">[root@penrock u-boot-1.1.4]# /opt/eldk/usr/bin/ppc_82xx-gdb u-boot</FONT>
<BR><FONT SIZE=2 FACE="Arial">GNU gdb Red Hat Linux (6.3.0.0-1.21_1rh)</FONT>
<BR><FONT SIZE=2 FACE="Arial">Copyright 2004 Free Software Foundation, Inc.</FONT>
<BR><FONT SIZE=2 FACE="Arial">GDB is free software, covered by the GNU General Public License, and you are</FONT>
<BR><FONT SIZE=2 FACE="Arial">welcome to change it and/or distribute copies of it under certain conditions.</FONT>
<BR><FONT SIZE=2 FACE="Arial">Type "show copying" to see the conditions.</FONT>
<BR><FONT SIZE=2 FACE="Arial">There is absolutely no warranty for GDB. Type "show warranty" for details.</FONT>
<BR><FONT SIZE=2 FACE="Arial">This GDB was configured as "--host=i386-redhat-linux --target=ppc-linux"...</FONT>
<BR><FONT SIZE=2 FACE="Arial">(gdb) target remote 192.168.43.88:2001</FONT>
<BR><FONT SIZE=2 FACE="Arial">Remote debugging using 192.168.43.88:2001</FONT>
<BR><FONT SIZE=2 FACE="Arial">0x00000210 in ?? ()</FONT>
<BR><FONT SIZE=2 FACE="Arial">(gdb) b cpu_init_f</FONT>
<BR><FONT SIZE=2 FACE="Arial">Breakpoint 1 at 0x40003a1c: file cpu_init.c, line 111.</FONT>
<BR><FONT SIZE=2 FACE="Arial">(gdb) c</FONT>
<BR><FONT SIZE=2 FACE="Arial">Continuing.</FONT>
<BR><FONT SIZE=2 FACE="Arial">Warning:</FONT>
<BR><FONT SIZE=2 FACE="Arial">Cannot insert breakpoint 1.</FONT>
<BR><FONT SIZE=2 FACE="Arial">Error accessing memory address 0x40003a1c: Unknown error 4294967295.</FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Arial">This EST SBC8260 has 16M RAM, so I changed the sbc8260.h from 64 to 16.</FONT>
<BR><FONT SIZE=2 FACE="Arial">Even I tried both and have the same problem.</FONT>
<BR><FONT SIZE=2 FACE="Arial">I am a beginner of BDI2000/gdb, EST8260 and U-boot. I would like someone explain me</FONT>
<BR><FONT SIZE=2 FACE="Arial">what I already done and please show me how to debug u-boot and show me to make</FONT>
<BR><FONT SIZE=2 FACE="Arial">uboot is run on this board. Please details as much as you can.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I am looking forward.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Thanks!</FONT>
</P>
</BODY>
</HTML>