Giter VIP home page Giter VIP logo

w1_ds28e17's People

Contributors

ianka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

w1_ds28e17's Issues

"Invalid GPIO" warning on Raspberry Pi 3

I installed this module on a Raspberry Pi 3 using the sources from the latest kernel version in the Raspbian repository (4.9.35-v7+/raspberrypi-kernel_1.20170703-1), and it worked for a little while until it stopped working and this warning started filling dmesg:

[68811.133384] ------------[ cut here ]------------
[68811.133394] WARNING: CPU: 1 PID: 30515 at drivers/gpio/gpiolib.c:106 gpio_to_desc+0xc8/0xd0
[68811.133398] invalid GPIO -1193792064
[68811.133402] Modules linked in: w1_gpio(-) wire(O) configs brcmfmac brcmutil cfg80211 rfkill snd_bcm2835 snd_pcm snd_timer snd i2c_bcm2835 bcm2835_gpiomem uio_pdrv_genirq uio fixed i2c_dev cn fuse ipv6 [last unloaded: w1_ds2413]
[68811.133504] CPU: 1 PID: 30515 Comm: w1_bus_master1 Tainted: G      D W  O    4.9.35-v7+ #1014
[68811.133515] Hardware name: BCM2835
[68811.133531] [<8010fb3c>] (unwind_backtrace) from [<8010c058>] (show_stack+0x20/0x24)
[68811.133546] [<8010c058>] (show_stack) from [<80455880>] (dump_stack+0xd4/0x118)
[68811.133562] [<80455880>] (dump_stack) from [<8011d344>] (__warn+0xf8/0x110)
[68811.133578] [<8011d344>] (__warn) from [<8011d3a4>] (warn_slowpath_fmt+0x48/0x50)
[68811.133594] [<8011d3a4>] (warn_slowpath_fmt) from [<80487ba0>] (gpio_to_desc+0xc8/0xd0)
[68811.133614] [<80487ba0>] (gpio_to_desc) from [<7f3774b0>] (w1_gpio_write_bit_dir+0x34/0x3c [w1_gpio])
[68811.133643] [<7f3774b0>] (w1_gpio_write_bit_dir [w1_gpio]) from [<7f36b358>] (w1_write_bit+0x6c/0x114 [wire])
[68811.133681] [<7f36b358>] (w1_write_bit [wire]) from [<7f36ba84>] (w1_triplet+0xc4/0xcc [wire])
[68811.133719] [<7f36ba84>] (w1_triplet [wire]) from [<7f3694c4>] (w1_search+0x114/0x264 [wire])
[68811.133757] [<7f3694c4>] (w1_search [wire]) from [<7f36bae0>] (w1_search_devices+0x54/0x58 [wire])
[68811.133800] [<7f36bae0>] (w1_search_devices [wire]) from [<7f369688>] (w1_search_process_cb+0x74/0x120 [wire])
[68811.133838] [<7f369688>] (w1_search_process_cb [wire]) from [<7f3698bc>] (w1_process+0x104/0x13c [wire])
[68811.133865] [<7f3698bc>] (w1_process [wire]) from [<8013c8c8>] (kthread+0x10c/0x124)
[68811.133888] [<8013c8c8>] (kthread) from [<80108148>] (ret_from_fork+0x14/0x2c)
[68811.133900] ---[ end trace 003b29729f774a67 ]---

The w1_gpio module then became unresponsive and couldn't be unloaded with rmmod. I shut the system down to see if that would fix it but then it wouldn't boot up again (Maybe because the warning spam filled the system logs and the SD card?)

A couple of other things I noticed:

  • I just put one instance of the warning here, but when it's repeated the trace might differ slightly. w1_triplet will sometimes call w1_write_bit and other times call w1_touch_bit.
  • I installed this module on a similar Raspberry Pi 3 and it ran for at least the same amount of time that the first one ran without this happening.

I'm not really sure what triggered this. I'll do a bit of detective work and update this post if I find anything that seems useful.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.