Skip to content

Building Environment

Marcelo Veiga Neves edited this page Mar 29, 2017 · 2 revisions

Before compiling the prplSecureBoot™ for the first time, you need to setup a building environment on your host machine. An install script will automatize the most of the steps. Around 900MB will be downloaded.

Prerequisites

  • Ubuntu 64-bit 14.04 LTS or higher. It should work on Debian as well;
  • A PIC32MZ supported board;
  • Cables for the corresponding board.

Note: The installation script supports only 64-bit systems.

List of Packages to be Installed

  • gcc-multilib;
  • libc6:i386;
  • libncurses5:i386;
  • libstdc++6:i386;
  • libexpat1-dev:i386;
  • libX11-dev:i386;
  • libXext-dev:i386;
  • srecord;
  • libconfig-dev;
  • git.

List of tools to be Installed

  • MPLABX IPE.

Running The Install Script

Install the git client.

sudo apt-get install git

Clone the prplSecureBoot™ repository.

git clone https://github.com/prplfoundation/prpl-secure-boot

The git clone command will create a prpl-secure-boot folder. Now, you can perform the install-tools.sh script. This script will download and install the packages and tools needed to compile prpl-secure-boot. You can find the install-tools.sh script in the prpl-secure-boot/bin folder.

chmod +x prpl-secure-boot/bin/install-tools.sh
sudo prpl-secure-boot/bin/install-tools.sh

Follow the instruction on the screen. You will need to restart your computer after the installation.

If you have any problem with the install-tools.sh script, please, install the tools and packages manually following the steps here.

Clone this wiki locally