Skip to content

Instantly share code, notes, and snippets.

View ashriram's full-sized avatar

Arrvindh Shriraman ashriram

  • Simon Fraser University
  • Vancouver
View GitHub Profile
#!/bin/bash
# How to use
# cd gem5/util
# wget "gist"
# source ./ruby-gem5.sh MI_example
rm -rf $1
mkdir -p $1/C
mkdir -p $1/html
python2.7 ./slicc -C $PWD/$1/C -H $PWD/$1/html ../src/mem/ruby/protocol/$1.slicc
@ashriram
ashriram / Zedboard-pynq-guide.md
Created August 8, 2019 18:11
Building Pynq Linux onto the Zedboard

Quick guide to building Pynq v2.3 onto the Zedboard

Prerequisites

  • Create a Ubuntu 16.04 x64 VM -- 60gb Disk Size, 6gb Ram
  • Install Petalinux 2018.2 onto the VM in your home directory; add it to your PATH variable
  • Download the "Pynq rootfs arm v2.3" image avialble here
  • Download the zedboard 2018.2 BSP file from xilinx

Steps to build

@ashriram
ashriram / 20170121 Converting Terasic DE0-SoC to Ubuntu 1604.md
Created August 6, 2019 23:35 — forked from fm4dd/20170121 Converting Terasic DE0-SoC to Ubuntu 1604.md
Converting the Terasic DE0-SoC FPGA development board from Yocto Linux to full Ubuntu 16.04

1. Introduction

The goal is to upgrade the Linux on Altera's DE0-Nano-SOC FPGA development board. To challenge us even further, the board confusingly also branded as the Atlas SoC board. The boards provided Linux version is from 2013, woefully outdated, and a stripped-down version. It comes with busybox instead of full commands, lacks all local development tools, and is requiring off-system cross-compiling.

root@socfpga:~# cat /etc/version
201309272205

root@socfpga:~# cat /etc/issue
Poky 8.0 (Yocto Project 1.3 Reference Distro) 1.3
 \l

Keybase proof

I hereby claim:

  • I am ashriram on github.
  • I am ashriram (https://keybase.io/ashriram) on keybase.
  • I have a public key ASDR82JSdAvMcCd65uCfOpIkVR8NIpuuWpzDJ8GTAvNpcAo

To claim this, I am signing this object:

//===- MemProf.cpp - LegUp uses this pass to add memory profiling output --===//
//
// This file is distributed under the LegUp license. See LICENSE for details.
//
//===----------------------------------------------------------------------===//
//
// This pass instruments the IR, adding printf calls for each:
// * load
// * store
// * call