?? vxworks bsp和啟動過程.htm
字號:
<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>>><a href="http://drew.nease.net/">Drew的主頁</a></big>---><a href="http://drew.nease.net/mypage/VxWorks.htm"><font FACE="System" LANG="ZH-CN">VxWorks</font></a><fontFACE="System" LANG="ZH-CN"><big>--------->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協議通信<==========><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> <==========></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>作用: </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 + -