COMPLETE HOW-TO:
modify Scripta from Stock to automatically detect Gridseed GC3355 and show them in Web-Interface. ( No more ssh needed )
1. Download
http://www.lateralfactory.com/download.php?file=scripta-1_1.tgz 2. Windows-User extract the .img-File and bring it to SD Card with
http://sourceforge.net/projects/win32diskimager/3. Boot Raspberry Pi with this SD Card
4. Detect IP Adress of Raspberry Pi in your Router
5. open ssh connection to port 7722 of that IP, user root, password scripta
6. Get modified cgminer
wget https://db.tt/UygLkqwd -O cgminer
7. Patch: Apply Gridseed Settings
nano /opt/minepeon/etc/miner.options.json
add here ( mind the { ... }, { ... } -Structure! )
{
"key": "gridseed-options",
"value": "baud=115200,freq=850,chips=5"
},
press Ctrl + o , Return, Ctrl + x to save changes
8. Patch: Allow Numbers as Password
nano /var/www/f_settings.php
correct around line 60 to.. ( we remove “| JSON_NUMERIC_CHECK” )
file_put_contents($configPools, json_encode($newdata, JSON_PRETTY_PRINT));
press Ctrl + o , Return, Ctrl + x to save changes
9. Patch: More Stability for Raspberry Pi
add the parameter
( no new line! )
press Ctrl + o , Return, Ctrl + x to save changes
10. Patch: Graphs to be created by root
insert here:
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/bin/php5 /opt/minepeon/etc/cron.d/5min/ALERTdeviceCount
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/bin/php5 /opt/minepeon/etc/cron.d/5min/ALERThashrate
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/bin/php5 /opt/minepeon/etc/cron.d/5min/hashrate
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/bin/php5 /opt/minepeon/etc/cron.d/5min/temp
press Ctrl + o , Return, Ctrl + x to save changes
rm /var/spool/cron/crontabs/www-data
11.
12.
login to web interface with password scripta and be happy.
based on:
How to's:- STEP BY STEP RASPBERRY SCRIPTA INSTALLATION
- BUILD CGMINER ON THE RASPBERRY
- ROOT ACCESS TO LIGHTNINGASIC CONTROLLER
- UBUNTU/LINUX INSTALLATION GUIDE
STEP BY STEP RASPBERRY SCRIPTA INSTALLATION
Step by Step Raspberry SCRIPTA Installation:- 1 - SD Formatter (link) clean up your SD Card. At least a 4GB SD.
- 2 - Download the SCRIPTA Image (link)
- 3 - Win 32 Disk Imager (link) and write the scripta image on the SD Card.
- 4 - Put the SD Card into your Raspberry.
- 5 - SSH access on port 7722, user: root / psw: scripta
- 6 - Use WinSCP (link) to move over the latest rasp cgminer for gridseed (https://db.tt/UygLkqwd) or Use PuTTY (link)
wget https://db.tt/UygLkqwd -O cgminer
- 7 - Go to the location where you copied over your cgminer and do "chmod 777 cgminer"
- 8 - Go to the SCRIPTA Web GUI, under Miner hit Miner commands, STOP
- 9 - Go to the location where you copied over your cgminer and run it from there using these commands:
./cgminer --scrypt -o <miningpooladdress:port> -u <user> -p <pw> --gridseed-options=baud=115200,freq=850
Stability-Fix: 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!)Orginal Sources from:
https://litecointalk.org/index.php?topic=9908.0 How to get Scripta working as it was intendedFollow the instructions by Darkfriend77 below but when you get to step 6, go to directory opt/minepeon/bin and remove the original cgminer there (rm cgminer). Now copy the new cgminer into this folder to replace the original and chmod it as below.
Now go to directory opt/minepeon/startup and edit the file miner-start.sh with nano.
Change the line -
sudo /usr/bin/screen -dmS cgminer /opt/minepeon/bin/cgminer -c /opt/minepeon/etc/miner.conf
to
sudo /usr/bin/screen -dmS cgminer /opt/minepeon/bin/cgminer --scrypt --no-submit-stale --gridseed-options=baud=115200,freq=850 -c /opt/minepeon/etc/miner.conf
Lastly apply the stability fix.
Now you can close ssh and restart your pi and it should automatically fire up your gridseeds and start mining.
BUILD CGMINER ON THE RASPBERRY
referenced from litecointalkbuild your CGMiner on the raspberry
Something like this:
Do a quick update just in case.
Get dependencies if you already havent.
sudo apt-get install build-essential autoconf automake libtool pkg-config libcurl4-gnutls-dev
sudo apt-get install libjansson-dev uthash-dev libncurses5-dev libudev-dev libusb-1.0-0-dev libevent-dev
Clone the Repo:
git clone https://github.com/dtbartle/cgminer-gc3355.git
Move into the directory, configure, and make the binary.
cd cgminer-gc3355
./configure CFLAGS="-O3" --enable-scrypt --enable-gridseed
make
Now you should see a cgminer file which was complied. You may need to make it executable via:
Then run this cgminer however you'd like.
ROOT ACCESS TO LIGHTNINGASIC CONTROLLER
Ok, I will post this here, since I think people could benefit from it. I'll have to give most of the credits to
Girhes, since he told me about the failsafe mode of openWRT, and assisted me while trying to gain access (he did not have a controller himself yet).
Please note that this is at
YOUR OWN RISK, you could brick your device when you have root access to the controller. Please do
NOT install any programs when you have root access, unless you really know what you are doing. There is almost no room left on the device, so installing a program could brick your device.
1 - Start the controller in
failsafe mode:
There are different HW versions of the TL-WR703N - on version 1.6 you have to power on the controller, wait until the led starts flashing twice a second (it takes about 4 seconds to get there), then push the reset button immediately. When the led starts to flash much faster your device is in failsafe mode. All other HW versions: power on the controller, wait 10-12 seconds until the led starts flashing, then immediately push the reset button for 1-2 seconds. Again, if the led will start blinking rapidly you are in failsafe mode.
The versioin of your device is stated on the back of the device, underneath the barcode.
2 - Telnet into the device:
On windows go to start, type 'cmd' in the search bar, and start 'cmd.exe'. In the command window you get afterwards, type 'telnet 192.168.1.1'. Make sure you use the correct IP, my device used 192.168.1.1 in failsafe mode.
There is no user/pass required in failsafe mode.
3 - Switch to the live partition:
Type 'mount_root'
Warning! You are in the live partition now, with root permissions. You could seriously fuck thing up now!4 - Change the root password:
Type 'passwd', and enter the password you would like (twice).
5 - Enable SSH:
Type 'vim /etc/config/dropbear', this will open the SSH config file in the vim text editor. You need to change "option enable" to "on".
You can start editing the file by hitting the 'i' key. You can now insert/delete characters. After you are finished editing hit the 'esc' key to stop editing. Now hit the ':' key, and type 'wq'. This will write the file, and quit the editor. If you made mistakes while editing, and just want to quit (without writing the file), type 'q' instead of 'wq'.
6 - Reboot the device:
Just unplug the usb power, and plug it in again.
7 - Have fun!
You can now SSH into the device while it is running in normal mode. (user: root, password whatever you entered in step 4). Just be carefull not to mess things up. If you are not at least a little familiar with linux, please be very carefull.
UBUNTU/LINUX INSTALLATION GUIDE
Hi Scrypt miners,
I was lucky enough to get one of the first Scrypt ASICs produced by Chinese GridSeed during my stay in South Korea last month. Cheers to Dis Btopia of
xbitcoinx.com!
I just hooked up one unit containing 5 chips to my Ubuntu box via USB port and here is what I did to get it running. Mind you, these instructions are for mining Scrypt, not SHA256 or dual mode, which the ASIC can also do. Most of the information I pieced together from this post in Chinese:
http://cybtc.com/article-468-1.htmlDownload GridSeed's modified cpuminer and unpack zip file:
wget https://github.com/gridseed/cpuminer/archive/master.zip
unzip master.zip
cd cpuminer-master
..or download via git:
git clone git@github.com:gridseed/cpuminer.git
cd cpuminer
Install automake:
sudo apt-get install automake
You might need to install other compiling tools. I didn't need to, because I compiled other things before.
Compile:
./autogen.sh
./configure CFLAGS="-O3"
make
Connect and power up ASIC.
Find correct USB device:
..or watch syslog while plugging in ASIC:
Start mining (replace "ttyUSB0" with device found above and add your pool data):
sudo ./minerd --freq=600 --gc3355=/dev/ttyUSB0 --url=<your pool> --userpass=user:pass
You should now see lots of output with yellow "LTC" lines. If you see red lines, that's bad.
Anyway, post here if you run into troubles.
I am not quite sure what the green and red LEDs are about. As far as I can tell there is no English documentation about that anywhere. I assume green (which is on as soon as power and USB are connected) indicates a certain ready state and red (which flashes sometimes) means hardware errors.
I am getting a lot of "Invalid nonce" errors in the cpuminer output along with red LED flashing. Probably because by mistake I got a 12V/0.5A power supply instead of 12V/5A and chips run low on power. So I can't tell you much about hash rates etc. right now. I'll get another power supply next week, so stay tuned.