From 47533ce693296ec87b51a789ac6863776245fe78 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Wed, 22 Dec 2021 08:45:28 +0100 Subject: [PATCH] rootfsinstall: rpi: fix and improvements in config.txt; cmdline.txt: set to enable ondemand governor at boot --- src/rootfsinstall.sh | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/rootfsinstall.sh b/src/rootfsinstall.sh index 8f28637..9de4c1e 100755 --- a/src/rootfsinstall.sh +++ b/src/rootfsinstall.sh @@ -582,6 +582,7 @@ elif [ "$TARGETDEVICE" = "rpi" -o "$TARGETDEVICE" = "rpi64" ]; then # cmdline.txt : parameters passed to the kernel on boot echo "\ dwc_otg.lpm_enable=0 \ +cpufreq.default_governor=ondemand \ root=/dev/mmcblk0p2 rw \ rootfstype=$SYSTEMFSTYPE \ quiet \ @@ -592,23 +593,31 @@ $CMDLINE_ADD" > $BOOTMP/cmdline.txt # Create the kernel configuration file [ ! -e $ROOTMP/boot/config.txt ] && \ echo "\ -[rp1] +[pi1] arm_freq=800 -force_turbo=1 gpu_mem=100 disable_overscan=1 -[rp2] +[pi2] gpu_mem=128 +[pi3] +#arm_freq=1350 +#core_freq=500 +#over_voltage=4 +[pi4] +#over_voltage=6 +#arm_freq=2000 +#gpu_freq=750 +gpu_mem=256 +dtoverlay=vc4-fkms-v3d [all] start_x=1 framebuffer_depth=32 framebuffer_ignore_alpha=1 -dtparam=audio=on" > $BOOTMP/config.txt +dtparam=audio=on +hdmi_force_hotplug=1" > $BOOTMP/config.txt if [ "$TARGETDEVICE" = "rpi64" ]; then echo "\ -gpu_mem=128 -dtoverlay=vc4-fkms-v3d arm_64bit=1" >> $BOOTMP/config.txt fi ## Enable HDMI mode rather than DVI, if required