Toolchain for the Popcorn Hour - Using a VM

After having my PCH A110 for a few weeks I wanted to build some other applications to run on it.. Luckily this has been made rather easy.. Here are some quick and dirty instruction on how I got a build environment up and running to cross compile applications to run on the PCH.

This information is taken from this post on the www.networkedmediatank.com forum.

You'll need three main things. VmWare to run the host OS for the development environment which is available as a Debian Etch 4.0 VmWare image and the Syabas NMT (SMP8634) toolchain.

In the Debian image some packages were missing, so I had to install them (as root):

$ apt-get install flex
$ apt-get install bison
$ apt-get install gettext
$ apt-get install genromfs
$ apt-get install ncurses-dev
$ apt-get update

Extract the toolchain (no longer root):

$ cd ~/popcorn
$ tar xvf smp86xx_toolchain.20080505.tar.bz2
$ cd smp86xx_toolchain.20080505

Configure the build:

$ make menuconfig

Select Kernel Headers options (Linux 2.6.11.0 kernel headers) --->

Select Toolchain Options --->
Select uCLibc version 0.9.28.3 --->
Select binUtils version 2.17 --->
Select gcc version 4.0.4 --->

At this point the build can start:

$ make

When the build is done, the file toolchain-path.env will be created, that contains the environment settings necessary to use the toolchain.

Make this file executable and run it or copy-paste it's contents into the command-line before starting any cross-compilation.