Skip to content

Commit

Permalink
initial upload (no kernel files)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed Aug 9, 2024
1 parent 85859d3 commit dec3a45
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 8 deletions.
Binary file added Arducam_RK_driver/arducam-iqfiles.deb
Binary file not shown.
14 changes: 14 additions & 0 deletions Arducam_RK_driver/deploy_driver.sh
Original file line number Diff line number Diff line change
@@ -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

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions checks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"enabled":true,"categories":{}}
10 changes: 2 additions & 8 deletions rk_install_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import os
import curses

debug = 0
debug = 1
# 执行终端命令
def sh_(cmd):
try:
Expand Down Expand Up @@ -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/'
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit dec3a45

Please sign in to comment.