From eb0b539b51bb7cb780264f714d871ebc7b936777 Mon Sep 17 00:00:00 2001 From: penguin Date: Tue, 24 Sep 2024 19:20:41 -0500 Subject: [PATCH] update readme with instructions for filling the env script with hostname --- README.org | 11 +++++++++-- scripts/env | 5 ++--- 2 files changed, 11 insertions(+), 5 deletions(-) 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"