Update for Orange Pi 3B v1.0.4

This commit is contained in:
baiywt
2023-10-26 13:34:11 +08:00
parent ed4ced31b6
commit a0a0aeaaa6
10 changed files with 39 additions and 10 deletions

View File

@@ -298,6 +298,7 @@ prepare_board() {
/usr/bin/hciattach_opi -n -s 1500000 /dev/ttyBT0 sprd &
;;
orangepicm4|orangepi3b)
echo host > /sys/devices/platform/fe8a0000.usb2-phy/otg_mode
if [[ -c /dev/mpp_service ]]; then
chmod 666 /dev/mpp_service

View File

@@ -1,4 +1,4 @@
#!/bin/bash
sudo bash -c "echo device > /sys/kernel/debug/usb/fc000000.usb/mode"
sudo bash -c "echo peripheral > /sys/devices/platform/fe8a0000.usb2-phy/otg_mode"
sudo systemctl restart usbdevice