glmark2

固件类型:官方提供的固件
固件文件名称:ITX-3588J-BE45-A1_Ubuntu20.04-Gnome-r211_v0.1.0a_2
固件下载地址:百度网盘
Log日志:firefly.zip

运行glmark2脚本出错,如下:

root@firefly:/usr/local/bin# sh test_glmark2_fullscreen.sh
test_glmark2_fullscreen.sh: 3: [[: not found
test_glmark2_fullscreen.sh: 5: Syntax error: "(" unexpected 

tchip_askquestions
firefly.zip (345 Bytes)

直接执行,前面不要加 sh

Liuth 发表于 2022-8-23 09:14
直接执行,前面不要加 sh

之前试过,也不行的,用root运行显示如下:

root@firefly:/usr/local/bin# ./test_glmark2_fullscreen.sh
./test_glmark2_fullscreen.sh: line 37: warning: command substitution: ignored null byte in input
tee: /sys/module/cpuidle/parameters/governor: Permission denied
tee: /sys/module/cpufreq/parameters/default_governor: Permission denied
performance
tee: /sys/devices/system/cpu/cpuidle/current_governor: Invalid argument 

那别管这个脚本了,直接手动执行这三行:
echo performance | tee $(find /sys/ -name *governor)
export XDG_RUNTIME_DIR=/run/user/1000
glmark2-es2-wayland --fullscreen
第一行报错不用管,第三行参数–fullscreen可选

Liuth 发表于 2022-8-24 14:18
那别管这个脚本了,直接手动执行这三行:
echo performance | tee $(find /sys/ -name *governor)
export …

收到,感谢!