Pages:
Author

Topic: Ultra Under-overclock image for A2 Innosilicon by Emdje - V5.0 - page 18. (Read 79773 times)

hero member
Activity: 686
Merit: 500
emdje, try run it with nohup

I did, still the same.
full member
Activity: 157
Merit: 100
emdje, try run it with nohup
hero member
Activity: 686
Merit: 500


I am trying to find what it is that effects this half hashrate problem. Version 4.7.0 has the same problem, and I have not been able to find the problem there (starting with nohup did not help btw) I honestly have no idea how long that will take. Also, I have a lot of things to do this week and only limited time to spend on this. I did manage to crank the SPI speed from 4MHz to 8 MHz, that might improve hashrate stability.
For now I think you are best of in flashing the most recent version with extranonce support.

I think the new cgminer does not start upon boot because it anticipates an internet connection.

It is important to try to start it after network interfaces have started.

Put this line:

post-up /etc/network/if-up.d/start_sgminer.sh

as last line of file /etc/network/interfaces


Then:

echo "#!/bin/sh" > /etc/network/if-up.d/start_sgminer.sh
chmod 777 /etc/network/if-up.d/start_sgminer.sh

and put all start usual start scripts under #!/bin/sh in /etc/network/if-up.d/start_sgminer.sh

IMPORTANT: USE FULL PATH TO SCRIPTS AND FILES EVERYWHERE IN STARTUP SCRIPT

Thnx for helping.
But the problem is that it does not start trought the webinterface when it is booted up as well. And then the network interfaces have started allready. It only works when started throught the terminal, and than it only reports half hashrate Sad
Somehow the terminal executes a little different than the scrypt.
sr. member
Activity: 340
Merit: 250


I am trying to find what it is that effects this half hashrate problem. Version 4.7.0 has the same problem, and I have not been able to find the problem there (starting with nohup did not help btw) I honestly have no idea how long that will take. Also, I have a lot of things to do this week and only limited time to spend on this. I did manage to crank the SPI speed from 4MHz to 8 MHz, that might improve hashrate stability.
For now I think you are best of in flashing the most recent version with extranonce support.

I think the new cgminer does not start upon boot because it anticipates an internet connection.

It is important to try to start it after network interfaces have started.

Put this line:

post-up /etc/network/if-up.d/start_sgminer.sh

as last line of file /etc/network/interfaces


Then:

echo "#!/bin/sh" > /etc/network/if-up.d/start_sgminer.sh
chmod 777 /etc/network/if-up.d/start_sgminer.sh

and put all start usual start scripts under #!/bin/sh in /etc/network/if-up.d/start_sgminer.sh

IMPORTANT: USE FULL PATH TO SCRIPTS AND FILES EVERYWHERE IN STARTUP SCRIPT
sr. member
Activity: 340
Merit: 250
I just 'burn' the image on an SD card using Win32DiskImager

I do have multiple SD cards, because indeed the coping goes so slow, it would take the miner off-line to long.

On my mac, I tried using dd and it reported speed of 1.5 megabytes per second so that would be 90 minutes per stick sequential, total of 6 hours for me.

On linux, I tried using ddrescue and it reported speed of 5 megabytes per second so that would be about 30 minutes. Best part is I wrote to 4 usb sticks at once like this. But linux did not have sd reader, so I had to write to my spare 8gb usb flash sticks.

nohup ddrescue --force -r2 /15gb/A2-OC-Tweak3.0-ExNonce-Emdje.img /dev/sdc &
nohup ddrescue --force -r2 /15gb/A2-OC-Tweak3.0-ExNonce-Emdje.img /dev/sdd &
nohup ddrescue --force -r2 /15gb/A2-OC-Tweak3.0-ExNonce-Emdje.img /dev/sde &
nohup ddrescue --force -r2 /15gb/A2-OC-Tweak3.0-ExNonce-Emdje.img /dev/sdf &

and it took me 30 minutes total to finish everything!
hero member
Activity: 686
Merit: 500
I just 'burn' the image on an SD card using Win32DiskImager

I do have multiple SD cards, because indeed the coping goes so slow, it would take the miner off-line to long.
sr. member
Activity: 340
Merit: 250

I am trying to find what it is that effects this half hashrate problem. Version 4.7.0 has the same problem, and I have not been able to find the problem there (starting with nohup did not help btw) I honestly have no idea how long that will take. Also, I have a lot of things to do this week and only limited time to spend on this. I did manage to crank the SPI speed from 4MHz to 8 MHz, that might improve hashrate stability.
For now I think you are best of in flashing the most recent version with extranonce support.

