Pages:
Author

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

newbie
Activity: 10
Merit: 0
Copied version 4.7.0 on a usb stick. Checked it on the usb stick with the --version command, it gave back version 4.7.0
Checking the same file on the same usb stick on the other pi it gives version 3.9.0 again  Huh
Putting it back in the other pi and checking that file with the command it gives version 4.7.0 again

very weird
try:

echo $PATH

and check in /usr/local/bin

There is another copy of cgminer, most likely the ./cgminer -V is pulling from the $PATH variable
hero member
Activity: 686
Merit: 500
newbie
Activity: 1
Merit: 0
Emdje how do i see cgminer via putty ?
legendary
Activity: 1596
Merit: 1000
Good stuff! Definitely going to send you a couple beers when you release it. Smiley
newbie
Activity: 10
Merit: 0
hero member
Activity: 686
Merit: 500
Copied version 4.7.0 on a usb stick. Checked it on the usb stick with the --version command, it gave back version 4.7.0
Checking the same file on the same usb stick on the other pi it gives version 3.9.0 again  Huh
Putting it back in the other pi and checking that file with the command it gives version 4.7.0 again

very weird
hero member
Activity: 686
Merit: 500
What do you get for output when you append to the newly compiled cgminer binary:

 --version|-V        Display version and exit

Also it looks like its only displaying 2 blades?

I will take a look at you first question/suggestion tomorrow, it is very late here.
But to answer you first. I have an A2 Mini  Smiley, so only two blades.

Something broke on my pi where the miner is running on Undecided To much fiddling I guess  Roll Eyes

This is what I get on the Pi I compiled cgminer on:
Code:
pi@raspberrypi ~/Downloads/cgminer-4.7.0-A2-Working-dont-change $ sudo cgminer --version
cgminer 4.7.0
So that is good  Smiley

When I do this in the pi where the miner runs on i get this   Huh
Code:
pi@raspberrypi /var/www $ sudo cgminer --version
cgminer 3.9.0
Going to recopy the file to make shure it is the same
hero member
Activity: 686
Merit: 500
Im glad you were finally able to compile it, good job! Please release new cgminer separatelly from A2 image, so we dont have to flash the whole thing.

It is not done yet, cgminer 4.7.0 does not start automatically yet.
When I don't have to change anything else on the image in startup scripts I can release it on its own.
In previous cases a newly installed miner would mine a couple of minutes for me, which donations for my work.
When I release it on it's own I do expect some donations  Smiley
hero member
Activity: 686
Merit: 500
What do you get for output when you append to the newly compiled cgminer binary:

 --version|-V        Display version and exit

Also it looks like its only displaying 2 blades?

I will take a look at you first question/suggestion tomorrow, it is very late here.
But to answer you first. I have an A2 Mini  Smiley, so only two blades.

Something broke on my pi where the miner is running on Undecided To much fiddling I guess  Roll Eyes

This is what I get on the Pi I compiled cgminer on:
Code:
pi@raspberrypi ~/Downloads/cgminer-4.7.0-A2-Working-dont-change $ sudo cgminer --version
cgminer 4.7.0
So that is good  Smiley
full member
Activity: 157
Merit: 100
Im glad you were finally able to compile it, good job! Please release new cgminer separatelly from A2 image, so we dont have to flash the whole thing.
newbie
Activity: 10
Merit: 0
Ahh okay make sense Wink  Get rest !
hero member
Activity: 686
Merit: 500
What do you get for output when you append to the newly compiled cgminer binary:

 --version|-V        Display version and exit

Also it looks like its only displaying 2 blades?

I will take a look at you first question/suggestion tomorrow, it is very late here.
But to answer you first. I have an A2 Mini  Smiley, so only two blades.
newbie
Activity: 10
Merit: 0
What do you get for output when you append to the newly compiled cgminer binary:

 --version|-V        Display version and exit

Also it looks like its only displaying 2 blades?
hero member
Activity: 686
Merit: 500
For anyone who is interested and as 'proof', here some output (ignore the name of the folder this is just my own way of tracking the rewrite versions).

