IEEE.org     |     IEEE Xplore Digital Library     |     IEEE Standards     |     IEEE Spectrum     |     More Sites

Commit cbb8b038 authored by Alfredo Herrera's avatar Alfredo Herrera
Browse files

added use of lynx and /c/Users/aherrera dir files

parent f5b4f548
......@@ -39,33 +39,20 @@ set -eux
# Install rv32m1 SDK tools
echo "Installing rv32m1 tools"; echo""
cd /home/user
#curl -L https://github.com/open-isa-org/open-isa.org/releases/download/1.0.0/rv32m1_sdk_riscv_installer.sh > rv32m1_sdk_riscv_installer.sh
# Convert SDK shell script into the tar file -- this implictly accepts the license and extracts to /home/user/vega
#ARCHIVE=$(awk '/^__ARCHIVE__/ {print NR + 1; exit 0; }' "rv32m1_sdk_riscv_installer.sh")
#tail -n+${ARCHIVE} "rv32m1_sdk_riscv_installer.sh" | tar -xz > /dev/null 2>&1 || true
#mkdir /home/user/vega
#(cd /home/user/vega && tar xf /home/user/rv32m1_sdk_riscv.tar.gz)
cd /home/user
#curl -L https://github.com/open-isa-org/open-isa.org/releases/download/1.0.0/Toolchain_Linux.tar.gz > Toolchain_Linux.tar.gz
# Extract toolchain, takes two steps as there are archives in Toolchain_Linux.tar.gz)
mkdir toolchain
#pushd toolchain
#tar xf /home/user/Toolchain_Linux.tar.gz # this makes tar files for next lines
#tar xf riscv32-unknown-elf-gcc.tar.gz
#tar xf openocd.tar.gz
#popd
# Set the toolchain defaults for GNU MCU plug-ins to what we just "installed"
mkdir -p /home/user/eclipse/configuration/.settings/
# openocd location
echo "eclipse.preferences.version=1" > /home/user/eclipse/configuration/.settings/ilg.gnumcueclipse.debug.gdbjtag.openocd.prefs
echo "install.folder=/home/user/toolchain" >> /home/user/eclipse/configuration/.settings/ilg.gnumcueclipse.debug.gdbjtag.openocd.prefs
# gcc & friends location
echo "eclipse.preferences.version=1" > /home/user/eclipse/configuration/.settings/ilg.gnumcueclipse.managedbuild.cross.riscv.prefs
# (magic number comes from https://github.com/gnu-mcu-eclipse/eclipse-plugins/blob/ce601cf2ec20cba90d9f2c2fbdb236b5fd7a6385/bundles/ilg.gnumcueclipse.managedbuild.cross.riscv/src/ilg/gnumcueclipse/managedbuild/cross/riscv/ToolchainDefinition.java#L30)
#echo "toolchain.path.512258282=/home/user/toolchain/riscv32-unknown-elf-gcc/bin" >> /home/user/eclipse/configuration/.settings/ilg.gnumcueclipse.managedbuild.cross.riscv.prefs
# Modified for pre-release version
echo "toolchain.path.512258282=/home/user/pulp/riscv32-unknown-elf/bin" >> /home/user/eclipse/configuration/.settings/ilg.gnumcueclipse.managedbuild.cross.riscv.prefs
#rm rv32m1_sdk_riscv.tar.gz rv32m1_sdk_riscv_installer.sh Toolchain_Linux.tar.gz toolchain/riscv32-unknown-elf-gcc.tar.gz toolchain/openocd.tar.gz
......@@ -44,11 +44,12 @@ set -eux
# libudev package not available
echo "Updating Ubuntu"; echo""
apt-get install -y openssh-server xauth git-core lsb-core xorg vim-gtk3 dos2unix autoconf automake autotools-dev curl libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev libusb-1.0-0-dev libudev1 libudev-dev g++ openjdk-8-jdk libfl2 libfl-dev
apt-get install -y openssh-server xauth git-core lsb-core xorg vim-gtk3 dos2unix autoconf automake autotools-dev curl libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev libusb-1.0-0-dev libudev1 libudev-dev g++ openjdk-8-jdk libfl2 libfl-dev lynx
apt-get upgrade
apt-get clean
apt-get autoremove --purge
cd "$(dirname "$0")"
#---
# Install PULP-Platform GNU toolchain
......@@ -65,11 +66,62 @@ verilator_install.sh
sudo -u user eclipse-mcu_install.sh
#---
# Install rv32m1 and OpenOCD tools
# Install SEGGER J-Link drivers
#---
sudo -u user rv32m1_install.sh
read -n 1 -s -r -p "Press any key to go to text-based web browser to download JLink SW and documentation"
lynx https://www.segger.com/downloads/jlink/JLink_Linux_x86_64.deb
apt-get install -f ./JLink_Linux_V650a_x86_64.deb
#---
# Install SEGGER J-Link drivers
# append to ~/.bashrc
#---
apt-get install -f ./JLink_Linux_V650a_x86_64.deb
cat > $HOME/.editor <<EOF
vim
EOF
if [ -f ../LICENSE ]
then
cp ../LICENSE $HOME/Apache_license_v2.0.txt
fi
cat > $HOME/.BTADS_welcom.txt <<EOF
#-----------------------------------------------------------------------------
# Copyright (c) 2019 BTA Design Services Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#------------------------------------------------------------------------------
# Author: Alfredo Herrera (aherrera@btadesignservices.com)
# Created: 10/Sep/2019
# Revision: _beta_
#------------------------------------------------------------------------------
EOF
cat >> $HOME/.bashrc <<EOF
#------------------------------------------------------------------------------
# Additional settings
#------------------------------------------------------------------------------
if [ -f $HOME/.editor ]
then
EDITOR=`cat $HOME/.editor`
fi
export LD_LIBRARY_PATH=/usr/local/lib
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export PATH=$PATH:$JAVA_HOME/bin:/home/user/eclipse:/home/user/riscv-ovpsim/bin
export RISCV32GCC_DIR="/home/user/pulp"
#export PULP_RISCV_GCC_TOOLCHAIN="/home/user/pulp"
cat $HOME/.BTADS_welcome.txt
EOF
echo "The installation is done"
echo "Note: use 'evince' to open PDF documents from the command-line prompt"
......@@ -28,8 +28,12 @@ echo "============================"
echo "INSTALL TOOLS"
echo "============================"
brew install telnet git wget
wget https://download.virtualbox.org/virtualbox/6.0.10/VirtualBox-6.0.10-132072-Win.exe
wget https://download.virtualbox.org/virtualbox/6.0.10/VirtualBox-6.0.10-132072-OSX.dmg
wget https://download.virtualbox.org/virtualbox/6.0.10/Oracle_VM_VirtualBox_Extension_Pack-6.0.10.vbox-extpack
brew install caskroom/cask/brew-cask 2> /dev/null
brew cask install xquartz
echo "install VirtualBox from the following path:"
pwd
echo "and add the extensions pack from teh GUI"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment