I've been trying to get my vocore to read from a 1-wire temperature sensor (DS18B20), but I'm unable to successfully load the kernel modules for this. Is there a trick or setting I am unaware of to make this work?
I'm currently using a default 14.07 openwrt image (I've also tried using trunk and a custom 14.07 with the relevant modules compiled in), the kernel modules specifically loaded are wire, w1-gpio, w1-therm and w1-gpio-custom. When loading w1-gpio-custom I get an error like so:
- Code: Select all
[ 15.690000] w1-gpio w1-gpio.0: no of_node; not parsing pinctrl DT
[ 15.690000] w1-gpio w1-gpio.0: no of_node; not parsing pinctrl DT
[ 15.690000] w1-gpio w1-gpio.0: unable to select pin group
[ 15.700000] ------------[ cut here ]------------
[ 15.710000] WARNING: at drivers/gpio/gpiolib.c:126 gpio_to_desc+0x2c/0x54()
[ 15.730000] invalid GPIO -2
[ 15.730000] Modules linked in: w1_gpio(+) rt2x00soc rt2x00mmio rt2x00lib pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv4 mac8n
[ 15.870000] CPU: 0 PID: 528 Comm: kmodloader Not tainted 3.10.49 #3
[ 15.880000] Stack : 00000000 00000000 00000000 00000000 8032afbe 00000037 818c2fb8 80320000
[ 15.880000] 802789ac 802bab73 00000210 80323820 818c2fb8 80320000 00000000 00000011
[ 15.880000] 00000124 8021b168 00000003 801836c4 80288f1c 80320000 8027a004 80c2fc14
[ 15.880000] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 15.880000] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 80c2fba0
[ 15.880000] ...
[ 15.950000] Call Trace:
[ 15.960000] [<801c077c>] show_stack+0x48/0x70
[ 15.960000] [<8022b98c>] warn_slowpath_common+0x78/0xa8
[ 15.970000] [<8022b9e8>] warn_slowpath_fmt+0x2c/0x38
[ 15.980000] [<800ed294>] gpio_to_desc+0x2c/0x54
[ 15.990000] [<800ecbe4>] gpio_request+0x14/0x2c
[ 16.000000] [<80dbe220>] 0x80dbe220
[ 16.010000]
[ 16.010000] ---[ end trace 496087b69f973b04 ]---
[ 16.020000] gpiod_request: invalid GPIO
[ 16.030000] w1-gpio w1-gpio.0: gpio_request (pin) failed
[ 16.040000] w1-gpio: probe of w1-gpio.0 failed with error -22
I've connected the sensor to the GPIO 00 pin, and supplied these parameters to the module:
- Code: Select all
w1-gpio-custom bus0=0,0,0
Any ideas, please?