update readme with instructions for filling the env script with hostname

develop
penguin 2 months 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]] * [[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 * Install the license
#+begin_src bash #+begin_src bash :noeval
mv /path/to/License.dat ./licenses/. mv /path/to/License.dat ./licenses/.
#+end_src #+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. 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 * Build the container + Launch the licensing daemon
#+begin_src bash #+begin_src bash
make daemon make daemon
#+end_src #+end_src
* Run libero from inside the container * Run libero from inside the container
#+begin_src bash #+begin_src bash :noeval
podman exec -it --user root libero bash podman exec -it --user root libero bash
. /opt/microchip/scripts/env . /opt/microchip/scripts/env
libero libero

@ -1,5 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env bash
__hostname=$(hostname)
# versions # versions
export LIBERO_VERSION="v2024.1" export LIBERO_VERSION="v2024.1"
@ -16,8 +15,8 @@ export LOG_DIR="${BASE_DIR}/logs"
export FPGENPROG="${LIBERO_DIR}/Libero/bin64/fpgenprog" export FPGENPROG="${LIBERO_DIR}/Libero/bin64/fpgenprog"
# license vars # license vars
export LM_LICENSE_FILE="1702@gpenguin" export LM_LICENSE_FILE="1702@<hostname>"
export SNPSLMD_LICENSE_FILE="1702@gpenguin" export SNPSLMD_LICENSE_FILE="1702@<hostname>"
# paths # paths
export PATH="${PATH}:${LIBERO_DIR}/Libero/bin64" export PATH="${PATH}:${LIBERO_DIR}/Libero/bin64"

Loading…
Cancel
Save