U-boot.html 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head>
  6. <title>Buildroot - U-boot extensions in 2009.01-rc1</title>
  7. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  8. <link rel="stylesheet" type="text/css" href="stylesheet.css" />
  9. </head>
  10. <body>
  11. <div class="main">
  12. <div class="titre">
  13. <a name="top" id="top"></a>
  14. <h1>U-boot extensions in 2009.01-rc1</h1>
  15. </div>
  16. <p><a href="http://buildroot.net/">U-Boot</a>
  17. usage and documentation by Ulf Samuelsson.
  18. </p>
  19. <ul>
  20. <li><a href="#about">About U-Boot</a></li>
  21. <li><a href="#at91rm9200dk">Board Support for AT91RM9200DK</a></li>
  22. <li><a href="#at91rm9200ek">Board Support for AT91RM9200EK</a></li>
  23. <li><a href="#at91sam9g20ek">Board Support for AT91SAM9G20EK</a></li>
  24. <li><a href="#Minicom extensions">X-Modem/Raw extensions to minicom</a></li>
  25. <li><a href="#cmd_factory">New Command: factory</a></li>
  26. <li><a href="#cmd_os">New Command: os</a></li>
  27. <li><a href="#cmd_fs">New Command: fs</a></li>
  28. <li><a href="#cmd_setargs">New Command: setargs</a></li>
  29. <li><a href="#cmd_led">New Command: led</a></li>
  30. <li><a href="#cmd_mux">New Command: mux</a></li>
  31. <li><a href="#cmd_ethinit">New Command: ethinit</a></li>
  32. <li><a href="#environment">Special environment variables</a></li>
  33. </ul>
  34. <h2><a name="about" id="about"></a>About U-boot</h2>
  35. <a href="#top"><small>[TOP]</small></a>
  36. <p>
  37. U-Boot is an open source bootloader ported to a multitude of processors.
  38. See (<a href="http://www.denx.de/wiki/U-Boot/WebHome">U-Boot Home</a>)
  39. for documentation for vanilla U-Boot. This document only describes
  40. changes compared to the vanilla u-boot.
  41. </p>
  42. <h2><a name="at91rm9200dk" id="at91rm9200dk"></a>Board support for at91rm9200dk</h2>
  43. <a href="#top"><small>[TOP]</small></a>
  44. <p>
  45. "at91rm9200dk" is updated to use a linux like API for gpio.
  46. A new target "at91rm9200dk_df" is defined to support boot from dataflash.
  47. </p>
  48. <h2><a name="at91rm9200ek" id="at91rm9200ek"></a>Board support for at91rm9200ek</h2>
  49. <a href="#top"><small>[TOP]</small></a>
  50. <p>
  51. The "at91rm9200ek" BSP supports booting from a parallel flash.
  52. The "at91rm9200df" BSP supports a generic target booting from dataflash.
  53. </p>
  54. <h2><a name="#at91sam9g20ek" id="#at91sam9g20ek"></a>Board support for at91sam9g20ek</h2>
  55. <a href="#top"><small>[TOP]</small></a>
  56. <p>
  57. The "at91sam9g20ek" target with dataflash(card) and NAND boot support.
  58. </p>
  59. <h2><a name="minicom_extensions" id="minicom_extensions"></a>Minicom extensions </h2>
  60. <a href="#top"><small>[TOP]</small></a>
  61. <p>
  62. "sx-at91" is a reliable X-Modem application allowing download to the at91rm9200
  63. based board
  64. </p>
  65. <p>
  66. "raw-at91" is a download application which will download binary data using minicom.
  67. Typically used to download an environment script.
  68. </p>
  69. <h2><a name="cmd_factory" id="cmd_factory"></a>New command: factory</h2>
  70. <a href="#top"><small>[TOP]</small></a>
  71. <p>
  72. <h3><code>factory</code></h3>
  73. </p>
  74. <p>
  75. "factory" will set a selected set of environment variables
  76. back to the compile time default. The following will give some
  77. hints on capabilities, but is not yet complete.
  78. </p>
  79. <p>
  80. It will generate a set of scripts which will facilitate downloading
  81. the kernel and root file system using tftp and will also
  82. add commands to store into and retrieve from flash
  83. </p>
  84. <h2><a name="cmd_os" id="cmd_os"></a>New command: os</h2>
  85. <a href="#top"><small>[TOP]</small></a>
  86. <p>
  87. <h3><code>os<code></h3>
  88. </p>
  89. <p>
  90. "os" computes a new name for the linux kernel
  91. </p>
  92. <h2><a name="cmd_fs" id="cmd_fs"></a>New command: fs</h2>
  93. <a href="#top"><small>[TOP]</small></a>
  94. <p>
  95. <h3><code>fs<code></h3>
  96. </p>
  97. <p>
  98. "fs" computes a new name for the file system
  99. </p>
  100. <h2><a name="cmd_setargs" id="cmd_setargs"></a>New command: setargs</h2>
  101. <a href="#top"><small>[TOP]</small></a>
  102. <p>
  103. <h3><code>setargs<code></h3>
  104. </p>
  105. <p>
  106. "setargs" will create new bootcmd/bootargs combination from
  107. kernel name, filesystem name, and rootfs type.
  108. </p>
  109. <h2><a name="cmd_led" id="cmd_led"></a>New command: led</h2>
  110. <a href="#top"><small>[TOP]</small></a>
  111. <p>
  112. <h3><code>led [green | yellow | red | all ] [ on | off ]<code></h3>
  113. </p>
  114. <p>
  115. "led" will turn on or off the specified (coloured) led
  116. </p>
  117. <h2><a name="cmd_mux" id="cmd_mux"></a>New command: mux</h2>
  118. <a href="#top"><small>[TOP]</small></a>
  119. <p>
  120. <h3><code>mux [spi | mmc ]<code></h3>
  121. </p>
  122. <p>
  123. "mux" will select how to use the flash card connector on the
  124. at91rm9200dk or at91rm9200ek
  125. </p>
  126. <h2><a name="cmd_ethinit" id="cmd_ethinit"></a>New command: ethinit</h2>
  127. <a href="#top"><small>[TOP]</small></a>
  128. <p>
  129. <h3><code>ethinit<code></h3>
  130. </p>
  131. <p>
  132. "ethinit" can be used to delay the boot of linux, until a valid network
  133. connection has been established. This is useful if the machine is NFS mounting
  134. the root file system and both this machine and the NFS server are powering up
  135. simultaneously. The NFS server could take a lot longer to boot, and waiting
  136. for this to boot may be neccessary for proper operation.
  137. </p>
  138. <h2><a name="environment" id="environment"></a>Special environment variables</h2>
  139. <a href="#top"><small>[TOP]</small></a>
  140. <p>
  141. <h3><code>rd<code></h3>
  142. </p>
  143. <p>
  144. rd contains the name of the current root file system
  145. It is autmatically generated from <bold>ver</bold> and <bold>rd-1</bold>, <bold>rd-2</bold> etc.
  146. The "fs-date" is added at the end.
  147. </p>
  148. <p>
  149. <h3><code>ver<code></h3>
  150. </p>
  151. <p>
  152. You can handle a number of different root fs by defining <code>ver</code>.
  153. When running <code>fs</code> rd will be assigned from one of:
  154. <ul><code>rd-1, rd2, rd-3 ...<code></ul>
  155. </p>
  156. <p>
  157. By defining <code>ver</code> to a number you will
  158. select the appropriate disk name
  159. </p>
  160. <p>
  161. <h3><code>fs-date<code></h3>
  162. </p>
  163. <p>
  164. "date" part of the root file system name
  165. </p>
  166. <p>
  167. <h3><code>linux<code></h3>
  168. </p>
  169. <p>
  170. linux contains the name of the current kernel.
  171. </p>
  172. <p>
  173. It is generated from several environment variables when <code>os</code> is run
  174. </p>
  175. <p>
  176. A typical name would be "at91sam9263ek-linux-2.6.28-20090105.gz"
  177. </p>
  178. <p>
  179. <h3><code>hostname<code></h3>
  180. </p>
  181. <p>
  182. "name" part of the kernel file name
  183. </p>
  184. <p>
  185. <h3><code>kernel-version<code></h3>
  186. </p>
  187. <p>
  188. "version" part of the kernel file name
  189. </p>
  190. <p>
  191. <h3><code>kernel-date<code></h3>
  192. </p>
  193. <p>
  194. "date" part of the kernel file name
  195. </p>
  196. <p>
  197. <h3><code>fstype [ ram | flash ]<code></h3>
  198. <p>
  199. You can have several file system types.
  200. bootargs is created depending on fstype..
  201. </p>
  202. <a href="#top"><small>[TOP]</small></a>
  203. </div>
  204. <!--
  205. <a href="http://validator.w3.org/check?uri=referer"><img
  206. border="0" height="31" width="88"
  207. src="images/valid-html401.png"
  208. alt="Valid HTML"></img></a>
  209. -->
  210. </body>
  211. </html>