From b54032bdc78c6ec8dbc6ed2674ec1068a4cf7e92 Mon Sep 17 00:00:00 2001 From: Nokius Date: Sat, 28 Sep 2024 13:55:17 +0200 Subject: [PATCH] make the hailo user instalation script a bit more failsafe (#13992) 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!"