Preparing your Linux environment for VoCore development

Getting started with VoCore development can have quite a steep learning curve, so I am making this post and video to try and help others figure this out faster.  I tried to set up the dev environment on my MacBook, but due to an issue with MacPorts, I was unable to get it to successfully build OpenWRT.  Because of this, we will be using the Ubuntu VM set up in the previous posts to set up our environment and build OpenWRT.

To start off, you may be asking, “What is this OpenWRT thing you are talking about?  I thought this was about VoCore?”.  Well, VoCore is the chip itself, and it runs on the OpenWRT Operating System.  OpenWRT is an open source router firmware based on the Linux Kernel.  Because it is Linux based, it also makes more sense for us to use a Linux VM to ensure maximum compatibility.


The first step would be to install the necessary command-line tools for the OpenWRT build process.

sudo apt-get install zlib1g-dev libncurses5-dev gawk subversion libssl-dev git g++

This should take a few minutes.  Most of these tools could already be installed if you have done any kind of development work on this VM, but otherwise it will download and build the tools you need.

Next we are going to have to clone the OpenWRT source code so we can compile it and develop applications for the VoCore.  Navigate to your VoCore development directory, and use “git clone” to download the source.

git clone git://git.openwrt.org/openwrt.git

This will create a local git repository containing all OpenWRT source code for you to use.  There is some code that will need to be updated however, that is not part of the main OpenWRT source.  This will be update using the bundled “feeds” script.  From the base OpenWRT directory….

./scripts/feeds update -a

./scripts/feeds install luci

At this point, we are ready to configure and build OpenWRT for the VoCore platform.  To configure the build process,

make menuconfig

and ensure that the configuration matches the following.

Target System: Ralink RT288x/RT3xxx

Subtarget: RT3x5x/RT5350

Target Profile: VoCore

Save the configuration, and build it.

make

This process can take several hours.  When it is completed, you should have a fully built development environment for the VoCore system.  Soon I will have a video link describing this process, and a post up on writing your first program.

Leave a Reply