Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 6d6d75d7 authored by Dhruv Menon's avatar Dhruv Menon
Browse files

Merge branch docs.beagleboard.io:main into main

parents 2fecccf8 84102b3c
1 merge request!170updated introduction to Zephyr RTOS page
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
Microchip FPGA Tools Installation Guide Microchip FPGA Tools Installation Guide
######################################### #########################################
Instructions for installing the Microchip FPGA tools on a Ubuntu 20.04 desktop. Instructions for installing the Microchip FPGA tools on a Ubuntu 20.04 or Ubuntu 22.04 desktop.
.. important:: .. important::
...@@ -14,36 +14,39 @@ Instructions for installing the Microchip FPGA tools on a Ubuntu 20.04 desktop. ...@@ -14,36 +14,39 @@ Instructions for installing the Microchip FPGA tools on a Ubuntu 20.04 desktop.
Make sure people know about the alternative and we provide links to details on that before we send them down this process. Make sure people know about the alternative and we provide links to details on that before we send them down this process.
Install Libero 2023.2
************************ Install Libero
**************
.. note:: Libero 2023.2, 2024.1 or 2024.2 should work. 2024.2 is used as an example.
Create a folder named Microchip in your /home folder
- Download installer from the `Microchip's fpga and soc design tools section <https://www.microchip.com/en-us/products/fpgas-and-plds/fpga-and-soc-design-tools/fpga/libero-software-later-versions>`_. - Download installer from the `Microchip's fpga and soc design tools section <https://www.microchip.com/en-us/products/fpgas-and-plds/fpga-and-soc-design-tools/fpga/libero-software-later-versions>`_.
- Install Libero - Install Libero
.. code-block:: .. code-block::
unzip Libero_SoC_v2023.2_lin.zip unzip Libero_SoC_v2024.2_lin.zip
cd Libero_SoC_v2023.2_lin/
./launch_installer.sh ./launch_installer.sh
.. important:: .. important::
Do not use the default location suggested by the Libero installer. Do not use the default location suggested by the Libero installer.
Instead of /usr/local/Microchip/Libero_SoC_v2023.2 install into ~/Microchip/Libero_SoC_v2023.2 Instead of /usr/local/Microchip/Libero_SoC_v2024.2 install into ~/Microchip/Libero_SoC_v2024.2
Run the post installation script which will install missing packages: Run the post installation script which will install missing packages:
.. code-block:: .. code-block::
sudo /home/<USER-NAME>/Microchip/Libero_SoC_v2023.2/Logs/req_to_install.sh sudo /home/$USER/Microchip/Libero_SoC_v2024.2/Logs/req_to_install.sh
No need to run the FlashPro hardware installation scripts. This will be taken care of as part of the SoftConsole installation. No need to run the FlashPro hardware installation scripts. This will be taken care of as part of the SoftConsole installation.
Install SoftConsole 2022.2 Install SoftConsole 2022.2
*************************** ***************************
- Download intaller from `Microchip website <https://www.microchip.com/en-us/products/fpgas-and-plds/fpga-and-soc-design-tools/soc-fpga/softconsole>`_. - Download installer from `Microchip website <https://www.microchip.com/en-us/products/fpgas-and-plds/fpga-and-soc-design-tools/soc-fpga/softconsole>`_.
.. code-block:: .. code-block::
...@@ -63,7 +66,14 @@ Perform the post installation steps as described in the html file opened when yo ...@@ -63,7 +66,14 @@ Perform the post installation steps as described in the html file opened when yo
Install the Libero licensing daemon Install the Libero licensing daemon
************************************ ************************************
Download the 64 bit Licensing Daemons from the `Microchip's daemons section <https://www.microchip.com/en-us/products/fpgas-and-plds/fpga-and-soc-design-tools/fpga/licensing>`_ Download the latest 64 bit Licensing Daemons from the `Microchip's fpga and soc design tools section <https://www.microchip.com/en-us/products/fpgas-and-plds/fpga-and-soc-design-tools/fpga/libero-software-later-versions>`_
* `Linux_Licensing_Daemon_11.19.6.0_64-bit.tar.gz <https://ww1.microchip.com/downloads/secure/aemdocuments/documents/fpga/media-content/FPGA/daemons/Linux_Licensing_Daemon_11.19.6.0_64-bit.tar.gz>`_
* `Windows_Licensing_Daemon_11.19.6.0_64-bit.zip <https://ww1.microchip.com/downloads/secure/aemdocuments/documents/fpga/media-content/FPGA/daemons/Windows_Licensing_Daemon_11.19.6.0_64-bit.zip>`_
Older Daemon downloads can be found at `Microchip's daemons section <https://www.microchip.com/en-us/products/fpgas-and-plds/fpga-and-soc-design-tools/fpga/licensing>`_
* `Linux_Licensing_Daemon_11.16.1_64-bit.tar.gz <https://ww1.microchip.com/downloads/aemdocuments/documents/fpga/media-content/FPGA/daemons/Linux_Licensing_Daemon_11.16.1_64-bit.tar.gz>`_ * `Linux_Licensing_Daemon_11.16.1_64-bit.tar.gz <https://ww1.microchip.com/downloads/aemdocuments/documents/fpga/media-content/FPGA/daemons/Linux_Licensing_Daemon_11.16.1_64-bit.tar.gz>`_
* `Windows_Licensing_Daemon_11.16.1_64-bit.zip <https://ww1.microchip.com/downloads/aemdocuments/documents/fpga/media-content/FPGA/daemons/Windows_Licensing_Daemon_11.16.1_64-bit.zip>`_ * `Windows_Licensing_Daemon_11.16.1_64-bit.zip <https://ww1.microchip.com/downloads/aemdocuments/documents/fpga/media-content/FPGA/daemons/Windows_Licensing_Daemon_11.16.1_64-bit.zip>`_
...@@ -75,7 +85,7 @@ Copy the downloaded file to the Microchip directory within your home directory a ...@@ -75,7 +85,7 @@ Copy the downloaded file to the Microchip directory within your home directory a
cd ~/Microchip cd ~/Microchip
tar -xvf Linux_Licensing_Daemon_11.16.1_64-bit.tar.gz tar -xvf Linux_Licensing_Daemon_11.19.6.0_64-bit.tar.gz
Install the Linux Standard Base: Install the Linux Standard Base:
...@@ -99,7 +109,19 @@ Request a Libero Silver license ...@@ -99,7 +109,19 @@ Request a Libero Silver license
A MAC address looks something like 12:34:56::78:ab:cd when you use the "ip address" command to find out A MAC address looks something like 12:34:56::78:ab:cd when you use the "ip address" command to find out
its value on your Linux machine. However, you need to enter it as 123456abcd in this dialog box. its value on your Linux machine. However, you need to enter it as 123456abcd in this dialog box.
You will get an email with a license.dat file. Copy it into the ~/Microchip/license directory. Edit the License.dat file to replace the <put.hostname.here> string with... localhost. You will get an email with a License.dat file. Copy it into the ~/Microchip/license directory. Replace `<put.hostname.here>` in `License.dat` with `localhost` and add Linux_Licensing_Daemon as the path to the daemons.
The top of your license file should look something like this after editing. Your daemon files should be located in the Linux_Licensing_Daemon folder inside the Microchip folder.
.. code-block:: text
SERVER localhost 001584731680 1702
DAEMON actlmgrd Linux_Licensing_Daemon/actlmgrd
# Starting Libero SOC v2024.2, customers are recommended ...
# DAEMON mgcld Linux_Licensing_Daemon/mgcld
DAEMON saltd Linux_Licensing_Daemon/saltd
VENDOR snpslmd Linux_Licensing_Daemon/snpslmd
Execute tool setup script Execute tool setup script
*************************** ***************************
...@@ -112,15 +134,38 @@ Download the script: ...@@ -112,15 +134,38 @@ Download the script:
:download:`setup-microchip-tools.sh <./setup-microchip-tools.sh>` :download:`setup-microchip-tools.sh <./setup-microchip-tools.sh>`
Details:
You can create a folder named FPGA-Tools-Setup and store the file there, although this is not required, as long as it is inside the Microchip folder.
You shouldn't need to edit the script, as long as you have installed Libero inside a folder that follows the Libero_SoC_vXXXX.X format, or if you have multiple Libero versions installed and want to select a preferred one to use.
Source the script: Source the script:
.. code-block:: .. code-block::
sudo chmod +x setup-microchip-tools.sh
. ./setup-microchip-tools.sh . ./setup-microchip-tools.sh
.. important:: .. important::
Do not forget the leading dot. It matters. You will need to run this every time you restart your machine. Do not forget the leading dot. It matters. You will need to run this every time you restart your machine.
Optionally, add this to the end of your `~/.bashrc` file to avoid running it each time on startup.
First, open `~/.bashrc`:
.. code-block:: bash
nano ~/.bashrc
Then, add the following lines at the end:
.. code-block:: bash
cd /home/$USER/Microchip/
. ./setup-microchip-tools.sh
You can then start Libero to open an existing Libero project. You can then start Libero to open an existing Libero project.
......
#!/bin/bash #!/bin/bash
# Gets Libero version
dir=$(pwd)
while [[ "$dir" != "/" ]]; do
for subdir in "$dir"/*/; do
if [[ $subdir =~ Libero_SoC_v([0-9]+\.[0-9]+)/ ]]; then
Libero_ver="${BASH_REMATCH[1]}"
break 2
fi
done
dir=$(dirname "$dir")
done
#Set preferred Libero version here if needed
#Libero_ver=2023.2
echo "Using Libero version:" $Libero_ver
# Check if Libero_ver was set; if not, print an error and exit
if [[ -z "$Libero_ver" ]]; then
echo "Error: No directory found matching the pattern 'Libero_SoC_vXXXX.Y/'"
return 1
fi
#=============================================================================== #===============================================================================
# Edit the following section with the location where the following tools are # Edit the following section with the location where the following tools are
# installed: # installed if they aren't in the default location:
# - SoftConsole (SC_INSTALL_DIR) # - SoftConsole (SC_INSTALL_DIR)
# - Libero (LIBERO_INSTALL_DIR) # - Libero (LIBERO_INSTALL_DIR)
# - Licensing daemon for Libero (LICENSE_DAEMON_DIR) # - Licensing daemon for Libero (LICENSE_DAEMON_DIR)
#=============================================================================== #===============================================================================
export SC_INSTALL_DIR=/home/$USER/Microchip/SoftConsole-v2022.2-RISC-V-747 export SC_INSTALL_DIR=/home/$USER/Microchip/SoftConsole-v2022.2-RISC-V-747
export LIBERO_INSTALL_DIR=/home/$USER/Microchip/Libero_SoC_v2023.2 export LIBERO_INSTALL_DIR=/home/$USER/Microchip/Libero_SoC_v$Libero_ver
export LICENSE_DAEMON_DIR=/home/$USER/Microchip/Linux_Licensing_Daemon export LICENSE_DAEMON_DIR=/home/$USER/Microchip/Linux_Licensing_Daemon
export LICENSE_FILE_DIR=/home/$USER/Microchip/license export LICENSE_FILE_DIR=/home/$USER/Microchip/license
export SMARTHLS_INSTALL_DIR=$LIBERO_INSTALL_DIR/SmartHLS-$Libero_ver/SmartHLS
#=============================================================================== #===============================================================================
# The following was tested on Ubuntu 20.04 with: # The following was tested on Ubuntu 20.04 with:
# - Libero 2023.2 # - Libero 2023.2 and 2024.1
# - SoftConsole 2022.2
# It was also tested on Ubuntu 22.04 with:
# - Libero 2024.2
# - SoftConsole 2022.2 # - SoftConsole 2022.2
#=============================================================================== #===============================================================================
...@@ -28,8 +58,11 @@ export FPGENPROG=$LIBERO_INSTALL_DIR/Libero/bin64/fpgenprog ...@@ -28,8 +58,11 @@ export FPGENPROG=$LIBERO_INSTALL_DIR/Libero/bin64/fpgenprog
# Libero # Libero
# #
export PATH=$PATH:$LIBERO_INSTALL_DIR/Libero/bin:$LIBERO_INSTALL_DIR/Libero/bin64 export PATH=$PATH:$LIBERO_INSTALL_DIR/Libero/bin:$LIBERO_INSTALL_DIR/Libero/bin64
export PATH=$PATH:$LIBERO_INSTALL_DIR/Synplify/bin export PATH=$PATH:$LIBERO_INSTALL_DIR/SynplifyPro/bin
export PATH=$PATH:$LIBERO_INSTALL_DIR/Model/modeltech/linuxacoem export PATH=$PATH:$LIBERO_INSTALL_DIR/ModelSimPro/modeltech/linuxacoem
export PATH=$PATH:$SMARTHLS_INSTALL_DIR/bin
export PATH=$PATH:$SMARTHLS_INSTALL_DIR/swtools/binutils/riscv-gnu-toolchain/bin
export LOCALE=C export LOCALE=C
export LD_LIBRARY_PATH=/usr/lib/i386-linux-gnu:$LD_LIBRARY_PATH export LD_LIBRARY_PATH=/usr/lib/i386-linux-gnu:$LD_LIBRARY_PATH
......
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