If you have speed in mind, it is possible to install the SDK on a native Ubuntu machine (other Linux distributions may support this SDK with minor changes but won’t be supported). This chapter will guide you on how to clone the entire SDK, to setup the SDK for one board or just OpenEmbedded/Yocto for TWR-LS1021A board.
Architech’s Yocto based SDK is built on top of Ubuntu 14.04 32bit, hence all the scripts provided are proven to work on such a system.
If you wish to use another distribution/version you might need to change some script option and/or modify the scripts yourself, remember that you won’t get any support in doing so.
To install the same tools you get inside the virtual machine on your native machine you need to download and run a system wide installation script:
git clone -b 2.4.0 https://github.com/architech-boards/machine_installer.git
cd machine_installer
./machine_install -g -p
where -g option asks the script to install and configure a few graphic customization, while -p option asks the script to install the required packages on the machine. If you want to install the toolchain on a machine not equal to Ubuntu 14.04 32bit then you may want to read the script, install the required packages by hand, and run it without options. You might need to recompile the Qt application used to render the splashscreen.
At the end of the installation process, you will get the same tools installed within the virtual machine, that is, all the tools necessary to work with Architech’s boards.
If you don’t want to install the tools for all the boards, you can install just the subset of tools related to TWR-LS1021A:
sudo apt-get update
sudo apt-get --yes --force-yes install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat libsdl1.2-dev xterm vim curl u-boot-tools libqtwebkit4 qt4-dev-tools texi2html subversion apache2 autoconf vim-common uuid-dev iasl default-jre libncurses5-dev > /dev/null
mkdir -p ~/bin
sudo apt-get install curl
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
echo $PATH
export PATH="$PATH:${HOME}/bin"
sudo apt-get install git-core
git config --global user.name "Architech User"
git config --global user.email "your@mail.org"
git config --global color.ui "auto"
mkdir TWR-LS1021A
cd TWR-LS1021A
git clone -b daisy https://github.com/architech-boards/ls1021a-splashscreen.git
mv ls1021a-splashscreen splashscreen
cd splashscreen
./run_install
before build an image with bitbake open the file /your/path/TWR-LS1021A/yocto/build/conf/local.conf and edit these variables:
DL_DIR = "/home/downloads"
SSTATE_DIR = "/home/sstate-cache"
and change them in:
DL_DIR ?= "${TOPDIR}/downloads"
SSTATE_DIR ?= "${TOPDIR}/sstate-cache"
If you have launched machine_installer or run_install.sh script, yocto is already installed. The following steps are useful for understood how the sdk works “under the hood”.
The easiest way to setup and keep all the necessary meta-layers in sync with upstream repositories is achieved by means of Google’s repo tool. The following steps are necessary for a clean installation:
mkdir -p ~/bin
sudo apt-get install curl
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
echo $PATH
export PATH="$PATH:${HOME}/bin"
repo init -u https://github.com/architech-boards/ls1021a-manifest.git -b daisy -m manifest.xml
repo sync
By the end of the last step, all the necessary meta-layers should be in place, anyway, you still need to edit your local.conf and bblayers.conf to compile for ls1021atwr machine and using all the downloaded meta-layers.
When you want your local repositories to be updated, just:
repo sync
If you really want to download everything by hand, just clone branch daisy of meta-fsl-arm:
git clone -b daisy git://git.yoctoproject.org/meta-fsl-arm.git
and have a look at the README file.
To install Eclipse, Qt Creator, cross-toolchain, NFS, TFTP, etc., read Yocto/OpenEmbedded documentation, along with the other tools one.