README.hardware 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  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. Note: To boot from USB disk you need u-boot that supports 'ext2load usb'
  144. command. You need to setup TFTP server, load u-boot from there and
  145. flash it to NOR flash.
  146. Beware! Flashing bootloader is potentially dangerous operation that can
  147. brick your device if done incorrectly. Please, make sure you understand
  148. what below commands mean before executing them.
  149. Load the new u-boot.bin from TFTP server to memory address 200000
  150. => tftp 200000 u-boot.bin
  151. Disable flash protection
  152. => protect off all
  153. Erase the old u-boot from fe000000 to fe06ffff in NOR flash.
  154. The size is 0x70000 (458752 bytes)
  155. => erase fe000000 fe06ffff
  156. Copy the new u-boot from address 200000 to fe000000
  157. the size is 0x70000. It has to be greater or equal to u-boot.bin size
  158. => cp.b 200000 fe000000 70000
  159. Enable flash protection again
  160. => protect on all
  161. Reset the board
  162. => reset
  163. --- Booting from USB disk ---
  164. 1. Flash partitioned image to the USB disk
  165. # dd if=core-image-minimal-mpc8315e-rdb.wic of=/dev/sdb
  166. 2. Plug USB disk into the MPC8315 board
  167. 3. Connect the board's first serial port to your workstation and then start up
  168. your favourite serial terminal so that you will be able to interact with
  169. the serial console. If you don't have a favourite, picocom is suggested:
  170. $ picocom /dev/ttyUSB0 -b 115200
  171. 4. Power up or reset the board and press a key on the terminal when prompted
  172. to get to the U-Boot command line
  173. 5. Optional. Load the u-boot.bin from the USB disk:
  174. => usb start
  175. => ext2load usb 0:1 200000 u-boot.bin
  176. and flash it to NOR flash as described above.
  177. 6. Load the kernel and dtb from the first partition of the USB disk:
  178. => usb start
  179. => ext2load usb 0:1 1000000 uImage
  180. => ext2load usb 0:1 2000000 dtb
  181. 7. Set bootargs and boot up the device
  182. => setenv bootargs root=/dev/sdb2 rw rootwait console=ttyS0,115200
  183. => bootm 1000000 - 2000000
  184. --- Booting from NFS root ---
  185. Load the kernel and dtb (device tree blob), and boot the system as follows:
  186. 1. Get the kernel (uImage-mpc8315e-rdb.bin) and dtb (uImage-mpc8315e-rdb.dtb)
  187. files from the tmp/deploy directory, and make them available on your TFTP
  188. server.
  189. 2. Connect the board's first serial port to your workstation and then start up
  190. your favourite serial terminal so that you will be able to interact with
  191. the serial console. If you don't have a favourite, picocom is suggested:
  192. $ picocom /dev/ttyUSB0 -b 115200
  193. 3. Power up or reset the board and press a key on the terminal when prompted
  194. to get to the U-Boot command line
  195. 4. Set up the environment in U-Boot:
  196. => setenv ipaddr <board ip>
  197. => setenv serverip <tftp server ip>
  198. => 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
  199. 5. Download the kernel and dtb, and boot:
  200. => tftp 1000000 uImage-mpc8315e-rdb.bin
  201. => tftp 2000000 uImage-mpc8315e-rdb.dtb
  202. => bootm 1000000 - 2000000
  203. --- Booting from JFFS2 root ---
  204. 1. First boot the board with NFS root.
  205. 2. Erase the MTD partition which will be used as root:
  206. $ flash_eraseall /dev/mtd3
  207. 3. Copy the JFFS2 image to the MTD partition:
  208. $ flashcp core-image-minimal-mpc8315e-rdb.jffs2 /dev/mtd3
  209. 4. Then reboot the board and set up the environment in U-Boot:
  210. => setenv bootargs root=/dev/mtdblock3 rootfstype=jffs2 console=ttyS0,115200
  211. Ubiquiti Networks EdgeRouter Lite (edgerouter)
  212. ==============================================
  213. The EdgeRouter Lite is part of the EdgeMax series. It is a MIPS64 router
  214. (based on the Cavium Octeon processor) with 512MB of RAM, which uses an
  215. internal USB pendrive for storage.
  216. Setup instructions
  217. ------------------
  218. You will need the following:
  219. * RJ45 -> serial ("rollover") cable connected from your PC to the CONSOLE
  220. port on the device
  221. * Ethernet connected to the first ethernet port on the board
  222. If using NFS as part of the setup process, you will also need:
  223. * NFS root setup on your workstation
  224. * TFTP server installed on your workstation (if fetching the kernel from
  225. TFTP, see below).
  226. --- Preparation ---
  227. Build an image (e.g. core-image-minimal) using "edgerouter" as the MACHINE.
  228. In the following instruction it is based on core-image-minimal. Another target
  229. may be similiar with it.
  230. --- Booting from NFS root / kernel via TFTP ---
  231. Load the kernel, and boot the system as follows:
  232. 1. Get the kernel (vmlinux) file from the tmp/deploy/images/edgerouter
  233. directory, and make them available on your TFTP server.
  234. 2. Connect the board's first serial port to your workstation and then start up
  235. your favourite serial terminal so that you will be able to interact with
  236. the serial console. If you don't have a favourite, picocom is suggested:
  237. $ picocom /dev/ttyS0 -b 115200
  238. 3. Power up or reset the board and press a key on the terminal when prompted
  239. to get to the U-Boot command line
  240. 4. Set up the environment in U-Boot:
  241. => setenv ipaddr <board ip>
  242. => setenv serverip <tftp server ip>
  243. 5. Download the kernel and boot:
  244. => tftp tftp $loadaddr vmlinux
  245. => 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)
  246. --- Booting from USB disk ---
  247. To boot from the USB disk, you either need to remove it from the edgerouter
  248. box and populate it from another computer, or use a previously booted NFS
  249. image and populate from the edgerouter itself.
  250. Type 1: Use partitioned image
  251. -----------------------------
  252. Steps:
  253. 1. Remove the USB disk from the edgerouter and insert it into a computer
  254. that has access to your build artifacts.
  255. 2. Flash the image.
  256. # dd if=core-image-minimal-edgerouter.wic of=/dev/sdb
  257. 3. Insert USB disk into the edgerouter and boot it.
  258. Type 2: NFS
  259. -----------
  260. Note: If you place the kernel on the ext3 partition, you must re-create the
  261. ext3 filesystem, since the factory u-boot can only handle 128 byte inodes and
  262. cannot read the partition otherwise.
  263. These boot instructions assume that you have recreated the ext3 filesystem with
  264. 128 byte inodes, you have an updated uboot or you are running and image capable
  265. of making the filesystem on the board itself.
  266. 1. Boot from NFS root
  267. 2. Mount the USB disk partition 2 and then extract the contents of
  268. tmp/deploy/core-image-XXXX.tar.bz2 into it.
  269. Before starting, copy core-image-minimal-xxx.tar.bz2 and vmlinux into
  270. rootfs path on your workstation.
  271. and then,
  272. # mount /dev/sda2 /media/sda2
  273. # tar -xvjpf core-image-minimal-XXX.tar.bz2 -C /media/sda2
  274. # cp vmlinux /media/sda2/boot/vmlinux
  275. # umount /media/sda2
  276. # reboot
  277. 3. Reboot the board and press a key on the terminal when prompted to get to the U-Boot
  278. command line:
  279. # reboot
  280. 4. Load the kernel and boot:
  281. => ext2load usb 0:2 $loadaddr boot/vmlinux
  282. => bootoctlinux $loadaddr coremask=0x3 root=/dev/sda2 rw rootwait mtdparts=phys_mapped_flash:512k(boot0),512k(boot1),64k@3072k(eeprom)