Does anyone else get kernel panic messages on raspberry pi?
I'm using ArchLinuxARM latest image and compiled cgminer from this github repository:
https://github.com/girnyau/cgminer-gc3355I'm running 10 Gridseeds. They are running well at 3.6 MH/s until some point when it goes Oops:
[ 4565.377848] Unable to handle kernel paging request at virtual address 00002055
[ 4565.385255] pgd = c9df8000
[ 4565.393214] [00002055] *pgd=c9df8000, *pte=00000000, *ppte=00000000
[ 4565.404992] Internal error: Oops: 17 [#1] PREEMT ARM
[...]
Here is a screenshot:
/edit: Found the solution here:
http://bitcoin.stackexchange.com/a/24121/6441When you say it crashes, are you talking about the cgminer itself, or your Raspberry Pi?
If it's the Raspberry Pi, you should probably check that you've got the "slub_debug=FP" hack in place. This has been discussed in other places, but to save you searching time, here's what you need to do (if it's not already in place):
sudo nano /boot/cmdline.txt
Add the following code at the end of the first line (on the same line as the other text, DO NOT add new line!)
slub_debug=FP
Save the file then reboot your Raspberry Pi.
What the above does is basically enable some kernel debug mode on the Raspberry Pi. I have no idea why debug mode prevents the system kernel crash, but there's a lot of anecdotal evidence that it does work. In my case, I couldn't run for more than an hour before my Pi would crash.
I suspect that there's a kernel bug that cgminer is somehow triggering. I don't know if anyone has seriously investigated this, given that most people just want a work around so that they can keep mining reliably. But if you're interested, here's a related thread that I found:
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=55370If the issue is that cgminer is crashing, not your Pi, doesn't it get restarted by the Scripta /etc/rc.local?
I've seen cgminer crash too. I got about 48 hours the last time before it crapped out. I'm using the dtbartle version that I built myself from the git sources, and I've got 10 GridSeed units.
This morning I decided to run cgminer in text only mode under daemontools. I've been running my Dual Miner version of cgminer like that for weeks on another rig and have never seen a crash of either the Pi or cgminer (and I don't have the slub_debug hack enabled on that Raspberry Pi, either). There's a lot to like about daemontools, including logging. And I see no need to have a terminal output in a detached screen process when Scripta does a nicer job of giving me visual miner status.
I have no idea if running cgminer in its default terminal mode under screen is in fact problematic or not. The stability problems might just be in the gc3355 implementation of cgminer. But I like how my other rig is running and it's nice to keep things consistent.
Anyway HTH...