Commit e4aee3ef authored by Md Saad Memon's avatar Md Saad Memon
Browse files


parent 91fb9092
......@@ -14,21 +14,32 @@ sudo apt install ./google-chrome-stable_current_amd64.deb
python3 -V # check if it exists
#Installing Python v3.6
#Installing Python v3.6
1. (PPA)
sudo add-apt-repository ppa:fkrull/deadsnakes
sudo apt-get update
sudo apt-get install python3.6
2. From source
tar -xzvf
./configure --prefix=/usr --enable-optimizations --enable-shared --with-ensurepip=install
make -j8
sudo make altinstall
#update alternatives
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.5 2
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.6 3
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.8 4
sudo update-alternatives --config python
python -V #check version
#Virtual Environment
1. Installing Virtual Environment for all python version
pip install --upgrade pip
sudo apt-get install -y python3-venv
sudo apt install python3.5-venv
sudo apt install python3.6-venv
......@@ -36,17 +47,13 @@ sudo apt install python3.7-venv
mkdir pyvenv
cd pyvenv
python -m venv py3.6
python -m venv py3.
source py3.6/bin/activate
deactivate #to disconnect
#Vertilator (GCC v8 required)
sudo apt-get install git perl python3 make autoconf g++ flex bison ccache
sudo apt-get install libgoogle-perftools-dev numactl perl-doc
sudo apt-get install libfl2
sudo apt-get install libfl-dev
sudo apt-get install zlibc zlib1g zlib1g-dev
sudo apt-get install git perl python3 make autoconf g++ flex bison ccache libgoogle-perftools-dev numactl perl-doc libfl2 libfl-dev zlibc zlib1g zlib1g-dev libevent-dev libjson-c-dev
git clone
Every time you need to build:
unset VERILATOR_ROOT # For bash
......@@ -69,3 +76,33 @@ sudo apt-get update -y &&
sudo apt-get install gcc-8 g++-8 -y &&
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 60 --slave /usr/bin/g++ g++ /usr/bin/g++-8 &&
sudo update-alternatives --config gcc
sudo apt-get install gtkwave
sudo apt-get remove gtkwave
sudo apt-get remove --auto-remove gtkwave
Completely removing gtkwave with all configuration files
sudo apt-get purge gtkwave
sudo apt-get purge --auto-remove gtkwave
#Litex Installation
git clone --recursive
cd litex
chmod +x
pip install
./ --update
cd .. # to py3.8 directory then
sudo su
litex_sim --cpu-type=vexriscv
cd /home/saadmemon/Desktop/pyvenv/py3.8/litex-boards/litex_boards/targets
pip install ninja
#RISC-V toolchain for Litex Orange Crab Board
pip3 install meson
./ --gcc=riscv
cd ..
export PATH=$PATH:$PWD/riscv64-unknown-elf-gcc-8.3.0-2019.08.0-x86_64-linux-ubuntu14/bin/
Supports Markdown
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