Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

PI hangs or network hangs?
Thank you for your donation

Thread Closed 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
PI hangs or network hangs?
26th Feb, 2015, 02:22 AM
Post: #1
Fabio72 Offline
Registered
Posts: 96
Joined: Feb 2014
Reputation: 5
PI hangs or network hangs?
Since I started to use raspi with xbian I faced, time to time, the same problem.
Xbian works fine for days or weeks then suddenly, after an AC failure or some other problem, it start freezing after 30 or less minutes of use, with no errors in any log.
Then I restore last backup without solving the problem.
Every single time I have to try many backup restores to get it working again. Usually I have to restore a much older backup.

I switched to nfs root but this issue is always present.

I changed hardware (B and B+, SD card, PSU) with no luck.

My Xbian is up for months, survives firmware and kernel updates and reboots. Then suddenly it starts freezing again. Until I restore a month old backup.

I just read this article
https://raspberrypispot.wordpress.com/2013/07/08/wifi-and-ethernet-dropout-problems-in-raspberry-pi/
“FIQ interrupt not triggering IRQ interrupt causing USB to dropout”
I tried on my system
Terminal
root@xbian /home/xbian/.kodi/temp # cat /sys/devices/platform/bcm2708_usb/regoffset
0xffffffff
root@xbian /home/xbian/.kodi/temp # cat /sys/devices/platform/bcm2708_usb/regvalue
invalid offset

And then
Terminal
root@xbian /home/xbian/.kodi/temp/check_lan # echo 08 > /sys/devices/platform/bcm2708_usb/regoffset
root@xbian /home/xbian/.kodi/temp/check_lan # cat /sys/devices/platform/bcm2708_usb/regvalue
Reg@0x000008 = 0x00000031
root@xbian /home/xbian/.kodi/temp/check_lan # echo 0x31 > /sys/devices/platform/bcm2708_usb/regvalue
root@xbian /home/xbian/.kodi/temp/check_lan # cat /sys/devices/platform/bcm2708_usb/regvalue
Reg@0x000008 = 0x00000031

Maybe this is the problem: network stop answering but raspi is not freezed. Having root nfs, nothing is written to the logs.
Then I remove the power plug to restart the PI and no trace of what happened remains in logs.

Now I'm trying the script in the article
Find all posts by this user
3rd Mar, 2015, 12:39 AM
Post: #2
f1vefour Offline
Administrator
******
Posts: 1,342
Joined: Mar 2013
Reputation: 58
RE: PI hangs or network hangs?
Thanks for pointing this out.

Please read rules and do a search before you post! | FAQs | How to post log file? | Can't find an answer? Contact us.
Visit this user's website Find all posts by this user
3rd Mar, 2015, 06:36 AM
Post: #3
f1vefour Offline
Administrator
******
Posts: 1,342
Joined: Mar 2013
Reputation: 58
RE: PI hangs or network hangs?
I don't understand why this is necessary, it seems this should be fixed in the kernel source. Have you submitted an issue on the Raspberry kernel git?

Please read rules and do a search before you post! | FAQs | How to post log file? | Can't find an answer? Contact us.
Visit this user's website Find all posts by this user
3rd Mar, 2015, 06:25 PM
Post: #4
Fabio72 Offline
Registered
Posts: 96
Joined: Feb 2014
Reputation: 5
RE: PI hangs or network hangs?
I don't know if it's a bug, or if it's the real cause of my system freezes.
And it seems strange to me being the only one affected by this since 2013 (date of the article).
I don't have time to go deeper in FIQ and kernel stuff: I was only looking for a workaround for my system freezes.

What is the content of your
/sys/devices/platform/bcm2708_usb/regoffset
and
/sys/devices/platform/bcm2708_usb/regvalue ?
Find all posts by this user
3rd Mar, 2015, 06:36 PM
Post: #5
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: PI hangs or network hangs?
Code:
root@pi ~ # cat /sys/devices/platform/bcm2708_usb/regoffset
0xffffffff
root@pi ~ # cat /sys/devices/platform/bcm2708_usb/regvalue
invalid offset

pilight - modular domotica solution
Visit this user's website Find all posts by this user
3rd Mar, 2015, 08:05 PM
Post: #6
Fabio72 Offline
Registered
Posts: 96
Joined: Feb 2014
Reputation: 5
RE: PI hangs or network hangs?
As was mine, before putting instructions to write right values in rc.local
Now you will see an invalid offset error also in your dmesg

This github issue is closed since long time
https://github.com/raspberrypi/linux/issues/151

I don't know if is still a bug cause I cannot see any error logged when my pi hangs. And I don't known what really happened cause the network is unreachable and usb keyboard is not able to awake xbian from black screen.

I also found this discussion in google groups
https://groups.google.com/forum/#!msg/piwall-users/xvamuVOOaRk/j0VdVws9v9UJ
It seems similar: network freeze whitout errors in log
Find all posts by this user
3rd Mar, 2015, 08:54 PM
Post: #7
Slab Offline
Registered
Posts: 4
Joined: Mar 2015
Reputation: 0
RE: PI hangs or network hangs?
I think I'm also affected by this problem, check this thread: http://forum.xbian.org/thread-2801-post-27790.html#pid27790
Find all posts by this user
3rd Mar, 2015, 09:03 PM
Post: #8
Fabio72 Offline
Registered
Posts: 96
Joined: Feb 2014
Reputation: 5
RE: PI hangs or network hangs?
I added
Code:
echo 08 > /sys/devices/platform/bcm2708_usb/regoffset
echo 0x31 > /sys/devices/platform/bcm2708_usb/regvalue
in
/etc/rc.local
Find all posts by this user
4th Mar, 2015, 07:58 PM
Post: #9
Fabio72 Offline
Registered
Posts: 96
Joined: Feb 2014
Reputation: 5
RE: PI hangs or network hangs?
I found two other issues about system freeze during big usb or network transfer

https://github.com/xbianonpi/xbian/issues/666

https://github.com/xbianonpi/xbian/issues/691
Find all posts by this user
8th Mar, 2015, 06:42 PM
Post: #10
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: PI hangs or network hangs?
Is this in itself already on github somewhere?

pilight - modular domotica solution
Visit this user's website Find all posts by this user
8th Mar, 2015, 10:05 PM
Post: #11
Fabio72 Offline
Registered
Posts: 96
Joined: Feb 2014
Reputation: 5
RE: PI hangs or network hangs?
I think this is the issue about linux kernel
https://github.com/raspberrypi/linux/issues/151
Find all posts by this user
« Next Oldest | Next Newest »
Thread Closed 


Possibly Related Threads...
Thread: Author Replies Views: Last Post
  XBian hangs during boot showing "configuring network" ditschi 14 47,257 17th Apr, 2015 08:24 PM
Last Post: Singular

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 22nd May, 2025, 07:00 AM Powered By MyBB, © 2002-2025 MyBB Group.