Bitcoin Forum
November 14, 2024, 07:18:23 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 [17] 18 19 20 21 22 23 24 25 26 27 »
  Print  
Author Topic: Ultra Under-overclock image for A2 Innosilicon by Emdje - V5.0  (Read 79788 times)
emdje (OP)
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500


View Profile WWW
June 03, 2015, 10:16:52 PM
 #321

I can't find a watchdog, no sign of cgminer getting restarted.

I've got my own watchdog running now.
Other than stopping, possibly when trying to start when servers aren't responding quickly enough, your image has worked ok.

I had a quick go at putting your cgminer in minera. It didn't seem to like the mix of command line and json.conf. I can't be bothered to delve into minera...

The watchdog is programmed into cgminer, it is not external:
Code:
/* Makes sure the hashmeter keeps going even if mining threads stall, updates
 * the screen at regular intervals, and restarts threads if they appear to have
 * died. */
#define WATCHDOG_INTERVAL 2
#define WATCHDOG_SICK_TIME 120
#define WATCHDOG_DEAD_TIME 600
#define WATCHDOG_SICK_COUNT (WATCHDOG_SICK_TIME/WATCHDOG_INTERVAL)
#define WATCHDOG_DEAD_COUNT (WATCHDOG_DEAD_TIME/WATCHDOG_INTERVAL)

static void *watchdog_thread(void __maybe_unused *userdata)
{
const unsigned int interval = WATCHDOG_INTERVAL;
struct timeval zero_tv;

pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);

RenameThread("watchdog");

set_lowprio();
memset(&zero_tv, 0, sizeof(struct timeval));
cgtime(&rotate_tv);

while (1) {
int i;
struct timeval now;

sleep(interval);

discard_stale();

hashmeter(-1, &zero_tv, 0);
emdje (OP)
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500


View Profile WWW
June 03, 2015, 10:18:03 PM
 #322

how to start cgminer from ssh on image for a2 mini?
i need to reboot my miner everytime i want to change pool Huh
nvm found it:)
for some reason wasnt starting. just need to install screen and Im good to go. thanks for great image. scripta was crap. most of times cgminer woudnt start:/

Great to hear it works. And great that you could fix the transport damage.
pictsidhe
Member
**
Offline Offline

Activity: 199
Merit: 10


View Profile
June 04, 2015, 12:55:48 AM
 #323

I can't find a watchdog, no sign of cgminer getting restarted.

I've got my own watchdog running now.
Other than stopping, possibly when trying to start when servers aren't responding quickly enough, your image has worked ok.

I had a quick go at putting your cgminer in minera. It didn't seem to like the mix of command line and json.conf. I can't be bothered to delve into minera...

The watchdog is programmed into cgminer, it is not external:
Code:
/* Makes sure the hashmeter keeps going even if mining threads stall, updates
 * the screen at regular intervals, and restarts threads if they appear to have
 * died. */
#define WATCHDOG_INTERVAL 2
#define WATCHDOG_SICK_TIME 120
#define WATCHDOG_DEAD_TIME 600
#define WATCHDOG_SICK_COUNT (WATCHDOG_SICK_TIME/WATCHDOG_INTERVAL)
#define WATCHDOG_DEAD_COUNT (WATCHDOG_DEAD_TIME/WATCHDOG_INTERVAL)

static void *watchdog_thread(void __maybe_unused *userdata)
{
const unsigned int interval = WATCHDOG_INTERVAL;
struct timeval zero_tv;

pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);

RenameThread("watchdog");

set_lowprio();
memset(&zero_tv, 0, sizeof(struct timeval));
cgtime(&rotate_tv);

