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

📄 installing_the_blackfin_tool_chain.html

📁 ADI 公司blackfin系列的用户使用文挡。
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head>  <title></title>  <link rel="stylesheet" media="screen" type="text/css" href="./style.css" />  <link rel="stylesheet" media="screen" type="text/css" href="./design.css" />  <link rel="stylesheet" media="print" type="text/css" href="./print.css" />  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><a href=start.html>start</a></br><div class="toc"><div class="tocheader toctoggle" id="toc__header">Table of Contents</div><div id="toc__inside"><ul class="toc"><li class="clear"><ul class="toc"><li class="level2"><div class="li"><span class="li"><a href="#installing_the_blackfin_toolchain_in_linux_from_tar_or_rpm_files" class="toc">Installing the Blackfin ToolChain in Linux from tar or rpm files</a></span></div><ul class="toc"><li class="level3"><div class="li"><span class="li"><a href="#installing_the_rpm" class="toc">Installing the rpm</a></span></div></li><li class="level3"><div class="li"><span class="li"><a href="#installing_from_source" class="toc">Installing from source</a></span></div></li><li class="level3"><div class="li"><span class="li"><a href="#setting_the_path_environment_variable" class="toc">Setting the PATH environment variable</a></span></div></li></ul></li></ul></li></ul></div></div><h2><a name="installing_the_blackfin_toolchain_in_linux_from_tar_or_rpm_files" id="installing_the_blackfin_toolchain_in_linux_from_tar_or_rpm_files">Installing the Blackfin ToolChain in Linux from tar or rpm files</a></h2><div class="level2"><p> The Blackfin toolchain can be obtained from the Blackfin/uClinux website, gcc v3.4.x for the Blackfin can be found at <a href="http://blackfin.uclinux.org/projects/gcc3" class="urlextern" title="http://blackfin.uclinux.org/projects/gcc3"  rel="nofollow">http://blackfin.uclinux.org/projects/gcc3</a>. Click on the <em>Files</em> tab to obtain the latest release of the toolchain.</p><p>Before installing the <a href="http://blackfin.uclinux.org/frs/?group_id=18" class="urlextern" title="http://blackfin.uclinux.org/frs/?group_id=18"  rel="nofollow">latest</a> toolchain (you can find the latest release by the <strong>release date</strong>), be sure to read the <a href="toolchain_release_notes.html" class="wikilink1" title="toolchain_release_notes.html">toolchain release notes</a>.</p><p>Depending on the version of the toolchain there may be a variety of file types available.  These file types are summarized below: </p><ul><li class="level1"><div class="li"><em><strong>.tar.bz2 </strong></em><strong>files</strong> - These files are usually zipped source files.  They must be decompressed with <em>bunzip2</em> and extracted with <em>tar</em> before being built.</div></li><li class="level1"><div class="li"><em><strong>.</strong></em><em><strong>tar.gz</strong></em><strong> files</strong> - The same as <em>*.tar.bz2</em> files except that they must be decompressed with <em>gzip</em>.</div></li><li class="level1"><div class="li"><em><strong>.rpm</strong></em><strong> files</strong> - These are Red Hat Package Management files.  They automatically install the required files, check for any dependencies, and update the package information in the RPM database.  Some RPM&rsquo;s also contain the source code for the program.  These RPM&rsquo;s usually have the extension <em>*.</em><em>src.rpm</em>.</div></li></ul><p> <em>gdb</em> requires <code>termcap</code>, <code>ncurses</code>, and <code>ncurses-devel</code> (unsure if all these are needed, ncurses-devel definitely is).  Ensure these libraries are installed on your system before proceeding.</p></div><!-- SECTION [1-1503] --><h3><a name="installing_the_rpm" id="installing_the_rpm">Installing the rpm</a></h3><div class="level3"><p><code>/opt</code><code>/opt</code><code>root</code><code>/opt</code></p></div><h4><a name="installing_the_rpm_on_suse_red_hat" id="installing_the_rpm_on_suse_red_hat">Installing the rpm on SuSE/Red Hat</a></h4><div class="level4"><p>For an RPM file, as <strong>root</strong> enter the following command:</p><pre class="code">bash# rpm -Uvh &lt;filename&gt;(e.g.  rpm -Uvh blackfin-toolchain-06r1-4.i386.rpm)</pre><p>If you wish to install the gcc-4.1 compiler add-on, also install <code>blackfin-toolchain-gcc-4.1-06r1-4.i386.rpm</code>.</p></div><h4><a name="installing_the_rpm_on_debian_or_colinux" id="installing_the_rpm_on_debian_or_colinux">Installing the rpm on Debian or CoLinux</a></h4><div class="level4"><p>For an RPM file, as <strong>root</strong> enter the following command:</p><pre class="code">bash# alien -i &lt;filename&gt;(e.g.  alien -i blackfin-toolchain-06r1-4.i386.rpm)</pre><p>(This will install to the directory <code>/opt/uClinux/bfin-uclinux</code>)</p><p> &rsquo; </p><p>There may be more detailed installation instructions in the Toolchain Release Notes.</p></div><h4><a name="installing_the_rpm_by_hand" id="installing_the_rpm_by_hand">Installing the rpm by hand</a></h4><div class="level4"><p>Many distributions do not utilize RPM&rsquo;s so it may be a pain to try and install one.  In this case, you can always convert the RPM to a tarball and then extract that wherever you want.</p><p>First install the package <strong>rpm2targz</strong>.  If your distribution does not include it, you can find it <a href="http://gentoo.osuosl.org/distfiles/rpm2targz-9.0.tar.gz" class="urlextern" title="http://gentoo.osuosl.org/distfiles/rpm2targz-9.0.tar.gz"  rel="nofollow">here</a>.</p><p>Converting it is pretty easy: </p><pre class="code">$ rpm2targz &lt;rpm&gt;(e.g. rpm2targz blackfin-toolchain-06r1-4.i386.rpm)</pre><p>This should leave you with a tarball in the same directory named the same as the rpm, but with a &lsquo;.tar.gz&rsquo; instead of &lsquo;.rpm&rsquo; extension.</p></div><!-- SECTION [1504-3311] --><h3><a name="installing_from_source" id="installing_from_source">Installing from source</a></h3><div class="level3"><p> There would be a few reasons not to use the rpm toolchain:</p><ul><li class="level1"><div class="li"> There are bugs in the rpm toolchain, </div></li><li class="level1"><div class="li"> the rpm toolchain was pre-build with uClibc, and you want to change the default settings</div></li></ul><p>If these are the case, then you should either :</p><ul><li class="level1"><div class="li"> try the latest source from <acronym title="Concurrent Versions System">CVS</acronym>.  </div></li><li class="level1"><div class="li"> build the toolchain from a rpm or tarball source</div></li></ul><p> Detailed instructions on how to download and build the latest <acronym title="Concurrent Versions System">CVS</acronym> toolchain can be found in the <a href="toolchain_build_script.html" class="wikilink1" title="toolchain_build_script.html">Toolchain Build Script</a> section of the documentation.</p></div><!-- SECTION [3312-3854] --><h3><a name="setting_the_path_environment_variable" id="setting_the_path_environment_variable">Setting the PATH environment variable</a></h3><div class="level3"><p> After installing the Blackfin tool chain the environment variable PATH must be modified to include the directory where the Blackfin tool chain is installed.  This can be done by entering the following command before using the Blackfin tool chain (assuming the path where the Blackfin tool chain binaries are installed is <code>/opt/uClinux/bfin-uclinux/bin</code>):</p><pre class="code">bash$ export PATH=$PATH:/opt/uClinux/bfin-uclinux/bin</pre><p>Alternately, to have PATH set automatically edit the file <code>~/.bashrc</code> to include the following lines:</p><pre class="code">export PATH=/opt/uClinux/bfin-uclinux/bin:$PATH</pre><p>Now when a new bash shell is started <code>PATH</code> will automatically be set to include the path to the Blackfin tool chain.</p><p>The Blackfin tool chain should now be installed allowing you to compile programs such as U鈥態oot or uClinux.  The default compiler is available under the name <code>bfin-uclinux-gcc</code> (or <code>bfin-uclinux-g++</code> for the C++ compiler); if you have installed the gcc-4.1 add-on, you should also have <code>bfin-uclinux-gcc-4.1.0</code> and <code>bfin-uclinux-g++-4.1.0</code> available.</p></div><!-- SECTION [3855-] --></body></html>

⌨️ 快捷键说明

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