1*4882a593Smuzhiyun Yocto Project Hardware Reference BSPs README 2*4882a593Smuzhiyun ============================================ 3*4882a593Smuzhiyun 4*4882a593SmuzhiyunThis file gives details about using the Yocto Project hardware reference BSPs. 5*4882a593SmuzhiyunThe machines supported can be seen in the conf/machine/ directory and are listed 6*4882a593Smuzhiyunbelow. There is one per supported hardware architecture and these are primarily 7*4882a593Smuzhiyunused to validate that the Yocto Project works on the hardware arctectures of 8*4882a593Smuzhiyunthose machines. 9*4882a593Smuzhiyun 10*4882a593SmuzhiyunIf you are in doubt about using Poky/OpenEmbedded/Yocto Project with your hardware, 11*4882a593Smuzhiyunconsult the documentation for your board/device. 12*4882a593Smuzhiyun 13*4882a593SmuzhiyunSupport for additional devices is normally added by adding BSP layers to your 14*4882a593Smuzhiyunconfiguration. For more information please see the Yocto Board Support Package 15*4882a593Smuzhiyun(BSP) Developer's Guide - documentation source is in documentation/bspguide or 16*4882a593Smuzhiyundownload the PDF from: 17*4882a593Smuzhiyun 18*4882a593Smuzhiyun https://docs.yoctoproject.org/ 19*4882a593Smuzhiyun 20*4882a593SmuzhiyunNote that these reference BSPs use the linux-yocto kernel and in general don't 21*4882a593Smuzhiyunpull in binary module support for the platforms. This means some device functionality 22*4882a593Smuzhiyunmay be limited compared to a 'full' BSP which may be available. 23*4882a593Smuzhiyun 24*4882a593Smuzhiyun 25*4882a593SmuzhiyunHardware Reference Boards 26*4882a593Smuzhiyun========================= 27*4882a593Smuzhiyun 28*4882a593SmuzhiyunThe following boards are supported by the meta-yocto-bsp layer: 29*4882a593Smuzhiyun 30*4882a593Smuzhiyun * Texas Instruments Beaglebone (beaglebone-yocto) 31*4882a593Smuzhiyun * Ubiquiti Networks EdgeRouter Lite (edgerouter) 32*4882a593Smuzhiyun * General IA platforms (genericx86 and genericx86-64) 33*4882a593Smuzhiyun 34*4882a593SmuzhiyunFor more information see the board's section below. The appropriate MACHINE 35*4882a593Smuzhiyunvariable value corresponding to the board is given in brackets. 36*4882a593Smuzhiyun 37*4882a593SmuzhiyunReference Board Maintenance 38*4882a593Smuzhiyun=========================== 39*4882a593Smuzhiyun 40*4882a593SmuzhiyunSend pull requests, patches, comments or questions about meta-yocto-bsps to poky@lists.yoctoproject.org 41*4882a593Smuzhiyun 42*4882a593SmuzhiyunMaintainers: Kevin Hao <kexin.hao@windriver.com> 43*4882a593Smuzhiyun Bruce Ashfield <bruce.ashfield@gmail.com> 44*4882a593Smuzhiyun 45*4882a593SmuzhiyunConsumer Devices 46*4882a593Smuzhiyun================ 47*4882a593Smuzhiyun 48*4882a593SmuzhiyunThe following consumer devices are supported by the meta-yocto-bsp layer: 49*4882a593Smuzhiyun 50*4882a593Smuzhiyun * Intel x86 based PCs and devices (genericx86) 51*4882a593Smuzhiyun * Ubiquiti Networks EdgeRouter Lite (edgerouter) 52*4882a593Smuzhiyun 53*4882a593SmuzhiyunFor more information see the device's section below. The appropriate MACHINE 54*4882a593Smuzhiyunvariable value corresponding to the device is given in brackets. 55*4882a593Smuzhiyun 56*4882a593Smuzhiyun 57*4882a593Smuzhiyun 58*4882a593Smuzhiyun Specific Hardware Documentation 59*4882a593Smuzhiyun =============================== 60*4882a593Smuzhiyun 61*4882a593Smuzhiyun 62*4882a593SmuzhiyunIntel x86 based PCs and devices (genericx86*) 63*4882a593Smuzhiyun============================================= 64*4882a593Smuzhiyun 65*4882a593SmuzhiyunThe genericx86 and genericx86-64 MACHINE are tested on the following platforms: 66*4882a593Smuzhiyun 67*4882a593SmuzhiyunIntel Xeon/Core i-Series: 68*4882a593Smuzhiyun + Intel NUC5 Series - ix-52xx Series SOC (Broadwell) 69*4882a593Smuzhiyun + Intel NUC6 Series - ix-62xx Series SOC (Skylake) 70*4882a593Smuzhiyun + Intel Shumway Xeon Server 71*4882a593Smuzhiyun 72*4882a593SmuzhiyunIntel Atom platforms: 73*4882a593Smuzhiyun + MinnowBoard MAX - E3825 SOC (Bay Trail) 74*4882a593Smuzhiyun + MinnowBoard MAX - Turbot (ADI Engineering) - E3826 SOC (Bay Trail) 75*4882a593Smuzhiyun - These boards can be either 32bot or 64bit modes depending on firmware 76*4882a593Smuzhiyun - See minnowboard.org for details 77*4882a593Smuzhiyun + Intel Braswell SOC 78*4882a593Smuzhiyun 79*4882a593Smuzhiyunand is likely to work on many unlisted Atom/Core/Xeon based devices. The MACHINE 80*4882a593Smuzhiyuntype supports ethernet, wifi, sound, and Intel/vesa graphics by default in 81*4882a593Smuzhiyunaddition to common PC input devices, busses, and so on. 82*4882a593Smuzhiyun 83*4882a593SmuzhiyunDepending on the device, it can boot from a traditional hard-disk, a USB device, 84*4882a593Smuzhiyunor over the network. Writing generated images to physical media is 85*4882a593Smuzhiyunstraightforward with a caveat for USB devices. The following examples assume the 86*4882a593Smuzhiyuntarget boot device is /dev/sdb, be sure to verify this and use the correct 87*4882a593Smuzhiyundevice as the following commands are run as root and are not reversable. 88*4882a593Smuzhiyun 89*4882a593SmuzhiyunUSB Device: 90*4882a593Smuzhiyun 1. Build a live image. This image type consists of a simple filesystem 91*4882a593Smuzhiyun without a partition table, which is suitable for USB keys, and with the 92*4882a593Smuzhiyun default setup for the genericx86 machine, this image type is built 93*4882a593Smuzhiyun automatically for any image you build. For example: 94*4882a593Smuzhiyun 95*4882a593Smuzhiyun $ bitbake core-image-minimal 96*4882a593Smuzhiyun 97*4882a593Smuzhiyun 2. Use the "dd" utility to write the image to the raw block device. For 98*4882a593Smuzhiyun example: 99*4882a593Smuzhiyun 100*4882a593Smuzhiyun # dd if=core-image-minimal-genericx86.hddimg of=/dev/sdb 101*4882a593Smuzhiyun 102*4882a593Smuzhiyun If the device fails to boot with "Boot error" displayed, or apparently 103*4882a593Smuzhiyun stops just after the SYSLINUX version banner, it is likely the BIOS cannot 104*4882a593Smuzhiyun understand the physical layout of the disk (or rather it expects a 105*4882a593Smuzhiyun particular layout and cannot handle anything else). There are two possible 106*4882a593Smuzhiyun solutions to this problem: 107*4882a593Smuzhiyun 108*4882a593Smuzhiyun 1. Change the BIOS USB Device setting to HDD mode. The label will vary by 109*4882a593Smuzhiyun device, but the idea is to force BIOS to read the Cylinder/Head/Sector 110*4882a593Smuzhiyun geometry from the device. 111*4882a593Smuzhiyun 112*4882a593Smuzhiyun 2. Use a ".wic" image with an EFI partition 113*4882a593Smuzhiyun 114*4882a593Smuzhiyun a) With a default grub-efi bootloader: 115*4882a593Smuzhiyun # dd if=core-image-minimal-genericx86-64.wic of=/dev/sdb 116*4882a593Smuzhiyun 117*4882a593Smuzhiyun b) Use systemd-boot instead 118*4882a593Smuzhiyun - Build an image with EFI_PROVIDER="systemd-boot" then use the above 119*4882a593Smuzhiyun dd command to write the image to a USB stick. 120*4882a593Smuzhiyun 121*4882a593Smuzhiyun 122*4882a593SmuzhiyunTexas Instruments Beaglebone (beaglebone-yocto) 123*4882a593Smuzhiyun=============================================== 124*4882a593Smuzhiyun 125*4882a593SmuzhiyunThe Beaglebone is an ARM Cortex-A8 development board with USB, Ethernet, 2D/3D 126*4882a593Smuzhiyunaccelerated graphics, audio, serial, JTAG, and SD/MMC. The Black adds a faster 127*4882a593SmuzhiyunCPU, more RAM, eMMC flash and a micro HDMI port. The beaglebone MACHINE is 128*4882a593Smuzhiyuntested on the following platforms: 129*4882a593Smuzhiyun 130*4882a593Smuzhiyun o Beaglebone Black A6 131*4882a593Smuzhiyun o Beaglebone A6 (the original "White" model) 132*4882a593Smuzhiyun 133*4882a593SmuzhiyunThe Beaglebone Black has eMMC, while the White does not. Pressing the USER/BOOT 134*4882a593Smuzhiyunbutton when powering on will temporarily change the boot order. But for the sake 135*4882a593Smuzhiyunof simplicity, these instructions assume you have erased the eMMC on the Black, 136*4882a593Smuzhiyunso its boot behavior matches that of the White and boots off of SD card. To do 137*4882a593Smuzhiyunthis, issue the following commands from the u-boot prompt: 138*4882a593Smuzhiyun 139*4882a593Smuzhiyun # mmc dev 1 140*4882a593Smuzhiyun # mmc erase 0 512 141*4882a593Smuzhiyun 142*4882a593SmuzhiyunTo further tailor these instructions for your board, please refer to the 143*4882a593Smuzhiyundocumentation at http://www.beagleboard.org/bone and http://www.beagleboard.org/black 144*4882a593Smuzhiyun 145*4882a593SmuzhiyunFrom a Linux system with access to the image files perform the following steps: 146*4882a593Smuzhiyun 147*4882a593Smuzhiyun 1. Build an image. For example: 148*4882a593Smuzhiyun 149*4882a593Smuzhiyun $ bitbake core-image-minimal 150*4882a593Smuzhiyun 151*4882a593Smuzhiyun 2. Use the "dd" utility to write the image to the SD card. For example: 152*4882a593Smuzhiyun 153*4882a593Smuzhiyun # dd if=core-image-minimal-beaglebone-yocto.wic of=/dev/sdb 154*4882a593Smuzhiyun 155*4882a593Smuzhiyun 3. Insert the SD card into the Beaglebone and boot the board. 156*4882a593Smuzhiyun 157*4882a593SmuzhiyunUbiquiti Networks EdgeRouter Lite (edgerouter) 158*4882a593Smuzhiyun============================================== 159*4882a593Smuzhiyun 160*4882a593SmuzhiyunThe EdgeRouter Lite is part of the EdgeMax series. It is a MIPS64 router 161*4882a593Smuzhiyun(based on the Cavium Octeon processor) with 512MB of RAM, which uses an 162*4882a593Smuzhiyuninternal USB pendrive for storage. 163*4882a593Smuzhiyun 164*4882a593SmuzhiyunSetup instructions 165*4882a593Smuzhiyun------------------ 166*4882a593Smuzhiyun 167*4882a593SmuzhiyunYou will need the following: 168*4882a593Smuzhiyun* RJ45 -> serial ("rollover") cable connected from your PC to the CONSOLE 169*4882a593Smuzhiyun port on the device 170*4882a593Smuzhiyun* Ethernet connected to the first ethernet port on the board 171*4882a593Smuzhiyun 172*4882a593SmuzhiyunIf using NFS as part of the setup process, you will also need: 173*4882a593Smuzhiyun* NFS root setup on your workstation 174*4882a593Smuzhiyun* TFTP server installed on your workstation (if fetching the kernel from 175*4882a593Smuzhiyun TFTP, see below). 176*4882a593Smuzhiyun 177*4882a593Smuzhiyun--- Preparation --- 178*4882a593Smuzhiyun 179*4882a593SmuzhiyunBuild an image (e.g. core-image-minimal) using "edgerouter" as the MACHINE. 180*4882a593SmuzhiyunIn the following instruction it is based on core-image-minimal. Another target 181*4882a593Smuzhiyunmay be similiar with it. 182*4882a593Smuzhiyun 183*4882a593Smuzhiyun--- Booting from NFS root / kernel via TFTP --- 184*4882a593Smuzhiyun 185*4882a593SmuzhiyunLoad the kernel, and boot the system as follows: 186*4882a593Smuzhiyun 187*4882a593Smuzhiyun 1. Get the kernel (vmlinux) file from the tmp/deploy/images/edgerouter 188*4882a593Smuzhiyun directory, and make them available on your TFTP server. 189*4882a593Smuzhiyun 190*4882a593Smuzhiyun 2. Connect the board's first serial port to your workstation and then start up 191*4882a593Smuzhiyun your favourite serial terminal so that you will be able to interact with 192*4882a593Smuzhiyun the serial console. If you don't have a favourite, picocom is suggested: 193*4882a593Smuzhiyun 194*4882a593Smuzhiyun $ picocom /dev/ttyS0 -b 115200 195*4882a593Smuzhiyun 196*4882a593Smuzhiyun 3. Power up or reset the board and press a key on the terminal when prompted 197*4882a593Smuzhiyun to get to the U-Boot command line 198*4882a593Smuzhiyun 199*4882a593Smuzhiyun 4. Set up the environment in U-Boot: 200*4882a593Smuzhiyun 201*4882a593Smuzhiyun => setenv ipaddr <board ip> 202*4882a593Smuzhiyun => setenv serverip <tftp server ip> 203*4882a593Smuzhiyun 204*4882a593Smuzhiyun 5. Download the kernel and boot: 205*4882a593Smuzhiyun 206*4882a593Smuzhiyun => tftp tftp $loadaddr vmlinux 207*4882a593Smuzhiyun => 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) 208*4882a593Smuzhiyun 209*4882a593Smuzhiyun--- Booting from USB disk --- 210*4882a593Smuzhiyun 211*4882a593SmuzhiyunTo boot from the USB disk, you either need to remove it from the edgerouter 212*4882a593Smuzhiyunbox and populate it from another computer, or use a previously booted NFS 213*4882a593Smuzhiyunimage and populate from the edgerouter itself. 214*4882a593Smuzhiyun 215*4882a593SmuzhiyunType 1: Use partitioned image 216*4882a593Smuzhiyun----------------------------- 217*4882a593Smuzhiyun 218*4882a593SmuzhiyunSteps: 219*4882a593Smuzhiyun 220*4882a593Smuzhiyun 1. Remove the USB disk from the edgerouter and insert it into a computer 221*4882a593Smuzhiyun that has access to your build artifacts. 222*4882a593Smuzhiyun 223*4882a593Smuzhiyun 2. Flash the image. 224*4882a593Smuzhiyun 225*4882a593Smuzhiyun # dd if=core-image-minimal-edgerouter.wic of=/dev/sdb 226*4882a593Smuzhiyun 227*4882a593Smuzhiyun 3. Insert USB disk into the edgerouter and boot it. 228*4882a593Smuzhiyun 229*4882a593SmuzhiyunType 2: NFS 230*4882a593Smuzhiyun----------- 231*4882a593Smuzhiyun 232*4882a593SmuzhiyunNote: If you place the kernel on the ext3 partition, you must re-create the 233*4882a593Smuzhiyun ext3 filesystem, since the factory u-boot can only handle 128 byte inodes and 234*4882a593Smuzhiyun cannot read the partition otherwise. 235*4882a593Smuzhiyun 236*4882a593Smuzhiyun These boot instructions assume that you have recreated the ext3 filesystem with 237*4882a593Smuzhiyun 128 byte inodes, you have an updated uboot or you are running and image capable 238*4882a593Smuzhiyun of making the filesystem on the board itself. 239*4882a593Smuzhiyun 240*4882a593Smuzhiyun 241*4882a593Smuzhiyun 1. Boot from NFS root 242*4882a593Smuzhiyun 243*4882a593Smuzhiyun 2. Mount the USB disk partition 2 and then extract the contents of 244*4882a593Smuzhiyun tmp/deploy/core-image-XXXX.tar.bz2 into it. 245*4882a593Smuzhiyun 246*4882a593Smuzhiyun Before starting, copy core-image-minimal-xxx.tar.bz2 and vmlinux into 247*4882a593Smuzhiyun rootfs path on your workstation. 248*4882a593Smuzhiyun 249*4882a593Smuzhiyun and then, 250*4882a593Smuzhiyun 251*4882a593Smuzhiyun # mount /dev/sda2 /media/sda2 252*4882a593Smuzhiyun # tar -xvjpf core-image-minimal-XXX.tar.bz2 -C /media/sda2 253*4882a593Smuzhiyun # cp vmlinux /media/sda2/boot/vmlinux 254*4882a593Smuzhiyun # umount /media/sda2 255*4882a593Smuzhiyun # reboot 256*4882a593Smuzhiyun 257*4882a593Smuzhiyun 3. Reboot the board and press a key on the terminal when prompted to get to the U-Boot 258*4882a593Smuzhiyun command line: 259*4882a593Smuzhiyun 260*4882a593Smuzhiyun # reboot 261*4882a593Smuzhiyun 262*4882a593Smuzhiyun 4. Load the kernel and boot: 263*4882a593Smuzhiyun 264*4882a593Smuzhiyun => ext2load usb 0:2 $loadaddr boot/vmlinux 265*4882a593Smuzhiyun => bootoctlinux $loadaddr coremask=0x3 root=/dev/sda2 rw rootwait mtdparts=phys_mapped_flash:512k(boot0),512k(boot1),64k@3072k(eeprom) 266