MAGPIE Installation Guide (version 1.0)

Similar documents
MAGPIE User Guide (version 1.0)

MAGPIE TUTORIAL. Configuration and usage. Abdoulaye Gamatié, Pierre-Yves Péneau. LIRMM / CNRS-UM, Montpellier

Zephyr Kernel Installation & Setup Manual

DEVELOPMENT GUIDE VAB-630. Linux BSP v

DEVELOPMENT GUIDE VAB-630. Android BSP v

TrinityCore Documentation

Accessing Zen v13 from Python on Raspbian Using the Btrieve 2 Interface

DEVELOPMENT GUIDE VAB-820. Android BSP v

Molecular Forecaster Inc. Forecaster 1.2 Server Installation Guide

Lab 6: OS Security for the Internet of Things

DEVELOPMENT GUIDE AMOS-820. Linux BSP v

Multicore Programming Handout 1: Installing GCC Cilk Plus

Installing the new LOFAR Software on a fresh Ubuntu 14.04

Mars ZX3 Android manual. Antmicro

Linux Strace tool user guide

Tool installation for PMC-MC-X2/X4 with P2020 series processor

User Guide Yocto Linux. Board Support Package For Intel Quark

Cubieboard4 Linux Sdk Guide TF BOOT & TF WRITE EMMC. Website: Support:

DEVELOPMENT GUIDE VIA VAB-820. Android BSP v

Lab 6: OS Security for the Internet of Things

1. Install a Virtual Machine Download Ubuntu Create a New Virtual Machine Seamless Operation between Windows an Linux...

GUT. GUT Installation Guide

Tizen TCT User Guide

Lab2 - Bootloader. Conventions. Department of Computer Science and Information Engineering National Taiwan University

P6: Trial Build of a ROM Nikhil George. 1. Introduction. Overview of the build task. Cite the build/ wiki articles you read.

DEVELOPMENT GUIDE AMOS-825. Android BSP v

Ingenic. Newton Android Development Guide

Embedded Linux. A Tour inside ARM's Kernel

Rover Documentation Tracing with Perf, Conversion to CTF, and analysis with TraceCompass

WES 237A Project Part 1 Guide

Embedded M2M Software Testing

Install and Configure wxwidgets on Ubuntu

MariaDB ColumnStore C++ API Building Documentation

Linux Software Installation Exercises 2 Part 1. Install PYTHON software with PIP

DEVELOPMENT GUIDE. ARTiGO A820. Linux BSP v

Denial-of-Service (DoS) Attacks in an SDN Environment

DEVELOPMENT GUIDE QSM-8Q60. Linux BSP v

