Trying to set a build envirement via
build-avalon-image.sh --clone to make cgminer binary and image with it. Really, it takes a long time to build a toolchain.. Got some errors in process due to $LD_LIBRARY_PATH variable .. now need to run again >_<. Changed git path in script to clone latest cgminer 3.3.1 also.
ckolivas, can you also upload to git changes that you made in luci / cgminer-webui , please?
currently it's taken from here
git clone git://github.com/BitSyncom/luci.git && (cd luci && git checkout -b cgminer-webui origin/cgminer-webui) )
I know what i must change to be able to run inverted pwm fan, but it's not so easy in first time to make binary for avalon with option enabled xor(0xA0,fan) in avalon_init_task() ... Im intending to buld a functional image identical to 20130627 for now from sources, then i will try to make changes.
EDIT:
So basically, i edited the sources and compiled it successfully!
Only problem that toolchain is in process of building right now, so i have only binary for x86 now.
What i edited :
in cgminer.c
OPT_WITHOUT_ARG("--avalon-invert-pwm",
opt_set_bool, &opt_avalon_invert_pwm,
"Enable avalon use with inverted PWM fans."),
in driver-avalon.h
extern bool opt_avalon_invert_pwm;
in driver-avalon.c
bool opt_avalon_invert_pwm;
...
if (opt_avalon_invert_pwm) {
at->fan_pwm_data = 0xA0 ^ at->fan_pwm_data;
}
That's all. Now only testing is needed.