README.hardware 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476
  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. Consumer Devices
  39. ================
  40. The following consumer devices are supported by the meta-yocto-bsp layer:
  41. * Intel x86 based PCs and devices (genericx86)
  42. * Ubiquiti Networks EdgeRouter Lite (edgerouter)
  43. For more information see the device's section below. The appropriate MACHINE
  44. variable value corresponding to the device is given in brackets.
  45. Specific Hardware Documentation
  46. ===============================
  47. Intel x86 based PCs and devices (genericx86)
  48. ==========================================
  49. The genericx86 MACHINE is tested on the following platforms:
  50. Intel Xeon/Core i-Series:
  51. + Intel Romley Server: Sandy Bridge Xeon processor, C600 PCH (Patsburg), (Canoe Pass CRB)
  52. + Intel Romley Server: Ivy Bridge Xeon processor, C600 PCH (Patsburg), (Intel SDP S2R3)
  53. + Intel Crystal Forest Server: Sandy Bridge Xeon processor, DH89xx PCH (Cave Creek), (Stargo CRB)
  54. + Intel Chief River Mobile: Ivy Bridge Mobile processor, QM77 PCH (Panther Point-M), (Emerald Lake II CRB, Sabino Canyon CRB)
  55. + Intel Huron River Mobile: Sandy Bridge processor, QM67 PCH (Cougar Point), (Emerald Lake CRB, EVOC EC7-1817LNAR board)
  56. + Intel Calpella Platform: Core i7 processor, QM57 PCH (Ibex Peak-M), (Red Fort CRB, Emerson MATXM CORE-411-B)
  57. + Intel Nehalem/Westmere-EP Server: Xeon 56xx/55xx processors, 5520 chipset, ICH10R IOH (82801), (Hanlan Creek CRB)
  58. + Intel Nehalem Workstation: Xeon 56xx/55xx processors, System SC5650SCWS (Greencity CRB)
  59. + Intel Picket Post Server: Xeon 56xx/55xx processors (Jasper Forest), 3420 chipset (Ibex Peak), (Osage CRB)
  60. + Intel Storage Platform: Sandy Bridge Xeon processor, C600 PCH (Patsburg), (Oak Creek Canyon CRB)
  61. + Intel Shark Bay Client Platform: Haswell processor, LynxPoint PCH, (Walnut Canyon CRB, Lava Canyon CRB, Basking Ridge CRB, Flathead Creek CRB)
  62. + Intel Shark Bay Ultrabook Platform: Haswell ULT processor, Lynx Point-LP PCH, (WhiteTip Mountain 1 CRB)
  63. Intel Atom platforms:
  64. + Intel embedded Menlow: Intel Atom Z510/530 CPU, System Controller Hub US15W (Portwell NANO-8044)
  65. + Intel Luna Pier: Intel Atom N4xx/D5xx series CPU (aka: Pineview-D & -M), 82801HM I/O Hub (ICH8M), (Advantech AIMB-212, Moon Creek CRB)
  66. + Intel Queens Bay platform: Intel Atom E6xx CPU (aka: Tunnel Creek), Topcliff EG20T I/O Hub (Emerson NITX-315, Crown Bay CRB, Minnow Board)
  67. + Intel Fish River Island platform: Intel Atom E6xx CPU (aka: Tunnel Creek), Topcliff EG20T I/O Hub (Kontron KM2M806)
  68. + Intel Cedar Trail platform: Intel Atom N2000 & D2000 series CPU (aka: Cedarview), NM10 Express Chipset (Norco kit BIS-6630, Cedar Rock CRB)
  69. and is likely to work on many unlisted Atom/Core/Xeon based devices. The MACHINE
  70. type supports ethernet, wifi, sound, and Intel/vesa graphics by default in
  71. addition to common PC input devices, busses, and so on. Note that it does not
  72. included the binary-only graphic drivers used on some Atom platforms, for
  73. accelerated graphics on these machines please refer to meta-intel.
  74. Depending on the device, it can boot from a traditional hard-disk, a USB device,
  75. or over the network. Writing generated images to physical media is
  76. straightforward with a caveat for USB devices. The following examples assume the
  77. target boot device is /dev/sdb, be sure to verify this and use the correct
  78. device as the following commands are run as root and are not reversable.
  79. USB Device:
  80. 1. Build a live image. This image type consists of a simple filesystem
  81. without a partition table, which is suitable for USB keys, and with the
  82. default setup for the genericx86 machine, this image type is built
  83. automatically for any image you build. For example:
  84. $ bitbake core-image-minimal
  85. 2. Use the "dd" utility to write the image to the raw block device. For
  86. example:
  87. # dd if=core-image-minimal-genericx86.hddimg of=/dev/sdb
  88. If the device fails to boot with "Boot error" displayed, or apparently
  89. stops just after the SYSLINUX version banner, it is likely the BIOS cannot
  90. understand the physical layout of the disk (or rather it expects a
  91. particular layout and cannot handle anything else). There are two possible
  92. solutions to this problem:
  93. 1. Change the BIOS USB Device setting to HDD mode. The label will vary by
  94. device, but the idea is to force BIOS to read the Cylinder/Head/Sector
  95. geometry from the device.
  96. 2. Without such an option, the BIOS generally boots the device in USB-ZIP
  97. mode. To write an image to a USB device that will be bootable in
  98. USB-ZIP mode, carry out the following actions:
  99. a. Determine the geometry of your USB device using fdisk:
  100. # fdisk /dev/sdb
  101. Command (m for help): p
  102. Disk /dev/sdb: 4011 MB, 4011491328 bytes
  103. 124 heads, 62 sectors/track, 1019 cylinders, total 7834944 sectors
  104. ...
  105. Command (m for help): q
  106. b. Configure the USB device for USB-ZIP mode:
  107. # mkdiskimage -4 /dev/sdb 1019 124 62
  108. Where 1019, 124 and 62 are the cylinder, head and sectors/track counts
  109. as reported by fdisk (substitute the values reported for your device).
  110. When the operation has finished and the access LED (if any) on the
  111. device stops flashing, remove and reinsert the device to allow the
  112. kernel to detect the new partition layout.
  113. c. Copy the contents of the image to the USB-ZIP mode device:
  114. # mkdir /tmp/image
  115. # mkdir /tmp/usbkey
  116. # mount -o loop core-image-minimal-genericx86.hddimg /tmp/image
  117. # mount /dev/sdb4 /tmp/usbkey
  118. # cp -rf /tmp/image/* /tmp/usbkey
  119. d. Install the syslinux boot loader:
  120. # syslinux /dev/sdb4
  121. e. Unmount everything:
  122. # umount /tmp/image
  123. # umount /tmp/usbkey
  124. Install the boot device in the target board and configure the BIOS to boot
  125. from it.
  126. For more details on the USB-ZIP scenario, see the syslinux documentation:
  127. http://git.kernel.org/?p=boot/syslinux/syslinux.git;a=blob_plain;f=doc/usbkey.txt;hb=HEAD
  128. Texas Instruments Beaglebone (beaglebone)
  129. =========================================
  130. The Beaglebone is an ARM Cortex-A8 development board with USB, Ethernet, 2D/3D
  131. accelerated graphics, audio, serial, JTAG, and SD/MMC. The Black adds a faster
  132. CPU, more RAM, eMMC flash and a micro HDMI port. The beaglebone MACHINE is
  133. tested on the following platforms:
  134. o Beaglebone Black A6
  135. o Beaglebone A6 (the original "White" model)
  136. The Beaglebone Black has eMMC, while the White does not. Pressing the USER/BOOT
  137. button when powering on will temporarily change the boot order. But for the sake
  138. of simplicity, these instructions assume you have erased the eMMC on the Black,
  139. so its boot behavior matches that of the White and boots off of SD card. To do
  140. this, issue the following commands from the u-boot prompt:
  141. # mmc dev 1
  142. # mmc erase 0 512
  143. To further tailor these instructions for your board, please refer to the
  144. documentation at http://www.beagleboard.org/bone and http://www.beagleboard.org/black
  145. From a Linux system with access to the image files perform the following steps
  146. as root, replacing mmcblk0* with the SD card device on your machine (such as sdc
  147. if used via a usb card reader):
  148. 1. Partition and format an SD card:
  149. # fdisk -lu /dev/mmcblk0
  150. Disk /dev/mmcblk0: 3951 MB, 3951034368 bytes
  151. 255 heads, 63 sectors/track, 480 cylinders, total 7716864 sectors
  152. Units = sectors of 1 * 512 = 512 bytes
  153. Device Boot Start End Blocks Id System
  154. /dev/mmcblk0p1 * 63 144584 72261 c Win95 FAT32 (LBA)
  155. /dev/mmcblk0p2 144585 465884 160650 83 Linux
  156. # mkfs.vfat -F 16 -n "boot" /dev/mmcblk0p1
  157. # mke2fs -j -L "root" /dev/mmcblk0p2
  158. The following assumes the SD card partitions 1 and 2 are mounted at
  159. /media/boot and /media/root respectively. Removing the card and reinserting
  160. it will do just that on most modern Linux desktop environments.
  161. The files referenced below are made available after the build in
  162. build/tmp/deploy/images.
  163. 2. Install the boot loaders
  164. # cp MLO-beaglebone /media/boot/MLO
  165. # cp u-boot-beaglebone.img /media/boot/u-boot.img
  166. 3. Install the root filesystem
  167. # tar x -C /media/root -f core-image-$IMAGE_TYPE-beaglebone.tar.bz2
  168. 4. If using core-image-base or core-image-sato images, the SD card is ready
  169. and rootfs already contains the kernel, modules and device tree (DTB)
  170. files necessary to be booted with U-boot's default configuration, so
  171. skip directly to step 8.
  172. For core-image-minimal, proceed through next steps.
  173. 5. If using core-image-minimal rootfs, install the modules
  174. # tar x -C /media/root -f modules-beaglebone.tgz
  175. 6. If using core-image-minimal rootfs, install the kernel uImage into /boot
  176. directory of rootfs
  177. # cp uImage-beaglebone.bin /media/root/boot/uImage
  178. 7. If using core-image-minimal rootfs, also install device tree (DTB) files
  179. into /boot directory of rootfs
  180. # cp uImage-am335x-bone.dtb /media/root/boot/am335x-bone.dtb
  181. # cp uImage-am335x-boneblack.dtb /media/root/boot/am335x-boneblack.dtb
  182. 8. Unmount the SD partitions, insert the SD card into the Beaglebone, and
  183. boot the Beaglebone
  184. Freescale MPC8315E-RDB (mpc8315e-rdb)
  185. =====================================
  186. The MPC8315 PowerPC reference platform (MPC8315E-RDB) is aimed at hardware and
  187. software development of network attached storage (NAS) and digital media server
  188. applications. The MPC8315E-RDB features the PowerQUICC II Pro processor, which
  189. includes a built-in security accelerator.
  190. (Note: you may find it easier to order MPC8315E-RDBA; this appears to be the
  191. same board in an enclosure with accessories. In any case it is fully
  192. compatible with the instructions given here.)
  193. Setup instructions
  194. ------------------
  195. You will need the following:
  196. * NFS root setup on your workstation
  197. * TFTP server installed on your workstation
  198. * Straight-thru 9-conductor serial cable (DB9, M/F) connected from your
  199. PC to UART1
  200. * Ethernet connected to the first ethernet port on the board
  201. --- Preparation ---
  202. Note: if you have altered your board's ethernet MAC address(es) from the
  203. defaults, or you need to do so because you want multiple boards on the same
  204. network, then you will need to change the values in the dts file (patch
  205. linux/arch/powerpc/boot/dts/mpc8315erdb.dts within the kernel source). If
  206. you have left them at the factory default then you shouldn't need to do
  207. anything here.
  208. --- Booting from NFS root ---
  209. Load the kernel and dtb (device tree blob), and boot the system as follows:
  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. 2. Connect the board's first serial port to your workstation and then start up
  214. your favourite serial terminal so that you will be able to interact with
  215. the serial console. If you don't have a favourite, picocom is suggested:
  216. $ picocom /dev/ttyUSB0 -b 115200
  217. 3. Power up or reset the board and press a key on the terminal when prompted
  218. to get to the U-Boot command line
  219. 4. Set up the environment in U-Boot:
  220. => setenv ipaddr <board ip>
  221. => setenv serverip <tftp server ip>
  222. => 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
  223. 5. Download the kernel and dtb, and boot:
  224. => tftp 1000000 uImage-mpc8315e-rdb.bin
  225. => tftp 2000000 uImage-mpc8315e-rdb.dtb
  226. => bootm 1000000 - 2000000
  227. Ubiquiti Networks EdgeRouter Lite (edgerouter)
  228. ==============================================
  229. The EdgeRouter Lite is part of the EdgeMax series. It is a MIPS64 router
  230. (based on the Cavium Octeon processor) with 512MB of RAM, which uses an
  231. internal USB pendrive for storage.
  232. Setup instructions
  233. ------------------
  234. You will need the following:
  235. * NFS root setup on your workstation
  236. * TFTP server installed on your workstation
  237. * RJ45 -> serial ("rollover") cable connected from your PC to the CONSOLE
  238. port on the board
  239. * Ethernet connected to the first ethernet port on the board
  240. --- Preparation ---
  241. Build an image (e.g. core-image-minimal) using "edgerouter" as the MACHINE.
  242. In the following instruction it is based on core-image-minimal. Another target
  243. may be similiar with it.
  244. --- Booting from NFS root ---
  245. Load the kernel, and boot the system as follows:
  246. 1. Get the kernel (vmlinux) file from the tmp/deploy/images/edgerouter
  247. directory, and make them available on your TFTP server.
  248. 2. Connect the board's first serial port to your workstation and then start up
  249. your favourite serial terminal so that you will be able to interact with
  250. the serial console. If you don't have a favourite, picocom is suggested:
  251. $ picocom /dev/ttyS0 -b 115200
  252. 3. Power up or reset the board and press a key on the terminal when prompted
  253. to get to the U-Boot command line
  254. 4. Set up the environment in U-Boot:
  255. => setenv ipaddr <board ip>
  256. => setenv serverip <tftp server ip>
  257. 5. Download the kernel and boot:
  258. => tftp tftp $loadaddr vmlinux
  259. => 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)
  260. --- Booting from USB root ---
  261. To boot from the USB disk, you either need to remove it from the edgerouter
  262. box and populate it from another computer, or use a previously booted NFS
  263. image and populate from the edgerouter itself.
  264. Type 1: Mounted USB disk
  265. ------------------------
  266. To boot from the USB disk there are two available partitions on the factory
  267. USB storage. The rest of this guide assumes that these partitions are left
  268. intact. If you change the partition scheme, you must update your boot method
  269. appropriately.
  270. The standard partitions are:
  271. - 1: vfat partition containing factory kernels
  272. - 2: ext3 partition for the root filesystem.
  273. You can place the kernel on either partition 1, or partition 2, but the roofs
  274. must go on partition 2 (due to its size).
  275. Note: If you place the kernel on the ext3 partition, you must re-create the
  276. ext3 filesystem, since the factory u-boot can only handle 128 byte inodes and
  277. cannot read the partition otherwise.
  278. Steps:
  279. 1. Remove the USB disk from the edgerouter and insert it into a computer
  280. that has access to your build artifacts.
  281. 2. Copy the kernel image to the USB storage (assuming discovered as 'sdb' on
  282. the development machine):
  283. 2a) if booting from vfat
  284. # mount /dev/sdb1 /mnt
  285. # cp tmp/deploy/images/edgerouter/vmlinux /mnt
  286. # umount /mnt
  287. 2b) if booting from ext3
  288. # mkfs.ext3 -I 128 /dev/sdb2
  289. # mount /dev/sdb2 /mnt
  290. # mkdir /mnt/boot
  291. # cp tmp/deploy/images/edgerouter/vmlinux /mnt/boot
  292. # umount /mnt
  293. 3. Extract the rootfs to the USB storage ext3 partition
  294. # mount /dev/sdb2 /mnt
  295. # tar -xvjpf core-image-minimal-XXX.tar.bz2 -C /mnt
  296. # umount /mnt
  297. 4. Reboot the board and press a key on the terminal when prompted to get to the U-Boot
  298. command line:
  299. 5. Load the kernel and boot:
  300. 5a) vfat boot
  301. => fatload usb 0:1 $loadaddr vmlinux
  302. 5b) ext3 boot
  303. => ext2load usb 0:2 $loadaddr boot/vmlinux
  304. => bootoctlinux $loadaddr coremask=0x3 root=/dev/sda2 rw rootwait mtdparts=phys_mapped_flash:512k(boot0),512k(boot1),64k@3072k(eeprom)
  305. Type 2: NFS
  306. -----------
  307. Note: If you place the kernel on the ext3 partition, you must re-create the
  308. ext3 filesystem, since the factory u-boot can only handle 128 byte inodes and
  309. cannot read the partition otherwise.
  310. These boot instructions assume that you have recreated the ext3 filesystem with
  311. 128 byte inodes, you have an updated uboot or you are running and image capable
  312. of making the filesystem on the board itself.
  313. 1. Boot from NFS root
  314. 2. Mount the USB disk partition 2 and then extract the contents of
  315. tmp/deploy/core-image-XXXX.tar.bz2 into it.
  316. Before starting, copy core-image-minimal-xxx.tar.bz2 and vmlinux into
  317. rootfs path on your workstation.
  318. and then,
  319. # mount /dev/sda2 /media/sda2
  320. # tar -xvjpf core-image-minimal-XXX.tar.bz2 -C /media/sda2
  321. # cp vmlinux /media/sda2/boot/vmlinux
  322. # umount /media/sda2
  323. # reboot
  324. 3. Reboot the board and press a key on the terminal when prompted to get to the U-Boot
  325. command line:
  326. # reboot
  327. 4. Load the kernel and boot:
  328. => ext2load usb 0:2 $loadaddr boot/vmlinux
  329. => bootoctlinux $loadaddr coremask=0x3 root=/dev/sda2 rw rootwait mtdparts=phys_mapped_flash:512k(boot0),512k(boot1),64k@3072k(eeprom)