From bbd0a9c539f16ba058fb19dda1e71c65c620f81f Mon Sep 17 00:00:00 2001 From: goodtft Date: Wed, 21 May 2025 11:28:49 +0100 Subject: [PATCH] modify 32bit system driver --- boot/config-nomal-12.10-32.txt | 48 ++++++++++++++++++++++++++++++++++ system_config.sh | 6 ++--- 2 files changed, 51 insertions(+), 3 deletions(-) create mode 100755 boot/config-nomal-12.10-32.txt diff --git a/boot/config-nomal-12.10-32.txt b/boot/config-nomal-12.10-32.txt new file mode 100755 index 0000000..039abb7 --- /dev/null +++ b/boot/config-nomal-12.10-32.txt @@ -0,0 +1,48 @@ +# For more options and information see +# http://rptl.io/configtxt +# Some settings may impact device functionality. See link above for details + +# Uncomment some or all of these to enable the optional hardware interfaces +#dtparam=i2c_arm=on +#dtparam=i2s=on +#dtparam=spi=on + +# Enable audio (loads snd_bcm2835) +dtparam=audio=on + +# Additional overlays and parameters are documented +# /boot/firmware/overlays/README + +# Automatically load overlays for detected cameras +camera_auto_detect=1 + +# Automatically load overlays for detected DSI displays +display_auto_detect=1 + +# Automatically load initramfs files, if found +auto_initramfs=1 + +# Enable DRM VC4 V3D driver +#dtoverlay=vc4-kms-v3d +max_framebuffers=2 + +# Don't have the firmware create an initial video= setting in cmdline.txt. +# Use the kernel's default instead. +disable_fw_kms_setup=1 + +# Disable compensation for displays with overscan +disable_overscan=1 + +# Run as fast as firmware / board allows +arm_boost=1 + +[cm4] +# Enable host mode on the 2711 built-in XHCI USB controller. +# This line should be removed if the legacy DWC2 controller is required +# (e.g. for USB device mode) or if USB support is not required. +otg_mode=1 + +[cm5] +dtoverlay=dwc2,dr_mode=host + +[all] diff --git a/system_config.sh b/system_config.sh index 600607c..d953a6e 100755 --- a/system_config.sh +++ b/system_config.sh @@ -27,14 +27,14 @@ sudo cp -rf ./boot/config-nomal-10.9-32.txt ./boot/config.txt.bak else if [[ "$deb_version" < "10.9" ]] || [[ "$deb_version" = "10.9" ]]; then sudo cp -rf ./boot/config-nomal-10.9-32.txt ./boot/config.txt.bak -elif [[ "$deb_version" < "12.1" ]]; then +elif [[ "$deb_version" < "12.10" ]]; then sudo cp -rf ./boot/config-nomal-11.4-32.txt ./boot/config.txt.bak else -sudo cp -rf ./boot/config-nomal-12.1-32.txt ./boot/config.txt.bak +sudo cp -rf ./boot/config-nomal-12.10-32.txt ./boot/config.txt.bak fi fi elif [ $hardware_arch -eq 64 ]; then -if [[ "$deb_version" < "12.1" ]]; then +if [[ "$deb_version" < "12.10" ]]; then sudo cp -rf ./boot/config-nomal-11.4-64.txt ./boot/config.txt.bak else sudo cp -rf ./boot/config-nomal-12.10-64.txt ./boot/config.txt.bak