加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

Rockchip之Linux的常规测试

(2018-12-26 14:10:44)
分类: Rockchip之linux深入学习
ji

对于Buildroot有一些常规测试放在rockchip_test目录用于自动测试.
[root@rk3399:/rockchip_test]# ls
audio             cpu               gpu               suspend_resume
auto_reboot       ddr               npu               video
bluetooth         dvfs              recovery_test     wifi
camera            flash_test        rockchip_test.sh


[root@rk3399:/rockchip_test]# ./rockchip_test.sh 

*****************************************************
ddr test :            1 (memtester & stressapptest)
cpufreq test:         2 (cpufreq stresstest)
flash stress test:    3
bluetooth test:       4 (bluetooth on&off test)
audio test:           5
recovery test:        6 (default wipe all)
suspend_resume test:  7 (suspend & resume)
wifi test:            8
ethernet test:        9
auto reboot test:     10
ddr freq scaling test 11
npu stress test       12
camera test           13 (use rkisp_demo)
video test            14 (use gstreamer-wayland)
gpu test              15 (use glmark2)
*****************************************************

上面一些15项基本测试.

1.屏幕旋转问题
Buildroot上: 

/etc/xdg/weston/weston.ini 配置文件中写入:

[output]

name=eDP-1

transform=90

其中name需要根据你实际的情况写入,通过

[root@rk3399:/]# ls /sys/class/drm/

card0 card0-HDMI-A-1  controlD64      version card0-DP-1      card0-eDP-1     renderD128

查看: 比如这里用的drm设备是card0-eDP-1, 那么name="eDP-1"

Ui launcher上也需要更改:

app/QLauncher$ git diff

diff --git a/qml/main.qml b/qml/main.qml

index c4e4fd9..3949520 100644

--- a/qml/main.qml

+++ b/qml/main.qml

@@ -29,8 +29,8 @@ ApplicationWindow {

     color: Config.Theme.colorApplicationWindow

  width:  Screen.width

  height: Screen.height

  width:  Screen.height

  height: Screen.width


Debian上:
su linaro -c "DISPLAY=:0 xrandr --output HDMI-1 --above DP-1"
其中--above 可以代換成 right-of, left-of, below, same-as, preferred, off 等等

xrandr来设置屏幕的旋转

2. 音频测试

用系统自导alsa, aplay/arecord去测试

1) 链接蓝牙音箱进行播放.
killall bluetoothd 

hciconfig hci0 up
sleep 1
/usr/libexec/bluetooth/bluetoothd -C -n -d -E &
sleep 1
hciconfig hci0 up
sleep 1
hciconfig hci0 piscan
sleep 1
hciconfig hci0 name "BT_NAME" 
sleep 1
hciconfig hci0 down
sleep 1
hciconfig hci0 up
sleep 1
killall bluealsa bluealsa-aplay
sleep 1
bluealsa --profile=a2dp-source &
sleep 1
hciconfig hci0 class 0x480400


其实配置启动蓝牙source模式

连上蓝牙音响后:
可以使用这条命令播放音乐:
aplay -D bluealsa:HCI=hci0,DEV=40:9F:38:7E:9C:92(地址可以通过 hcitool con获取),PROFILE=a2dp(根据实际情况填写) /eom/xx.wav

注意这里播放的音频的格式只能PCM, wav等格式,Mp3这种带有编码的这边需要解码器才能播放


3. reboot测试

Buildroot上:

[root@rk3399pro:/rockchip_test]# ./rockchip_test.sh 

选择10进行reboot测试,(auto reboot test:     10)

echo off > /data/cfg/rockchip_test/reboot_cnt 可关闭测试

Debian:

运行/usr/local/bin/test_reboot.sh 或者在/etc/rc.local中添加test_reboot.sh自动测试.


4. emmc读写性能分析

http://blog.sina.com.cn/s/blog_a6559d920102yu4t.html


0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有