PS4 - Setup Commands

Execute these commands in Ubuntu to setup the tools you need for developing and running IronKernel:

# install arm cross-compilation toolchain
sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded
sudo apt-get update
sudo apt-get -y install gcc-arm-none-eabi

# install qemu
sudo apt-get -y install qemu qemu-system

# install tmux for debugging screen
sudo apt-get -y install tmux

# install llvm-3.4 from the official repository
wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key|sudo apt-key add -
sudo cp /etc/apt/sources.list /etc/apt/sources.list.orig
echo -e "\n# 3.4\ndeb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.4 main\ndeb-src http://llvm.org/apt/precise/ llvm-toolchain-precise-3.4 main\n# Common\ndeb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu precise main\n" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get -y install llvm-3.4
sudo ln -s /usr/bin/llc-3.4 /usr/bin/llc

Prebuilt Image

Alternatively, you can use this VirtualBox image: http://www.rust-class.org/static/cs4414-ubuntu-12.04.2-32bit-vdi-ps4-env.zip. This includes all the tools you need for ps4, but may take a few hours to download. (Note that standard unzip may not be able to unzip this file. On Mac OS X, Keka works.)