📄 downloading_to_the_target.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><h2><a name="target_download" id="target_download">Target Download</a></h2><div class="level2"><p> Build the image on the Host Development System. This involves typing <strong><code>make</code></strong> in the <strong>uClinux-dist</strong> directory. For more information, see <a href="compiling_the_kernel.html" class="wikilink1" title="compiling_the_kernel.html">compiling the kernel</a>.</p><p>Now it needs to be copied to the target system.</p><p>On the Host Development System the images should be in the <strong><code>uClinux-dist/images</code></strong> directory. This will include:</p><ol><li class="level1"><div class="li"> Copy the kernel into the <strong>tftpboot</strong> directory. (For more information on setting up a tftp server please see <a href="setting_up_a_tftp_server.html" class="wikilink1" title="setting_up_a_tftp_server.html">Setting up a TFTP Server</a>.) <pre class="code">rgetz@home:~/uClinux-dist> cp ./images/linux /tftpboot/linux</pre></div></li><li class="level1"><div class="li"> tftp and boot-elf the file over using U-Boot. (For more information on using U-Boot please see <a href="das_u-boot_on_blackfin.html" class="wikilink1" title="das_u-boot_on_blackfin.html">Das U-Boot on Blackfin</a>.). The first two lines sets up the ipaddress of the target and specify the tftp download host.<pre class="code">stamp> dhcpUsing MAC Address 00:E0:22:FE:47:7BBOOTP broadcast 1DHCP client bound to address 192.168.1.99stamp> setenv serverip 192.168.1.1stamp> saveenv</pre><p> OR </p><pre class="code">stamp>setenv serverip 192.168.1.1stamp>setenv ipaddr 192.168.1.99stamp>saveenv<code>At this point issue a ''saveenv'' command to keep these new values do this only when you need to change values. - now transfer the image from the host to the target and boot<code>stamp>tftp 0x1000000 linuxstamp> bootelf 0x1000000</pre></div></li></ol><p> <code>uImage</code><code>linux</code><code>0×1000</code><strong>not</strong><code>0×1000000</code> </p><ul><li class="level1"><div class="li"> You can add a uboot command to automate all this <pre class="code">stamp> setenv tftpl tftp 0x1000000 linux \; bootelf 0x1000000stamp>saveenv </pre><p>It is only necessary to set up the command one time, as long as you save it into the flash. Then the following command can be used to perform the download. </p><pre class="code">stamp> run tftpl</pre></div></li><li class="level1"><div class="li"> This can be automated by defining the <strong>auto boot</strong> command.<pre class="code">stamp> setenv bootcmd run tftpl</pre><p> Then after a reset the system will attempt a tftp download and run the image.</p></div></li></ul></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -