Pages:
Author

Topic: Hacking The KNC Firmware: Overclocking - page 18. (Read 144377 times)

newbie
Activity: 14
Merit: 0
I made a small bin file for those not sure how to apply oc setting via cgminer.sh.

The bin file is loaded via the upgrade tab in miner administration just like you would upload a firmware. On reboot the modification will be gone again and bin file will have to be uploaded again in order to apply oc setting.

The bin file contains a folder with two files:

runme.sh
Code:
#!/bin/sh
cp cgminer.sh /etc/init.d/cgminer.sh
echo "900MHz OC setting copied! Please go back to Miner Settings page and Restart Miner without rebooting by clicking here."

cgminer.sh
Code:
#!/bin/sh

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

use_bfgminer=
if [ -f /config/miner.conf ]; then
. /config/miner.conf
fi
if [ "$use_bfgminer" = true ] ; then
DAEMON=/usr/bin/bfgminer
NAME=bfgminer
DESC="BFGMiner daemon"
EXTRA_OPT="-S knc:auto"
else
DAEMON=/usr/bin/cgminer
NAME=cgminer
DESC="Cgminer daemon"
EXTRA_OPT=
fi

set -e

test -x "$DAEMON" || exit 0

do_start() {
# Stop SPI poller
spi_ena=0
i2cset -y 2 0x71 2 $spi_ena

good_ports=""
bad_ports=""

# CLear faults in megadlynx's
for b in 3 4 5 6 7 8 ; do
for d in 0 1 2 3 4 5 6 7 ; do
i2cset -y $b 0x1$d 3 >/dev/null 2>&1 || true
done
done

for p in 0 1 2 3 4 5 ; do
i2cset -y 2 0x71 1 $((p+1))
good_flag=0
ar="$(spi-test -s 50000 -OHC -D /dev/spidev1.0 0x80,3,0,0,0,0,0,0 | tail -c 13)"
                if [ "x$ar" = "x00 30 A0 01" ] ; then
good_flag=1
fi
ar="$(spi-test -s 50000 -OHC -D /dev/spidev1.0 0x80,2,0,0,0,0,0,0 | tail -c 13)"
                if [ "x$ar" = "x00 30 A0 01" ] ; then
good_flag=1
fi
ar="$(spi-test -s 50000 -OHC -D /dev/spidev1.0 0x80,1,0,0,0,0,0,0 | tail -c 13)"
                if [ "x$ar" = "x00 30 A0 01" ] ; then
good_flag=1
fi
ar="$(spi-test -s 50000 -OHC -D /dev/spidev1.0 0x80,0,0,0,0,0,0,0 | tail -c 13)"
                if [ "x$ar" = "x00 30 A0 01" ] ; then
good_flag=1
fi

if [ "$good_flag" = "1" ] ; then
good_ports=$good_ports" $p"
else
bad_ports=$bad_ports" $p"
fi
done

if [ -n "$good_ports" ] ; then
for p in $good_ports ; do

# Re-enable PLL START MOD FW 1.01
i2cset -y 2 0x71 1 $((p+1))
for c in 0 1 2 3 ; do
cmd=$(printf "0x84,0x%02X,0,0" $c)
spi-test -s 50000 -OHC -D /dev/spidev1.0 $cmd >/dev/null
# cmd=$(printf "0x86,0x%02X,0x02,0x01" $c)
# cmd=$(printf "0x86,0x%02X,0x02,0x11" $c)
# cmd=$(printf "0x86,0x%02X,0x02,0x21" $c)
cmd=$(printf "0x86,0x%02X,0x02,0x31" $c)
# cmd=$(printf "0x86,0x%02X,0x02,0x41" $c)
# cmd=$(printf "0x86,0x%02X,0x02,0x51" $c)
spi-test -s 50000 -OHC -D /dev/spidev1.0 $cmd >/dev/null
cmd=$(printf "0x85,0x%02X,0,0" $c)
spi-test -s 50000 -OHC -D /dev/spidev1.0 $cmd >/dev/null
done
# END MOD FW 1.01

# re-enable all cores
i=0
while [[ $i -lt 192 ]] ; do
i2cset -y 2 0x2$p $i 1
i=$((i+1))
done
spi_ena=$(( spi_ena | (1 << $p) ))
done
fi
if [ -n "$bad_ports" ] ; then
for p in $bad_ports ; do

# Disable PLL START MOD FW 1.01
i2cset -y 2 0x71 1 $((p+1))
for c in 0 1 2 3 ; do
cmd=$(printf "0x84,0x%02X,0,0" $c)
spi-test -s 50000 -OHC -D /dev/spidev1.0 $cmd >/dev/null
done
# END MOD FW 1.01

# disable all cores
i=0
while [[ $i -lt 192 ]] ; do
i2cset -y 2 0x2$p $i 0
i=$((i+1))
done
spi_ena=$(( spi_ena & ~(1 << $p) ))
done
fi

# Disable direct SPI
i2cset -y 2 0x71 1 0

# Enable SPI poller
i2cset -y 2 0x71 2 $spi_ena

start-stop-daemon -b -S -x screen -- -S cgminer -t cgminer -m -d "$DAEMON" --api-listen -c /config/cgminer.conf $EXTRA_OPT
}

