rootfsinstall: rpi: fix and improvements in config.txt; cmdline.txt: set to enable ondemand governor at boot
This commit is contained in:
parent
95565a56ef
commit
47533ce693
@ -582,6 +582,7 @@ elif [ "$TARGETDEVICE" = "rpi" -o "$TARGETDEVICE" = "rpi64" ]; then
|
|||||||
# cmdline.txt : parameters passed to the kernel on boot
|
# cmdline.txt : parameters passed to the kernel on boot
|
||||||
echo "\
|
echo "\
|
||||||
dwc_otg.lpm_enable=0 \
|
dwc_otg.lpm_enable=0 \
|
||||||
|
cpufreq.default_governor=ondemand \
|
||||||
root=/dev/mmcblk0p2 rw \
|
root=/dev/mmcblk0p2 rw \
|
||||||
rootfstype=$SYSTEMFSTYPE \
|
rootfstype=$SYSTEMFSTYPE \
|
||||||
quiet \
|
quiet \
|
||||||
@ -592,23 +593,31 @@ $CMDLINE_ADD" > $BOOTMP/cmdline.txt
|
|||||||
# Create the kernel configuration file
|
# Create the kernel configuration file
|
||||||
[ ! -e $ROOTMP/boot/config.txt ] && \
|
[ ! -e $ROOTMP/boot/config.txt ] && \
|
||||||
echo "\
|
echo "\
|
||||||
[rp1]
|
[pi1]
|
||||||
arm_freq=800
|
arm_freq=800
|
||||||
force_turbo=1
|
|
||||||
gpu_mem=100
|
gpu_mem=100
|
||||||
disable_overscan=1
|
disable_overscan=1
|
||||||
[rp2]
|
[pi2]
|
||||||
gpu_mem=128
|
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]
|
[all]
|
||||||
start_x=1
|
start_x=1
|
||||||
framebuffer_depth=32
|
framebuffer_depth=32
|
||||||
framebuffer_ignore_alpha=1
|
framebuffer_ignore_alpha=1
|
||||||
dtparam=audio=on" > $BOOTMP/config.txt
|
dtparam=audio=on
|
||||||
|
hdmi_force_hotplug=1" > $BOOTMP/config.txt
|
||||||
|
|
||||||
if [ "$TARGETDEVICE" = "rpi64" ]; then
|
if [ "$TARGETDEVICE" = "rpi64" ]; then
|
||||||
echo "\
|
echo "\
|
||||||
gpu_mem=128
|
|
||||||
dtoverlay=vc4-fkms-v3d
|
|
||||||
arm_64bit=1" >> $BOOTMP/config.txt
|
arm_64bit=1" >> $BOOTMP/config.txt
|
||||||
fi
|
fi
|
||||||
## Enable HDMI mode rather than DVI, if required
|
## Enable HDMI mode rather than DVI, if required
|
||||||
|
Loading…
Reference in New Issue
Block a user