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

📄 accessing_serial_nor_flash_with_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="clear"><ul class="toc"><li class="level2"><div class="li"><span class="li"><a href="#serial_nor_flash" class="toc">Serial NOR Flash</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#using_eeprom_command" class="toc">Using eeprom command</a></span></div><ul class="toc"><li class="level3"><div class="li"><span class="li"><a href="#write_uclinux_kernel_to_serial_flash_and_boot_linux" class="toc">Write uClinux kernel to serial flash and boot linux</a></span></div></li></ul></li></ul></li></ul></div></div><h2><a name="serial_nor_flash" id="serial_nor_flash">Serial NOR Flash</a></h2><div class="level2"><p>U-boot supports Serial NOR Flash - a four-wire SPI-compatible interface as used for serial EEPROM which provides a sequential read access.  They offer densities up to 8Mbytes.<a href="http://www.st.com/stonline/products/families/memories/fl_ser/sf_code.htm" class="urlextern" title="http://www.st.com/stonline/products/families/memories/fl_ser/sf_code.htm"  rel="nofollow">ST Flash</a> has been validated with uClinux/Blackfin, and drivers are avalible.</p><p>You can <a href="compiling_u-boot.html#build_u-boot_to_boot_from_serial_flash" class="wikilink1" title="compiling_u-boot.html">build U-boot</a> to boot from Serial NOR Flash, and you can also read and write the serial flash using U-Boot command <code>eeprom</code>. </p></div><!-- SECTION [1-553] --><h2><a name="using_eeprom_command" id="using_eeprom_command">Using eeprom command</a></h2><div class="level2"></div><!-- SECTION [554-586] --><h3><a name="write_uclinux_kernel_to_serial_flash_and_boot_linux" id="write_uclinux_kernel_to_serial_flash_and_boot_linux">Write uClinux kernel to serial flash and boot linux</a></h3><div class="level3"><p>Firstly tftp download a file to one memory address (e.g., <code>0&times;1000000</code>), then use <code>eeprom write</code> command to copy the file to the SPI flash address(For example, <code>0&times;100000</code>).</p><pre class="code"> stamp&gt; tftp 0x1000000 uImagestamp&gt; eeprom write 0x1000000 0x100000 $(filesize)</pre><p>    When done, use <code>eeprom read</code> command to copy it out to another memory address, e.g, 0&times;2000000. Then use <code>cmp.b</code> command to compare if the data at these two addresses are identical. Finally <code>bootm</code> the kernel that is copied from SPI flash. The commands are: </p><pre class="code">stamp&gt; eeprom read 0x2000000 0x100000 $(filesize)stamp&gt; cmp.b 0x1000000 0x2000000 $(filesize)stamp&gt; bootm 0x2000000</pre><p> <code>eeprom</code><a href="compiling_u-boot.html" class="wikilink1" title="compiling_u-boot.html">compiling_u-boot</a></p><p>The page <a href="enabling_jffs2.html" class="wikilink1" title="enabling_jffs2.html">enabling_jffs2</a> shows details on how to write kernel image and JFFS2 file system image to serial NOR flash, and enable kernel to access serial NOR flash.</p></div><!-- SECTION [587-] --></body></html>

⌨️ 快捷键说明

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