-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8ca7304
commit 0bfe322
Showing
22 changed files
with
198 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#! /bin/bash | ||
|
||
|
||
architecture="" | ||
case $(uname -m) in | ||
i386) architecture="386" ;; | ||
i686) architecture="386" ;; | ||
x86_64) architecture="amd64" ;; | ||
armv7l) architecture="arm" ;; | ||
aarch64) architecture="arm" ;; | ||
arm) dpkg --print-architecture | grep -q "arm64" && architecture="arm64" || architecture="arm" ;; | ||
esac | ||
|
||
echo $(uname -m) | ||
echo $architecture | ||
|
||
shell_cmd="" | ||
if [ "$architecture" == "arm" ] | ||
then | ||
shell_cmd="./opencr_ld_shell_arm" | ||
else | ||
shell_cmd="./opencr_ld_shell_x86" | ||
fi | ||
|
||
echo "OpenCR Update Start.." | ||
if (($#==2)) | ||
then | ||
$shell_cmd $1 115200 $2 1 | ||
else | ||
echo "wrong parameter " | ||
echo "update.sh <port> fw_name" | ||
fi | ||
|
||
exit |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# fish usbcam (video) | ||
# Bus 001 Device 010: ID 0ac8:0346 Z-Star Microelectronics Corp. | ||
SUBSYSTEM=="video4linux", KERNEL=="video[02468]", ATTRS{idVendor}=="0ac8", ATTRS{idProduct}=="0346", MODE="0666", SYMLINK+="fish" | ||
|
||
# normal usbcma (video) | ||
# Bus 001 Device 011: ID 1e4e:0109 Cubeternet | ||
SUBSYSTEM=="video4linux",KERNEL=="video[02468]", ATTRS{idVendor}=="1e4e", ATTRS{idProduct}=="0109", MODE="0666", SYMLINK+="normal" | ||
|
||
# 2D LiDAR (ttyUSB) | ||
# Bus 001 Device 016: ID 10c4:ea60 Silicon Labs CP210x UART Bridge | ||
SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", MODE="0666", SYMLINK+="lidar" | ||
|
||
# OpenCR (ttyACM) | ||
# Bus 001 Device 017: ID 0483:5740 STMicroelectronics Virtual COM Port | ||
SUBSYSTEM=="tty", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740", MODE="0666", SYMLINK+="opencr" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
file_dir=$(dirname "$(readlink -f "${0}")") | ||
|
||
# Copy the created USB rule | ||
sudo cp "${file_dir}"/*.rules /etc/udev/rules.d/ | ||
|
||
# Reload usb rule | ||
sudo udevadm control --reload-rules && \ | ||
udevadm trigger | ||
|
||
echo "load usb rule complete" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
file_dir=$(dirname "$(readlink -f "${0}")") | ||
|
||
|
||
rule_list=$(ls "${file_dir}"/*.rules) | ||
|
||
# Delete the created rule | ||
for i in $rule_list; do | ||
rule=${i#"${file_dir}"/} | ||
sudo rm /etc/udev/rules.d/"${rule}" | ||
done | ||
|
||
# Reload usb rule | ||
sudo udevadm control --reload-rules | ||
udevadm trigger | ||
|
||
echo "delete usb rule complete" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# 2d Lidar | ||
SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", ATTRS{serial}=="0001", MODE="0666", SYMLINK+="2D_LiDAR" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
= README | ||
:ex | ||
:toc: left | ||
|
||
== Automatic configuration | ||
|
||
[source, shell] | ||
---- | ||
git clone --depth 1 https://github.com/ycpss91255/user_config.git | ||
---- | ||
|
||
=== Base configuration | ||
[source, shell] | ||
---- | ||
sudo apt update && \ | ||
sudo apt upgrade -y && \ | ||
sudo apt autoremove -y && \ | ||
sudo apt autoclean | ||
---- | ||
|
||
=== WIFI configuration | ||
1. Install | ||
[source, shell] | ||
---- | ||
sudo apt install -y --no-install-recommends \ | ||
netplan.io nmtui && \ | ||
sudo cp <current_dir>/iwlwifi-ty-a0-gf-a0-59.ucode /lib/firmware && \ | ||
sudo mv /lib/firmware/iwlwifi-ty-a0-gf-a0.pnvm \ | ||
/lib/firmware/iwlwifi-ty-a0-gf-a0.pnvm.bak && \ | ||
---- | ||
2. varify | ||
* wifi connent 5G or 2.4G | ||
[soure, shell] | ||
---- | ||
ifconfig # | ||
iwconfig | ||
---- | ||
|
||
=== Power mode | ||
[source, shell] | ||
---- | ||
sudo nvpmodel -m 0 && \ | ||
sudo apt install -y --no-install-recommends \ | ||
python3-pip && \ | ||
sudo -H pip install -U jetson_stats && \ | ||
---- | ||
|
||
=== Docker reinstall | ||
|
||
=== SSH configuration | ||
|
||
|
||
== Manual configuration | ||
|
||
=== WIFI configuration | ||
|
||
=== Docker reinstall | ||
|
||
=== SSH configuration | ||
|
||
=== | ||
|
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
sudo apt update && \ | ||
sudo apt upgrade -y && \ | ||
sudo apt install -y --no-install-recommends \ | ||
python3-pip && \ | ||
sudo -H pip3 install -U jetson-stats && \ | ||
sudo systemctl restart jetson_stats.service && \ | ||
sudo nvpmodel -m 0 && \ | ||
sudo reboot | ||
|
||
# pwm fan | ||
# jtop | ||
|
||
# sudo sh -c 'echo X > /sys/class/thermal/cooling_deviceY/cur_state' | ||
# sudo jetson_clocks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env bash | ||
|
||
sudo cp iwlwifi.ucode /lib/firmware | ||
|
||
sudo mv /lib/firmware/iwlwifi-ty-a0-gf-a0.pnvm /lib/firmware/iwlwifi-ty-a0-gf-a0.pnvm.bak | ||
|
||
# look wifi 5g or 2.4g | ||
iwconfig | ||
|
||
# look current mode | ||
sudo nvpmodel --query | ||
|
||
# power mode | ||
sudo nvpmodel -m 0 | ||
|
||
# jetson htop | ||
sudo -H pip install -U jtop | ||
|
||
# | ||
sudo jetson_clocks | ||
|
||
# | ||
sudo apt install -y netplan.io | ||
|
||
# change tw to us language | ||
|
||
# docker reinstall | ||
# docker linux step | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
wifi_file="$(dirname "$(readlink -f "${0}")")"/iwlwifi-ty-a0-gf-a0-59.ucode | ||
sudo apt update && \ | ||
sudo apt upgrade && \ | ||
sudo cp "${wifi_file}" /lib/firmware/ && \ | ||
sudo mv /lib/firmware/iwlwifi-ty-a0-gf-a0.pnvm /lib/firmware/iwlwifi-ty-a0-gf-a0.pnvm.bak && \ | ||
sudo reboot -h |