README.hardware 19 KB

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