⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vxworks bsp和启动过程.htm

📁 Drew对于BSP的相关配置的一些经验和总结。压缩文件里包含了3个HTML文件:BSP配置文件及生成下载、VxWorks BSP和启动过程、PCI设备(网卡)初始化代码分析。希望对大家有所帮助。
💻 HTM
📖 第 1 页 / 共 3 页
字号:
<html><head><meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb_2312-80"><meta NAME="GENERATOR" CONTENT="Microsoft FrontPage 4.0"><meta NAME="Template" CONTENT="C:\PROGRAM FILES\MICROSOFT OFFICE\OFFICE\html.dot"><title>VxWorks BSP和启动过程</title></head><body LINK="#0000FF" VLINK="#800080"><p><big>&gt;&gt;<a href="http://drew.nease.net/">Drew的主页</a></big>---&gt;<a href="http://drew.nease.net/mypage/VxWorks.htm"><font FACE="System" LANG="ZH-CN">VxWorks</font></a><fontFACE="System" LANG="ZH-CN"><big>---------&gt;BSP和启动过程</big></font></p><div align="center"><center><table border="1" cellspacing="1" width="754" background="../../../drew/images/bg1.gif"bordercolor="#88DEEA" bordercolorlight="#88DEEA" bordercolordark="#88DEEA" height="23"bgcolor="#FFFFFF">  <tr>    <td height="1" width="75" align="center"><p align="center"><a href="http://drew.nease.net/"><big>主页</big></a></td>    <td height="1" width="75" align="center"><p align="center"><a href="http://drew.nease.net/mypage/VxWorks.htm"><font FACE="System" LANG="ZH-CN">VxWorks</font></a></td>    <td height="1" width="75" align="center"><p align="center"><a href="http://drew.nease.net/processor/arm.htm"><font FACE="System" LANG="ZH-CN">ARM</font></a></td>    <td height="1" width="75" align="center"><p align="center"><a href="http://drew.nease.net/processor/mpc860.htm"><font FACE="System" LANG="ZH-CN">PowerPC</font></a></td>    <td height="1" width="75" align="center"><p align="center"><a href="http://drew.nease.net/mypage/driver.htm"><font FACE="System" LANG="ZH-CN">硬件驱动</font></a></td>    <td height="1" width="75" align="center"><p align="center"><a href="http://drew.nease.net/mypage/network.htm"><font FACE="System" LANG="ZH-CN">网络协议</font></a></td>    <td height="1" width="75" align="center"><p align="center"><a href="http://drew.nease.net/mypage/sourcecode.htm"><font FACE="System" LANG="ZH-CN">程序示例</font></a></td>    <td height="1" width="75" align="center"><a href="http://www.embhelp.com/bbs" target="_blank"><font face="System"    color="#8000FF">技术论坛</font></a></td>    <td height="1" width="75" align="center"><p align="center"><a href="http://www.embhelp.com/download"><font FACE="System" LANG="ZH-CN">下载</font></a></td>    <td height="1" width="75" align="center"><a href="interest.htm"><font face="System" lang="ZH-CN">个人兴趣</font></a></td>  </tr></table></center></div><p align="center"> </p><p align="center"><font FACE="宋体" LANG="ZH-CN" size="6" color="#0000FF"><b>VxWork BSP            和启动过程</b></font></p>      <p> </p>      <p style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="4"><strong>开发BSP主要的两点:</strong></font>       <ol>     <li>     <p style="line-height: 150%">系统image的生成,image的种类,image的download下载过程,系统的启动顺序和过程,调试环境的配置及远端调试的方式和方法,相应BSP设置文件的修改(网络,串口..),BSP各文件的组成和作用.</li>  </ol>    <ol start="2">    <li>    <p style="line-height: 150%">要对系统底层驱动清楚,也就是对CPU及相关的硬件有所了解.主要是32微处理器(上电启动过程,                download image的方式方法,读写ROM,地址空间分配,MMU,寄存器,中断定义,..).参照硬件资料,多读一些源码会有所帮助.<br>             </li>   </ol>      <p><big><strong>Tornado 2 开发调试环境协议框图</strong></big></p>           <div align="center"><center>      <table border="0" width="618" height="3">     <tr>       <td width="306" height="3"><p align="center"><strong>主机开发(Host Development System)</strong></td>               <td width="98" height="3"></td>       <td width="196" height="3"><strong>目标机(Target System)</strong></td>             </tr>   </table>   </center></div><div align="center"><center>      <table border="0" width="579" height="197">     <tr>       <td width="293" height="197" bgcolor="#C0C0C0"><div align="center"><center><table       border="0" width="77%" height="53">         <tr>           <td width="48%" height="52" colspan="2"><p align="center">Tornado 工具<small> </small></td>                   <td width="47%" height="53" rowspan="5"><p align="center"><strong> </strong></p>           <p align="center"><strong>WTX协议通信&lt;==========&gt;<br>           </strong></td>           <td width="34%" height="1"></td>         </tr>         <tr>           <td width="39%" height="53" rowspan="4"><div align="center"><center><table border="1"           width="100%" bgcolor="#00FFFF">             <tr>               <td width="100%">Editor</td>             </tr>             <tr>               <td width="100%">Project</td>             </tr>           </table>           </center></div></td>           <td width="9%" height="53" rowspan="4"><div align="center"><center><table border="1"           width="100%" bgcolor="#00FFFF">             <tr>               <td width="100%" align="center">Shell</td>             </tr>             <tr>               <td width="100%" align="center">Debugger</td>             </tr>             <tr>               <td width="100%" align="center">Browser</td>             </tr>             <tr>               <td width="100%" align="center">Windview</td>             </tr>           </table>           </center></div></td>           <td width="34%" height="92"></td>         </tr>         <tr>           <td width="34%" height="23"><div align="center"><center><table border="1" width="100%"           bgcolor="#FFFF00">             <tr>               <td width="100%"><p align="center">Target Server</td>             </tr>           </table>           </center></div></td>         </tr>         <tr>           <td width="34%" height="1"><p align="center">|</td>         </tr>         <tr>           <td width="34%" height="56"><div align="center"><center><table border="1" width="100%"           bgcolor="#00FFFF">             <tr>               <td width="100%">Target Agent</td>             </tr>             <tr>               <td width="100%">VxWorks Target Simulator</td>             </tr>           </table>           </center></div></td>         </tr>       </table>       </center></div></td>       <td width="120" height="197"><p align="center"><strong>WDB协议通信<br>       &lt;==========&gt;</strong></td>       <td width="152" height="185" bgcolor="#C0C0C0"><div align="center"><center><table       border="1" height="107" bgcolor="#00FFFF" width="93">         <tr>           <td width="87" height="16" align="center" bgcolor="#00FFFF">Application</td>         </tr>         <tr>           <td width="87" height="1" align="center">VxWorks <strong>OS</strong></td>         </tr>         <tr>           <td width="87" height="82" align="center" bgcolor="#00FF00"><strong>VxWorks Target (WDB</strong>)Agent</td>         </tr>       </table>       </center></div></td>     </tr>   </table>   </center></div>      <p><strong>两个主要两个协议</strong></p>      <blockquote>     <p><strong>WTX</strong>协议(Wind River Tool eXchange): 用于开发机内部Tornado工具与Target              Server之间通信.</p>     <p><strong>WDB</strong>协议(Wind DeBug): 用于主机Target Server与目标机之间的通信.</p>    </blockquote>      <p> </p><p><font face="宋体" lang="ZH-CN" size="5"><strong>一.基本概念</strong></font></p><blockquote>  <p style="line-height: 150%"><big><strong><font lang="ZH-CN">BSP定义:</font></strong></big></p>  <blockquote>    <p style="line-height: 150%"><small><small><font face="宋体" lang="ZH-CN" size="4">Provides VxWorks with primary     interface to hardware environment.</font></small></small></p>  </blockquote>  <blockquote>    <p style="line-height: 150%"><strong><font face="宋体" lang="ZH-CN" size="5"><small><small>作用:&nbsp; </small></small></font></strong><ul>      <li>        <p style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="5"><small><small>在通电后,初始化硬件.</small></small></font></li>      <li>        <p style="line-height: 150%"><font FACE="System" LANG="ZH-CN">支持VxWorks和硬件驱动通信</font><font        FACE="宋体" LANG="ZH-CN">.</font></li>      <li>        <p style="line-height: 150%"><font lang="ZH-CN">使hardware-dependent 和 hardware-independent在VxWorks系统中很好的结合.</font><font            FACE="宋体" LANG="ZH-CN"> </font></li>       </ul>     </blockquote>     <p style="line-height: 150%"><strong>主要BSP主要文件目录的组成及主要文件的作用:</strong></p>     <blockquote>       <ul>         <li>         <p style="line-height: 150%"><big><strong>目录target/config/All:</strong></big></li>      </ul>      <blockquote>        <p style="line-height: 150%">这个目录下的文件是所有BSP文件共享的,不是特别需要不要更改里面的任何文件.</p>        <p style="line-height: 150%"><strong>configAll.h: </strong></p>        <blockquote>          <p style="line-height: 150%">缺省定义了所有VxWorks的设置.如果不用缺省的设置,可在BSP目录下的config.h文件中用#define或#undef方式来更改设置.</p>        </blockquote>        <p style="line-height: 150%"><strong>bootInit.c: </strong></p>        <blockquote>          <p style="line-height: 150%">在romInit.s后,完成Boot ROM的第二步初始化.程序从romInit.s中的romInit()跳到这个文件中的romStart().来执行必要的解压和ROM             image的放置.</p>         </blockquote>         <p style="line-height: 150%"><strong>bootConfig.c:</strong> 完成Boot ROM image的初始化和控制.</p>          <p style="line-height: 150%"><strong>usrConfig.c:</strong> VxWorks image的初始化代码.</p>        </blockquote>       <ul>         <li>         <p style="line-height: 150%"><strong><big>目录target/config/comps/src: </big></strong></li>      </ul>      <blockquote>        <blockquote>          <p style="line-height: 150%"><big>涉及系统核心的components,主要由target/config/All中usrConfig.c中函数调用</big></p>        </blockquote>      </blockquote>    </blockquote>    <blockquote>      <ul>        <li>        <p style="line-height: 150%"><big><strong>目录target/config/bspname:</strong></big></li>      </ul>      <blockquote>        <p style="line-height: 150%"><big><strong>包含系统或硬件相关的BSP文件.</strong></big></p>      </blockquote>    </blockquote>    <blockquote>      <blockquote>        <p style="line-height: 150%"><strong><big>Makefile </big></strong></p>        <blockquote>          <p style="line-height: 150%"><big>一些命令行控制images的生成,</big>参见 <a href="http://drew.nease.net/mypage/example/config.htm" target="_blank">BSP设置部分及生成下载</a></p>        </blockquote>       <p style="line-height: 150%"><strong><big>README</big></strong></p>       <blockquote>         <p style="line-height: 150%"><big>BSP发布纪录,版本,总的文档</big></p>       </blockquote>       <p style="line-height: 150%"><strong><big>config.h</big></strong></p>       <blockquote>         <p style="line-height: 150%">包括所有涉及CPU主板的设置及定义(includes,definations),参见           <a href="http://drew.nease.net/mypage/example/config.htm" target="_blank">BSP设置文件及生成下载</a></p>       </blockquote>       <p style="line-height: 150%"><strong><big>configNet.h</big></strong></p>       <blockquote>         <p style="line-height: 150%"><big>网络驱动的主要设置文件,主要对END驱动设置.</big></p> 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -