README.hardware 14 KB

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