Last lines of ./configure output:
Code:
configure: creating ./config.status
config.status: creating jansson.pc
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/jansson_config.h
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
------------------------------------------------------------------------
cgminer 4.7.0
------------------------------------------------------------------------
Configuration Options Summary:

  libcurl(GBT+getwork).: Enabled: -lcurl 
  curses.TUI...........: FOUND: -lncurses

  Antminer.S1.Bitmain..: Disabled
  Antminer.S2.Bitmain..: Disabled
  Avalon.ASICs.........: Disabled
  Avalon2.ASICs........: Disabled
  BlackArrowMinion.ASIC: Disabled
  BlackArrow.ASICs.....: Disabled
  BFL.ASICs............: Disabled
  BitForce.FPGAs.......: Disabled
  BitFury.ASICs........: Disabled
  BlockErupter.ASICs...: Disabled
  Cointerra.ASICs......: Disabled
  Spond-sp10.ASICs.....: Disabled
  Spond-sp30.ASICs.....: Disabled
  Bitmine-A1.ASICs.....: Enabled
  Drillbit.BitFury.....: Disabled
  Hashfast.ASICs.......: Disabled
  Hashratio.ASICs......: Disabled
  Icarus.ASICs/FPGAs...: Disabled
  Klondike.ASICs.......: Disabled
  KnC.ASICs............: Disabled
  ModMiner.FPGAs.......: Disabled

Compilation............: make (or gmake)
  CPPFLAGS.............:
  CFLAGS...............: -g -O2
  LDFLAGS..............:  -lpthread
  LDADD................: -ldl -lcurl   compat/jansson-2.6/src/.libs/libjansson.a -lpthread    -lm  -lrt

Installation...........: make install (as root if needed, with 'su' or 'sudo')
  prefix...............: /usr/local

And this is the sudo make install output:
Code:
pi@raspberrypi ~/Downloads/cgminer-4.7.0-A2-changable $ sudo make install
Making install in lib
make[1]: Entering directory '/home/pi/Downloads/cgminer-4.7.0-A2-changable/lib'
make  install-recursive
make[2]: Entering directory '/home/pi/Downloads/cgminer-4.7.0-A2-changable/lib'
make[3]: Entering directory '/home/pi/Downloads/cgminer-4.7.0-A2-changable/lib'
make[4]: Entering directory '/home/pi/Downloads/cgminer-4.7.0-A2-changable/lib'
make[4]: Nothing to be done for 'install-exec-am'.
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory '/home/pi/Downloads/cgminer-4.7.0-A2-changable/lib'
make[3]: Leaving directory '/home/pi/Downloads/cgminer-4.7.0-A2-changable/lib'
make[2]: Leaving directory '/home/pi/Downloads/cgminer-4.7.0-A2-changable/lib'
make[1]: Leaving directory '/home/pi/Downloads/cgminer-4.7.0-A2-changable/lib'
Making install in compat
make[1]: Entering directory '/home/pi/Downloads/cgminer-4.7.0-A2-changable/compat'
Making install in jansson-2.6
make[2]: Entering directory '/home/pi/Downloads/cgminer-4.7.0-A2-changable/compat/jansson-2.6'
Making install in src
make[3]: Entering directory '/home/pi/Downloads/cgminer-4.7.0-A2-changable/compat/jansson-2.6/src'
  CC       pack_unpack.lo
  CC       strbuffer.lo
  CC       strconv.lo
  CC       value.lo
  CCLD     libjansson.la
make[4]: Entering directory '/home/pi/Downloads/cgminer-4.7.0-A2-changable/compat/jansson-2.6/src'
 /bin/mkdir -p '/usr/local/lib'
 /bin/bash ../libtool   --mode=install /usr/bin/install -c   libjansson.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libjansson.so.4.5.0 /usr/local/lib/libjansson.so.4.5.0
