Kernel 3.18.8 breaks 1-wire ?

This forum is for topics dealing with problems with software specifically in the ARMv6h repo.

Kernel 3.18.8 breaks 1-wire ?

Postby dbannon » Sun Mar 22, 2015 12:29 am

Since I upgraded my Raspberry Pi to the 3.18.8 K my 1-wire system is broken. Just went to 3.18.9 and same problem.

Its all about the new Device Tree stuff. I need to load kernel mods w1_gpio (and w1_therm). The default situation, that is out of the box config.txt, load apparently with out errors but are not functional. In particular, we cannot see /sys/bus/w1/devices/w1_bus_master1.

So, googling around, now need to tell system, via config.txt I want to use 1-wire. Cool, Arch's config.txt seems to have provided necessary config options, uncomment -
$this->bbcode_second_pass_code('', 'device_tree_overlay=w1-gpio-pullup
device_tree_param=gpiopin=4
device_tree_param=pullup=on
device_tree_param=extpullup=5')

and reboot. Now I do see /sys/bus/w1/devices/w1_bus_master1 but no files there representing the temp sensors I use. And, in dmesg I see -
$this->bbcode_second_pass_code('', '[ 8.869662] Driver for 1-wire Dallas network protocol.
[ 8.903004] w1-gpio onewire@0: gpio pin 4, external pullup pin 5, parasitic power 1
[ 8.942929] w1_add_master_device: set_pullup requires write_byte or touch_bit, disabling')
This really has nothing to do with the hardware I have connected, see same error message on another 'Pi with no hardware attached.

Any suggestions ?

David
dbannon
 
Posts: 6
Joined: Sun Mar 22, 2015 12:12 am

Re: Kernel 3.18.8 breaks 1-wire ?

Postby WarheadsSE » Sun Mar 22, 2015 4:24 pm

$this->bbcode_second_pass_code('', '[ 8.942929] w1_add_master_device: set_pullup requires write_byte or touch_bit, disabling')
It seems you might be missing a parameter :)
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Kernel 3.18.8 breaks 1-wire ?

Postby dbannon » Mon Mar 23, 2015 5:22 am

Well, a missing parameter ? Any suggestion what that is ?

I have uncommented the lines that config.txt tells me to uncomment. Nothing more or less.

David
dbannon
 
Posts: 6
Joined: Sun Mar 22, 2015 12:12 am

Re: Kernel 3.18.8 breaks 1-wire ?

Postby WarheadsSE » Mon Mar 23, 2015 2:30 pm

config.txt comes from the foundation, and perhaps they missed something.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Kernel 3.18.8 breaks 1-wire ?

Postby dbannon » Mon Mar 23, 2015 10:38 pm

Do you think that means its only been tested on Raspian then ? There was some discussion on the foundation lists on the topic, especially when 3.18.8 was released. Evidence is, once the correct parameters were set, it all worked again on Raspian. And 3.18.9 has a more structured config.txt.

I guess I have to build a raspian to test that myself, trouble is my network has taken a beating this month so will need to wait a bit. Sigh....

David
dbannon
 
Posts: 6
Joined: Sun Mar 22, 2015 12:12 am

Re: Kernel 3.18.8 breaks 1-wire ?

Postby dbannon » Wed Mar 25, 2015 4:55 am

Actually, think I owe the Device Tree people an apology, for what I thought if not what I said.

I found that I could disable DT https://github.com/raspberrypi/documentation/blob/master/configuration/device-tree.md and sure enough, the problem and the error message still exists. So must assume its somewhere between kernel and the w1_gpio module.

Messy, could be very messy.

David
dbannon
 
Posts: 6
Joined: Sun Mar 22, 2015 12:12 am


Return to ARMv6h

Who is online

Users browsing this forum: No registered users and 24 guests