while (1) {
int i;
struct timeval now;

sleep(interval);

discard_stale();

hashmeter(-1, &zero_tv, 0);


The big problem was that cgminer exits if it can't connect to pools. It does seem to keep running if it starts properly. I've got a bash script that checks for the right number of ./cgminer processes every 3 minutes now. Too many, it kills them all, not enough, it invokes run.sh. I had some gridseed rigs where they sometimes started duplicate copies of cpuminer, which doesn't work very well. Your firmware hasn't had that problem, but I've left it in.

edit index.php to change run.sh to check.sh

check.sh, stick it in /var/www

#!/bin/bash
while true
do
        MC=$(ps -ef | grep -v grep | grep -c "./cgminer -o stratum+tcp" )
#      echo $MC
        if [ $MC -lt 2 ]; then
                sudo ./run.sh
        else
                if [ $MC -gt 2 ]; then
#                       echo too many
                        sudo /usr/bin/killall -s9 cgminer
                fi
        fi
sleep 180
done





emdje (OP)
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500


View Profile WWW
June 04, 2015, 08:59:29 AM
 #324

I can't find a watchdog, no sign of cgminer getting restarted.

I've got my own watchdog running now.
Other than stopping, possibly when trying to start when servers aren't responding quickly enough, your image has worked ok.

I had a quick go at putting your cgminer in minera. It didn't seem to like the mix of command line and json.conf. I can't be bothered to delve into minera...

The watchdog is programmed into cgminer, it is not external:
Code:
/* Makes sure the hashmeter keeps going even if mining threads stall, updates
 * the screen at regular intervals, and restarts threads if they appear to have
 * died. */
#define WATCHDOG_INTERVAL 2
#define WATCHDOG_SICK_TIME 120
#define WATCHDOG_DEAD_TIME 600
#define WATCHDOG_SICK_COUNT (WATCHDOG_SICK_TIME/WATCHDOG_INTERVAL)
#define WATCHDOG_DEAD_COUNT (WATCHDOG_DEAD_TIME/WATCHDOG_INTERVAL)

static void *watchdog_thread(void __maybe_unused *userdata)
{
const unsigned int interval = WATCHDOG_INTERVAL;
struct timeval zero_tv;

pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);

RenameThread("watchdog");

set_lowprio();
memset(&zero_tv, 0, sizeof(struct timeval));
cgtime(&rotate_tv);

while (1) {
int i;
struct timeval now;

sleep(interval);

discard_stale();

hashmeter(-1, &zero_tv, 0);


The big problem was that cgminer exits if it can't connect to pools. It does seem to keep running if it starts properly. I've got a bash script that checks for the right number of ./cgminer processes every 3 minutes now. Too many, it kills them all, not enough, it invokes run.sh. I had some gridseed rigs where they sometimes started duplicate copies of cpuminer, which doesn't work very well. Your firmware hasn't had that problem, but I've left it in.

edit index.php to change run.sh to check.sh

check.sh, stick it in /var/www

#!/bin/bash
while true
do
        MC=$(ps -ef | grep -v grep | grep -c "./cgminer -o stratum+tcp" )
#      echo $MC
        if [ $MC -lt 2 ]; then
                sudo ./run.sh
        else
                if [ $MC -gt 2 ]; then
#                       echo too many
                        sudo /usr/bin/killall -s9 cgminer
                fi
        fi
sleep 180
done


Thnx I'll check it out Smiley
emdje (OP)
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500


View Profile WWW
June 10, 2015, 01:24:57 PM
 #325

New instruction video online  Smiley : How to install SD-card and set-up pools
Prelude
Legendary
*
Offline Offline

Activity: 1596
Merit: 1000



View Profile
June 17, 2015, 10:52:12 PM
 #326

Updated cgminer, with requested  clock options:
https://mega.co.nz/#!rUETAYaK!BMTxVusrO5rnZK5eYbDeS7XcFdYV4MyZGBn0BCatFOg

Full image will be updated later when compressed and uploaded.

Edit: full image uploaded: https://mega.co.nz/#!qUdwgC7T!FjieYOsePmkStsygU_l7vqNUiCdEvuifOwgT7Jv5jlU

Hi Emdje,

Would it be possible for you to upload the latest image with 1200-1220-1240-1260-1280-1300-1320-1340-1360-1380-1400 available?
pictsidhe
Member
**
Offline Offline

Activity: 199
Merit: 10


View Profile
June 19, 2015, 11:05:32 PM
 #327

I'm having pool issues again.
I usually connect through miningrigrentals. My gridseed rigs connect fine (via stratehm proxy), the last few days, my a2 has had trouble using mrr. It currently can't connect, although it can ping mrr ping. I've tried adding --failover-only but it's not helping. As my last pool (I hacked it to have 6 instead of two groups of 3) I have clevermining, which it usually, but not always, will connect to. I don't have a brilliant connection, but it's generally ok for mining.
emdje (OP)
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500


View Profile WWW
June 20, 2015, 10:56:53 AM
 #328

Updated cgminer, with requested  clock options:
https://mega.co.nz/#!rUETAYaK!BMTxVusrO5rnZK5eYbDeS7XcFdYV4MyZGBn0BCatFOg

Full image will be updated later when compressed and uploaded.

Edit: full image uploaded: https://mega.co.nz/#!qUdwgC7T!FjieYOsePmkStsygU_l7vqNUiCdEvuifOwgT7Jv5jlU

Hi Emdje,

Would it be possible for you to upload the latest image with 1200-1220-1240-1260-1280-1300-1320-1340-1360-1380-1400 available?

I am working on it right now. I can't finalize it because I am not at home, but it will come soon.
emdje (OP)
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500


View Profile WWW
June 20, 2015, 10:59:59 AM
 #329

I'm having pool issues again.
I usually connect through miningrigrentals. My gridseed rigs connect fine (via stratehm proxy), the last few days, my a2 has had trouble using mrr. It currently can't connect, although it can ping mrr ping. I've tried adding --failover-only but it's not helping. As my last pool (I hacked it to have 6 instead of two groups of 3) I have clevermining, which it usually, but not always, will connect to. I don't have a brilliant connection, but it's generally ok for mining.

Weird I never had any issues with any of the versions (only with the latest one I use personally over wifi and have not released due to those issues). Now that I come to think about that, do you use ethernet of wifi?
I will finalize as you can read an new version soon. I will revert back to the old stratum code, because I think that is a little bit flaky.
Prelude
Legendary
*
Offline Offline

Activity: 1596
Merit: 1000



View Profile
June 21, 2015, 05:04:21 PM
 #330

Updated cgminer, with requested  clock options:
https://mega.co.nz/#!rUETAYaK!BMTxVusrO5rnZK5eYbDeS7XcFdYV4MyZGBn0BCatFOg

Full image will be updated later when compressed and uploaded.

Edit: full image uploaded: https://mega.co.nz/#!qUdwgC7T!FjieYOsePmkStsygU_l7vqNUiCdEvuifOwgT7Jv5jlU

Hi Emdje,

Would it be possible for you to upload the latest image with 1200-1220-1240-1260-1280-1300-1320-1340-1360-1380-1400 available?

I am working on it right now. I can't finalize it because I am not at home, but it will come soon.

No rush, thank you sir.
wolverine5pl
Sr. Member
****
Offline Offline

Activity: 437
Merit: 250


View Profile
July 09, 2015, 10:50:17 PM
 #331

need advice. just got my a2 miner 95mh/s from ebay.
using image what was installed. getting bit of HV errors
Accepted 769
Hardware Errors 157
so thats 20.4% isnt? thats with 1280 mhz settings
need to go to 1100mhz to get very low hv errors but then hashrate drops to 70+- (now getting around 90-95)
but device hardware% is 0.01% is this figure correct?
hdmediaservices
Hero Member
*****
Offline Offline

Activity: 630
Merit: 504


View Profile
July 09, 2015, 11:38:42 PM
 #332


How warm is your room?

emdje (OP)
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500


View Profile WWW
July 10, 2015, 08:12:36 AM
 #333

1280MHz in normal configuration should be around 6% errors or something. 1200 should be low low enough. Indeed how hot is your room, they work alot better when the chips are colder, < 50 Degrees Celcius.
wolverine5pl
Sr. Member
****
Offline Offline

Activity: 437
Merit: 250


View Profile
July 10, 2015, 09:14:38 AM
 #334

temp in room about 25-28 celcius. a2 mini was getting around 2% errors
emdje (OP)
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500


View Profile WWW
July 10, 2015, 12:30:56 PM
 #335

temp in room about 25-28 celcius. a2 mini was getting around 2% errors

Which software is on there?
Because the way the deviders are set-up in the firmware matters quite a lot to the amound of hardware errors.
I would recommend my latest version.
wolverine5pl
Sr. Member
****
Offline Offline

Activity: 437
Merit: 250


View Profile
July 10, 2015, 02:29:11 PM
 #336

it had your latest version 4.0
using miner eu now with gui and still getting high hardware errors:(
when using your versions I tried to start cgminer manually but I didnt had that top part of cgminer with stats, any idea why
wolverine5pl
Sr. Member
****
Offline Offline

Activity: 437
Merit: 250


View Profile
July 10, 2015, 02:51:44 PM
 #337

would psu cause this?
had to lower three blades to 1100 and three left at 1280 giving me 88mh/s with 3.8% hw errors so not bad
emdje (OP)
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500


View Profile WWW
July 10, 2015, 04:25:37 PM
 #338

would psu cause this?
had to lower three blades to 1100 and three left at 1280 giving me 88mh/s with 3.8% hw errors so not bad

Well yes, if the power supply can't provide enough/stable power it could.
wolverine5pl
Sr. Member
****
Offline Offline

Activity: 437
Merit: 250


View Profile
July 10, 2015, 04:41:18 PM
 #339

emdje thanks for help
after tweaking and using your image i managed to get 90mh/s with 3.5+- % hw errors. happy with that. had a look at psu and replacing it will be painfull as doesnt look like just plug and play thing.
but definetly gonna repace fans for something more quiet. they are way to loud to keep in living room
emdje (OP)
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500


View Profile WWW
July 10, 2015, 04:45:07 PM
 #340

You are welcome. And great to hear my image works well.

If you do change out the psu be aware of the polarity of the connectors to the board. I had to switch the pluses and minis-us of my computer psu for the correct polarity. Measure and check the polarity!!
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 [17] 18 19 20 21 22 23 24 25 26 27 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!