libtool: install: (cd /usr/local/lib && { ln -s -f libjansson.so.4.5.0 libjansson.so.4 || { rm -f libjansson.so.4 && ln -s libjansson.so.4.5.0 libjansson.so.4; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libjansson.so.4.5.0 libjansson.so || { rm -f libjansson.so && ln -s libjansson.so.4.5.0 libjansson.so; }; })
libtool: install: /usr/bin/install -c .libs/libjansson.lai /usr/local/lib/libjansson.la
libtool: install: /usr/bin/install -c .libs/libjansson.a /usr/local/lib/libjansson.a
libtool: install: chmod 644 /usr/local/lib/libjansson.a
libtool: install: ranlib /usr/local/lib/libjansson.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
 /bin/mkdir -p '/usr/local/include'
 /usr/bin/install -c -m 644 jansson.h jansson_config.h '/usr/local/include'
make[4]: Leaving directory '/home/pi/Downloads/cgminer-4.7.0-A2-changable/compat/jansson-2.6/src'
make[3]: Leaving directory '/home/pi/Downloads/cgminer-4.7.0-A2-changable/compat/jansson-2.6/src'
make[3]: Entering directory '/home/pi/Downloads/cgminer-4.7.0-A2-changable/compat/jansson-2.6'
make[4]: Entering directory '/home/pi/Downloads/cgminer-4.7.0-A2-changable/compat/jansson-2.6'
make[4]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/usr/local/lib/pkgconfig'
 /usr/bin/install -c -m 644 jansson.pc '/usr/local/lib/pkgconfig'
make[4]: Leaving directory '/home/pi/Downloads/cgminer-4.7.0-A2-changable/compat/jansson-2.6'
make[3]: Leaving directory '/home/pi/Downloads/cgminer-4.7.0-A2-changable/compat/jansson-2.6'
make[2]: Leaving directory '/home/pi/Downloads/cgminer-4.7.0-A2-changable/compat/jansson-2.6'
make[2]: Entering directory '/home/pi/Downloads/cgminer-4.7.0-A2-changable/compat'
make[3]: Entering directory '/home/pi/Downloads/cgminer-4.7.0-A2-changable/compat'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/home/pi/Downloads/cgminer-4.7.0-A2-changable/compat'
make[2]: Leaving directory '/home/pi/Downloads/cgminer-4.7.0-A2-changable/compat'
make[1]: Leaving directory '/home/pi/Downloads/cgminer-4.7.0-A2-changable/compat'
Making install in ccan
make[1]: Entering directory '/home/pi/Downloads/cgminer-4.7.0-A2-changable/ccan'
make[2]: Entering directory '/home/pi/Downloads/cgminer-4.7.0-A2-changable/ccan'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/pi/Downloads/cgminer-4.7.0-A2-changable/ccan'
make[1]: Leaving directory '/home/pi/Downloads/cgminer-4.7.0-A2-changable/ccan'
make[1]: Entering directory '/home/pi/Downloads/cgminer-4.7.0-A2-changable'
  CC       cgminer-cgminer.o
  CC       cgminer-util.o
  CC       cgminer-sha2.o
  CC       cgminer-api.o
  CC       cgminer-logging.o
  CC       cgminer-klist.o
  CC       cgminer-noncedup.o
  CC       cgminer-driver-SPI-bitmine-A1.o
  CC       cgminer-spi-context.o
  CCLD     cgminer
make[2]: Entering directory '/home/pi/Downloads/cgminer-4.7.0-A2-changable'
 /bin/mkdir -p '/usr/local/bin'
  /bin/bash ./libtool   --mode=install /usr/bin/install -c cgminer '/usr/local/bin'
libtool: install: /usr/bin/install -c cgminer /usr/local/bin/cgminer
make[2]: Leaving directory '/home/pi/Downloads/cgminer-4.7.0-A2-changable'
make[1]: Leaving directory '/home/pi/Downloads/cgminer-4.7.0-A2-changable'
hero member
Activity: 686
Merit: 500
Cgminer 4.7.0 is running pretty good (when started through the terminal). I just don't know where it gets the idea that it is cgminer 3.9.0  Undecided
Anyone any idea where that info might come from?


hero member
Activity: 686
Merit: 500
Restarted cgminer with clock frequencies, stats are normal now on the webinterface.

Still letting it run for a while to see what is does. And I have to figure out how to let it start automatically through the webinterface.
hero member
Activity: 686
Merit: 500
do you get any debug information trying to start it by adding: -D -T --verbose

thnx.

When I start cgminer through the terminal it runs. However through the web interface it does not. Webinterface does give statistics and saying it runs at 40MH/s  Shocked
I am letting it run for now to see what miningrigrentals says after a couple of hours.
newbie
Activity: 10
Merit: 0
do you get any debug information trying to start it by adding: -D -T --verbose
hero member
Activity: 686
Merit: 500
No joy for the newly compiled cgminer, it does not start and I do not get anything in the log.
Anyone any ideas on how I should debug cgminer when it starts up?
hero member
Activity: 686
Merit: 500
Making progress in building cgminer 4.7.0. Some errors left but getting there  Grin
good luck!

Error solved, variable was defined in miner.h. Already wrote the new miner.h, only to forget to copy that to the PI  Roll Eyes

Have been working remotely on it (am not home) so I can't test it yet on the A2, but:
CGminer 4.7.0 with A2 support is successfully compiled  Grin
Tomorrow I will test it out and let you guys know if it works or not.
Pages:
Jump to: