URL
https://opencores.org/ocsvn/minsoc/minsoc/trunk
Subversion Repositories minsoc
Compare Revisions
- This comparison shows the changes necessary to convert path
/minsoc/trunk
- from Rev 41 to Rev 40
- ↔ Reverse comparison
Rev 41 → Rev 40
/utils/contributions/setup/README
File deleted
/utils/contributions/setup/toolchain-install.sh
File deleted
utils/contributions/setup/toolchain-install.sh
Property changes :
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: utils/contributions/setup/conxshlib.sh
===================================================================
--- utils/contributions/setup/conxshlib.sh (revision 41)
+++ utils/contributions/setup/conxshlib.sh (nonexistent)
@@ -1,65 +0,0 @@
-#!/bin/bash
-# Xanthopoulos Constantinos
-# Some useful function for my scripts
-
-function cecho
-{
- echo -e "\033[1m\033[33m$1\033[0m"
-}
-
-function errormsg
-{
- echo -e "\033[1m\033[31mError: $1\033[0m\n";
- exit 1;
-}
-
-function readpass
-{
- stty_orig=`stty -g`
- stty -echo
- read `echo $1`
- stty $stty_orig
-}
-
-function execcmd
-{
- # Print Message
- echo -e "\033[35m$1\033[0m"
- # Execute command
- echo $2
- if [ $DEBUG -ne 1 ];
- then
- eval $2;
- fi;
- # Check Execution
- if [ $? -eq 0 ]
- then
- echo -e "\033[32mSuccessfully \"$1\"\033[0m\n";
- else
- errormsg "$1";
- exit 1;
-
- fi
-}
-
-function changelinefile
-{
- a=0;
- b=0;
- sed -e "s/$1/$2/" $3 > /tmp/changedfile;
- if [ $? -eq 0 ]
- then
- a=1;
- fi
- mv /tmp/changedfile $3;
- if [ $? -eq 0 ]
- then
- b=1;
- fi
- execcmd "Change file $3" "test $a -eq 1 -a $b -eq 1"
-}
-
-if [ $DEBUG -eq 1 ]
-then
- cecho "Debug mode on! Nothing will actually run";
-fi
Index: utils/contributions/setup/cable-install.sh
===================================================================
--- utils/contributions/setup/cable-install.sh (revision 41)
+++ utils/contributions/setup/cable-install.sh (nonexistent)
@@ -1,70 +0,0 @@
-#!/bin/bash
-# Xanthopoulos Constantinos
-# Installing cable drivers for the impact to work
-# under Debian Squeeze.
-
-
-# ===== CONFIGURATIONS =====
-# ==========================
-# Webpack installation directory ex. ISE_PATH=/opt/WebPackISE/12.3/
-# make sure this directory contains ISE_DS
-
-ISE_PATH=""
-
-
-# ===== SCRIPT ======
-# ===================
-export DEBUG=0;
-. conxshlib.sh
-
-ISE_PATH=${ISE_PATH}"/ISE_DS/ISE/";
-
-if [ ! -d $ISE_PATH ];
-then
- errormsg "You must set the configuration variable ISE_PATH of this script";
-fi
-
-if [ `whoami` != "root" ];
-then
- errormsg "You must be root for this script to run.";
-fi;
-
-execcmd "Installing make" "aptitude install -y make"
-
-execcmd "Add WebPack binaries to PATH" "echo \"PATH=\\\$PATH:${ISE_PATH}/bin/lin/\" >> /etc/bash.bashrc;";
-
-execcmd "Downloading drivers" "wget -O usb-driver-HEAD.tar.gz http://git.zerfleddert.de/cgi-bin/gitweb.cgi/usb-driver?a=snapshot;h=HEAD;sf=tgz ";
-
-execcmd "Move tar to $ISE_PATH" "mv usb-driver-HEAD.tar.gz $ISE_PATH"
-
-cd $ISE_PATH;
-
-execcmd "Un-tar usb drivers" "tar xf usb-driver-HEAD.tar.gz";
-
-execcmd "Removing tar" "rm usb-driver-HEAD.tar.gz"
-
-cd usb-driver
-
-execcmd "Install libusb" "aptitude install -y libusb-dev";
-
-execcmd "Compile usb-driver" "make"
-
-execcmd "Adding the export line to bashrc" "echo \"export LD_PRELOAD=${ISE_PATH}/usb-driver/libusb-driver.so\" >> /etc/bash.bashrc"
-
-cecho "Unplug the cable if it is plugged and press enter"
-
-read nothing;
-
-execcmd "Creating new udev rule" "echo \"ACTION==\\\"add\\\", SUBSYSTEMS==\\\"usb\\\", ATTRS{idVendor}==\\\"03fd\\\", MODE=\\\"666\\\"\" > /etc/udev/rules.d/libusb-driver.rules";
-
-execcmd "Copy udev rules" "cp ${ISE_PATH}/bin/lin/xusbdfwu.rules /etc/udev/rules.d/";
-
-execcmd "Apply patch for Squeeze" "sed -i -e 's/TEMPNODE/tempnode/' -e 's/SYSFS/ATTRS/g' -e 's/BUS/SUBSYSTEMS/' /etc/udev/rules.d/xusbdfwu.rules";
-
-execcmd "Install fxload" "aptitude install -y fxload";
-
-execcmd "Copy .hex files to /usr/share" "cp ${ISE_PATH}/bin/lin/xusb*.hex /usr/share";
-
-execcmd "Restart udev" "/etc/init.d/udev restart";
-
-cecho "Ready!!!"
utils/contributions/setup/cable-install.sh
Property changes :
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: utils/contributions/setup/minsoc-install.sh
===================================================================
--- utils/contributions/setup/minsoc-install.sh (revision 41)
+++ utils/contributions/setup/minsoc-install.sh (nonexistent)
@@ -1,74 +0,0 @@
-#!/bin/bash
-# Xanthopoulos Constantinos
-# Installing cable drivers for the impact to work
-# under Debian Squeeze.
-
-
-# ===== CONFIGURATIONS =====
-# ==========================
-
-# Where should I put the dir. minsoc?
-# ex. /home/conx/Thesis/
-DIR_TO_INSTALL=""
-
-
-# ===== SCRIPT ======
-# ===================
-export DEBUG=0;
-. conxshlib.sh
-
-if [ `whoami` == "root" ];
-then
- errormsg "You shouldn't be root for this script to run.";
-fi;
-
-if [ ! -d $DIR_TO_INSTALL ]
-then
- errormsg "Directory doesn't exist. Please create it";
-fi;
-
-cd $DIR_TO_INSTALL
-
-if [ ! -f "minsoc.tar.gz" ];
-then
- execcmd "Download minsoc" "wget http://xanthopoulos.info/pub/minsoc.tar.gz"
-fi
-
-if [ -d "minsoc" ]
-then
- rm minsoc -rf
-fi
-
-execcmd "Un-tar minsoc" "tar xf minsoc.tar.gz"
-
-cecho "I will now start to compile everything that's needed";
-
-cd minsoc/sw/utils
-
-execcmd "Make utils" "make"
-
-cd ../support
-
-execcmd "Make support tools" "make"
-
-cd ../drivers
-
-execcmd "Make drivers" "make"
-
-cd ../gpio
-
-execcmd "Make GPIO" "make"
-
-cd ../uart
-
-execcmd "Make UART" "make"
-
-cd ${DIR_TO_INSTALL}/minsoc/rtl/verilog/adv_debug_sys/Software/adv_jtag_bridge
-
-cecho "Installing FTDI headers! You will be asked to give root pass"
-
-execcmd "Install FTDI headers" "su -c \"aptitude install libftdi-dev\"";
-
-execcmd "Make adv_jtag_bridge" "make"
-
-cecho "Installation Finised"
utils/contributions/setup/minsoc-install.sh
Property changes :
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property