cm5: camera bring-up defaults

This commit is contained in:
OrangePi CM5 Builder 2026-05-12 08:51:18 +08:00
parent 0f4917bd56
commit 0e2252792f
3 changed files with 40131 additions and 6223 deletions

View File

@ -11,4 +11,5 @@ BOOT_SUPPORT_SPI="yes"
SKIP_BOOTSPLASH="yes" # Skip boot splash patch, conflicts with CONFIG_VT=yes SKIP_BOOTSPLASH="yes" # Skip boot splash patch, conflicts with CONFIG_VT=yes
DISTRIB_TYPE_LEGACY="bullseye bookworm focal jammy" DISTRIB_TYPE_LEGACY="bullseye bookworm focal jammy"
BOOTFS_TYPE="fat" BOOTFS_TYPE="fat"
REVISION="1.0.0" REVISION="1.0.2"
DEFAULT_OVERLAYS="opicm5-imx586-j800 opicm5-ov13850-j6 opicm5-ov13850-j4"

File diff suppressed because it is too large Load Diff

View File

@ -2,9 +2,12 @@
Description=Manage USB device functions Description=Manage USB device functions
DefaultDependencies=no DefaultDependencies=no
After=local-fs.target After=local-fs.target
After=sys-kernel-debug.mount
Requires=sys-kernel-debug.mount
[Service] [Service]
Type=forking Type=forking
ExecStartPre=/bin/sh -c 'echo peripheral > /sys/devices/platform/fd5d0000.syscon/fd5d0000.syscon:usb2-phy@0/otg_mode || true; if [ -e /sys/bus/platform/devices/fc000000.usb/xhci-hcd.8.auto ]; then echo xhci-hcd.8.auto > /sys/bus/platform/drivers/xhci-hcd/unbind || true; fi; echo fc000000.usb > /sys/bus/platform/drivers/dwc3/unbind || true; sleep 1; echo fc000000.usb > /sys/bus/platform/drivers/dwc3/bind || true'
ExecStart=/usr/bin/usbdevice start ExecStart=/usr/bin/usbdevice start
ExecStop=/usr/bin/usbdevice stop ExecStop=/usr/bin/usbdevice stop