Debian-Pi-Aarch64/docs/pi_zero_2_w_Config.md

69 lines
1.1 KiB
Markdown

# Pi Zero 2 W Config Tunning
## 1.Config
Add:
```
device_tree=bcm2710-rpi-zero-2.dtb
```
## 2.Disable BT
Add:
```
dtoverlay=disable-bt
```
## 3.OverClock
Add:
```
temp_limit=85
temp_soft_limit=85
arm_freq=1200
over_voltage=6
```
## 4.Tunning: Disable vc cma and video code
Add file: **/etc/modprobe.d/blacklist.conf**
```
blacklist bcm2835_codec
blacklist bcm2835_v4l2
blacklist bcm2835_isp
blacklist bcm2835_mmal_vchiq
blacklist vc_sm_cma
```
## 5.Service
```
systemctl stop libvirt-guests; systemctl mask libvirt-guests; \
systemctl stop libvirtd; systemctl mask libvirtd
```
## 6.Optional:
Faster speed instead of running programs with large memory requirements (compressed memory)
Undo the following from cmdline:
```
cgroup_enable=1 cgroup_memory=1 cgroup_enable=cpuset cgroup_enable=memory swapaccount=1
zswap.enabled=1 zswap.zpool=z3fold zswap.compressor=lz4 zswap.max_pool_percent=25
```
#### initrd:
```
rm -rf /boot/initrd.img ; mkinitramfs -o /boot/initrd.img; \
echo 'initramfs initrd.img followkernel' >>/boot/config.txt; \
cat /boot/config.txt|tail -n1 ;\
sync; sync; reboot
```