Debian-Pi-Aarch64/docs/others.md

89 lines
2.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#### 再次重申!我们是团队,企业级团队出品的系统,不要拿个人作品来和我们比较。
![openfans](../images/openfans.png)    ![amatfan.png](../images/amatfan.png)
        [OPENFANS开源社区](http://www.openfans.org)        [树莓派爱好者基地](http://rpifans.cn/)            **荣誉出品 **
----
#### GLES2
```shell
apt install libgles2-mesa-dev
apt install libgles2-mesa
```
#### /etc/modules-load.d/modules.conf
```shell
fbtft
````
#### Disable cgroup
In cmdline.txt remove defined cgoup args and add:
```shell
cgroup_disable=cpuset,cpuacct,blkio,memory,devices,freezer,net_cls,perf_event,net_prio,pids
```
#### ssh glxinfo
```shell
export DISPLAY=:0
export XAUTHORITY=/var/lib/lightdm/.Xauthority
glxinfo -B
vblank_mode=0 glxgears -info
```
#### initrd
```shell
apt update ; apt install initramfs-tools -y
mkinitramfs -o /boot/initrd.img-$(uname -r)
#### /var/log/Xorg.0.log
```shell
(WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
sudo apt install xfonts-cyrillic
```
#### chromium
```shell
rm -rf /usr/sbin/chromium_mod-xface.sh 2>/dev/null;\
cat <<EOF >/usr/sbin/chromium_mod-xface.sh
#!/bin/bash
export PICHROMIUMMODS='/etc/chromium.d/pi-mods'
touch \$PICHROMIUMMODS 2>/dev/null
echo 'CHROMIUM_FLAGS=' > \$PICHROMIUMMODS
sed -i 's/CHROMIUM_FLAGS=/CHROMIUM_FLAGS="\$CHROMIUM_FLAGS --enable-gpu-rasterization --enable-native-gpu-memory-buffers --disable-quic --enable-checker-imaging --enable-tcp-fast-open --enable-fast-unload --enable-experimental-canvas-features --enable-scroll-prediction --enable-simple-cache-backend --answers-in-suggest --max-tiles-for-interest-area=512 --num-raster-threads=4 --default-tile-height=512 --disk-cache-size=0 --use-gl=egl --gles --enable-zero-copy"/g' \$PICHROMIUMMODS
EOF
sudo chmod +x /usr/sbin/chromium_mod-xface.sh
## --disable-gpu-compositing to use vc4 ??
## --disable-gpu-compositing
```
#### libGL.so armhf
```shell
apt install libgl1-mesa-dri:armhf libgl1-mesa-glx:armhf glx-alternative-mesa:armhf
```
### glmark2 build
```shell
apt-get install libgegl-0.2-0 libgfortran3 libgimp2.0 libgl1-mesa-dev \
libgles2-mesa-dev libglew-dev libglew1.10 libglib2.0-bin libglib2.0-data \
libglib2.0-dev libglu1-mesa-dev
apt install libpng-dev libx11-dev pkg-config libjpeg-dev
sudo git clone https://github.com/LeMaker/glmark2.git
cd glmark2
sudo ./waf configure --with-flavors=x11-gl,x11-glesv2
sudo ./waf
sudo ./waf install
```