And using bfgminer how i can oc? With cgminer no problem but using bfgminer i don't know how oc the saturn
A lot of thanks! Have a nice day!
EDIT: we are trying this
https://bitcointalksearch.org/topic/m.5678594 but we can't do it work, we have 1.00 firmware, is only for old version?
I use the same shell script I used with 99.1 test FW.
It is often a modified version of the default /etc/init.d/cgminer.sh
To use a COPY of that file with bfgminer just replace every instance of cgminer with bfgminer instead.
In the top of the file it also refers to
DAEMON= (the full path to the bfgminer executable)
If you type 'which bfgminer' it will tell you what to put in there.
The answer is '/usr/bin/bfgminer' , but it is helpful to know how to find things.
EXCEPT for the cgminer.conf part at the end.
both bfgminer and cgminer can use same .conf file so it can stay the same.
Hope this helps.
YMMV
BFGminer someone could put your file to OC, CGminer modifying the file fails.
you can add a screen capture of your advance?
Greetings and thanks
The bondus method works well!
I do not have my copy of that method handy though.
I do not still use this as I can change the clocks on the fly under program control.
(for those interested, use a subset of commands from the shell script)
Below is a working shell script I can use to start one of my Saturn OC'd
Please note!
At MINIMUM you will need to change the DAEMON line as described above
(DAEMON=/usr/bin/bfgminer)
I use bfgminer 3.10.0 which I compiled from source.
(read my posts in this thread if interested)
The customizations depend on KNOWING what slot each ASIC is plugged in.
Subtract 1 from what the Advanced page tells you.
IE: ASIC 1 on the Advanced page is
if [ $p -eq 0 ]
in the code.
#!/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=./bfgminer
NAME=bfgminer
DESC="BFGminer daemon"
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
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
##############################################################################
if [ $p -eq 0 ]
then
if [ $c -eq 0 ]
then
cmd=$(printf "0x86,0x%02X,0x01,0xF1" $c)
fi
if [ $c -eq 1 ]
then
cmd=$(printf "0x86,0x%02X,0x01,0xF1" $c)
fi
if [ $c -eq 2 ]
then
cmd=$(printf "0x86,0x%02X,0x02,0x21" $c)
fi
if [ $c -eq 3 ]
then
cmd=$(printf "0x86,0x%02X,0x02,0x31" $c)
fi
fi
if [ $p -eq 1 ]
then
if [ $c -eq 0 ]
then
cmd=$(printf "0x86,0x%02X,0x02,0x01" $c)
fi
if [ $c -eq 1 ]
then
cmd=$(printf "0x86,0x%02X,0x02,0x41" $c)
fi
if [ $c -eq 2 ]
then
cmd=$(printf "0x86,0x%02X,0x02,0x21" $c)
fi
if [ $c -eq 3 ]
then
cmd=$(printf "0x86,0x%02X,0x02,0x11" $c)
fi
fi
################################################
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
# 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
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
# 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
/etc/init.d/cgminer.sh stop
start-stop-daemon -b -S -x screen -- -S bfgminer -t bfgminer -m -d "$DAEMON" -S knc:auto -c /config/cgminer.conf
}
do_stop() {
killall -9 bfgminer || 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
The custom portion is between the #################### lines
I also added the line
/etc/init.d/cgminer.sh stop
(it's near the end, because monitordcdc sometimes starts cgminer while bfgminer is starting)
It's ugly but it works.
Standard parachute rigger line of sight warranty applies.
YMMV