No recompiling needed , just reading up on kernel modules ... I added
w1_sunxi
w1_gpio
w1_therm
to File: /etc/modules-load.d/modules.conf
and rebooted the W1 interface showed up.:
# ls /sys/bus/w1/devices/
28-0000059a1220 w1_bus_master1
and to read the temperature ( 23.5 deg C ):
# cat /sys/bus/w1/devices/28-0000059a1220/w1_slave
78 01 4b 46 1f ff 08 10 c1 : crc=c1 YES
78 01 4b 46 1f ff 08 10 c1 t=23500
note that you need a 4k7 ish pullup from data to 3V3 for the 1W bus to function properly some people sugguested using
~# modprobe w1-therm strong_pullup=1
But I have a pullup on the PCB so i did not need to do this
-dd