URL
https://opencores.org/ocsvn/minsoc/minsoc/trunk
Subversion Repositories minsoc
Compare Revisions
- This comparison shows the changes necessary to convert path
/
- from Rev 167 to Rev 168
- ↔ Reverse comparison
Rev 167 → Rev 168
/minsoc/trunk/utils/setup/minsoc-install.sh
50,28 → 50,56
fi; |
|
|
# Selecting automated or advanced intallation modes |
# Wizard |
if [ -z "${AUTO}" ] |
then |
while [ "${AUTO}" != "R" ] && [ "${AUTO}" != "A" ] |
do |
cecho "Select installation mode."; |
cnecho " Enter R for Resumed or A for Advanced mode or H for Help: " |
read AUTO; |
if [ ${AUTO} == "H" ] |
then |
cecho "Advanced mode:" |
cecho " the script only downloads and installs the required tools. Dependency libraries and tools are checked during individual tool compilation. Furthermore, the install directory is not added to the system PATH. You have to do it yourself. Libusb, libftdi and Icarus Verilog are supposed to be installed by the user.\n" |
cecho "Resumed mode:" |
cecho " the script checks if the dependency libraries and tools are installed before doing anything. It also adds the installation directory to the system PATH variable for bash shells on HOME/.bashrc. Libusb, libftdi and Icarus Verilog are automatically installed for you.\n" |
fi |
done |
if [ "${AUTO}" == "R" ] |
then |
cecho "Resumed mode selected"; |
else |
cecho "Advanced mode selected"; |
fi |
fi |
|
|
# Testing necessary tools |
cecho "Testing if necessary tools are installed, program "whereis" is required." |
testtool wget |
testtool svn |
testtool bzip2 |
testtool tar |
testtool sed |
testtool patch |
testtool gcc |
testtool make |
testtool makeinfo |
testtool libncurses |
testtool flex |
testtool bison |
testtool libz |
if [ "$ENV" == "Cygwin" ] |
if [ "${AUTO}" == "R" ] |
then |
testtool ioperm |
testtool libusb |
cecho "Testing if necessary tools are installed, program "whereis" is required." |
testtool wget |
testtool svn |
testtool bzip2 |
testtool tar |
testtool sed |
testtool patch |
testtool gcc |
testtool make |
testtool makeinfo |
testtool libncurses |
testtool flex |
testtool bison |
testtool libz |
if [ "$ENV" == "Cygwin" ] |
then |
testtool ioperm |
testtool libusb |
fi |
fi |
|
|
# Wizard |
if [ -z "${ALTDIR}" ] |
then |
123,12 → 151,15
execcmd "Downloading GDB" "wget ftp://anonymous:anonymous@ftp.gnu.org/gnu/gdb/gdb-6.8a.tar.bz2" |
execcmd "wget ftp://ocuser:ocuser@openrisc.opencores.org/toolchain/or32-gdb-6.8-patch-2.4.bz2" |
execcmd "svn export -q http://opencores.org/ocsvn/adv_debug_sys/adv_debug_sys/trunk/Patches/GDB6.8/gdb-6.8-bz436037-reg-no-longer-active.patch" |
if [ "$ENV" != "Cygwin" ] |
if [ "${AUTO}" == "R" ] |
then |
execcmd "Downloading libusb-0.1 for Advanced Debug System" "wget http://sourceforge.net/projects/libusb/files/libusb-0.1%20%28LEGACY%29/0.1.12/libusb-0.1.12.tar.gz" |
if [ "$ENV" != "Cygwin" ] |
then |
execcmd "Downloading libusb-0.1 for Advanced Debug System" "wget http://sourceforge.net/projects/libusb/files/libusb-0.1%20%28LEGACY%29/0.1.12/libusb-0.1.12.tar.gz" |
fi |
execcmd "Downloading libftdi for Advanced Debug System" "wget http://www.intra2net.com/en/developer/libftdi/download/libftdi-0.19.tar.gz" |
execcmd "Downloading Icarus Verilog" "wget ftp://icarus.com/pub/eda/verilog/v0.9/verilog-0.9.4.tar.gz" |
fi |
execcmd "Downloading libftdi for Advanced Debug System" "wget http://www.intra2net.com/en/developer/libftdi/download/libftdi-0.19.tar.gz" |
execcmd "Downloading Icarus Verilog" "wget ftp://icarus.com/pub/eda/verilog/v0.9/verilog-0.9.4.tar.gz" |
|
|
#Uncompressing everything |
147,12 → 178,15
fi |
execcmd "tar -jxf gdb-6.8a.tar.bz2" |
execcmd "bzip2 -d or32-gdb-6.8-patch-2.4.bz2" |
if [ "$ENV" != "Cygwin" ] |
if [ "${AUTO}" == "R" ] |
then |
execcmd "tar zxf libusb-0.1.12.tar.gz" |
if [ "$ENV" != "Cygwin" ] |
then |
execcmd "tar zxf libusb-0.1.12.tar.gz" |
fi |
execcmd "tar zxf libftdi-0.19.tar.gz" |
execcmd "tar zxf verilog-0.9.4.tar.gz" |
fi |
execcmd "tar zxf libftdi-0.19.tar.gz" |
execcmd "tar zxf verilog-0.9.4.tar.gz" |
|
|
#Compiling and Installing all packages |
187,20 → 221,23
|
|
#Installing Advanced JTAG Bridge support libraries |
if [ "$ENV" != "Cygwin" ] |
if [ "${AUTO}" == "R" ] |
then |
execcmd "cd ${DIR_TO_INSTALL}/download/libusb-0.1.12" |
execcmd "./configure --prefix=${DIR_TO_INSTALL}/tools" |
execcmd "Installing libusb-0.1" "make" |
execcmd "make install" |
if [ "$ENV" != "Cygwin" ] |
then |
execcmd "cd ${DIR_TO_INSTALL}/download/libusb-0.1.12" |
execcmd "./configure --prefix=${DIR_TO_INSTALL}/tools" |
execcmd "Installing libusb-0.1" "make" |
execcmd "make install" |
fi |
|
execcmd "cd ${DIR_TO_INSTALL}/download/libftdi-0.19" |
execcmd "PATH=\"$PATH:${DIR_TO_INSTALL}/tools/bin\" ./configure --prefix=${DIR_TO_INSTALL}/tools CPPFLAGS=-I${DIR_TO_INSTALL}/tools/include" |
execcmd "Compiling libftdi" "make" |
execcmd "make install" |
fi |
|
execcmd "cd ${DIR_TO_INSTALL}/download/libftdi-0.19" |
execcmd "PATH=\"$PATH:${DIR_TO_INSTALL}/tools/bin\" ./configure --prefix=${DIR_TO_INSTALL}/tools CPPFLAGS=-I${DIR_TO_INSTALL}/tools/include" |
execcmd "Compiling libftdi" "make" |
execcmd "make install" |
|
|
#Installing Advanced JTAG Bridge |
execcmd "cd ${DIR_TO_INSTALL}/minsoc/rtl/verilog/adv_debug_sys/Software/adv_jtag_bridge" |
execcmd "./autogen.sh" |
210,10 → 247,13
|
|
#Installing Icarus Verilog |
execcmd "cd ${DIR_TO_INSTALL}/download/verilog-0.9.4" |
execcmd "./configure --prefix=${DIR_TO_INSTALL}/tools" |
execcmd "Compiling Icarus Verilog" "make" |
execcmd "make install" |
if [ "${AUTO}" == "R" ] |
then |
execcmd "cd ${DIR_TO_INSTALL}/download/verilog-0.9.4" |
execcmd "./configure --prefix=${DIR_TO_INSTALL}/tools" |
execcmd "Compiling Icarus Verilog" "make" |
execcmd "make install" |
fi |
|
|
#Configuring MinSoC, Advanced Debug System and patching OpenRISC |
221,10 → 261,20
|
|
#Setting-up new variables |
cecho "\nSystem configurations" |
execcmd "Adding MinSoC tools to PATH" "echo \"PATH=\\\"\\\$PATH:$DIR_TO_INSTALL/tools/bin\\\"\" >> /home/$(whoami)/.bashrc;"; |
execcmd "Adding OpenRISC toolchain to PATH" "echo \"PATH=\\\"\\\$PATH:$DIR_TO_INSTALL/tools/or32-elf/bin/\\\"\" >> /home/$(whoami)/.bashrc;"; |
if [ "${AUTO}" == "R" ] |
then |
cecho "\nSystem configurations" |
execcmd "Adding MinSoC tools to PATH" "echo \"PATH=\\\"\\\$PATH:$DIR_TO_INSTALL/tools/bin\\\"\" >> /home/$(whoami)/.bashrc;"; |
execcmd "Adding OpenRISC toolchain to PATH" "echo \"PATH=\\\"\\\$PATH:$DIR_TO_INSTALL/tools/or32-elf/bin/\\\"\" >> /home/$(whoami)/.bashrc;"; |
|
cecho "\nInstallation Complete!" |
cecho "Before using the system, load the new environment variables doing this: source /home/$(whoami)/.bashrc" |
cecho "You may remove the ${DIR_TO_INSTALL}/download directory if you wish." |
cecho "\nInstallation Complete!" |
cecho "Before using the system, load the new environment variables doing this: source /home/$(whoami)/.bashrc" |
cecho "You may remove the ${DIR_TO_INSTALL}/download directory if you wish." |
else |
cecho "\nInstallation Complete!\n" |
cecho "Remember to add the two following directories in the following order to the PATH system variable." |
cecho "1) $DIR_TO_INSTALL/tools/bin " |
cecho "2) $DIR_TO_INSTALL/tools/or32-elf/bin " |
cecho "You may remove the ${DIR_TO_INSTALL}/download directory if you wish." |
fi |
|
/minsoc/trunk/backend/spartan3e_starter_kit/configure
43,12 → 43,23
echo "THIS SCRIPT HAS A NON-STANDARD BEGINNING." |
echo "__________________________________________________________________________" |
echo "${BOARD} requires another configuration for or1200." |
echo "" |
|
echo "Otherwise, the design won't fit on your FPGA because of area restrictions. If you select no, you can manually copy the or1200_defines.v from this directory to minsoc/rtl/verilog/or1200/rtl/verilog later to overcome this safely." |
echo "" |
echo "Copying or1200_defines.v, to or1200 implementation directory..." |
echo "(minsoc/rtl/verilog/or1200/rtl/verilog)" |
echo "__________________________________________________________________________" |
cp $BOARD_DIR/or1200_defines.v $MINSOC_DIR/rtl/verilog/or1200/rtl/verilog |
|
echo -n "This will modify the standard or1200_defines.v file. Proceed? [Y/n]: " |
read REPLY; |
if [ "$REPLY" = "y" ] || [ -z "$REPLY" ] |
then |
echo "" |
echo "Backing up original or1200_defines.v as or1200_defines.bak..." |
echo "Copying or1200_defines.v, to or1200 implementation directory..." |
echo "(minsoc/rtl/verilog/or1200/rtl/verilog)" |
echo "__________________________________________________________________________" |
mv $MINSOC_DIR/rtl/verilog/or1200/rtl/verilog/or1200_defines.v $MINSOC_DIR/rtl/verilog/or1200/rtl/verilog/or1200_defines.bak |
cp $BOARD_DIR/or1200_defines.v $MINSOC_DIR/rtl/verilog/or1200/rtl/verilog |
fi |
echo "" |
echo "REGULAR SCRIPT STARTS NOW" |
echo "__________________________________________________________________________" |
/minsoc/trunk/backend/spartan3e_starter_kit_eth/configure
43,12 → 43,23
echo "THIS SCRIPT HAS A NON-STANDARD BEGINNING." |
echo "__________________________________________________________________________" |
echo "${BOARD} requires another configuration for or1200." |
echo "" |
|
echo "Otherwise, the design won't fit on your FPGA because of area restrictions. If you select no, you can manually copy the or1200_defines.v from this directory to minsoc/rtl/verilog/or1200/rtl/verilog later to overcome this safely." |
echo "" |
echo "Copying or1200_defines.v, to or1200 implementation directory..." |
echo "(minsoc/rtl/verilog/or1200/rtl/verilog)" |
echo "__________________________________________________________________________" |
cp $BOARD_DIR/or1200_defines.v $MINSOC_DIR/rtl/verilog/or1200/rtl/verilog |
|
echo -n "This will modify the standard or1200_defines.v file. Proceed? [Y/n]: " |
read REPLY; |
if [ "$REPLY" = "y" ] || [ -z "$REPLY" ] |
then |
echo "" |
echo "Backing up original or1200_defines.v as or1200_defines.bak..." |
echo "Copying or1200_defines.v, to or1200 implementation directory..." |
echo "(minsoc/rtl/verilog/or1200/rtl/verilog)" |
echo "__________________________________________________________________________" |
mv $MINSOC_DIR/rtl/verilog/or1200/rtl/verilog/or1200_defines.v $MINSOC_DIR/rtl/verilog/or1200/rtl/verilog/or1200_defines.bak |
cp $BOARD_DIR/or1200_defines.v $MINSOC_DIR/rtl/verilog/or1200/rtl/verilog |
fi |
echo "" |
echo "REGULAR SCRIPT STARTS NOW" |
echo "__________________________________________________________________________" |