请选择 进入手机版 | 继续访问电脑版

ASUS-TinkerBoard-Kernel4.4.71-ELAR-Systems (Supports 1-Wire Sensors)

[复制链接]
peter 发表于 2018-7-11 17:47:25 | 显示全部楼层 |阅读模式
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.
  1. $ sudo -i
  2. # 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:
  1. - cp ./boot/* /boot
  2. - cp ./lib_modules/Modules-4.4.71-ELAR-Systems.tar.gz /lib/modules
  3. - cp ./u-boot/TinkerBoard-Uboot.img /
  4. - cd /lib/modules
  5. - tar xvf Modules-4.4.71-ELAR-Systems.tar.gz && rm Modules-4.4.71-ELAR-Systems.tar.gz
  6. - cd /
  7. - 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.
#
########################################################################
下载地址:链接:https://pan.baidu.com/s/1__T-ViYbG8ud3vJp7bmL-w 密码:21qr
(选择包:TinkerBoard-Temperature Sensor DS181B20.zip

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册用户

本版积分规则

 
QQ在线咨询
点击这里给我发消息
点击这里给我发消息
电话咨询
0755-23012315
快速回复 返回顶部 返回列表