diff --git a/Arducam_RK_driver/arducam-iqfiles.deb b/Arducam_RK_driver/arducam-iqfiles.deb new file mode 100644 index 0000000..e4f00b4 Binary files /dev/null and b/Arducam_RK_driver/arducam-iqfiles.deb differ diff --git a/Arducam_RK_driver/deploy_driver.sh b/Arducam_RK_driver/deploy_driver.sh new file mode 100644 index 0000000..1ce0175 --- /dev/null +++ b/Arducam_RK_driver/deploy_driver.sh @@ -0,0 +1,14 @@ +#!/bin/bash +model=$(cat /proc/device-tree/model) +echo "$model" +if [ "$model" == "Radxa ROCK 5A" ]; then + cd $(cd "$(dirname "$0")" && pwd)/rock-5a/ +elif [ "$model" == "Radxa ROCK 5B" ]; then + cd $(cd "$(dirname "$0")" && pwd)/rock-5b/ +else + echo "Platform does not support!!!" + exit +fi +echo "Install arducam iqfiles..." +sudo dpkg -i ../arducam-iqfiles.deb + diff --git a/Arducam_RK_driver/rock-5a/rock-5a-arducam-imx519.dtbo b/Arducam_RK_driver/rock-5a/rock-5a-arducam-imx519.dtbo new file mode 100644 index 0000000..f4efc67 Binary files /dev/null and b/Arducam_RK_driver/rock-5a/rock-5a-arducam-imx519.dtbo differ diff --git a/Arducam_RK_driver/rock-5a/rock-5a-arducam-pivariety.dtbo b/Arducam_RK_driver/rock-5a/rock-5a-arducam-pivariety.dtbo new file mode 100644 index 0000000..b0efb4c Binary files /dev/null and b/Arducam_RK_driver/rock-5a/rock-5a-arducam-pivariety.dtbo differ diff --git a/Arducam_RK_driver/rock-5b/rock-5b-arducam-imx519.dtbo b/Arducam_RK_driver/rock-5b/rock-5b-arducam-imx519.dtbo new file mode 100644 index 0000000..f00d018 Binary files /dev/null and b/Arducam_RK_driver/rock-5b/rock-5b-arducam-imx519.dtbo differ diff --git a/Arducam_RK_driver/rock-5b/rock-5b-arducam-pivariety.dtbo b/Arducam_RK_driver/rock-5b/rock-5b-arducam-pivariety.dtbo new file mode 100644 index 0000000..0babb94 Binary files /dev/null and b/Arducam_RK_driver/rock-5b/rock-5b-arducam-pivariety.dtbo differ diff --git a/checks.json b/checks.json new file mode 100644 index 0000000..8b70b53 --- /dev/null +++ b/checks.json @@ -0,0 +1 @@ +{"enabled":true,"categories":{}} \ No newline at end of file diff --git a/rk_install_script.py b/rk_install_script.py index de3377f..ac2e61f 100644 --- a/rk_install_script.py +++ b/rk_install_script.py @@ -5,7 +5,7 @@ import os import curses -debug = 0 +debug = 1 # 执行终端命令 def sh_(cmd): try: @@ -78,7 +78,6 @@ def check_folder(path): return False -# TODO 需要增加下载包(会有多版本内核),解压后安装 def deploy_camera_driver(platform): if platform == "5A": folder_path = 'Arducam_RK_driver/rock-5a/' @@ -216,12 +215,7 @@ def show_gui(stdscr, title, title_len, options): uname_version = sh_("uname -r | grep -oP '\d+\.\d+\.\d+' | head -n1").strip() - Arducam_RK_driver_status = check_folder("Arducam_RK_driver") - if Arducam_RK_driver_status == False: - run_command("rm Arducam_RK_driver_5.10.160.tar.gz") - run_command("wget https://github.com/ArduCAM/Arducam_RK_Driver/releases/download/arducam_rk_driver_v0.0.1/Arducam_RK_driver_5.10.160.tar.gz") - run_command("tar avxf Arducam_RK_driver_5.10.160.tar.gz") - run_command("rm -rf Arducam_RK_driver && mv Arducam_RK_driver_5.10.160 Arducam_RK_driver") + Arducam_RK_driver_status = check_folder("Arducam_RK_driver") if uname_version != "5.10.160": deploy_camera_driver(device_model) install_dtbo(device_model, camera_name)