How to setup environment for Yocto with 1.1 on Fedora 16

From Yocto Project
Jump to: navigation, search

The steps of setting up the yocto project build environment as below:

1. FC 16 installation.

1.1	Insert FC16 disc and reboot PC, press [Delete] to BIOS interface, then select cd-rom start the PC in Boot label.
1.2	It will show a “Disc Found” popup window, choose OK to check the disc and SKIP the skip this step, then click Next.
1.3	Choose English as default language, click next, then edit hostname and select time zone.
1.4	Input and confirm the root password, if it too simple, it will warning you that, ignore it just go ahead.
1.5	Move on and use default settings for following several screens until the installation finished.
1.6	After Fedora installation is complete, reboot the system and popping the FC16 disk.
1.7	Input Date, Time, FullName(username) and password, for other items you could use default setting and click Next to finish the configuration. 

2. Networking and environment variable settings.

2.1	Go to system menu to find Network, click “Network proxy” tap, set Method as Manual, then input HTTP Proxy, HTTPS Proxy and FTP Proxy
2.2	Go to system menu to find “Software Update” to update all available software.
2.3	Open a terminal use “su –“ command and input root account’s password.
2.4	Run: “echo ‘YourUserName ALL=(ALL) ALL’ >> /etc/sudoers” to add the sudo authority to your user account, using your user account name in the place of “YourUserName”.
2.5	Run command “sudo vi /etc/yum.conf” and add proxy to this file, the format like “proxy=”.
2.6	Git configuration:
 2.6.1 New a file named git-proxy to /bin/git-proxy, using your proxy in the place of “” the content is
 exec socat STDIO SOCKS4:$proxy:$1:$2
 2.6.2 New a file named .gitconfig to ~/.gitconfig, the content is
                gitproxy = none for
                gitproxy = git-proxy
                editor = vim
                smtpserver =
               name =
               email =
             tool = vimdiff
 2.6.3 Run “sudo yum install –y socat” to install socat. If the repo is too slow, you may change a repo near your networking. For example, I change Shanghai Jiaotong University(SJTU) as my repo, firstly, make a directory tmp in /etc/yum.repos.d/, then remove all files in /etc/yum.repos.d/ to /etc/yum.repos.d/tmp, secondly, new a file named sjtu.repo, the content is:
 name=Fedora 16 – x86_64
 name=Everything 16 – x86_64
 name=Fedora updates

3. Yocto project environment setup.

3.1	Install all needed software for yocto on fedora, as the quick start wiki said (, run the command:
$sudo yum groupinstall -y "development tools"
$sudo yum install -y python m4 make wget curl ftp hg tar bzip2 gzip \
    unzip python-psyco perl texinfo texi2html diffstat openjade \
    docbook-style-dsssl sed docbook-style-xsl docbook-dtds \
    docbook-utils sed bc eglibc-devel ccache pcre pcre-devel quilt \
    groff linuxdoc-tools patch linuxdoc-tools cmake help2man \
    perl-ExtUtils-MakeMaker tcl-devel gettext chrpath ncurses apr \
    SDL-devel mesa-libGL-devel mesa-libGLU-devel gnome-doc-utils \
        autoconf automake libtool xterm
3.2	But it is not enough, run ”sudo install –y python-psyco eglibc-devel ” to finish the environment configuration.
3.3	Clone the yocto poky tree to run: git clone git:// to get the tree, then you will be work with it.
Personal tools