95 lines
1.4 KiB
Markdown
95 lines
1.4 KiB
Markdown
|
|
|
|
# Pi Zero 2 W Config Tunning
|
|
|
|
## 1.Config and cmdline
|
|
|
|
Config add:
|
|
|
|
```
|
|
device_tree=bcm2710-rpi-zero-2.dtb
|
|
gpu_mem=16
|
|
gpu_mem_512=16
|
|
```
|
|
|
|
Cmdline add:
|
|
|
|
```
|
|
smsc95xx.turbo_mode=N cma=16M CMA=16M
|
|
```
|
|
|
|
**Note:**
|
|
|
|
The min GPU size is >=16M
|
|
|
|
## 2.Disable BT
|
|
|
|
Add:
|
|
|
|
```
|
|
dtoverlay=disable-bt
|
|
```
|
|
|
|
## 3.OverClock
|
|
|
|
Add:
|
|
|
|
```
|
|
boot_delay=1
|
|
arm_boost=1
|
|
temp_limit=85
|
|
temp_soft_limit=85
|
|
arm_freq=1366
|
|
current_limit_override=1
|
|
over_voltage=8
|
|
```
|
|
|
|
## 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
|
|
```
|
|
|
|
## 7. Tools (info)
|
|
|
|
```
|
|
apt install neofetch screenfetch -y
|
|
```
|
|
|
|
Used:
|
|
|
|
**screenfetch** or neofetch
|
|
|
|
|
|
#### 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
|
|
```
|