Hi Everybody,
I feature a mining rig away from home, based on BFL products. To control them, I bought some Raspberry Pi (only one is needed to control them all, but buying 2 allow me to have spare parts available).
I created an image that I'm releasing today for this purpose.
I started with the official Raspberry Debian Wheezy image that I configured to fit my mining needs.
You can also create your own, I've logged everything I did on
http://pastebin.com/2J8BDHRBYou can download the image here:
http://rapidshare.com/files/3214579155/2012.12.22%20-%20debian%20wheezy%20configured%20-%20public.zip or here:
http://dl.free.fr/hmpSyVjcgJust write it to a SD Card the normal way (with win32diskimager-binary or so, as described on
http://www.raspberrypi.org/downloads)
New in v2012.12.08: Added btc to "dialout" group to let him access ttyUSB devices, corrected default cgminer.conf, corrected "double launch at startup" because of the software watchdog
New in v2012.12.22: rpi-update runned to update to latest firmware, added support for icarus/modminer/ztex
! Password for root, pi and btc users is "berry" (and not "raspberry" !)
! The image is for a 4 GB card (or +), even if it would fit on a 2GB card, sorry about that -- I cannot find any 2GB card and I don't know how to shrink the image back... hopefully, you can configure your own system using the pastebin steps
! I've included my mining configuration (in /home/btc/cgminer.conf) for testing purposes (plug your devices to test the system, and change things if you like it), so don't forget to replace them with your own!
! I don't have my BFL devices to test the system (!!!), so feel free to tell me any bug so I can correct the image and the pastbin
! I'm using "testing" sources (in /etc/apt/sources.list), stable is always too conservative for me on Debian
! CGminer only enabled for bitforce, if you want to enable other devices you need to modify compilation option in the /root/Update.sh script then run it to upgrade cgminer
+ cgminer launched at startup
+ Logging with "btc" user will automatically show you the cgminer screen, press CTRL+A then D to go back to shell
+ root and pi features config files in their own directory as links to btc's config files, so it's easy to change them
+ Security upgrades are automatically installed (apticron)
+ cgminer miner is started on a "screen" so you can always see what's happening on cgminer my typing "screen -r btc/cgminer"
+ if cgminer exits, the screen is kept for 5 minutes so you can see what's wrong
+ Features an "Update.sh" script (in /root) that upgrades your cgminer to the latest version, run it regularly to keep your cgminer up to date; the script also runs "aptitude update" to update your packages list, so you can run "aptitude dist-upgrade" right after if needed
+ Features 3 watchdogs :
+++ Hardware watchdog, if system is totally freezed (I'm away from my mining rig, so I'm not here to "reboot" the system if it fails!)
+++ Software watchdog, that feeds the hardware watchdog and reboot the system if cpu usage too high (max-load-15 = 18)
+++ Software watchdog, that looks if cgminer is running and restart it if not (logs restarts to /tmp/) (check is every minute)
Remember:
- Launch raspi-config to change timezone (Europe/Paris by default), locale (en_US/UTF8 by default) or expanding the filesystem to fit your card
- Change password for root, pi and btc ("passwd", "passwd pi", "passwd btc")
- Put your mining pools informations into cgminer.conf (in /home/btc/, /home/pi/ or /root/, they are all the same file)
- Regularly run "Update.sh" and "aptitude dist-upgrade"
PS: Sorry for possible english mistakes - i'm not a native