Difference between revisions of "Getting started with Yocto on Wandboard"
(Initial entry) |
(→Steps) |
||
Line 7: | Line 7: | ||
* microSD card to store the bootloader, kernel, and filesystem as Wandboard has no on-board flash | * microSD card to store the bootloader, kernel, and filesystem as Wandboard has no on-board flash | ||
== Steps == | == Steps == | ||
− | The BSP is based on the Yocto Project, which consists of a number of applicable metadata 'layers'. | + | Here are the steps to building an image for Wandboard with Yocto for the first time: <br/> |
+ | # Download and install Google's repo utility | ||
+ | # Create the main BSP install directory and, using repo, download all of the metadata for the BSP layers. | ||
+ | # Build an image using bitbake | ||
+ | <br/> | ||
+ | ==== Download and install Google's repo utility ==== | ||
+ | The BSP is based on the Yocto Project, which consists of a number of applicable metadata 'layers'. These are managed by the repo utility.<br /> | ||
<code> | <code> | ||
$: mkdir ~/bin<br /> | $: mkdir ~/bin<br /> | ||
Line 14: | Line 20: | ||
</code> | </code> | ||
<br /> | <br /> | ||
− | + | ==== Create the BSP directory download all of the metadata for the BSP layers ==== | |
<code> | <code> | ||
$: PATH=${PATH}:~/bin<br /> | $: PATH=${PATH}:~/bin<br /> | ||
Line 23: | Line 29: | ||
</code> | </code> | ||
<br /> | <br /> | ||
− | Once this has | + | Once this has completed, you should have all of the metadata source in fsl-community-bsp.<br /> |
+ | ==== Setup environment and build an image ==== | ||
To start a build, do:<br /> | To start a build, do:<br /> | ||
<br /> <code> | <br /> <code> |
Revision as of 07:10, 8 April 2013
Here are the steps on how to get started with the Yocto Project based on the Freescale Community BSP for Wandboard.
Contents
Requirements hardware and software
- Linux-based host system to use for building Linux
- Wandboard Dual (currently only Wandboard Dual is supported but Solo will be added soon)
- Null-modem serial (RS-232) cable use for the serial console
- 5V power supply to power the Wandboard
- microSD card to store the bootloader, kernel, and filesystem as Wandboard has no on-board flash
Steps
Here are the steps to building an image for Wandboard with Yocto for the first time:
- Download and install Google's repo utility
- Create the main BSP install directory and, using repo, download all of the metadata for the BSP layers.
- Build an image using bitbake
Download and install Google's repo utility
The BSP is based on the Yocto Project, which consists of a number of applicable metadata 'layers'. These are managed by the repo utility.
$: mkdir ~/bin
$: curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
$: chmod a+x ~/bin/repo
Create the BSP directory download all of the metadata for the BSP layers
$: PATH=${PATH}:~/bin
$: mkdir fsl-community-bsp
$: cd fsl-community-bsp
$: repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b master
$: repo sync
Once this has completed, you should have all of the metadata source in fsl-community-bsp.
Setup environment and build an image
To start a build, do:
$: MACHINE=wandboard-dual
$: . ./setup-environment build
$: bitbake core-image-minimal