do_stop() {
killall -9 bfgminer cgminer 2>/dev/null || true
}
case "$1" in
  start)
        echo -n "Starting $DESC: "
do_start
        echo "$NAME."
        ;;
  stop)
        echo -n "Stopping $DESC: "
do_stop
        echo "$NAME."
        ;;
  restart|force-reload)
        echo -n "Restarting $DESC: "
        do_stop
        do_start
        echo "$NAME."
        ;;
  *)
        N=/etc/init.d/$NAME
        echo "Usage: $N {start|stop|restart|force-reload}" >&2
        exit 1
        ;;
esac

exit 0

runme.sh will copy a modified version of cgminer.sh set for 900MHz to /etc/init.d/ overwriting the original cgminer.sh

After uploading the bin file, you need to go to the mining tab in administration and pick Restart Miner in order to apply setting.

Content of bin file can be examined and modified using e.g. 7zip

Other oc settings are listed in the modified cgminer.sh like:

Code:
# cmd=$(printf "0x86,0x%02X,0x02,0x01" $c)
# cmd=$(printf "0x86,0x%02X,0x02,0x11" $c)
# cmd=$(printf "0x86,0x%02X,0x02,0x21" $c)
 cmd=$(printf "0x86,0x%02X,0x02,0x31" $c)
# cmd=$(printf "0x86,0x%02X,0x02,0x41" $c)
# cmd=$(printf "0x86,0x%02X,0x02,0x51" $c)

# are disabled settings

Active setting is 231 which corresponds to 900MHz:

Code:
cmd=$(printf "0x86,0x%02X,0x02,0x31" $c)

Lowest disabled setting is 201 which corresponds to 825MHz:

Code:
# cmd=$(printf "0x86,0x%02X,0x02,0x01" $c)

Highest disabled setting is 251 which corresponds to 950MHz:

Code:
# cmd=$(printf "0x86,0x%02X,0x02,0x51" $c)

If you wish to go beyond these ranges, then look up the list of settings posted in various threads here.

Applying any other setting than the active 231 setting require that you modify the cgminer.sh in the bin file.

I take no responsibility for any damage due to oc if such should occur. The 231 setting is quite safe if you have proper cooling, but you will probably need to adjust die voltages to match the higher asic frequency.

Any changes made to voltages in Advanced Settings, will reset frequency to stock default setting and you will have to pick Restart Miner in the Mining tab in order to reapply oc settings.

Download available here:

https://www.dropbox.com/s/8w4dacsp8r1u9eu/1.01.900MHz.bin

Thanks to all those who shared their findings in this great thread.
hero member
Activity: 574
Merit: 500
1.21 GIGA WATTS
Hi Padrino,

Is there somewhere I can get it now?  Or when do you think you'll have it on the web/server ready for downloading?

Thanks
merv77

Also sent you PM.
member
Activity: 329
Merit: 10
https://eloncity.io/
Oh well.
hero member
Activity: 784
Merit: 504
Dream become broken often
he is probably still gona charge for it Tongue lucky i bought a nov jup with pad. FW already on it hehe, it arrives friday
legendary
Activity: 3234
Merit: 1221
Not sure why you need a server so much, just put it on dropbox.
member
Activity: 329
Merit: 10
https://eloncity.io/
Too many PMs so I haven't hit them all. I was side tracked trying to chase down a seller on ebay pawning it off as his own, I know who it is but they are ignoring me now..

In any case the site should be up in a day or so, working with someone else on the board putting it up for me, looked like we were done but he had some server issues..

Thanks Padrino!
legendary
Activity: 1428
Merit: 1000
https://www.bitworks.io
Too many PMs so I haven't hit them all. I was side tracked trying to chase down a seller on ebay pawning it off as his own, I know who it is but they are ignoring me now..

In any case the site should be up in a day or so, working with someone else on the board putting it up for me, looked like we were done but he had some server issues..
newbie
Activity: 3
Merit: 0
padrino you need a server at your disposal?
speed 350 Mb / s the world
member
Activity: 329
Merit: 10
https://eloncity.io/
Mine as well. Not part of the club.  I haven't posted since this thread began so guess I'm unknown. Oh well.  At this point I think we're squeezing pennies anyway. I'll stick with 750 until the next difficulty jump then it's lights out.  
legendary
Activity: 3234
Merit: 1221
Does anyone have this firmware available for download?  I see talk of posting it but that's it.  Would love to be able to OC an October unit past 750.  Thanks

My PM's both here and on KNC's forum have gone unanswered
member
Activity: 329
Merit: 10
https://eloncity.io/
Does anyone have this firmware available for download?  I see talk of posting it but that's it.  Would love to be able to OC an October unit past 750.  Thanks
hero member
Activity: 574
Merit: 500
1.21 GIGA WATTS
Working on setting up a site to distribute it, should be up later today so stay tuned..

Thanks padrino

I'll be very interested in giving it a try

I have 3 October Jupiters, one with 850W, one with 1000W, and one with 1500W PSUs
I'll try it on the 1500W first to see the power draw.
hero member
Activity: 560
Merit: 500
Working on setting up a site to distribute it, should be up later today so stay tuned..

Someone on ebay is selling it for $75, I give them credit for being an enterprising seller but i only gave it out to a few folks at first and I'm disappointed they didn't talk with me about as they didn't spend the 40+ hours figuring things out...

Could you please tell me your suggested PSU for overclocking october jupiter with your firmware ? Thanks Smiley

An 850W should get you buy but I generally use 100W or 1200W for both October and November..

thanks Smiley So now we're waiting your modded firmware Smiley
legendary
Activity: 1428
Merit: 1000
https://www.bitworks.io
Working on setting up a site to distribute it, should be up later today so stay tuned..

Someone on ebay is selling it for $75, I give them credit for being an enterprising seller but i only gave it out to a few folks at first and I'm disappointed they didn't talk with me about as they didn't spend the 40+ hours figuring things out...

Could you please tell me your suggested PSU for overclocking october jupiter with your firmware ? Thanks Smiley

An 850W should get you buy but I generally use 100W or 1200W for both October and November..
hero member
Activity: 560
Merit: 500
Working on setting up a site to distribute it, should be up later today so stay tuned..

Someone on ebay is selling it for $75, I give them credit for being an enterprising seller but i only gave it out to a few folks at first and I'm disappointed they didn't talk with me about as they didn't spend the 40+ hours figuring things out...

Could you please tell me your suggested PSU for overclocking october jupiter with your firmware ? Thanks Smiley
legendary
Activity: 1428
Merit: 1000
https://www.bitworks.io
Working on setting up a site to distribute it, should be up later today so stay tuned..

Someone on ebay is selling it for $75, I give them credit for being an enterprising seller but i only gave it out to a few folks at first and I'm disappointed they didn't talk with me about as they didn't spend the 40+ hours figuring things out...
hero member
Activity: 560
Merit: 500
hey guys great news!! i was able to get my hands on a copy of custom knc firmware that unlocks the clock speed of the all jups , currently pushing 930 ghs 100% stock 4 vrm box.

My assumption would be the version is 1.01.1-padrino?



where is this version available for download?


padrino's version is also for october jupiters ?  With which PSU ( watts ? Amp ?) Thanks
legendary
Activity: 3234
Merit: 1221
hey guys great news!! i was able to get my hands on a copy of custom knc firmware that unlocks the clock speed of the all jups , currently pushing 930 ghs 100% stock 4 vrm box.

My assumption would be the version is 1.01.1-padrino?



where is this version available for download?

You have to PM padrino, or someone else who has it.
hero member
Activity: 574
Merit: 500
1.21 GIGA WATTS
hey guys great news!! i was able to get my hands on a copy of custom knc firmware that unlocks the clock speed of the all jups , currently pushing 930 ghs 100% stock 4 vrm box.

My assumption would be the version is 1.01.1-padrino?



where is this version available for download?
hero member
Activity: 812
Merit: 502
So after a long road a Jupiter came from 400GH/s up to 900GH/s?
Is this the maximum now?
Pages:
Jump to: