From 6031ac0da49e4e05b2b365ac83be2f9c83181ac2 Mon Sep 17 00:00:00 2001 From: Nokius Date: Thu, 26 Sep 2024 20:06:52 +0200 Subject: [PATCH] make the hailo user instalation script a bit more failsafe This will checks if the firmware folder is present if not it will created it informs the user to reboot to load the firmware for the hailo8l detector. --- docker/hailo8l/user_installation.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docker/hailo8l/user_installation.sh b/docker/hailo8l/user_installation.sh index 3c1f263b8..734c640f9 100644 --- a/docker/hailo8l/user_installation.sh +++ b/docker/hailo8l/user_installation.sh @@ -33,10 +33,16 @@ fi # Download and install the firmware cd ../../ ./download_firmware.sh -sudo mv hailo8_fw.4.18.0.bin /lib/firmware/hailo/hailo8_fw.bin + +# verify the firmware folder is present +if [ ! -d /lib/firmware/hailo ]; then + sudo mkdir /lib/firmware/hailo +fi +sudo mv hailo8_fw.4.17.0.bin /lib/firmware/hailo/hailo8_fw.bin # Install udev rules sudo cp ./linux/pcie/51-hailo-udev.rules /etc/udev/rules.d/ sudo udevadm control --reload-rules && sudo udevadm trigger echo "HailoRT driver installation complete." +echo "reboot your system to load the firmware!"