ref-system-requirements.xml 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520
  1. <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  2. "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
  3. [<!ENTITY % poky SYSTEM "../poky.ent"> %poky; ] >
  4. <chapter id='ref-manual-system-requirements'>
  5. <title>System Requirements</title>
  6. <para>
  7. Welcome to the Yocto Project Reference Manual!
  8. This manual provides reference information for the current release
  9. of the Yocto Project.
  10. The manual is best used after you have an understanding
  11. of the basics of the Yocto Project.
  12. The manual is neither meant to be read as a starting point to the
  13. Yocto Project nor read from start to finish.
  14. Use this manual to find variable definitions, class
  15. descriptions, and so forth as needed during the course of using
  16. the Yocto Project.
  17. </para>
  18. <para>
  19. For introductory information on the Yocto Project, see the
  20. <ulink url='&YOCTO_HOME_URL;'>Yocto Project Website</ulink> and the
  21. "<ulink url='&YOCTO_DOCS_OM_URL;#overview-development-environment'>Yocto Project Development Environment</ulink>"
  22. chapter in the Yocto Project Overview and Concepts Manual.
  23. </para>
  24. <para>
  25. If you want to use the Yocto Project to quickly build an image
  26. without having to understand concepts, work through the
  27. <ulink url='&YOCTO_DOCS_BRIEF_URL;'>Yocto Project Quick Build</ulink>
  28. document.
  29. You can find "how-to" information in the
  30. <ulink url='&YOCTO_DOCS_DEV_URL;'>Yocto Project Development Tasks Manual</ulink>.
  31. You can find Yocto Project overview and conceptual information in the
  32. <ulink url='&YOCTO_DOCS_OM_URL;'>Yocto Project Overview and Concepts Manual</ulink>.
  33. <note><title>Tip</title>
  34. For more information about the Yocto Project Documentation set,
  35. see the
  36. "<link linkend='resources-links-and-related-documentation'>Links and Related Documentation</link>"
  37. section.
  38. </note>
  39. </para>
  40. <section id='detailed-supported-distros'>
  41. <title>Supported Linux Distributions</title>
  42. <para>
  43. Currently, the Yocto Project is supported on the following
  44. distributions:
  45. <note><title>Notes</title>
  46. <itemizedlist>
  47. <listitem><para>
  48. Yocto Project releases are tested against the stable
  49. Linux distributions in the following list.
  50. The Yocto Project should work on other distributions but
  51. validation is not performed against them.
  52. </para></listitem>
  53. <listitem><para>
  54. In particular, the Yocto Project does not support
  55. and currently has no plans to support
  56. rolling-releases or development distributions due to
  57. their constantly changing nature.
  58. We welcome patches and bug reports, but keep in mind
  59. that our priority is on the supported platforms listed
  60. below.
  61. </para></listitem>
  62. <listitem><para>
  63. The Yocto Project is not compatible with the
  64. <ulink url='https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux'>Windows Subsystem for Linux</ulink>
  65. (WSL).
  66. You cannot use a
  67. <link linkend='hardware-build-system-term'>build host</link>
  68. that is running WSL.
  69. </para></listitem>
  70. <listitem><para>
  71. If you encounter problems, please go to
  72. <ulink url='&YOCTO_BUGZILLA_URL;'>Yocto Project Bugzilla</ulink>
  73. and submit a bug.
  74. We are interested in hearing about your experience.
  75. For information on how to submit a bug, see the
  76. Yocto Project
  77. <ulink url='&YOCTO_WIKI_URL;/wiki/Bugzilla_Configuration_and_Bug_Tracking'>Bugzilla wiki page</ulink>
  78. and the
  79. "<ulink url='&YOCTO_DOCS_DEV_URL;#submitting-a-defect-against-the-yocto-project'>Submitting a Defect Against the Yocto Project</ulink>"
  80. section in the Yocto Project Development Tasks Manual.
  81. </para></listitem>
  82. </itemizedlist>
  83. </note>
  84. <itemizedlist>
  85. <listitem><para>Ubuntu 16.04 (LTS)</para></listitem>
  86. <listitem><para>Ubuntu 18.04</para></listitem>
  87. <listitem><para>Fedora 28</para></listitem>
  88. <listitem><para>CentOS 7.x</para></listitem>
  89. <listitem><para>Debian GNU/Linux 8.x (Jessie)</para></listitem>
  90. <listitem><para>Debian GNU/Linux 9.x (Stretch)</para></listitem>
  91. <listitem><para>OpenSUSE 42.3</para></listitem>
  92. </itemizedlist>
  93. </para>
  94. <!--
  95. Checkout the poky distro you are interested in (by branch or tag).
  96. From the poky directory, run the script:
  97. bitbake -e | grep ^SANITY_TESTED_DISTROS | sed -e 's/.*"\(.*\)".*/\1/g' -e 's!\\n!\n!g' | sed 's/^[\t]*//;s/[ \t]*$//' | grep -v Poky
  98. This returns a list of the supported distros for the release.
  99. Here is some old list items to show the form:
  100. <listitem><para>Ubuntu 10.04</para></listitem>
  101. <listitem><para>Ubuntu 11.10</para></listitem>
  102. <listitem><para>Ubuntu 12.04 (LTS)</para></listitem>
  103. <listitem><para>Ubuntu 13.10</para></listitem>
  104. <listitem><para>Ubuntu 14.04 (LTS)</para></listitem>
  105. <listitem><para>Ubuntu 14.10</para></listitem>
  106. <listitem><para>Ubuntu 15.04</para></listitem>
  107. <listitem><para>Ubuntu 15.10</para></listitem>
  108. <listitem><para>Ubuntu 16.04 (LTS)</para></listitem>
  109. <listitem><para>Ubuntu 16.10 (LTS)</para></listitem>
  110. <listitem><para>Ubuntu 17.04</para></listitem>
  111. <listitem><para>Fedora 16 (Verne)</para></listitem>
  112. <listitem><para>Fedora 17 (Spherical)</para></listitem>
  113. <listitem><para>Fedora 19 (Schrödinger's Cat)</para></listitem>
  114. <listitem><para>Fedora release 20 (Heisenbug)</para></listitem>
  115. <listitem><para>Fedora release 22</para></listitem>
  116. <listitem><para>Fedora release 23</para></listitem>
  117. <listitem><para>Fedora release 24</para></listitem>
  118. <listitem><para>Fedora release 26</para></listitem>
  119. <listitem><para>CentOS release 5.6 (Final)</para></listitem>
  120. <listitem><para>CentOS release 5.7 (Final)</para></listitem>
  121. <listitem><para>CentOS release 5.8 (Final)</para></listitem>
  122. <listitem><para>CentOS release 6.3 (Final)</para></listitem>
  123. <listitem><para>CentOS release 6.x</para></listitem>
  124. <listitem><para>CentOS release 7.x</para></listitem>
  125. <listitem><para>Debian GNU/Linux 6.0 (Squeeze)</para></listitem>
  126. <listitem><para>Debian GNU/Linux 7.x (Wheezy)</para></listitem>
  127. <listitem><para>Debian GNU/Linux 8.x (Jessie)</para></listitem>
  128. <listitem><para>Debian GNU/Linux 9.x (Stretch)</para></listitem>
  129. <listitem><para>Debian GNU/Linux 7.1 (Wheezy)</para></listitem>
  130. <listitem><para>Debian GNU/Linux 7.2 (Wheezy)</para></listitem>
  131. <listitem><para>Debian GNU/Linux 7.3 (Wheezy)</para></listitem>
  132. <listitem><para>Debian GNU/Linux 7.4 (Wheezy)</para></listitem>
  133. <listitem><para>Debian GNU/Linux 7.5 (Wheezy)</para></listitem>
  134. <listitem><para>Debian GNU/Linux 7.6 (Wheezy)</para></listitem>
  135. <listitem><para>openSUSE 11.4</para></listitem>
  136. <listitem><para>openSUSE 12.1</para></listitem>
  137. <listitem><para>openSUSE 12.2</para></listitem>
  138. <listitem><para>openSUSE 12.3</para></listitem>
  139. <listitem><para>openSUSE 13.1</para></listitem>
  140. <listitem><para>openSUSE 13.2</para></listitem>
  141. <listitem><para>openSUSE 42.1</para></listitem>
  142. <listitem><para>openSUSE 42.2</para></listitem>
  143. -->
  144. <note>
  145. While the Yocto Project Team attempts to ensure all Yocto Project
  146. releases are one hundred percent compatible with each officially
  147. supported Linux distribution, instances might exist where you
  148. encounter a problem while using the Yocto Project on a specific
  149. distribution.
  150. </note>
  151. </section>
  152. <section id='required-packages-for-the-build-host'>
  153. <title>Required Packages for the Build Host</title>
  154. <para>
  155. The list of packages you need on the host development system can
  156. be large when covering all build scenarios using the Yocto Project.
  157. This section provides required packages according to
  158. Linux distribution and function.
  159. </para>
  160. <section id='ubuntu-packages'>
  161. <title>Ubuntu and Debian</title>
  162. <para>
  163. The following list shows the required packages by function
  164. given a supported Ubuntu or Debian Linux distribution:
  165. <note>
  166. If your build system has the
  167. <filename>oss4-dev</filename> package installed, you
  168. might experience QEMU build failures due to the package
  169. installing its own custom
  170. <filename>/usr/include/linux/soundcard.h</filename> on
  171. the Debian system.
  172. If you run into this situation, either of the following
  173. solutions exist:
  174. <literallayout class='monospaced'>
  175. $ sudo apt-get build-dep qemu
  176. $ sudo apt-get remove oss4-dev
  177. </literallayout>
  178. </note>
  179. <itemizedlist>
  180. <listitem><para><emphasis>Essentials:</emphasis>
  181. Packages needed to build an image on a headless
  182. system:
  183. <literallayout class='monospaced'>
  184. $ sudo apt-get install &UBUNTU_HOST_PACKAGES_ESSENTIAL;
  185. </literallayout></para></listitem>
  186. <listitem><para><emphasis>Graphical and Eclipse Plug-In Extras:</emphasis>
  187. Packages recommended if the host system has graphics
  188. support or if you are going to use the Eclipse
  189. IDE:
  190. <literallayout class='monospaced'>
  191. $ sudo apt-get install libsdl1.2-dev xterm
  192. </literallayout></para></listitem>
  193. <listitem><para><emphasis>Documentation:</emphasis>
  194. Packages needed if you are going to build out the
  195. Yocto Project documentation manuals:
  196. <literallayout class='monospaced'>
  197. $ sudo apt-get install make xsltproc docbook-utils fop dblatex xmlto
  198. </literallayout></para></listitem>
  199. <listitem><para><emphasis>OpenEmbedded Self-Test (<filename>oe-selftest</filename>):</emphasis>
  200. Packages needed if you are going to run
  201. <filename>oe-selftest</filename>:
  202. <literallayout class='monospaced'>
  203. $ sudo apt-get install python-git
  204. </literallayout>
  205. </para></listitem>
  206. </itemizedlist>
  207. </para>
  208. </section>
  209. <section id='fedora-packages'>
  210. <title>Fedora Packages</title>
  211. <para>
  212. The following list shows the required packages by function
  213. given a supported Fedora Linux distribution:
  214. <itemizedlist>
  215. <listitem><para><emphasis>Essentials:</emphasis>
  216. Packages needed to build an image for a headless
  217. system:
  218. <literallayout class='monospaced'>
  219. $ sudo dnf install &FEDORA_HOST_PACKAGES_ESSENTIAL;
  220. </literallayout></para></listitem>
  221. <listitem><para><emphasis>Graphical and Eclipse Plug-In Extras:</emphasis>
  222. Packages recommended if the host system has graphics
  223. support or if you are going to use the Eclipse
  224. IDE:
  225. <literallayout class='monospaced'>
  226. $ sudo dnf install SDL-devel xterm
  227. </literallayout></para></listitem>
  228. <listitem><para><emphasis>Documentation:</emphasis>
  229. Packages needed if you are going to build out the
  230. Yocto Project documentation manuals:
  231. <literallayout class='monospaced'>
  232. $ sudo dnf install make docbook-style-dsssl docbook-style-xsl \
  233. docbook-dtds docbook-utils fop libxslt dblatex xmlto
  234. </literallayout></para></listitem>
  235. <listitem><para><emphasis>OpenEmbedded Self-Test (<filename>oe-selftest</filename>):</emphasis>
  236. Packages needed if you are going to run
  237. <filename>oe-selftest</filename>:
  238. <literallayout class='monospaced'>
  239. $ sudo dnf install python3-GitPython
  240. </literallayout>
  241. </para></listitem>
  242. </itemizedlist>
  243. </para>
  244. </section>
  245. <section id='opensuse-packages'>
  246. <title>openSUSE Packages</title>
  247. <para>
  248. The following list shows the required packages by function
  249. given a supported openSUSE Linux distribution:
  250. <itemizedlist>
  251. <listitem><para><emphasis>Essentials:</emphasis>
  252. Packages needed to build an image for a headless
  253. system:
  254. <literallayout class='monospaced'>
  255. $ sudo zypper install &OPENSUSE_HOST_PACKAGES_ESSENTIAL;
  256. </literallayout></para></listitem>
  257. <listitem><para><emphasis>Graphical and Eclipse Plug-In Extras:</emphasis>
  258. Packages recommended if the host system has graphics
  259. support or if you are going to use the Eclipse
  260. IDE:
  261. <literallayout class='monospaced'>
  262. $ sudo zypper install libSDL-devel xterm
  263. </literallayout></para></listitem>
  264. <listitem><para><emphasis>Documentation:</emphasis>
  265. Packages needed if you are going to build out the
  266. Yocto Project documentation manuals:
  267. <literallayout class='monospaced'>
  268. $ sudo zypper install make dblatex xmlto
  269. </literallayout></para></listitem>
  270. <listitem><para><emphasis>OpenEmbedded Self-Test (<filename>oe-selftest</filename>):</emphasis>
  271. Packages needed if you are going to run
  272. <filename>oe-selftest</filename>:
  273. <literallayout class='monospaced'>
  274. $ sudo zypper install python-GitPython
  275. </literallayout></para></listitem>
  276. </itemizedlist>
  277. <note>
  278. Sanity testing, through the
  279. <link linkend='ref-classes-testimage*'>testimage</link>
  280. classes, does not work on systems using the
  281. <ulink url='https://en.opensuse.org/Portal:Wicked'>Wicked</ulink>
  282. network manager.
  283. </note>
  284. </para>
  285. </section>
  286. <section id='centos-packages'>
  287. <title>CentOS Packages</title>
  288. <para>
  289. The following list shows the required packages by function
  290. given a supported CentOS Linux distribution:
  291. <itemizedlist>
  292. <listitem><para><emphasis>Essentials:</emphasis>
  293. Packages needed to build an image for a headless
  294. system:
  295. <literallayout class='monospaced'>
  296. $ sudo yum install &CENTOS_HOST_PACKAGES_ESSENTIAL; SDL-devel xterm
  297. </literallayout>
  298. <note><title>Notes</title>
  299. <itemizedlist>
  300. <listitem><para>
  301. Extra Packages for Enterprise Linux
  302. (i.e. <filename>epel-release</filename>)
  303. is a collection of packages from Fedora
  304. built on RHEL/CentOS for easy installation
  305. of packages not included in enterprise
  306. Linux by default.
  307. You need to install these packages
  308. separately.
  309. </para></listitem>
  310. <listitem><para>
  311. The <filename>makecache</filename> command
  312. consumes additional Metadata from
  313. <filename>epel-release</filename>.
  314. </para></listitem>
  315. </itemizedlist>
  316. </note>
  317. </para></listitem>
  318. <listitem><para><emphasis>Graphical and Eclipse Plug-In Extras:</emphasis>
  319. Packages recommended if the host system has graphics
  320. support or if you are going to use the Eclipse
  321. IDE:
  322. <literallayout class='monospaced'>
  323. $ sudo yum install SDL-devel xterm
  324. </literallayout></para></listitem>
  325. <listitem><para><emphasis>Documentation:</emphasis>
  326. Packages needed if you are going to build out the
  327. Yocto Project documentation manuals:
  328. <literallayout class='monospaced'>
  329. $ sudo yum install make docbook-style-dsssl docbook-style-xsl \
  330. docbook-dtds docbook-utils fop libxslt dblatex xmlto
  331. </literallayout></para></listitem>
  332. <listitem><para><emphasis>OpenEmbedded Self-Test (<filename>oe-selftest</filename>):</emphasis>
  333. Packages needed if you are going to run
  334. <filename>oe-selftest</filename>:
  335. <literallayout class='monospaced'>
  336. $ sudo yum install GitPython
  337. </literallayout>
  338. </para></listitem>
  339. </itemizedlist>
  340. </para>
  341. </section>
  342. </section>
  343. <section id='required-git-tar-and-python-versions'>
  344. <title>Required Git, tar, and Python Versions</title>
  345. <para>
  346. In order to use the build system, your host development system
  347. must meet the following version requirements for Git, tar, and
  348. Python:
  349. <itemizedlist>
  350. <listitem><para>Git 1.8.3.1 or greater</para></listitem>
  351. <listitem><para>tar 1.27 or greater</para></listitem>
  352. <listitem><para>Python 3.4.0 or greater</para></listitem>
  353. </itemizedlist>
  354. </para>
  355. <para>
  356. If your host development system does not meet all these requirements,
  357. you can resolve this by installing a <filename>buildtools</filename>
  358. tarball that contains these tools.
  359. You can get the tarball one of two ways: download a pre-built
  360. tarball or use BitBake to build the tarball.
  361. </para>
  362. <section id='downloading-a-pre-built-buildtools-tarball'>
  363. <title>Downloading a Pre-Built <filename>buildtools</filename> Tarball</title>
  364. <para>
  365. Downloading and running a pre-built buildtools installer is
  366. the easiest of the two methods by which you can get these tools:
  367. <orderedlist>
  368. <listitem><para>
  369. Locate and download the <filename>*.sh</filename> at
  370. <ulink url='&YOCTO_DL_URL;/releases/yocto/yocto-&DISTRO;/buildtools/'></ulink>.
  371. </para></listitem>
  372. <listitem><para>
  373. Execute the installation script.
  374. Here is an example:
  375. <literallayout class='monospaced'>
  376. $ sh ~/Downloads/x86_64-buildtools-nativesdk-standalone-&DISTRO;.sh
  377. </literallayout>
  378. During execution, a prompt appears that allows you to
  379. choose the installation directory.
  380. For example, you could choose the following:
  381. <literallayout class='monospaced'>
  382. /home/<replaceable>your-username</replaceable>/buildtools
  383. </literallayout>
  384. </para></listitem>
  385. <listitem><para>
  386. Source the tools environment setup script by using a
  387. command like the following:
  388. <literallayout class='monospaced'>
  389. $ source /home/<replaceable>your_username</replaceable>/buildtools/environment-setup-i586-poky-linux
  390. </literallayout>
  391. Of course, you need to supply your installation directory and be
  392. sure to use the right file (i.e. i585 or x86-64).
  393. </para>
  394. <para>
  395. After you have sourced the setup script,
  396. the tools are added to <filename>PATH</filename>
  397. and any other environment variables required to run the
  398. tools are initialized.
  399. The results are working versions versions of Git, tar,
  400. Python and <filename>chrpath</filename>.
  401. </para></listitem>
  402. </orderedlist>
  403. </para>
  404. </section>
  405. <section id='building-your-own-buildtools-tarball'>
  406. <title>Building Your Own <filename>buildtools</filename> Tarball</title>
  407. <para>
  408. Building and running your own buildtools installer applies
  409. only when you have a build host that can already run BitBake.
  410. In this case, you use that machine to build the
  411. <filename>.sh</filename> file and then
  412. take steps to transfer and run it on a
  413. machine that does not meet the minimal Git, tar, and Python
  414. requirements.
  415. </para>
  416. <para>
  417. Here are the steps to take to build and run your own
  418. buildtools installer:
  419. <orderedlist>
  420. <listitem><para>
  421. On the machine that is able to run BitBake,
  422. be sure you have set up your build environment with
  423. the setup script
  424. (<link linkend='structure-core-script'><filename>&OE_INIT_FILE;</filename></link>).
  425. </para></listitem>
  426. <listitem><para>
  427. Run the BitBake command to build the tarball:
  428. <literallayout class='monospaced'>
  429. $ bitbake buildtools-tarball
  430. </literallayout>
  431. <note>
  432. The
  433. <link linkend='var-SDKMACHINE'><filename>SDKMACHINE</filename></link>
  434. variable in your <filename>local.conf</filename> file
  435. determines whether you build tools for a 32-bit
  436. or 64-bit system.
  437. </note>
  438. Once the build completes, you can find the
  439. <filename>.sh</filename> file that installs
  440. the tools in the <filename>tmp/deploy/sdk</filename>
  441. subdirectory of the
  442. <link linkend='build-directory'>Build Directory</link>.
  443. The installer file has the string "buildtools"
  444. in the name.
  445. </para></listitem>
  446. <listitem><para>
  447. Transfer the <filename>.sh</filename> file from the
  448. build host to the machine that does not meet the
  449. Git, tar, or Python requirements.
  450. </para></listitem>
  451. <listitem><para>
  452. On the machine that does not meet the requirements,
  453. run the <filename>.sh</filename> file
  454. to install the tools.
  455. Here is an example:
  456. <literallayout class='monospaced'>
  457. $ sh ~/Downloads/x86_64-buildtools-nativesdk-standalone-&DISTRO;.sh
  458. </literallayout>
  459. During execution, a prompt appears that allows you to
  460. choose the installation directory.
  461. For example, you could choose the following:
  462. <literallayout class='monospaced'>
  463. /home/<replaceable>your_username</replaceable>/buildtools
  464. </literallayout>
  465. </para></listitem>
  466. <listitem><para>
  467. Source the tools environment setup script by using a
  468. command like the following:
  469. <literallayout class='monospaced'>
  470. $ source /home/<replaceable>your_username</replaceable>/buildtools/environment-setup-i586-poky-linux
  471. </literallayout>
  472. Of course, you need to supply your installation directory and be
  473. sure to use the right file (i.e. i585 or x86-64).
  474. </para>
  475. <para>
  476. After you have sourced the setup script,
  477. the tools are added to <filename>PATH</filename>
  478. and any other environment variables required to run the
  479. tools are initialized.
  480. The results are working versions versions of Git, tar,
  481. Python and <filename>chrpath</filename>.
  482. </para></listitem>
  483. </orderedlist>
  484. </para>
  485. </section>
  486. </section>
  487. </chapter>
  488. <!--
  489. vim: expandtab tw=80 ts=4
  490. -->