Thanks for your help. Has anyone tried using a usb stick instead of an SD card with this OS? I flashed it with ddrescue like so:

nohup ddrescue --force -r2 /15gb/A2-OC-Tweak3.0-ExNonce-Emdje.img /dev/sdc &

I have 4 A2 terminators and none of them boot with this. They do not show network link light and RPI appears to show a red light.

Reason for this is because I don't have a multi-SD card reader and its super slow to copy.

-----------------

Looks like I have to use SD card to boot, because RPI must have bootcode read from sd card only:

Format the sdcard as FAT and copy the files from the FAT partition of the USB stick onto the sdcard (only needs to be about 64M in size).
Change cmdline.txt on sdcard from root=/dev/mmcblk0p2 to root=/dev/sda2
hero member
Activity: 686
Merit: 500
The one witch extranonce support is stable and most recent.

I am about to flash 4 A2's soon. Should I wait for your newest version that you are working on? How long do you think it will be.

I am trying to find what it is that effects this half hashrate problem. Version 4.7.0 has the same problem, and I have not been able to find the problem there (starting with nohup did not help btw) I honestly have no idea how long that will take. Also, I have a lot of things to do this week and only limited time to spend on this. I did manage to crank the SPI speed from 4MHz to 8 MHz, that might improve hashrate stability.
For now I think you are best of in flashing the most recent version with extranonce support.
sr. member
Activity: 340
Merit: 250
The one witch extranonce support is stable and most recent.

I am about to flash 4 A2's soon. Should I wait for your newest version that you are working on? How long do you think it will be.
hero member
Activity: 686
Merit: 500
The one witch extranonce support is stable and most recent.
sr. member
Activity: 340
Merit: 250
This version also reports only half hash on the pool, just like the 4.7.0 version  Huh

So which version is the most stable and reports correct hashrate?
hero member
Activity: 686
Merit: 500
This version also reports only half hash on the pool, just like the 4.7.0 version  Huh
hero member
Activity: 686
Merit: 500
Working on a next release with extranonce support and the following clock frequency options:
Code:
	case 1400: $cg_option_speed1_1400 = 'selected = \"selected\"';break;
case 1396: $cg_option_speed1_1396 = 'selected = \"selected\"';break;
case 1392: $cg_option_speed1_1392 = 'selected = \"selected\"';break;
case 1388: $cg_option_speed1_1388 = 'selected = \"selected\"';break;
case 1384: $cg_option_speed1_1384 = 'selected = \"selected\"';break;
case 1380: $cg_option_speed1_1380 = 'selected = \"selected\"';break;
case 1376: $cg_option_speed1_1376 = 'selected = \"selected\"';break;
case 1372: $cg_option_speed1_1372 = 'selected = \"selected\"';break;
case 1368: $cg_option_speed1_1368 = 'selected = \"selected\"';break;
case 1364: $cg_option_speed1_1364 = 'selected = \"selected\"';break;
case 1360: $cg_option_speed1_1360 = 'selected = \"selected\"';break;
case 1356: $cg_option_speed1_1356 = 'selected = \"selected\"';break;
case 1352: $cg_option_speed1_1352 = 'selected = \"selected\"';break;
case 1348: $cg_option_speed1_1348 = 'selected = \"selected\"';break;
case 1344: $cg_option_speed1_1344 = 'selected = \"selected\"';break;
case 1340: $cg_option_speed1_1340 = 'selected = \"selected\"';break;
case 1336: $cg_option_speed1_1336 = 'selected = \"selected\"';break;
case 1332: $cg_option_speed1_1332 = 'selected = \"selected\"';break;
case 1328: $cg_option_speed1_1328 = 'selected = \"selected\"';break;
case 1324: $cg_option_speed1_1324 = 'selected = \"selected\"';break;
case 1320: $cg_option_speed1_1320 = 'selected = \"selected\"';break;
case 1316: $cg_option_speed1_1316 = 'selected = \"selected\"';break;
case 1312: $cg_option_speed1_1312 = 'selected = \"selected\"';break;
case 1308: $cg_option_speed1_1308 = 'selected = \"selected\"';break;
case 1304: $cg_option_speed1_1304 = 'selected = \"selected\"';break;
case 1300: $cg_option_speed1_1300 = 'selected = \"selected\"';break;
case 1296: $cg_option_speed1_1296 = 'selected = \"selected\"';break;
case 1292: $cg_option_speed1_1292 = 'selected = \"selected\"';break;
case 1288: $cg_option_speed1_1288 = 'selected = \"selected\"';break;
case 1284: $cg_option_speed1_1284 = 'selected = \"selected\"';break;
case 1280: $cg_option_speed1_1280 = 'selected = \"selected\"';break;
case 1276: $cg_option_speed1_1276 = 'selected = \"selected\"';break;
case 1272: $cg_option_speed1_1272 = 'selected = \"selected\"';break;
case 1268: $cg_option_speed1_1268 = 'selected = \"selected\"';break;
case 1264: $cg_option_speed1_1264 = 'selected = \"selected\"';break;
case 1260: $cg_option_speed1_1260 = 'selected = \"selected\"';break;
case 1240: $cg_option_speed1_1240 = 'selected = \"selected\"';break;
case 1220: $cg_option_speed1_1220 = 'selected = \"selected\"';break;
case 1200: $cg_option_speed1_1200 = 'selected = \"selected\"';break;
case 1100: $cg_option_speed1_1100 = 'selected = \"selected\"';break;
case 1000: $cg_option_speed1_1000 = 'selected = \"selected\"';break;
default:   $cg_option_speed1_1000  = 'selected = \"selected\"';

