Update user_installation.sh for Raspberry Pi (Bookworm and Trixie)

Simplified and improved the user installation script for  Hailo to support Raspberry Pi OS Bookworm, Trixie, and x86 platforms.

Referenced discussions: #21177, #20621, #20062, #19531
This commit is contained in:
Pops0n 2026-02-04 17:04:20 +01:00 committed by GitHub
parent 0da51b806f
commit 986b31978b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,15 +2,19 @@
# Update package list and install dependencies # Update package list and install dependencies
sudo apt-get update sudo apt-get update
sudo apt-get install -y build-essential cmake git wget sudo apt-get install -y build-essential cmake git wget linux-headers-$(uname -r)
hailo_version="4.21.0" hailo_version="4.21.0"
arch=$(uname -m) arch=$(uname -m)
if [[ $arch == "x86_64" ]]; then if [[ $arch == "aarch64" ]]; then
sudo apt install -y linux-headers-$(uname -r); source /etc/os-release
else os_codename=$VERSION_CODENAME
sudo apt install -y linux-modules-extra-$(uname -r); echo "Detected OS codename: $VERSION_CODENAME"
fi
if [ "$os_codename" = "trixie" ]; then
sudo apt install -y dkms
fi fi
# Clone the HailoRT driver repository # Clone the HailoRT driver repository
@ -47,3 +51,4 @@ 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!" echo "reboot your system to load the firmware!"
echo "Driver version: $(modinfo -F version hailo_pci)"