Skip to content

Commit

Permalink
Merge pull request #247 from mithro/scripts-fix
Browse files Browse the repository at this point in the history
Small extra fixes to the setup scripts
  • Loading branch information
mithro committed Apr 11, 2016
2 parents 7fe1321 + dfb7dc1 commit 956a8b3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
5 changes: 4 additions & 1 deletion scripts/bootstrap.sh
Expand Up @@ -6,7 +6,10 @@ then
exit 1
fi

GIT_REPO=https://github.com/timvideos/HDMI2USB-misoc-firmware.git
if [ -z "$GITHUB_USER" ]; then
GITHUB_USER=timvideos
fi
GIT_REPO=https://github.com/$GITHUB_USER/HDMI2USB-misoc-firmware.git
if [ -z "$GIT_BRANCH" ]; then
GIT_BRANCH=master
fi
Expand Down
17 changes: 9 additions & 8 deletions scripts/get-env-root.sh
@@ -1,5 +1,7 @@
#!/bin/bash

apt-get install -y realpath

if [ "`whoami`" != "root" ]
then
echo "Please use sudo to run this script!"
Expand All @@ -12,7 +14,6 @@ SETUP_DIR=$(dirname $SETUP_SRC)
set -x
set -e

apt-get install -y realpath
apt-get install -y wget
apt-get install -y build-essential
# Need gpg to do the unencryption of Xilinx tools
Expand All @@ -37,17 +38,17 @@ apt-get install -y iverilog gtkwave

# libfpgalink

sudo apt-get install -y libreadline-dev libusb-1.0-0-dev libftdi-dev python-yaml fxload
apt-get install -y libreadline-dev libusb-1.0-0-dev libftdi-dev python-yaml fxload

# Load custom udev rules
(
cp -uf $SETUP_DIR/52-hdmi2usb.rules /etc/udev/rules.d/
sudo adduser $USER dialout
# adduser $USER dialout
)

# Get the vizzini module needed for the Atlys board
sudo apt-get install -y software-properties-common
sudo -E add-apt-repository -y ppa:timvideos/fpga-support
sudo apt-get update
sudo apt-get install -y vizzini-dkms
sudo apt-get install -y ixo-usb-jtag
apt-get install -y software-properties-common
add-apt-repository -y ppa:timvideos/fpga-support
apt-get update
apt-get install -y vizzini-dkms
apt-get install -y ixo-usb-jtag

0 comments on commit 956a8b3

Please sign in to comment.