Testing right now.

If anyone would like some other frequency options, you could suggest that now.
hero member
Activity: 686
Merit: 500
i am using your latest version of the tweaked, how can i solo mine on it?or even can i? using an A2 Terminator first version 86m/h

I have tried solo mining, with me it didn't work (wallet not installeled on the raspberry PI), but with other people it did work. Should be the same as with solo GPU mining: https://cryptocointalk.com/topic/9505-how-to-solo-mine/
full member
Activity: 157
Merit: 100
i am using your latest version of the tweaked, how can i solo mine on it?or even can i? using an A2 Terminator first version 86m/h
hero member
Activity: 686
Merit: 500
Link to image with CGminer 3.9.0 and Extranonce submission: https://mega.co.nz/#!XQ02naSC!oSENaKhSdJiIkzad9kdH3I7eMyqNfbUzVSnyxkrsPgw

If you want Extranonce for Nicehash for example the pool settings should be:
cgminer -o stratum+tcp://stratum.nicehash.com:3333#xnsub -u enterYourBTCaddress -p x

NOTE: did not work for me when set in miningrigrentals, only directly on the miner trough the web-interface
full member
Activity: 157
Merit: 100
Please provide 3.9.0 with extranonce support as extra cgminer binary. Thanks
hero member
Activity: 686
Merit: 500
4.7.0 not really stable indeed. That is why I released it like this.

Extranonce subscription in 3.9.0 worked great:


Will update image later today after I have finished other work that needs to be done.
full member
Activity: 157
Merit: 100
Tried 4.7.0, Its true it must be started from the console, but Im sure this can be easily workarounded (like using nohup etc.). But more important is fact that after its started it does not submit a single share. And also (might be related) the hashrate shows only as 78Mhs instead of 89Mhs. Going back to 3.7.0.
hero member
Activity: 686
Merit: 500
Specially for BakSAj the link to the compiled cgMiner 4.7.0 for A2
https://mega.co.nz/#!GAlEwDbQ!8rDclpbmZZrrb_tg0yUvuWftaiYrPWLOVLMtngvMB9U

- Rename the cgminer in the folder /var/www to cgminer3.9.0 (or something)
- Copy cgminer4.7.0 to the folder /var/www and rename it to cgminer

- Open the folder in the terminal (by right clicking on the older and clicking "open it in terminal")
- Type the following to mark cgminer as an executable:
Code:
chmod +x cgminer

- go to the folder /usr/local/bin. Replace the copy of cgminer there with cgminer4.7.0 and again mark it as an executable

- again open the folder /var/www and type your startup command:
Code:
sudo ./cgminer -o stratum+tcp://eu-01.miningrigrentals.com:3333 -u emdje.3166 -p x --A1Pll1 1300 --A1Pll2 1300 --A1Pll3 1300 --A1Pll4 1300 --A1Pll5 1300 --A1Pll6 1300 --diff 4096 --api-listen --api-network --cs 8 --stmcu 0 --hwreset --no-submit-stale --lowmem

If any of you find a solution for the autostart problem, please report here so I can implement it in the image.
Pages:
Jump to: