README.hardware 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  1. Poky Hardware README
  2. ====================
  3. This file gives details about using Poky with the reference machines
  4. supported out of the box. A full list of supported reference target machines
  5. can be found by looking in the following directories:
  6. meta/conf/machine/
  7. meta-yocto-bsp/conf/machine/
  8. If you are in doubt about using Poky/OpenEmbedded with your hardware, consult
  9. the documentation for your board/device.
  10. Support for additional devices is normally added by creating BSP layers - for
  11. more information please see the Yocto Board Support Package (BSP) Developer's
  12. Guide - documentation source is in documentation/bspguide or download the PDF
  13. from:
  14. http://yoctoproject.org/documentation
  15. Support for physical reference hardware has now been split out into a
  16. meta-yocto-bsp layer which can be removed separately from other layers if not
  17. needed.
  18. QEMU Emulation Targets
  19. ======================
  20. To simplify development, the build system supports building images to
  21. work with the QEMU emulator in system emulation mode. Several architectures
  22. are currently supported:
  23. * ARM (qemuarm)
  24. * x86 (qemux86)
  25. * x86-64 (qemux86-64)
  26. * PowerPC (qemuppc)
  27. * MIPS (qemumips)
  28. Use of the QEMU images is covered in the Yocto Project Reference Manual.
  29. The appropriate MACHINE variable value corresponding to the target is given
  30. in brackets.
  31. Hardware Reference Boards
  32. =========================
  33. The following boards are supported by the meta-yocto-bsp layer:
  34. * Texas Instruments Beaglebone (beaglebone)
  35. * Freescale MPC8315E-RDB (mpc8315e-rdb)
  36. For more information see the board's section below. The appropriate MACHINE
  37. variable value corresponding to the board is given in brackets.
  38. Reference Board Maintenance
  39. ===========================
  40. Send pull requests, patches, comments or questions about meta-yocto-bsps to poky@yoctoproject.org
  41. Maintainers: Kevin Hao <kexin.hao@windriver.com>
  42. Bruce Ashfield <bruce.ashfield@windriver.com>
  43. Consumer Devices
  44. ================
  45. The following consumer devices are supported by the meta-yocto-bsp layer:
  46. * Intel x86 based PCs and devices (genericx86)
  47. * Ubiquiti Networks EdgeRouter Lite (edgerouter)
  48. For more information see the device's section below. The appropriate MACHINE
  49. variable value corresponding to the device is given in brackets.
  50. Specific Hardware Documentation
  51. ===============================
  52. Intel x86 based PCs and devices (genericx86*)
  53. =============================================
  54. The genericx86 and genericx86-64 MACHINE are tested on the following platforms:
  55. Intel Xeon/Core i-Series:
  56. + Intel NUC5 Series - ix-52xx Series SOC (Broadwell)
  57. + Intel NUC6 Series - ix-62xx Series SOC (Skylake)
  58. + Intel Shumway Xeon Server
  59. Intel Atom platforms:
  60. + MinnowBoard MAX - E3825 SOC (Bay Trail)
  61. + MinnowBoard MAX - Turbot (ADI Engineering) - E3826 SOC (Bay Trail)
  62. - These boards can be either 32bot or 64bit modes depending on firmware
  63. - See minnowboard.org for details
  64. + Intel Braswell SOC
  65. and is likely to work on many unlisted Atom/Core/Xeon based devices. The MACHINE
  66. type supports ethernet, wifi, sound, and Intel/vesa graphics by default in
  67. addition to common PC input devices, busses, and so on.
  68. Depending on the device, it can boot from a traditional hard-disk, a USB device,
  69. or over the network. Writing generated images to physical media is
  70. straightforward with a caveat for USB devices. The following examples assume the
  71. target boot device is /dev/sdb, be sure to verify this and use the correct
  72. device as the following commands are run as root and are not reversable.
  73. USB Device:
  74. 1. Build a live image. This image type consists of a simple filesystem
  75. without a partition table, which is suitable for USB keys, and with the
  76. default setup for the genericx86 machine, this image type is built
  77. automatically for any image you build. For example:
  78. $ bitbake core-image-minimal
  79. 2. Use the "dd" utility to write the image to the raw block device. For
  80. example:
  81. # dd if=core-image-minimal-genericx86.hddimg of=/dev/sdb
  82. If the device fails to boot with "Boot error" displayed, or apparently
  83. stops just after the SYSLINUX version banner, it is likely the BIOS cannot
  84. understand the physical layout of the disk (or rather it expects a
  85. particular layout and cannot handle anything else). There are two possible
  86. solutions to this problem:
  87. 1. Change the BIOS USB Device setting to HDD mode. The label will vary by
  88. device, but the idea is to force BIOS to read the Cylinder/Head/Sector
  89. geometry from the device.
  90. 2. Use a ".wic" image with an EFI partition
  91. a) With a default grub-efi bootloader:
  92. # dd if=core-image-minimal-genericx86-64.wic of=/dev/sdb
  93. b) Use systemd-boot instead
  94. - Build an image with EFI_PROVIDER="systemd-boot" then use the above
  95. dd command to write the image to a USB stick.
  96. Texas Instruments Beaglebone (beaglebone)
  97. =========================================
  98. The Beaglebone is an ARM Cortex-A8 development board with USB, Ethernet, 2D/3D
  99. accelerated graphics, audio, serial, JTAG, and SD/MMC. The Black adds a faster
  100. CPU, more RAM, eMMC flash and a micro HDMI port. The beaglebone MACHINE is
  101. tested on the following platforms:
  102. o Beaglebone Black A6
  103. o Beaglebone A6 (the original "White" model)
  104. The Beaglebone Black has eMMC, while the White does not. Pressing the USER/BOOT
  105. button when powering on will temporarily change the boot order. But for the sake
  106. of simplicity, these instructions assume you have erased the eMMC on the Black,
  107. so its boot behavior matches that of the White and boots off of SD card. To do
  108. this, issue the following commands from the u-boot prompt:
  109. # mmc dev 1
  110. # mmc erase 0 512
  111. To further tailor these instructions for your board, please refer to the
  112. documentation at http://www.beagleboard.org/bone and http://www.beagleboard.org/black
  113. From a Linux system with access to the image files perform the following steps:
  114. 1. Build an image. For example:
  115. $ bitbake core-image-minimal
  116. 2. Use the "dd" utility to write the image to the SD card. For example:
  117. # dd core-image-minimal-beaglebone.wic of=/dev/sdb
  118. 3. Insert the SD card into the Beaglebone and boot the board.
  119. Freescale MPC8315E-RDB (mpc8315e-rdb)
  120. =====================================
  121. The MPC8315 PowerPC reference platform (MPC8315E-RDB) is aimed at hardware and
  122. software development of network attached storage (NAS) and digital media server
  123. applications. The MPC8315E-RDB features the PowerQUICC II Pro processor, which
  124. includes a built-in security accelerator.
  125. (Note: you may find it easier to order MPC8315E-RDBA; this appears to be the
  126. same board in an enclosure with accessories. In any case it is fully
  127. compatible with the instructions given here.)
  128. Setup instructions
  129. ------------------
  130. You will need the following:
  131. * NFS root setup on your workstation
  132. * TFTP server installed on your workstation
  133. * Straight-thru 9-conductor serial cable (DB9, M/F) connected from your
  134. PC to UART1
  135. * Ethernet connected to the first ethernet port on the board
  136. --- Preparation ---
  137. Note: if you have altered your board's ethernet MAC address(es) from the
  138. defaults, or you need to do so because you want multiple boards on the same
  139. network, then you will need to change the values in the dts file (patch
  140. linux/arch/powerpc/boot/dts/mpc8315erdb.dts within the kernel source). If
  141. you have left them at the factory default then you shouldn't need to do
  142. anything here.
  143. --- Booting from NFS root ---
  144. Load the kernel and dtb (device tree blob), and boot the system as follows:
  145. 1. Get the kernel (uImage-mpc8315e-rdb.bin) and dtb (uImage-mpc8315e-rdb.dtb)
  146. files from the tmp/deploy directory, and make them available on your TFTP
  147. server.
  148. 2. Connect the board's first serial port to your workstation and then start up
  149. your favourite serial terminal so that you will be able to interact with
  150. the serial console. If you don't have a favourite, picocom is suggested:
  151. $ picocom /dev/ttyUSB0 -b 115200
  152. 3. Power up or reset the board and press a key on the terminal when prompted
  153. to get to the U-Boot command line
  154. 4. Set up the environment in U-Boot:
  155. => setenv ipaddr <board ip>
  156. => setenv serverip <tftp server ip>
  157. => setenv bootargs root=/dev/nfs rw nfsroot=<nfsroot ip>:<rootfs path> ip=<board ip>:<server ip>:<gateway ip>:255.255.255.0:mpc8315e:eth0:off console=ttyS0,115200
  158. 5. Download the kernel and dtb, and boot:
  159. => tftp 1000000 uImage-mpc8315e-rdb.bin
  160. => tftp 2000000 uImage-mpc8315e-rdb.dtb
  161. => bootm 1000000 - 2000000
  162. --- Booting from JFFS2 root ---
  163. 1. First boot the board with NFS root.
  164. 2. Erase the MTD partition which will be used as root:
  165. $ flash_eraseall /dev/mtd3
  166. 3. Copy the JFFS2 image to the MTD partition:
  167. $ flashcp core-image-minimal-mpc8315e-rdb.jffs2 /dev/mtd3
  168. 4. Then reboot the board and set up the environment in U-Boot:
  169. => setenv bootargs root=/dev/mtdblock3 rootfstype=jffs2 console=ttyS0,115200
  170. Ubiquiti Networks EdgeRouter Lite (edgerouter)
  171. ==============================================
  172. The EdgeRouter Lite is part of the EdgeMax series. It is a MIPS64 router
  173. (based on the Cavium Octeon processor) with 512MB of RAM, which uses an
  174. internal USB pendrive for storage.
  175. Setup instructions
  176. ------------------
  177. You will need the following:
  178. * RJ45 -> serial ("rollover") cable connected from your PC to the CONSOLE
  179. port on the device
  180. * Ethernet connected to the first ethernet port on the board
  181. If using NFS as part of the setup process, you will also need:
  182. * NFS root setup on your workstation
  183. * TFTP server installed on your workstation (if fetching the kernel from
  184. TFTP, see below).
  185. --- Preparation ---
  186. Build an image (e.g. core-image-minimal) using "edgerouter" as the MACHINE.
  187. In the following instruction it is based on core-image-minimal. Another target
  188. may be similiar with it.
  189. --- Booting from NFS root / kernel via TFTP ---
  190. Load the kernel, and boot the system as follows:
  191. 1. Get the kernel (vmlinux) file from the tmp/deploy/images/edgerouter
  192. directory, and make them available on your TFTP server.
  193. 2. Connect the board's first serial port to your workstation and then start up
  194. your favourite serial terminal so that you will be able to interact with
  195. the serial console. If you don't have a favourite, picocom is suggested:
  196. $ picocom /dev/ttyS0 -b 115200
  197. 3. Power up or reset the board and press a key on the terminal when prompted
  198. to get to the U-Boot command line
  199. 4. Set up the environment in U-Boot:
  200. => setenv ipaddr <board ip>
  201. => setenv serverip <tftp server ip>
  202. 5. Download the kernel and boot:
  203. => tftp tftp $loadaddr vmlinux
  204. => bootoctlinux $loadaddr coremask=0x3 root=/dev/nfs rw nfsroot=<nfsroot ip>:<rootfs path> ip=<board ip>:<server ip>:<gateway ip>:<netmask>:edgerouter:eth0:off mtdparts=phys_mapped_flash:512k(boot0),512k(boot1),64k@3072k(eeprom)
  205. --- Booting from USB disk ---
  206. To boot from the USB disk, you either need to remove it from the edgerouter
  207. box and populate it from another computer, or use a previously booted NFS
  208. image and populate from the edgerouter itself.
  209. Type 1: Use partitioned image
  210. -----------------------------
  211. Steps:
  212. 1. Remove the USB disk from the edgerouter and insert it into a computer
  213. that has access to your build artifacts.
  214. 2. Flash the image.
  215. # dd if=core-image-minimal-edgerouter.wic of=/dev/sdb
  216. 3. Insert USB disk into the edgerouter and boot it.
  217. Type 2: NFS
  218. -----------
  219. Note: If you place the kernel on the ext3 partition, you must re-create the
  220. ext3 filesystem, since the factory u-boot can only handle 128 byte inodes and
  221. cannot read the partition otherwise.
  222. These boot instructions assume that you have recreated the ext3 filesystem with
  223. 128 byte inodes, you have an updated uboot or you are running and image capable
  224. of making the filesystem on the board itself.
  225. 1. Boot from NFS root
  226. 2. Mount the USB disk partition 2 and then extract the contents of
  227. tmp/deploy/core-image-XXXX.tar.bz2 into it.
  228. Before starting, copy core-image-minimal-xxx.tar.bz2 and vmlinux into
  229. rootfs path on your workstation.
  230. and then,
  231. # mount /dev/sda2 /media/sda2
  232. # tar -xvjpf core-image-minimal-XXX.tar.bz2 -C /media/sda2
  233. # cp vmlinux /media/sda2/boot/vmlinux
  234. # umount /media/sda2
  235. # reboot
  236. 3. Reboot the board and press a key on the terminal when prompted to get to the U-Boot
  237. command line:
  238. # reboot
  239. 4. Load the kernel and boot:
  240. => ext2load usb 0:2 $loadaddr boot/vmlinux
  241. => bootoctlinux $loadaddr coremask=0x3 root=/dev/sda2 rw rootwait mtdparts=phys_mapped_flash:512k(boot0),512k(boot1),64k@3072k(eeprom)