diff --git a/README.org b/README.org index 63cd3a4..d4e7581 100644 --- a/README.org +++ b/README.org @@ -19,7 +19,7 @@ cd .. * [[https://docs.beagleboard.org/latest/boards/beaglev/fire/demos-and-tutorials/mchp-fpga-tools-installation-guide.html#request-a-libero-silver-license][Request a License from Microchip]] * Install the license -#+begin_src bash +#+begin_src bash :noeval mv /path/to/License.dat ./licenses/. #+end_src @@ -42,13 +42,20 @@ VENDOR snpslmd /opt/microchip/Libero_SoC_v2024.1/Libero/bin64/snpslmd Your mac address should already be placed there so don't worry about that. +* Edit the environment script to include your hostname +The hostname of your *host* machine will be used by the container. We can use the following command to plop your hostname into the right places: +#+begin_src bash :noeval +sed -i "s//$(hostname)/g" ./scripts/env +#+end_src + + * Build the container + Launch the licensing daemon #+begin_src bash make daemon #+end_src * Run libero from inside the container -#+begin_src bash +#+begin_src bash :noeval podman exec -it --user root libero bash . /opt/microchip/scripts/env libero diff --git a/scripts/env b/scripts/env index 6bdd0f6..9e0130d 100644 --- a/scripts/env +++ b/scripts/env @@ -1,5 +1,4 @@ #!/usr/bin/env bash -__hostname=$(hostname) # versions export LIBERO_VERSION="v2024.1" @@ -16,8 +15,8 @@ export LOG_DIR="${BASE_DIR}/logs" export FPGENPROG="${LIBERO_DIR}/Libero/bin64/fpgenprog" # license vars -export LM_LICENSE_FILE="1702@gpenguin" -export SNPSLMD_LICENSE_FILE="1702@gpenguin" +export LM_LICENSE_FILE="1702@" +export SNPSLMD_LICENSE_FILE="1702@" # paths export PATH="${PATH}:${LIBERO_DIR}/Libero/bin64"