Installing, Building, and Running Yocto*
Getting Started Guide
43
ftp_proxy='http://<proxy_server>:<proxy_port>/'
GIT_PROXY_COMMAND=/usr/bin/git_proxy_command
Configure ssh configure file for proxy settings. Add following lines to ~/.ssh/config:
host *
ProxyCommand connect-proxy -s %h %p
Create /usr/bin/git_proxy_command file and add the following lines:
#!/bin/sh
connect-proxy -s $@
Change the git_proxy_command file to be executable:
sudo chmod +x /usr/bin/git_proxy_command
If there are script build errors that appear to be syntax errors, it is likely that the script is
being passed to the wrong shell. Many of the Yocto* scripts call /bin/sh, which may be
symbolically linked to /bin/dash. This can be
resolved by removing /bin/sh (“sudo rm
/bin/sh”) and linking to bash instead
(“sudo ln
-
s /bin/bash /bin/sh”).
Log out of the current user account and login, to allow the environment changes to take
effect.
Update apt-get:
# sudo apt-get -y update
Install the required software components:
# sudo apt-get -y install gawk wget git-core diffstat unzip texinfo \
build-essential chrpath libsdl1.2-dev xterm socat connect-proxy
Note:
If the apt-get command does not succeed completely, try it again, since the specific mirror
selected may not have transferred the files correctly.
Download the Yocto* BSP and change to the
poky
directory:
# cd ~
# git clone -b dylan http://git.yoctoproject.org/git/poky
# cd poky
Check out using the following
poky/dylan
commit ID:
# git checkout d734ab491a30078d43dee5440c03acce2d251425
Extract the
meta-intel
tarball to the
poky
directory using the commands:
# cd ~/poky
# tar xjvf <path-to>/meta-mohonpeak-<version>.tar.bz2
# cd meta-mohonpeak-<version>
# mv meta-intel ../
Obtain the meta-intel tarball from document 526174 listed in
Verify that the following directory structure is present, at a minimum:
pwd: ~/poky
:
|-- bitbake
|
|-- meta-intel
| |
| |--meta-mohonpeak
Run the script to build the environment essentials: