am I right in assuming that I can check this functionality by calling fdtget /flash/dtb.img /onewire gpios
?
Try this one. I think I only add it for N2 before.
fdtget
should show the value.
Many thanks!!!
It’s working now and the Modules also loaded automatically at boot
pooluhd:~ # fdtget /flash/dtb.img /onewire gpios
25 73 0
pooluhd:~ # ll /sys/bus/w1/devices/
total 0
drwxr-xr-x 2 root root 0 Mar 27 15:40 .
drwxr-xr-x 4 root root 0 Mar 27 15:38 ..
lrwxrwxrwx 1 root root 0 Mar 27 15:40 28-3c16f64891e4 -> ../../../devices/w1_bus_master1/28-3c16f64891e4
lrwxrwxrwx 1 root root 0 Mar 27 15:40 w1_bus_master1 -> ../../../devices/w1_bus_master1
and the temperature:
pooluhd:~ # cat /sys/bus/w1/devices/28-3c16f64891e4/w1_slave
62 01 55 05 7f a5 a5 66 15 : crc=15 YES
62 01 55 05 7f a5 a5 66 15 t=22125
I’m totally new regarding the device-tree stuff. Therefore a question, can I use this file also after updates of CoreELEC and how I can build this by myself, may you have a link where this is described in detail?
Can you try to disable status with command
mount -o remount,rw /flash
fdtput -t s /flash/dtb.img /onewire status disabled
reboot
check with fdtget
and enable back
mount -o remount,rw /flash
fdtput -t s /flash/dtb.img /onewire status okay
reboot
Seems to work as expected:
After disabling the Modules aren’t loaded after boot. Regarding fdtget the feature is still available
fdtget /flash/dtb.img /onewire gpios
25 73 0
but not working, even not after manual loading the modules.
After re enabling its working again.
Good. I will push this changes to CE but onewire
will be disabled by default. To use it it will have to be manually enabled by fdtput
.