Add CAN-driven lazy inference with resident TensorRT engines

This commit is contained in:
zmv
2026-09-23 20:25:34 +08:00
parent 26c5bfb88d
commit 647e5b5f79
31 changed files with 1234 additions and 129 deletions
+3 -1
View File
@@ -11,7 +11,9 @@ fi
for driver in max9295 max9296 sgx-yuv-gmsl2; do
file="$root/bin/drivers/$driver.ko"
[[ -f "$file" ]] || { echo "Missing driver: $file" >&2; exit 1; }
[[ "$(modinfo -F vermagic "$file")" == "$(uname -r) "* ]] || { echo "Kernel mismatch: $file" >&2; exit 1; }
vermagic="$(modinfo -F vermagic "$file")"
# Some supplied drivers omit this metadata; normal insmod still validates them.
[[ -z "$vermagic" || "$vermagic" == "$(uname -r) "* ]] || { echo "Kernel mismatch: $file" >&2; exit 1; }
done
loaded max9295 || root_command insmod "$root/bin/drivers/max9295.ko"
loaded max9296 || root_command insmod "$root/bin/drivers/max9296.ko"