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