rcocchiararo
Newbie
Offline
Activity: 78
Merit: 0
|
|
May 30, 2012, 04:42:15 PM |
|
hi again
i wanted to try a new pool, and it happens to have empty paswords.
I can use that with the .conf file, but i have my stuff configured with scripts with each parameter.
i tried leaving just -p, nothing at all pasword related, or -p -1 (the config file has -1 for pasword when you manuallly run cgminer, input no pasword and generate it), and no luck.
Is there any way to use a pool with no pasword without using .conf file ?
|
|
|
|
jake262144
|
|
May 30, 2012, 06:08:31 PM |
|
i wanted to try a new pool, and it happens to have empty paswords. ... Is there any way to use a pool with no pasword without using .conf file ?
try -p ""
|
|
|
|
dmcurser
|
|
May 30, 2012, 11:06:00 PM |
|
everytime i try to run java api notify i get a constant tag 13 in class file
|
1Q7TPBHHVmGCvqffYHpXCCBgbcBQ4NwXdW
|
|
|
kano
Legendary
Offline
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
|
|
May 31, 2012, 05:39:45 AM |
|
everytime i try to run java api notify i get a constant tag 13 in class file
Well "code tag" the actual error so I can see. Also include the output of "java -version" and lastly - of course it is "java API notify" (the capital letters I've typed before do matter) (though that is probably nothing to do with the problem) The fix may well be "javac API.java" but will require the java SDK
|
|
|
|
zefir
Donator
Hero Member
Offline
Activity: 919
Merit: 1000
|
|
May 31, 2012, 07:07:31 PM |
|
Anyone being successful operating BFLS with cgminer from a big endian machine? I am using the same device xiangfu does for operating his Icarus farm ( TP-Link TL-MR3020), which is based on an Atheros MIPS core (big endian). Using the git HEAD this is the debug output: [2012-05-31 18:45:24] BitForce block data: a4870512b33f467106a9907295eec4a7031e2149e6b90d81d6efbee03d8c7302eb755e1c4fc7bc401a0a8b5f [2012-05-31 18:45:29] BitForce waited 5200ms until NONCE-FOUND:01A85E01,8AD1912A [2012-05-31 18:45:29] Proof: 570e5ed30f82f60447dcf34a4f00f733bb05e1d2b0f1120e54e9817faffa2f84 Target: 00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff TrgVal? no (false positive; hash > target) [2012-05-31 18:45:29] Share below target [2012-05-31 18:45:29] Proof: 1acf5c5b68608bf3858514064f899f439b030e30c5502c8e6020165414cadab7 Target: 00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff TrgVal? no (false positive; hash > target) [2012-05-31 18:45:29] Share below target [2012-05-31 18:45:29] [thread 0: 4294967295 hashes, 812342882 khash/sec]
I suspect something is not fully endian aware in the driver-bitforce module. I compared to what xiangfu/kano did for Icarus, but the relevant code lines seem to match the bitforce counterpart. Any idea where to look at first? Thanks, zefir
|
|
|
|
zefir
Donator
Hero Member
Offline
Activity: 919
Merit: 1000
|
|
May 31, 2012, 08:17:52 PM |
|
Never mind, found the problem in __BIG_ENDIAN__ not being set for that target platform. This patch is required to build cgminer with BFLS support for OpenWRT: diff --git a/driver-bitforce.c b/driver-bitforce.c index a59338c..d95f0eb 100644 --- a/driver-bitforce.c +++ b/driver-bitforce.c @@ -354,7 +354,7 @@ static uint64_t bitforce_scanhash(struct thr_info *thr, struct work *work, uint6 while (1) { hex2bin((void*)&nonce, pnoncebuf, 4); -#ifndef __BIG_ENDIAN__ +#if !defined (__BIG_ENDIAN__) && !defined(MIPSEB) nonce = swab32(nonce); #endif
Good Luck!
|
|
|
|
P_Shep
Legendary
Offline
Activity: 1795
Merit: 1208
This is not OK.
|
|
May 31, 2012, 08:30:26 PM |
|
Never mind, found the problem in __BIG_ENDIAN__ not being set for that target platform. This patch is required to build cgminer with BFLS support for OpenWRT: diff --git a/driver-bitforce.c b/driver-bitforce.c index a59338c..d95f0eb 100644 --- a/driver-bitforce.c +++ b/driver-bitforce.c @@ -354,7 +354,7 @@ static uint64_t bitforce_scanhash(struct thr_info *thr, struct work *work, uint6 while (1) { hex2bin((void*)&nonce, pnoncebuf, 4); -#ifndef __BIG_ENDIAN__ +#if !defined (__BIG_ENDIAN__) && !defined(MIPSEB) nonce = swab32(nonce); #endif
Good Luck! Would CFLAG -D_BIG_ENDIAN_ not be an option?
|
|
|
|
zefir
Donator
Hero Member
Offline
Activity: 919
Merit: 1000
|
|
May 31, 2012, 08:56:35 PM |
|
Would CFLAG -D_BIG_ENDIAN_ not be an option?
Not if you want to remain endian agnostic, i.e. if you add -D_BIG_ENDIAN_ to CFLAGS in the OpenWRT Makefile, you'll need to remove it for little endian builds. For Linux builds the way it is done in cgminer is wrong, but I guess it is so to compile on Windows. Usually you add bswapXX unconditionally to any network byte order (or big endian) value and the preprocessor resembles that call to an empty macro on big endian machines. In fact, building cgminer for OpenWRT warns about multiple definitions of bswap32 that are already defined in <linux/swab.h>. There is some potential to fix this, but since I can not test Windows builds I'd take it as is with the given workaround.
|
|
|
|
-ck (OP)
Legendary
Offline
Activity: 4256
Merit: 1645
Ruu \o/
|
|
May 31, 2012, 09:40:18 PM |
|
It's fixed in the git tree so grab a tarball instead from git or use git to grab the latest code.
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
Un zafado cualquiera
Full Member
Offline
Activity: 158
Merit: 100
aquí dice algo personal.
|
|
June 01, 2012, 03:40:24 AM |
|
Is there a way to eliminate dependence on curses. There where a lot of antivirus reporting it as a keylogger and is probably a never ending cycle telling antivirus company to check correctly. Evry antivirus is reporting libpdcurses as a trojan.
|
|
|
|
kano
Legendary
Offline
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
|
|
June 01, 2012, 03:53:05 AM |
|
Compile it yourself - it's an option
|
|
|
|
Un zafado cualquiera
Full Member
Offline
Activity: 158
Merit: 100
aquí dice algo personal.
|
|
June 01, 2012, 04:01:14 AM |
|
Compile it yourself - it's an option
I was trying not being a jerk. I think is more useful for the newbies not givin anything suspicius. Just in case its end bad.
|
|
|
|
kano
Legendary
Offline
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
|
|
June 01, 2012, 04:21:07 AM |
|
Compile it yourself - it's an option
I was trying not being a jerk. I think is more useful for the newbies not givin anything suspicius. Just in case its end bad. Ah you mean to have it always like that. No - I can't see that ever happening. Though I would point out the obvious: you're solution would not fix the problem. They would simply identify something else in cgminer to tag it as a virus. Windows virus checkers are inherently crap in this case, since they identify part of cgminer rather than the virus that installed cgminer. Of course if someone wrote a virus that installed the anti-virus program ... of course they would fix that problem ... but in this case I guess they are just a bunch of loser programmers who can't see the blatantly obvious crappyness of what they are doing in this case.
|
|
|
|
zefir
Donator
Hero Member
Offline
Activity: 919
Merit: 1000
|
|
June 01, 2012, 06:28:45 AM |
|
It's fixed in the git tree so grab a tarball instead from git or use git to grab the latest code.
You mean the endian thingy for BFLS? Not sure, the condition in driver-bitforce.c@HEAD:357 is still checked against __BIG_ENDIAN__, which seems to be not set in the gcc-Linaro-4.6 toolchain for building MIPS. Any reason not to use ntohl()/htonl() without explicit checking for endianess and let the the preprocessor taking care on that?
|
|
|
|
-ck (OP)
Legendary
Offline
Activity: 4256
Merit: 1645
Ruu \o/
|
|
June 01, 2012, 09:38:30 AM |
|
Any reason not to use ntohl()/htonl() without explicit checking for endianess and let the the preprocessor taking care on that?
No
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
kano
Legendary
Offline
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
|
|
June 01, 2012, 10:10:26 AM |
|
It's fixed in the git tree so grab a tarball instead from git or use git to grab the latest code.
You mean the endian thingy for BFLS? Not sure, the condition in driver-bitforce.c@HEAD:357 is still checked against __BIG_ENDIAN__, which seems to be not set in the gcc-Linaro-4.6 toolchain for building MIPS. ... The Icarus code was fixed by xiangfu 3 weeks ago that seems to match your exact change you mentioned on the previous page so I guess that's where you got that code from? https://github.com/ckolivas/cgminer/commit/b1785d1f07d9482b5ed6104c87b39a3888fa8efbBFL's - well - I'm not sure where the BFL code is going at the moment ...
|
|
|
|
zefir
Donator
Hero Member
Offline
Activity: 919
Merit: 1000
|
|
June 01, 2012, 02:13:30 PM |
|
Any reason not to use ntohl()/htonl() without explicit checking for endianess and let the the preprocessor taking care on that?
No It is not a big issue and I'd have already submitted the related patch, but I can't test Windows builds ATM and refrained from posting untested code...
|
|
|
|
zefir
Donator
Hero Member
Offline
Activity: 919
Merit: 1000
|
|
June 01, 2012, 02:19:39 PM |
|
Yes, I basically compared the difference between drivers and found that only the bitforce was missing the additional check for MIBSEB builds. Not sure how to interpret your last sentence, but it would be a pity if the support for some devices got negatively influenced by political dissents
|
|
|
|
kano
Legendary
Offline
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
|
|
June 01, 2012, 04:03:29 PM |
|
everytime i try to run java api notify i get a constant tag 13 in class file
Well "code tag" the actual error so I can see. Also include the output of "java -version" and lastly - of course it is "java API notify" (the capital letters I've typed before do matter) (though that is probably nothing to do with the problem) The fix may well be "javac API.java" but will require the java SDK Was helping someone in IRC who got the same error. I recompiled API.java (with an old java 6.0_03 SE) and got him to download it and it worked. Only to later find that the files were actually the same - the issue was the file protection. I've sent a pull to the git with the new API.class it only shows a file protection difference. So you may be able to fix it by changing the file protection of API.class in windows to be executable - though I'm really not sure of the standard method to do that in windows
|
|
|
|
Hyphen
Newbie
Offline
Activity: 20
Merit: 0
|
|
June 01, 2012, 08:16:14 PM |
|
For some reason, if cgminer crashes badly ( not my computer, my computer is still up and running. ) it appears that it deletes the cgminer executable. All the other files in the cgminer folder are there, just not the executable. Anybody else experience this? Has been happening to me about once every 3 weeks since around cgminer 2.3.3 I think. I'm running windows 7 and currently using cgminer 2.4.1, just experienced this issue again. Not sure what could be causing this. It's not standard hard disk data corruption, it's happened under 3 computers of mine now and no other programs seem to be effected.
|
|
|
|
|