Since last post, I have been in contact with ASUS Support team to resolve an issue we experienced on 1-wire devices as it loses connection to sensor after a while. After several attempts and tries, we finally resolved the issue finding that the minimum CPU frequency needs to be adjusted on Tinker Board. The default on Tinker Board is 126000 which needs to be set to 600000. By adjusting this change, sensor will be stable and reading data will be more quicker than before. You can adjust your CPU frequency by simply passing this command. - $ sudo -i
- # echo 600000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq
复制代码
Should you need to set it permanently, consider init.d service to set it at boot time.
(Update Version 2.0 , 28/October/2017)
Tinker Board has added Overlays to it's kernel. Therefore, U-Boot has to load those overlays through "hw_intf.conf" file. This download inclueds all you need to setup Dallas DS18B20 Temperature Sensor on your Tinker Board.
Download the file, extract it on your SD card somewhere in a folder and copy(extract) the content of each folder to relevant path on your rootfs: - - cp ./boot/* /boot
- - cp ./lib_modules/Modules-4.4.71-ELAR-Systems.tar.gz /lib/modules
- - cp ./u-boot/TinkerBoard-Uboot.img /
- - cd /lib/modules
- - tar xvf Modules-4.4.71-ELAR-Systems.tar.gz && rm Modules-4.4.71-ELAR-Systems.tar.gz
- - cd /
- - dd if=TinkerBoard-Uboot.img of=/dev/mmcblk0 seek=64
复制代码
Note: Be sure that the dd command has been installed on your Tinker Board
########################################################################
# ELAR Systems, ASUS Tinker Board Linux 4.4.71 Kernel
# Custom Linux Kernel 4.4.71 Update for ASUS Tinker Board
# Copyright (C) 2017 ELAR Systems
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
######################################################################## (选择包:TinkerBoard-Temperature Sensor DS181B20.zip)
|