We recommend using Ununtu 12.04 for SDK building.
The following command sequence is recommended for SDK installing.
- 1. sudo apt-get install ubuntu-minimal ubuntu-standard patch vim-common sed wget subversion git-core coreutils libbonobo2-common unzip texi2html texinfo libsdl1.2-dev docbook-utils gawk python-pysqlite2 diffstat make gcc build-essential xz-utils g++ desktop-file-utils chrpath libgl1-mesa-dev libglu1-mesa-dev autoconf automake groff libtool xterm libncurses5-dev cvs tofrodos
if it is 64-bit operating system, run the following command also:
sudo apt-get install ia32-libs lib32ncurses5
- 2. sudo dpkg-reconfigure dash
then choose "No" and you're done. )
- 3. install SDK for your core (500V2 or 5500). For example the QorIQ Linux SDK v1.4 e500mc Yocto Cache Binary ISO.
- 4. install SDK source
- 5. sudo ./scripts/host-prepare.sh
- 6. usually Linux recommends also run the following command: sudo usr/sbin/visudo
- 7. $ source ./fsl-setup-poky <-m machine> [-j threads] [-t tasks] [-l]
* <-m machine> is mandatory, [-j threads], [-t tasks], [-h] and [-l] are optional
* [-j threads]: the number of threads to have the make program itself spawn during the compilation stage. Set -j equal to 1.5 * (number of CPU cores), rounded up to the nearest integer.
* [-t tasks]: the maximum number of BitBake tasks that can be issued in parallel. Set -t equal to the number of CPU CORES that you have.
* [-l]: lite mode. To help conserve disk space, deletes the building directory once the package is built.
* [-h]: help. If given, other options will be omitted.
For example: source ./fsl-setup-poky -m p2020ds
$ bitbake <task-name>
Test similar command sequence on the Fedora 20.