U-boot.html 6.8 KB

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