With great thanks to this guide and many hours of research and experimenting I have created an image to run on the raspberry PI that automatically dual mines btc/script at the same time with the Gridseed5 chip. Once written to the sd card and booted up, it will auto log-in and start BTC mining in about 15 seconds and then 15 seconds later script mining kicks in. I have been running for over 36 hours now with no issues whatsover. Average hour hashrate with 4 units has been 40GHS BTC and 1250KHS script. The image is createdfrom Raspian with all updates as of 3/21/14, cgminer 3.8.5, and cpuminer. This was created on my 8GB Sd card with expanded file system in Raspian, so I assume you will need at least that big of a card to write to. If I had known this was going to work so well I would have written to a smaller SD card as it only takes up 2.5Gb. I will try to figure out how to shrink it down to fit on a 4 GB card in the future.
User "miner", password "raspberry", ssh port 22
You will need to edit the following files for your own pools:
/home/miner/minebitcoin.sh ( nano ./minebitcoin.sh )
/home/miner/minescript.sh ( nano ./minescript.sh )
For script mining, you have the choice to use all devices under one worker, in which case you only need to edit /home/miner/worker_All.sh to enter your pool info. ( nano ./worker_All.sh)
It also has the option to use each device under separate workers, I have included 4 scripts that correspond to my 4 gridseeds named /home/miner/worker1.sh, worker2.sh, etc You will need to edit those scripts ( sudo nano ./worker1.sh ) and add a new worker for any gridseed beyond 4 devices.
CPUMiner should automatically assign tty into the startup script and launch for each device as long as you have filled in the number of devices in ./minescript.sh
To mine only scrypt, nano ./automine.sh and comment out the bottom 2 lines, and nano ./minescript and remove " --dual " from the config
Log in info is as follows (please change with passwd and sudo passwd commands):
username: miner
password: raspberry
sudo password: raspberry
Let me know how this works for you, this was built and tested on my particular gridseeds from my purchase from zoomhash last week (shows STM.....)
https://mega.co.nz/#!7hZwSA4T!Z_mzGqhH0rmNNzbWdxE__iMD2s9T0Ly1xahKVOaZv4A
Clicking link doesnt seem to work, but highlight and open in new tab does.