📄 index.html
字号:
<!DOCTYPE html PUBLIC "-//w3c//dtd html 4.0 transitional//en"><html><head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="GENERATOR" content="Mozilla/4.74 [en] (X11; U; Linux 2.2.16 i686) [Netscape]"> <title>MPCBDM</title></head> <body> <u><font size="+4"><b>MPCBDM</b>:</font></u><font size="+4"> </font> last update: 2002/04/05 <p><b><u><font size="+2">BDM Interface for MPC860/850/823 with gdb access</font></u></b> </p><p>This is experimental. It works fine for me, but don't expect too much: <br> recent stable version is: <a href="mpcbdm-1.2.3.tar.gz">mpcbdm-1.2.3.tar.gz</a> (130701 Bytes). See below for details. </p><p>Here's a for non-commercial usage free blueprint for a BDM interface forthe MPC860/850/823. Included in the source archive mentioned below is thesource code for a new gdb target mpcbdm for i386 hosts running gnu/linux. This target communicates over an i386 standard printer port through the interfacewith the BDM-Port of the MPC860/850/823 processor. This provides fullcontrol over the processor through the GNUs gdb debugger interface. </p><p>Features: </p><ul> <li> access to registers, to special purpose registers (show valueswith names of bit fields) and to memory</li> <li> download code, about 114kbit/s, kernel takes about 20s, dependingupon host processor speed</li> <li> disassemble and debug code in MPC860 system, starting, stopping, software breakpoints, single stepping, using both assembler instructions and source code</li> <li> FLASH support for AMD 29LV160DB, flash routines configurable for otherdevices via <a href="Flash.dev">Flash.dev</a> textfile at runtime</li> <li> booting the MPC without any PROM</li> <li> simple MMU support simulates linux table walk to get basic accessto virtual memory. Compile kernel with -g -O option and debug in source code</li> <li> supports hardware breakpoints</li> </ul> <b><u><font size="+1">Contact and Help:</font></u></b> <p>Please <a href="mailto:bdm4gdb-users@lists.sourceforge.net">mailto:bdm4gdb-users@lists.sourceforge.net</a> if you have any questions, problems, new ideas! <br>This list is search able via <a href="http://www.geocrawler.com/redir-sf.php3?list=bdm4gdb-users">http://www.geocrawler.com/redir-sf.php3?list=bdm4gdb-users</a>. </p><p><b><u><font color="#000000"><font size="+1">News<br></font></font></u></b> </p><p>2002/04/05:<br> mpcbdm-1.2.3 released. Total reworked, configurable flash routines. MSR/SRR1 bug fixed.<br></p><p>2001/06/26: <br> 1.2.1 Cygwin/Insight version, <br> prerelease of 1.2.2 version supporting linux-2.4 tablewalk,mmu and cache debugging, dcache flushing, mem upload/download </p><p><b><u><font size="+2">Hardware:</font></u></b> </p><p>There are two adapter versions, called adapter version 1 and 2. I recommend using the newer one, adapter version 2, though this version is not compatible to Sergey's design and older BDM projects. </p><p><b><u><font size="+1">Adapter Version 2:</font></u></b> </p><p>The schematic for adapter version 2 can be found here : <a href="VDB2.gif">VDB2.gif</a> (53691 Bytes). It has one ten pin BDM header supporting both VFLS lines, and an additional 16 pin COP/JTAG header (still no software support, because of no COP documentation available to the public. Please contact me, if youfind a link to public documentation). </p><p><b><u><font size="+1">Adapter Version 1:</font></u></b> </p><p>Just for the sake of completeness: <br>This first adapter version uses only two 14 pins DIP ICs 74HC14 (six invertingSchmitt-Triggers) and a couple of discrete elements: <a href="MPCBDM.GIF">MPCBDM.GIF</a> (48362 Bytes). With a little soldering experience the interface is build in less than one hour (ok, let's say in less than three hours ;-). <br><b><font color="#ff0000">!NOTE!</font></b>: This adapter version only supportsthe FRZ BDM header. If your BDM connector uses the VFLS signals, you needto add an AND gate between these two signals, pin 1 and 6 from MPC connector,and feed this product to the PC , pin 1 from PC connector (replacing theoriginal pin 1 connection). See Erwin Rol's solution for this problem: <a href="VFLS.txt">VFLS.txt</a> . </p><p><b><u><font size="+2">Software:</font></u></b> </p><p>Get the latest source archive <a href="mpcbdm-1.2.3.tar.gz">mpcbdm-1.2.3.tar.gz</a> and compile together with <a href="http://www.gnu.org/order/ftp.html">GNU-gdb</a> source code (tested with gdb-5.0, for other versions please read thedetails below). Follow the <a href="README.txt">README.txt</a> (9427 Bytes) on how to build the cross-gdb (there's a bash script (BuildGDB)included to easily build an i386-linux hosted, ppc targeted gdb) and howto activate the new target mpcbdm (all files but gdb/ included in the archive;-). <br> </p><center><table border="1" width="100%" nosave=""> <tbody> <tr nosave=""> <th nosave="">File</th> <th nosave="">Size (Bytes)</th> <th nosave="">Date</th> <th nosave="">Comment<br> </th> </tr> <tr> <td valign="Top"><a href="mpcbdm-1.2.3.tar.gz">mpcbdm-1.2.3.tar.gz</a> <br> </td> <td valign="Top" align="Right">130701<br> </td> <td valign="Top" align="Center">2002/04/05<br> </td> <td valign="Top">reworked FLASH routines, MSR/SRR1 bug fixed<br> </td> </tr> <tr nosave=""> <td nosave=""><a href="mpcbdm-1.2.2-pre.tar.gz">mpcbdm-1.2.2-pre.tar.gz</a> </td> <td align="Right" nosave="">122884</td> <td align="Center" nosave="">2001/06/26</td> <td>pre release for testing new features</td> </tr> <tr nosave=""> <td nosave=""><a href="mpcbdm-1.2.1-Insight.tar.gz">mpcbdm-1.2.1-Insight.tar.gz</a> </td> <td align="Right" nosave="">32043</td> <td align="Center" nosave="">2001/06/14</td> <td>Jean-Paul Iribarren's version under Cygwin and Insight (please read notes below)</td> </tr> <tr nosave=""> <td nosave=""><a href="mpcbdm-1.2.1.tar.gz">mpcbdm-1.2.1.tar.gz</a> </td> <td align="Right" nosave="">114911</td> <td align="Center" nosave="">2001/05/16</td> <td>workaround for dcache bug</td> </tr> <tr nosave=""> <td nosave=""><a href="mpcbdm-1.2.tar.gz">mpcbdm-1.2.tar.gz</a> </td> <td align="Right" nosave="">55703</td> <td align="Center" nosave="">2000/11/21</td> <td>added adapter v2 support, using gdb-5.0</td> </tr> <tr nosave=""> <td nosave=""><a href="mpcbdm-1.1.tar.gz">mpcbdm-1.0.tar.gz</a> </td> <td align="Right" nosave="">102940</td> <td align="Center" nosave="">2000/08/11</td> <td>first release, adapter v1 only, using gdb-4.18</td> </tr> </tbody></table></center> <p><b><u>MPCBDM Version 1.2.3:</u></b></p><p>In this version the FLASH routines got totaly reworked. No need to recompilethe target for different FLASH devices or different boards. Bank configurationis done at runtime. Support for different devices is achieved through a textconfiguration file which is getting parsed by a little sequence parser.Please send me your Flash.dev files if you got another device working. MSR/SRR1bug fixed (machine state got corrupted when entering debug mode, especiallydisturbing on early kernel debugging).<br><br><b><u>MPCBDM Version 1.2.2-pre:</u></b> </p><p>This version is a pre-release, for I changed a lot of the source code, and hadn't yet the time to test all impacts in depth. <br>Removed some bugs in the BDM protocol, added proper linux-2.4 tablewalk (userspace should work also now), support for mmu and cache debugging (and dcacheflushing), binary down and upload. </p><p><b><u>MPCBDM Version 1.2.1-Insight:</u></b> </p><p>This version is running under Cygwin 1.3.2, using Insight-GDB 5.0. For I/O-port access you might need DLPORTIO.dll on some systems. You can download this package from <a href="http://www.sstnet.com/ftp/unsupported/port95nt.exe">http://www.sstnet.com/ftp/unsupported/port95nt.exe</a></p><pre wrap="">The link for port95nt.exe seems to be invalid for some weeks now. But you can still find port95nt.exe under <a class="moz-txt-link-freetext" href="http://www.driverlinx.com/ftp/unsupported/">http://www.driverlinx.com/ftp/unsupported/</a></pre><p><b><u>MPCBDM Version 1.2.1:</u></b> </p><p><b><font color="#ff0000">!NOTE!</font></b>: versions 1.1 and 1.2 contain a severe cache handling bug. This version is a simple workaround bydisabling the data cache invalidation. As with the previous version you'llstill have trouble with modified valid cache entries, as the bdm interfacealways accesses physical memory, and doesn't see the cache contents (you'llsee old values for variables sometimes). I'll try to fix this in the nextversion, which is under development. I also extended the mpc.init file, whichallows you now to start a kernel right from the debugger from target's RAMwithout the need of any boot loader. This works fine the STK board and TQMmodules, other boards need macro adjustments. </p><p><b><u>MPCBDM Version 1.2:</u></b> </p><p>This mpcbdm version supports both adapters. Version 1.2 is for use with gdb-5.0. Source code is tested with gdb-4.18, but the build script has changed (try the old script, if you need to stay with gdb-4.18). </p><p><b><u>MPCBDM Version 1.0:</u></b> </p><p>I've tried to make the adapter compatible with Sergey's adapter and earlierversions (so maybe give the target a try on your old hardware?). </p><p><b><u><font size="+1">Tools:</font></u></b> </p><p>Here's <a href="BuildLinux">BuildLinux</a>, a small bash script for preparing zvmlinux[.initrd] to make gdb load theimage [+initrd] section with the mpcbdm target. </p><p><b><u><font size="+2">Acknowledgements:</font></u></b> </p><p>Based on Sergey Drazhnikov work, thanks Sergey! </p><p>Tested with a MPC860SR 50MHz on a TQ-Components TQM860-Board. </p><p>Thanks goes also to Wolfgang Denk, <a href="http://www.denx.de">www.denx.de</a>, for lots of ideas and hints and aid to get the board running linux. </p><p>Thanks to Raphael Bossek for the sourceforge project site: <br><a href="http://bdm4gdb.sourceforge.net/">http://bdm4gdb.sourceforge.net/</a> and <a href="http://sourceforge.net/projects/bdm4gdb/">http://sourceforge.net/projects/bdm4gdb/</a> . </p><p>Thanks to Erwin Rol for his VFLS solution for the first adapter version. </p><p>Thanks to Jean-Paul Iribarren for bug fixes and his Cygwin / Insight versionof the mpcbdm target. </p><p>Thanks to anybody else who have taken part in developing this project andI forgot to mention here explicitly. </p><p>No Warranty! Use at own risk! <br>Watch out for the voltages allowed on the BDM port input pins of your targetprocessor! </p><p>Requires a host running linux, tons of installed software... </p><p>Have fun! <br> </p><p><b>Copyright (c) 1999, 2000, 2001, 2002 VAS GmbH, Hamburg, Germany.</b> <br>Visit our home page at <a href="http://www.vas-gmbh.de">www.vas-gmbh.de</a>. <br>Contact me via <a href="mailto:Frank.Przybylski@vas-gmbh.de">mailto:Frank.Przybylski@vas-gmbh.de</a> </p></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -