mirror of
https://github.com/bleackstorm/SteamFrame-FPV-Control-Center.git
synced 2026-12-03 07:31:57 +01:00
feat(radxa): auto-enable UART9_M1 (/dev/ttyS9 Pin 21/24) in setup script & docs
This commit is contained in:
1 parent
92c4d439ae
commit
fabcfc1a9b
2 files changed
+17
-7
No files matched your search
@@ -15,6 +15,17 @@ ssh "${RADXA_HOST}" bash -s << 'EOF'
|
||||
set -euo pipefail
|
||||
chmod +x /usr/local/bin/radxa_g29_relay.py
|
||||
|
||||
# Activer l'overlay UART9_M1 (/dev/ttyS9 : Pin 21 TX / Pin 24 RX) si disponible
|
||||
if [ -f /boot/dtbo/rk3568-uart9-m1.dtbo.disabled ] && [ ! -f /boot/dtbo/rk3568-uart9-m1.dtbo ]; then
|
||||
cp /boot/dtbo/rk3568-uart9-m1.dtbo.disabled /boot/dtbo/rk3568-uart9-m1.dtbo
|
||||
fi
|
||||
if [ -f /boot/dtbo/rk3568-uart9-m1.dtbo ] && [ -f /boot/extlinux/extlinux.conf ]; then
|
||||
if ! grep -q "rk3568-uart9-m1.dtbo" /boot/extlinux/extlinux.conf; then
|
||||
sed -i 's|fdtoverlays \(.*\)|fdtoverlays \1 /boot/dtbo/rk3568-uart9-m1.dtbo|' /boot/extlinux/extlinux.conf
|
||||
echo "[*] Overlay rk3568-uart9-m1.dtbo ajouté dans extlinux.conf (un reboot activera /dev/ttyS9)"
|
||||
fi
|
||||
fi
|
||||
|
||||
cat << 'UNIT' > /etc/systemd/system/steamframe-g29-relay.service
|
||||
[Unit]
|
||||
Description=SteamFrame FPV Unified G29/CRSF <-> USB0 UDP Relay
|
||||
|
||||
Reference in new issue
Block a user