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

📄 loading_u-boot.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="level1"><div class="li"><span class="li"><a href="#loading_u-boot" class="toc">Loading U-Boot</a></span></div><ul class="toc"><li class="level2"><div class="li"><span class="li"><a href="#flashing_u-boot" class="toc">Flashing U-Boot</a></span></div><ul class="toc"><li class="level3"><div class="li"><span class="li"><a href="#using_jtag_parallel_port_igloo_board" class="toc">Using JTAG/Parallel Port IGLOO board</a></span></div></li><li class="level3"><div class="li"><span class="li"><a href="#using_an_adi_ice" class="toc">Using an ADI ICE</a></span></div></li></ul></li><li class="level2"><div class="li"><span class="li"><a href="#bf537_loading_u-boot_from_uart" class="toc">BF537 Loading u-boot from UART</a></span></div></li></ul></li></ul></div></div><h1><a name="loading_u-boot" id="loading_u-boot">Loading U-Boot</a></h1><div class="level1"><p> If there is no u-boot on your board, or the u-boot is broken, you may load u-boot from host system to target boards in several ways. Either using an ICE to load and write u-boot to flash, or load u-boot into SDRAM via UART (only for BF537).</p></div><!-- SECTION [1-272] --><h2><a name="flashing_u-boot" id="flashing_u-boot">Flashing U-Boot</a></h2><div class="level2"><p>Flash memory on your development platform should come preloaded with U鈥態oot. However, if you are either:</p><ul><li class="level1"><div class="li"> creating a new platform</div></li><li class="level1"><div class="li"> have accidentally erased U-Boot</div></li><li class="level1"><div class="li"> have created a bad U-Boot that does not boot</div></li></ul><p>You will need to be able to load an initial version of U-Boot onto the blank or corrupt flash. This can be done with the JTAG/Parallel Port IGLOO board or with ADI&rsquo;s VDSP++ In Circuit Emulator (under Windows only).</p><p></p></div><!-- SECTION [273-888] --><h3><a name="using_jtag_parallel_port_igloo_board" id="using_jtag_parallel_port_igloo_board">Using JTAG/Parallel Port IGLOO board</a></h3><div class="level3"><p>This board allows a JTAG connection to the STAMP board to be made via the parallel port on the host computer.  Once a JTAG connection is established the file <code>u鈥慴oot.bin</code> can be loaded into flash memory.</p><p>This also requires that the software require for <a href="flashing_the_board.html" class="wikilink1" title="flashing_the_board.html">flashing the board</a> be installed on your host computer. The software is available here: <a href="http://blackfin.uclinux.org/projects/jtagtools" class="urlextern" title="http://blackfin.uclinux.org/projects/jtagtools"  rel="nofollow">http://blackfin.uclinux.org/projects/jtagtools</a>. Run the jtag tools as root, the step as follows: </p><pre class="code">&gt; cable parallel 0x378 WIGGLER&gt; detect&gt; initbus bf533_stamp&gt; detectflash 0x20000000&gt; endian little&gt; flashmem 0x20000000 /your/path/u-boot.bin&gt; quit</pre></div><!-- SECTION [889-1552] --><h3><a name="using_an_adi_ice" id="using_an_adi_ice">Using an ADI ICE</a></h3><div class="level3"><p>The <code>.hex</code> file can also be used with an ADI ICE to flash the board. To create the .hex please see the <a href="compiling_u-boot.html" class="wikilink1" title="compiling_u-boot.html">compiling U-Boot</a> section for instructions.</p><p>To load the u-boot.hex file into the flash of your board using VDSP++, you go to TOOLS &rarr; Flash Programmer, and load the correct driver file. (The BF533-STAMP board can use it&rsquo;s own driver, or the one for the BF537 EZ-kit, as they use the same flash). The data file should be the <code>.hex</code> file. Ensure that the radio button &ldquo;Erase all&rdquo; is selected.  Then click on the <code>Load File</code> button.  The bar at the bottom of the screen should start to fill up showing the status of the process. When this is done you should be able to reset your board and see the U-Boot start up screen on your terminal program.</p><p>If the U-Boot is built to boot from SPI flash, program the file app.hex to the SPI flash(M25P64) by VDSP, using the released VDSP SPI flash driver <code><a href="http://blackfin.uclinux.org/frs/?group_id=20" class="urlextern" title="http://blackfin.uclinux.org/frs/?group_id=20"  rel="nofollow">M25P64.dxe</a></code>.</p></div><!-- SECTION [1553-2567] --><h2><a name="bf537_loading_u-boot_from_uart" id="bf537_loading_u-boot_from_uart">BF537 Loading u-boot from UART</a></h2><div class="level2"><p>The feature is only supported on the BF537, and only through UART0 (note that the processor is always a slave). Follow the steps below to load u-boot via the UART. Note that this will only load u-boot into SDRAM, so once you have u-boot running on the board, you will need to load another copy of u-boot and flash it yourself. Also, once you&rsquo;ve loaded u-boot via the UART, it will start executing as normal, so if you have an autoboot command configured, u-boot will attempt to run it! </p><ul><li class="level1"><div class="li"> Define the macro &ldquo;BF537_UART_BOOT&rdquo; in the file &ldquo;./include/configs/bf537.h&rdquo;</div></li><li class="level1"><div class="li"> Built uboot for bf537</div></li><li class="level1"><div class="li"> Change the macro &ldquo;BFIN_BOOT_MODE&rdquo; in the file &ldquo;./tools/bin2ldr/bin2ldr.h&rdquo; to BF537_UART_BOOT.</div></li><li class="level1"><div class="li"> Run script &ldquo;runme.sh&rdquo; to get LDR file booting from UART</div></li><li class="level1"><div class="li"> Download LdrViewer, it&rsquo;s a windows host tools which can send LDR file to the target board by UART. It&rsquo;s here:<a href="http://www.dolomitics.com/downloads/ldrviewer.html" class="urlextern" title="http://www.dolomitics.com/downloads/ldrviewer.html"  rel="nofollow">http://www.dolomitics.com/downloads/ldrviewer.html</a>.</div></li><li class="level1"><div class="li"> Set the boot mode switch SW16 to be 7, and reset the board. In this mode, the BootROM will load u-boot from UART to SDRAM and boot it.</div></li><li class="level1"><div class="li"> Set the switch SW4 on the BF537-STAMP: 1-OFF, 2-ON, 3-OFF, 4-ON</div></li><li class="level1"><div class="li"> Config the terminal on your windows machine. Here the status of the terminal should be disconnected, because Ldrviewer will use the serial port firstly.</div></li></ul><p><a href="media/windows-terminal-setting.png" class="media" target="_blank" title="windows-terminal-setting.png"><img src="media/windows-terminal-setting.png" class="media" title=":windows-terminal-setting.png" alt=":windows-terminal-setting.png" /></a></p><ul><li class="level1"><div class="li"> Run the LdrViewer, open u-boot LDR file &ldquo;app.ldr&rdquo;, select menu[Tools]&rarr;[UART Boot...] and press [Test Port].</div></li></ul><p><a href="media/open-app-ldr.png" class="media" target="_blank" title="open-app-ldr.png"><img src="media/open-app-ldr.png" class="media" title=":open-app-ldr.png" alt=":open-app-ldr.png" /></a></p><ul><li class="level1"><div class="li"> Press [AutoBaud] button, before you send the LDR file, make sure you get the same result as the following picture.</div></li></ul><p><a href="media/autobaud-success.png" class="media" target="_blank" title="autobaud-success.png"><img src="media/autobaud-success.png" class="media" title=":autobaud-success.png" alt=":autobaud-success.png" /></a></p><ul><li class="level1"><div class="li"> Press [Send DXE] button to send the file which is already opened, after all of bytes transferred, you can get the feedback from the target.</div></li></ul><p><a href="media/uboot-uart-boot.png" class="media" target="_blank" title="uboot-uart-boot.png"><img src="media/uboot-uart-boot.png" class="media" title=":uboot-uart-boot.png" alt=":uboot-uart-boot.png" /></a></p><ul><li class="level1"><div class="li"> Now close LdrViewer, open the terminal and connect to the serial port, you can see the u-boot has already started up successfully.</div></li></ul></div><!-- SECTION [2568-] --></body></html>

⌨️ 快捷键说明

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