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.
This commit is contained in:
Nokius 2024-09-28 13:55:17 +02:00 committed by GitHub
parent cab497e81e
commit b54032bdc7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,10 +33,16 @@ fi
# Download and install the firmware # Download and install the firmware
cd ../../ cd ../../
./download_firmware.sh ./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 # Install udev rules
sudo cp ./linux/pcie/51-hailo-udev.rules /etc/udev/rules.d/ sudo cp ./linux/pcie/51-hailo-udev.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules && sudo udevadm trigger sudo udevadm control --reload-rules && sudo udevadm trigger
echo "HailoRT driver installation complete." echo "HailoRT driver installation complete."
echo "reboot your system to load the firmware!"