1#!/bin/bash -e 2 3PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 4 5export mpp_syslog_perror=1 6 7KERNEL_VERSION=$(cat /proc/version) 8if [[ $KERNEL_VERSION =~ "4.4" ]]; then 9 echo 0x100 > /sys/module/rk_vcodec/parameters/debug 10else 11 echo 0x100 > /sys/module/rk_vcodec/parameters/mpp_dev_debug 12fi 13 14echo performance | tee $(find /sys/ -name *governor) /dev/null || true 15 16touch /dev/video-dec0 17ln -sf /usr/lib/libmali.so /usr/lib/libMali.so.1 18 19if [ -e "/usr/bin/chromium" ] ; 20then 21 chromium --no-sandbox --gpu-sandbox-start-early --ozone-platform=wayland --ignore-gpu-blacklist --enable-wayland-ime "file:///oem/SampleVideo_1280x720_5mb.mp4" 22else 23 echo "Please sure the config/rockchip_xxxx_defconfig include "chromium.config"........" 24fi 25echo "the governor is performance for now, please restart it........" 26