update readme with instructions for filling the env script with hostname

develop
penguin 3 weeks ago
parent 62f278cc73
commit eb0b539b51

@ -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>/$(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

@ -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@<hostname>"
export SNPSLMD_LICENSE_FILE="1702@<hostname>"
# paths
export PATH="${PATH}:${LIBERO_DIR}/Libero/bin64"

Loading…
Cancel
Save