HTOL 高温使用寿命测试(High Temperature Operating Life)
用于测试设备在高温下数周之后的功能/性能情况
一般是125°C(cpu温度传感器捕捉到的温度) 1000小时
测试固件要求
1.设备跑在最高频率(以R328为例,跑在1.0V @1.2G Hz的频率下),所以调频策略最好选userspace,手动设置最高频,但也可以跑performance模式,默认跑当前最高,所以也要把最高设置上去
如果当前设备最高没有配1.2G,要把1.2G配上,在源码dts里修改:
代码语言:text复制 tina/lichee/linux-4.9/arch/arm/boot/dts$ git diff .
diff --git a/arch/arm/boot/dts/sun8iw18p1-cowbell-perf1.dts b/arch/arm/boot/dts/
index 16a093d..4df621d 100644
--- a/arch/arm/boot/dts/sun8iw18p1-cowbell-perf1.dts
b/arch/arm/boot/dts/sun8iw18p1-cowbell-perf1.dts
@@ -45,7 45,7 @@
cpu_opp_l_table0: opp_l_table0 {
/* compatible = "operating-points-v2"; */
compatible = "allwinner,opp_l_table0";
- opp_count = <2>;
opp_count = <3>;
opp-shared;
opp00 {
@@ -61,6 61,13 @@
axi-bus-divide-ratio = <3>;
clock-latency-ns = <2000000>;
};
opp02 {
opp-hz = /bits/ 64 <1200000000>;
opp-microvolt = <1000000>;
axi-bus-divide-ratio = <3>;
clock-latency-ns = <2000000>;
};
};
};
};
把1.2G写进去:echo 1200000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_setspeed
确认是否已经跑在1.2G: cat /sys/devices/system/cpu/cpufreq/policy0/scaling_cur_freq
2.把温控去掉,不然设备会因为跑在高温下降频了,不能起到测试效果
make_kernelmenuconfig -> Device Driver -> Generic Thermal sysfs driver ,这个是温度控制器,去掉就不会温度调节了
3.基本功能包括WiFibtmicaudioled等功能要编进固件里,测试时间到了之后,要测试设备是否依然全功能完好
wifi命令:wifi_connect_ap_test "ssid" "password"
bt命令:bt_tesg
录音命令:arecord -D "hw:0,0" -c 2 -r 44100 -f s24_le /tmp/record.wav
播放声音命令:aplay -D "hw:0,0" /tmp/record.wav
led命令:
红灯亮:echo 255 > /sys/devices/platform/soc/ledc/leds/sunxi_led0r/brightness
红灯灭:echo 0 > /sys/devices/platform/soc/ledc/leds/sunxi_led0r/brightness
绿灯亮:echo 255 > /sys/devices/platform/soc/ledc/leds/sunxi_led0g/brightness
绿灯亮:echo 0 > /sys/devices/platform/soc/ledc/leds/sunxi_led0g/brightness
蓝灯亮:echo 255 > /sys/devices/platform/soc/ledc/leds/sunxi_led0b/brightness
蓝灯灭:echo 0 > /sys/devices/platform/soc/ledc/leds/sunxi_led0b/brightness
4.音频类产品同时打开唤醒demo 播放音乐,模拟真实场景
make menuconfig -> Thirdparty -> demo选中,或者其他demo选中
修改时间:date -s "2018-12-25 00:01:01"
5.memtester 要在,跑demo剩余的内存都用来跑memtester
make menuconfig -> utilities -> memtester选中
memtester命令:memtester 10M (申请10M内存,不加数字参数默认无限循环测试,加数字参数则代表循环测试的次数)
6.dram: 使用推荐值/默认值528M,如果要改可以echo允许的数值(最小240)到/sys/firmware/devicetree/base/dram/dram_clk 里或者到sys_config.fex里,关键字也是dram_clk