Select the second FPGA by default

This commit is contained in:
Rodrigo Arias 2024-07-08 09:55:13 +02:00
parent 931244a355
commit 1b4ab09c16

View File

@ -29,7 +29,7 @@ function setup_meep()
export PATH="$PATH:/apps/QDMA/meep-ionic/2022.1.4.4/linux-kernel/bin/"
# Select the first FPGA in the node
local line=$(grep fpgan /etc/motd | head -1 | tr -d ' ')
local line=$(grep fpgan /etc/motd | sed -n 2p | tr -d ' ')
export FPGACTL_PCIDEV=$(echo "$line" | awk -F'|' '{print $5}')
export FPGACTL_SERIAL=$(echo "$line" | awk -F'|' '{print $4}')
export FPGACTL_UART=$(echo "$line" | awk -F'|' '{print "/dev/"$7}')