Skip to content

kernel update 3.10.9 --> 3.11.0: 1wire bus problem with DS18B20 thermo sensor #374

Closed

Description

@crashmaster1

I use Archlinux and some of my RPi's have a 1w sensor DS18B20 to measure temperature.
After upgrading to 3.11.0 the 1w bus doesn't show this sensor anymore. One RPi loads w1-gpio and w1-therm automatically, another RPi hangs during bootup, the "systemd-load-modules.service" never returns. I masked it, then it boots and i loaded w1_therm and w1_gpio manually, but no device was found (they are connected at gpio4).
Switching back to 3.10.9 all works fine again.

greets, CM1

Activity

  1. trilader commented on Sep 29, 2013

    @trilader

    Here is the relevant part of the logfile on my Pi, it happens after modprobe w1_therm, wire and w1_gpio work ok.

    Sep 29 11:25:24 redpi kernel: INFO: task modprobe:610 blocked for more than 120 seconds.
    Sep 29 11:25:24 redpi kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
    Sep 29 11:25:24 redpi kernel: modprobe        D c068f5fc     0   610    609 0x00000000
    Sep 29 11:25:24 redpi kernel: [<c068f5fc>] (__schedule+0x284/0x5c0) from [<c0690028>] (schedule_preempt_disabled+0x14/0x20)
    Sep 29 11:25:24 redpi kernel: [<c0690028>] (schedule_preempt_disabled+0x14/0x20) from [<c068ec18>] (__mutex_lock_slowpath+0x9c/0x12c)
    Sep 29 11:25:24 redpi kernel: [<c068ec18>] (__mutex_lock_slowpath+0x9c/0x12c) from [<bf0e2008>] (w1_reconnect_slaves+0x3c/0xf8 [wire])
    Sep 29 11:25:24 redpi kernel: [<bf0e2008>] (w1_reconnect_slaves+0x3c/0xf8 [wire]) from [<bf0e2ac0>] (w1_register_family+0x9c/0xb8 [wire])
    Sep 29 11:25:24 redpi kernel: [<bf0e2ac0>] (w1_register_family+0x9c/0xb8 [wire]) from [<bf0f401c>] (w1_therm_init+0x1c/0x3c [w1_therm])
    Sep 29 11:25:24 redpi kernel: [<bf0f401c>] (w1_therm_init+0x1c/0x3c [w1_therm]) from [<c00085d4>] (do_one_initcall+0x108/0x170)
    Sep 29 11:25:24 redpi kernel: [<c00085d4>] (do_one_initcall+0x108/0x170) from [<c006de78>] (load_module+0x16e0/0x1e8c)
    Sep 29 11:25:24 redpi kernel: [<c006de78>] (load_module+0x16e0/0x1e8c) from [<c006e6cc>] (SyS_init_module+0xa8/0xec)
    Sep 29 11:25:24 redpi kernel: [<c006e6cc>] (SyS_init_module+0xa8/0xec) from [<c000e1a0>] (ret_fast_syscall+0x0/0x30)
    
  2. popcornmix commented on Sep 29, 2013

    @popcornmix
    Collaborator

    @FrankBuss
    any thoughts?

  3. popcornmix commented on Sep 29, 2013

    @popcornmix
    Collaborator

    Yes, I believe this is on rpi-3.11.y branch.

  4. crashmaster1 commented on Oct 2, 2013

    @crashmaster1
    Author

    Thanks Frank, the standard kernel of Archlinux is like in Raspbian the 3.6 branch (where all works fine).
    The 3.11 (or let's say always the latest) kernels are provided inofficial without an appreciable difference in configuration from the 3.11 branch.

    In the meanwhile i found the problem:
    You have to load w1-therm first and afterwards w1-gpio. If w1-gpio is loaded before w1-therm it crashes, hangs or whatever (like written above). It doesn't matter to load these modules manually or in /etc/modules... during startup.

    You should have the same experience ??

  5. bioothod commented on Oct 6, 2013

    @bioothod
    Contributor

    Hi

    It looks like bug was introduced in 11-rc1 with automatic module loading, patches are pending

  6. bioothod commented on Oct 7, 2013

    @bioothod
    Contributor

    Its there, I acked them yesterday, so exepct it in the next stable release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions