From 1b4ab09c16c33feeb551404c4cd3c8d544ec92f5 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Mon, 8 Jul 2024 09:55:13 +0200 Subject: [PATCH] Select the second FPGA by default --- fpga/env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fpga/env.sh b/fpga/env.sh index 580e3bd..ac62ed5 100644 --- a/fpga/env.sh +++ b/fpga/env.sh @@ -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}')