gridrun
Posts: 46
Joined: Mon Feb 18, 2013 12:26 pm
Contact: Website

Pi Lock-up

Wed Feb 20, 2013 8:53 am

I have a brand new Pi (Rev 2, Mod B) board with PiFace addon connected. Power supply is 5V/1A.

Problem:
- Pi completely locks up after some time (overnight).

Symptoms:
- SSH session gets disconnected (connection reset)
- Pi doesn't respond to pings anymore
- PWR led remains on (red)
- LNK, FDX and 100 Leds remain active (LNK occasionally blinking)
- HDMI output still has signal, but screen all black
- Keyboard nonresponsive

Any ideas?
Find more info on Raspberry Pi, Virtualization and all things cloudy on my blog: http://niston.wordpress.com

User avatar
RaTTuS
Posts: 10519
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Pi Lock-up

Wed Feb 20, 2013 9:23 am

edit
/etc/kbd/config
and change
BLANK_TIME=30
to
BLANK_TIME=0

reboot
login to a terminal and
tail -f /var/log/syslog

then use as normal
when it dies you should be able to see something useful on the screen .... [YMMV] but will help you get closer
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

gridrun
Posts: 46
Joined: Mon Feb 18, 2013 12:26 pm
Contact: Website

Re: Pi Lock-up

Wed Feb 20, 2013 11:14 am

Thanks, I will try that :)

In the mean time I got another error message, also with the Pi locking up:

Unable to handle kernel paging request at virtual address 000800f9
pgd = c00040000
[000800f9] *pgd=00000000
Internal error: Oops: 17 [#1] PREEMPT

Entering kdb (current=0xca36d180, pid 2689= Oops: (null)
due to oops @ 0xbf008470

Pid: 2689, comm: kworker/u:0
CPU: 0 Not tainted (3.1.9+ #272)
PC is at bcm2708_work+0x1b0/0x2c4 [spi_bcm2708]
LR is at sub_preempt_count+0x4c/0x50
pc: [<bf008470>] lr: [<c03f44c8>] psr: 60000113
sp: ca36ff00 ip: 00000000 fp: ca36ff4c
r10: ca34fea4 r9: cbb00a31c r8: cbbb2b20
[...some stuff omitted...]
Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
Control: 00c5387d Table: 0b9e4008 DAC: 00000017

:shock:
Find more info on Raspberry Pi, Virtualization and all things cloudy on my blog: http://niston.wordpress.com

gridrun
Posts: 46
Joined: Mon Feb 18, 2013 12:26 pm
Contact: Website

Re: Pi Lock-up

Wed Feb 20, 2013 1:06 pm

It just happened again. Nothing in /var/log/syslog, though. From the error message on the console, it seems like it's related to the SPI interface/driver.

Maybe relevant: I connected a HID device (PCsensor Temper) via USB. Crash seems to happen right after reading temperature from the HID device.
Find more info on Raspberry Pi, Virtualization and all things cloudy on my blog: http://niston.wordpress.com

User avatar
pluggy
Posts: 3635
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
Contact: Website

Re: Pi Lock-up

Wed Feb 20, 2013 2:04 pm

Check the voltage across TP1 and TP2, it should be better than 4.8v. The Pi is a pig for doing this kind of trick if it doesn't like the PSU, lead or if it has an iffy polyfuse. The label on the PSU isn't much to go by.
Don't judge Linux by the Pi.......
I must not tread on too many sacred cows......

gridrun
Posts: 46
Joined: Mon Feb 18, 2013 12:26 pm
Contact: Website

Re: Pi Lock-up

Thu Feb 21, 2013 7:59 am

I have 4,9V across TP1-TP2.

Isolated the cause to be the USB thermometer, as the Pi doesn't crash without it attached. Currently using Perl to read temperature from the sensor, so it's not yet clear if it's a software problem (which I suspect).

Going to try with another method of reading from the device. I'll keep you posted.
Find more info on Raspberry Pi, Virtualization and all things cloudy on my blog: http://niston.wordpress.com

gridrun
Posts: 46
Joined: Mon Feb 18, 2013 12:26 pm
Contact: Website

Re: Pi Lock-up

Thu Feb 21, 2013 10:51 am

Instead of using Perl (http://search.cpan.org/~msulland/Device ... nternal.pm), I gave temper-1.0.tgz from Revalak Labs (http://relavak.wordpress.com/2009/10/17 ... ux-driver/) a try.

Also, the perl code took around 3 seconds longer per reading, and occasionally gave false results.

Works like a charm now - no crashes anymore 8-)
Find more info on Raspberry Pi, Virtualization and all things cloudy on my blog: http://niston.wordpress.com

gridrun
Posts: 46
Joined: Mon Feb 18, 2013 12:26 pm
Contact: Website

Re: Pi Lock-up

Fri Feb 22, 2013 8:50 am

Unfortunately, that was too quick.

Crashes still happen, even though less frequently. I'm now trying with a brand new 1A usb adaptor. I wonder though, the lockups always occur in bcm2708_spi_interrupt. Maybe there's some problem with the SPI implementation of the Pi?
Find more info on Raspberry Pi, Virtualization and all things cloudy on my blog: http://niston.wordpress.com

Return to “Troubleshooting”