Project 1 Setup. Some relevant details are the output of: 1. uname -a 2. cat /etc/*release 3. whereis java 4. java -version 5.

DEVELOPMENT GUIDE VAB-820. Linux BSP v

EE516: Embedded Software Project 1. Setting Up Environment for Projects

coxtactoe Documentation

Introduction to Pintos. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

E. Annex. Rules and conventions used for the project. v The µkos package

Renesas Koelsch Hardware Setup and Software Installation

Yocto Project components

Proview on Raspberry PI

Embedded Systems Programming

GNU-AVR Building the GNU AVR Toolchain for Mac OS X and Linux

CS234 Azure Step-by-Step Setup

YumaPro Yocto Linux Quickstart Guide

DEVELOPMENT GUIDE VAB-820. Linux BSP v4.1.2

RZ/G Verified Linux Package V2.1.0-RT

ruby-on-rails-4 #ruby-onrails-4

DEVELOPMENT GUIDE VIA AMOS-825. Linux BSP v

Lab 5: Android Development Environment

Linux Essentials Objectives Topics:

SCM EVK (SCM120

PetaLinux SDK Installation Guide

Introduction to the shell Part II

GUT. GUT Installation Guide

Parallel Programming

guider: a system-wide performance analyzer Peace Lee

Introduction to Linux. Woo-Yeong Jeong Computer Systems Laboratory Sungkyunkwan University

TEMU installation and user manual

Introduction to Linux

manifold Documentation

SPPEXA TEACHLET: GETTING STARTED WITH L4RE CARSTEN WEINHOLD

NanoPi K2. Introduction. Hardware Spec

Building Tizen Development Environment

SensorLab VESNA open source development environment setup manual for Linux based development

Tizen.IoTivity.Init. Tizen IoTivity 를시작하기위한환경설정. Geunsun Lee

Automatic Creation of a Virtual Network with VBoxManage [1]

HCFFT Documentation. Release. Aparna Suresh

SAROS MasterNode Guide V1.1

Cross-compiling Linux Kernels on x86_64: A tutorial on How to Get Started

swiftenv Documentation

Drupal Command Line Instructions Windows 7 List All Files >>>CLICK HERE<<<

polymaker Documentation

Containers. Pablo F. Ordóñez. October 18, 2018

Kernel perf tool user guide

Git Command Line Tool Is Not Installed

Operating System. Hanyang University. Hyunmin Yoon Operating System Hanyang University

sensor-documentation Documentation

Using Openembedded with Snapdragon Flight

VirtualSense User Guide 1

R- installation and adminstration under Linux for dummie

Tensorflow v0.10 installed from scratch on Ubuntu 16.04, CUDA 8.0RC+Patch, cudnn v5.1 with a 1080GTX

Installing FreePBX 2.11 on Ubuntu Server (Precise Pangolin)

TBS5580 User Guide. In order to use this item correctly, please read this manual carefully at the beginning.


Introduction to Pintos

Building CircuitPython

Using KVM On Ubuntu 7.10 (Gutsy Gibbon)

PathFinder-XD for MIPS Powered Devices. Simulator

Introduction to Linux

Q7M EVK (Q7M120

CS155: Computer Security Spring Project #1

TBS6209 User Guide. Dear Customers, 1. Hardware Installation

e2 factory the emlix Embedded Build Framework

Simulating Multi-Core RISC-V Systems in gem5

Transcription:

MAGPIE Installation Guide (version 1.0) June 2017 Authors: Sophiane Senni, Pierre-Yves Péneau, Abdoulaye Gamatié 1

Contents 1 About this guide 3 2 Framework installation 4 2.1 Dependencies................................... 4 2.2 MAGPIE utilities setup............................. 5 2.3 Gem5 setup.................................... 5 2.4 NVSim setup................................... 7 2.5 McPAT setup................................... 7 2.6 MAGPIE build tree............................... 7 2

1 About this guide This document provides all the steps to set up the MAGPIE 1 framework. This guide has been tested on a machine running Ubuntu 16.04 LTS. It is expected to work on most Linux distributions. 1 MAGPIE stands for (Manycore Architecture energy and Performance evaluation Environment). It is developed in the framework of the French ANR CONTINUUM project (http://www.lirmm.fr/ continuum-project) and the GREAT (heterogeneous integrated magnetic technology using multifunctional standardized stack) H2020 European project (http://www.great-research.eu). 3

2 Framework installation As a preliminary step, it is recommended that the user creates a new directory named magpie_root, as follows: $ mkdir magpie_root 2.1 Dependencies Use the command sudo apt-get install <package-name> to install the following packages: python python-dev python-jinja2 python-matplotlib python-pydot (optional) python-psutil (optional) g++ gcc scons swig zlib1g-dev m4 libc6-armel-cross libc6-dev-armel-cross binutils-arm-linux-gnueabi libncurses5-dev gcc-4.9-arm-linux-gnueabi gcc-4.9-multilib g++-4.9-arm-linux-gnueabi g++-4.9-multilib 4

device-tree-compiler $ sudo apt-get update $ sudo apt-get install python python-dev python-jinja2 python-matplotlib python-pydot python-psutil g++ gcc scons swig zlib1g-dev m4 libc6-armel-cross libc6-dev-armel-cross binutils-arm-linux-gnueabi libncurses5-dev gcc-4.9-armlinux-gnueabi gcc-4.9-multilib g++-4.9-multilib device-tree-compiler The gcc-4.9-arm-linux-gnueabi package provides the cross-compiler for ARM processors. Once this package is installed, the command line to invoke the cross-compiler is armlinux-gnueabi-gcc-4.9. Use the following command to create a symbolic link named armlinux-gnueabi-gcc which refers to the arm cross-compiler: $ sudo ln -s /path-to-cross-compiler/arm-linux-gnueabi-gcc-4.9 /path-to-crosscompiler/arm-linux-gnueabi-gcc To get the path to the cross-compiler, the user can launch the command whereis armlinux-gnueabi-gcc-4.9. 2.2 MAGPIE utilities setup These utilities consist of a set of scripts that automate the complete simulation of a specified system. Download the MAGPIE utilities within the magpie_root directory: $ cd /path-to-magpie-root-directory/ $ git clone https://link/magpie.git 2.3 Gem5 setup Download the gem5 simulator into the magpie_root directory: $ cd /path-to-magpie-root-directory/ $ git clone https://gem5.googlesource.com/public/gem5 Then, get the suitable version of gem5 for the MAGPIE framework and apply the gem5.diff patch located in /path-to-magpie-root-directory/magpie/patchs, by using the following commands (the warning messages can be ignored once the patch is applied): 5

$ cd /path-to-magpie-root-directory/gem5/ $ git checkout 2f3c467 $ git apply -p1 < /path-to-magpie-root-directory/magpie/patchs/gem5.diff Compile gem5 by building a basic ARM system: $ cd /path-to-magpie-root-directory/gem5/ $ scons build/arm/gem5.fast -j N // N is the number of threads you want to use for compiling Set the new environment variable named GEM5 by using the following command: For bash shell: $ export GEM5=/path-to-magpie-root-directory/gem5 For tcsh shell: $ setenv GEM5 /path-to-magpie-root-directory/gem5 Note that it is recommended to add the selected command in your favorite default shell configuration file. Download the pre-compiled kernel and disk images for ARM full system simulation, and place them into $GEM5/util directory by using the following commands: $ wget -P /tmp/ http://www.gem5.org/dist/current/arm/aarch-system-2014-10.tar.xz $ tar -C $GEM5/util -xf /tmp/aarch-system-2014-10.tar.xz Note: it is possible to compile your own kernel for ARM full system. Further references are available in http://gem5.org/arm_kernel Set the new environment variable named M5_PATH by using the following command. For bash shell: $ export M5_PATH=$GEM5/util For tcsh shell: $ setenv M5_PATH $GEM5/util Here also, it is recommended to add the selected command in your favorite default shell configuration file. 6

2.4 NVSim setup Download the NVSim simulator into the magpie_root directory. To get NVSim, follow the instructions at http://www.nvsim.org. Once NVSim is dowloaded, apply the nvsim.diff patch located in /path-to-magpie-root-directory/magpie/patchs (the warning messages can be ignored once the patch is applied). Finally, compile NVSim by applying the following commands: $ cd /path-to-magpie-root-directory/nvsim/ $ patch -p1 < /path-to-magpie-root-directory/magpie/patchs/nvsim.diff $ make 2.5 McPAT setup Download the McPAT simulator into the magpie_root directory by using the commands below: $ wget -P /tmp/ https://storage.googleapis.com/google-code-archivesource/v2/code.google.com/mcpat/source-archive.zip $ unzip /tmp/source-archive.zip -d /path-to-magpie-root-directory/ Note: MAGPIE has been tested with McPAT version 1.3 (Feb. 2015). Check the version number in /path-to-magpie-root-directory/mcpat/version.h. Apply the mcpat.diff patch located in /path-to-magpie-root-directory/magpie/patchs (ignore the warning messages once the patch is applied), then compile McPAT: $ cd /path-to-magpie-root-directory/mcpat/ $ patch -p1 < /path-to-magpie-root-directory/magpie/patchs/mcpat.diff $ make 2.6 MAGPIE build tree Once the MAGPIE framework is set up, the tree view from the magpie_root directory should look like the structure shown in Figure 2.1. 7

Figure 2.1: MAGPIE s tree view 8