root@bbb:~# cat one-wire-temp-sensor_p8-11.sh
#!/bin/bash
#
# BBB One Wire Temperature sensor (DS18B20)
#
sName='w1';
sInput=$sName'.dts';
sOutput=${sName:0:16}'-00A0.dtbo';
# Build
/usr/local/bin/dtc -O dtb -o "$sOutput" -b 0 -@ "$sInput";
cp $sOutput /lib/firmware/;
echo "$sName" > /sys/devices/bone_capemgr.9/slots;
root@bbb:~# cat /sys/kernel/debug/gpio
GPIOs 0-31, gpio:
gpio-6 (mmc_cd ) in lo
GPIOs 32-63, gpio:
gpio-45 (w1 ) in hi
gpio-52 (eMMC_RSTn ) out lo
gpio-53 (beaglebone:green:usr) out lo
gpio-54 (beaglebone:green:usr) out lo
gpio-55 (beaglebone:green:usr) out hi
gpio-56 (beaglebone:green:usr) out lo
GPIOs 64-95, gpio:
GPIOs 96-127, gpio:
root@bbb:~# cat /sys/devices/bone_capemgr.9/slots
0: 54:PF---
1: 55:PF---
2: 56:PF---
3: 57:PF---
4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
5: ff:P-O-- Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI
6: ff:P-O-- Bone-Black-HDMIN,00A0,Texas Instrument,BB-BONELT-HDMIN
7: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART1
8: ff:P-O-L Override Board Name,00A0,Override Manuf,w1root@bbb:~# dmesg | tail -n11
[ 167.078501] bone-capemgr bone_capemgr.9: part_number 'w1', version 'N/A'
[ 167.078681] bone-capemgr bone_capemgr.9: slot #8: generic override
[ 167.078726] bone-capemgr bone_capemgr.9: bone: Using override eeprom data at slot 8
[ 167.078775] bone-capemgr bone_capemgr.9: slot #8: 'Override Board Name,00A0,Override Manuf,w1'
[ 167.079020] bone-capemgr bone_capemgr.9: slot #8: Requesting part number/version based 'w1-00A0.dtbo
[ 167.079067] bone-capemgr bone_capemgr.9: slot #8: Requesting firmware 'w1-00A0.dtbo' for board-name 'Override Board Name', version '00A0'
[ 167.082029] bone-capemgr bone_capemgr.9: slot #8: dtbo 'w1-00A0.dtbo' loaded; converting to live tree
[ 167.082504] bone-capemgr bone_capemgr.9: slot #8: #2 overlays
[ 167.089775] of_get_named_gpio_flags exited with status 45
[ 167.089820] of_get_named_gpio_flags: can't parse gpios property
[ 167.097793] bone-capemgr bone_capemgr.9: slot #8: Applied #2 overlays.[ 167.089775] of_get_named_gpio_flags exited with status 45
[ 167.089820] of_get_named_gpio_flags: can't parse gpios property...What concerns me and where I cannot seem to get rid of in dmesg</b
...What concerns me and where I cannot seem to get rid of in dmesg</b
...What concerns me and where I cannot seem to get rid of in dmesg</b
Changing the OS to Ubuntu did not change the behaviour.Any help is appreciated on debugging this.Thanks!Michael
On Saturday, August 30, 2014 1:01:18 PM UTC+2, Michaël Vaes wrote:Hi -I'm stuck getting my DS18B20 temperature sensor working on my Beaglebone Black. I installed and loaded the DTC overlay but Im not getting the '28-*'
files in my '/sys/devices/w1_bus_master1/' directory.Wiring
/sys/devices/w1_bus_master1/w1_master_add: write device id xx-xxxxxxxxxxxx to add slave
/sys/devices/w1_bus_master1/w1_master_attempts: 61
/sys/devices/w1_bus_master1/w1_master_max_slave_count: 10
/sys/devices/w1_bus_master1/w1_master_name: w1_bus_master1
/sys/devices/w1_bus_master1/w1_master_pointer: 0xdf1eda70
/sys/devices/w1_bus_master1/w1_master_pullup: 1
/sys/devices/w1_bus_master1/w1_master_remove: write device id xx-xxxxxxxxxxxx to remove slave
/sys/devices/w1_bus_master1/w1_master_search: -1
/sys/devices/w1_bus_master1/w1_master_slave_count: 0
/sys/devices/w1_bus_master1/w1_master_slaves: not found.
/sys/devices/w1_bus_master1/w1_master_timeout: 10...What concerns me and where I cannot seem to get rid of in dmesg</b
Hi -I'm stuck getting my DS18B20 temperature sensor working on my Beaglebone Black. I installed and loaded the DTC overlay but Im not getting the '28-*'
files in my '/sys/devices/w1_bus_master1/' directory.
root@bbb:~# for i in `find /sys/devices/w1_bus_master1/ -type d -iname "28-*"`; do echo -n $i' '; grep -oE "t=[0-9]+$" "$i/w1_slave"; done;
/sys/devices/w1_bus_master1/28-0000057ee219 t=85000
/sys/devices/w1_bus_master1/28-0000057efe1e t=85000...What concerns me and where I cannot seem to get rid of in dmesg</b
...