Author

Topic: [ANN] Spondoolies-Tech - carrier grade, data center ready mining rigs - page 210. (Read 1260290 times)

hero member
Activity: 572
Merit: 500
To run a process in the background, include an & (an ampersand) at the end of the command you use to run the job.

see more stuff here >> http://www.cyberciti.biz/faq/linux-command-line-run-in-background/
sr. member
Activity: 434
Merit: 250
Try this from SSH
cd /usr/sbin

./lighttpd -f /etc/lighttpd/lighttpd.conf

See if it kicks up the gui atleast.



Code:
miner-FL1448081687# cd /usr/sbin
miner-FL1448081687# ./lighttpd -f /etc/lighttpd/lighttpd.conf
2015-01-03 17:46:43: (configfile.c.1240) a default document-root has to be set
2015-01-03 17:46:43: (server.c.646) setting default values failed

i ran cgminer and it stated

Code:
miner-FL1448081687# cgminer
 [2015-01-03 17:46:06] Started cgminer 4.8.0                    
Init
FLUSH!
 [2015-01-03 17:46:06] Need to specify at least one pool server.                    
 [2015-01-03 17:46:06] Pool setup failed    

what would the ssh command be to add a pool?

I'm going by my current PS on one of my SP20s. 

/usr/local/bin/cgminer --text-only --config /etc/cgminer.conf

But for sake of testing you can drop --text-only.

it would seem that I need to keep terminal open when using

Code:
/usr/local/bin/cgminer --text-only --config /etc/cgminer.conf 

otherwise the miner stops hashing.
legendary
Activity: 3892
Merit: 4331
For making micro SD on a Mac before I followed this:
https://bitcointalksearch.org/topic/antminer-s2-discussion-and-support-thread-515448
below is the quote with my modifications. EDIT: I also crossed the download firmware part because this might be irrelevant.
Quote
- ran to the store and bought a 4gb Sandisk microSD card. They didn't have any class 10 cards, only class 4, but it seems to work (ordered a couple class 10s from Amazon for backup).
- Downloaded onto my MacBook [the latest firmware from the [competitor] website, as well as] the SD card image from >snipped competitor image, replace with Spond image<
- put the new microSD card in the adapter, shoved it into my MacBook, read through the guide at http://elinux.org/RPi_Easy_SD_Card_Setup, and then ran these commands in Terminal:
   cd Desktop (your [image name].img will be most likely on the desktop, or drag it on the desktop if it is in the download folder initially)
   diskutil list (to find the disk name of SD card, mine was disk2, so replace disk2 below with what yours is)
   diskutil unmountDisk /dev/disk2
   sudo dd bs=1m if=[image name].img of=/dev/disk2 (this took 30 minutes to complete)
- once SD card was ready, follow the rest of Spond procedure and you are golden.

I did this for S2 microSD on Macbook air and it worked like a charm.
I asked Zvi to post adaptation of Linux procedure to Terminal/mac before, but he did not get to it yet.
legendary
Activity: 2338
Merit: 1124
Quote
You will need a micro-SD of at least 4GB and micro-SD to USB converter (card reader).

Download Win32 Disk Imager (project site http://sourceforge.net/projects/win32diskimager)
Download the recovery disk compressed image file from here for SP-windows-image  (120 MB).
Extract the file from #2, and store it in a location of choice. (e.g. C:\Users\Public\recoverysd.img 2GB image)
Insert an microSD Card - either formatted or blank - to the card reader.
Make sure that the card can be seen as a disk drive. If it's not formatted, and windows pops-up a format request – you can dismiss it.
Using Win32 Disk Imager write the image file (from #3) onto the microSD card disk drive.
When write is complete - download one of the following images:  SP10 or SP2x/SP3x.
Open the spond_images_spXX.zip - it will create spond_images_spXX directory with the needed files. It has two folders - one for SD recovery and one for booting from SD. You probably need the recovery, unless your mmc is bad. Each folder has two folders inside - one for each partition of the SD card.
Copy the files from the first partition to the SD-card. Don't override the MLO file, but override the other files.
It is now can be used as a the miner recovery media.
Skip the section about Linux and go to Miner recovery or Miner boot.

Did you do these step as well (I saw on your post the copying of the folder).  Even though it says SP10 on the Technical post above the part it's the main part needed or the SD card will not become bootable by the unit.

You can also make an image to perm. run from the SD card until a final answer is gotten.

i only have mac's at home, so i'll go through these steps fully tomorrow when i can take the miner to a win machine. (not sure if it should make a difference)

You could put the SD-card in your mac and make a fsck there. Otherwise, you could get the card from a working SP20, make a dd-image, then put the dd-image on your SD-card of the non-working machine...
sr. member
Activity: 486
Merit: 262
rm -rf stupidity
If you get some time if you follow the Linux part on how to make the SD recovery bootable img it will work on your Mac.

You have to do it all in Terminal but since OSX is based on BSD (iirc) you can do all of those commands.  You may not have to install somethings but it should be step by step still.

Quote
INSTRUCTIONS FOR LINUX CARD CREATION FOR SPXX:
The commands here are for Ubuntu, but they can be done from any distribution with the relevant adjustments.
Things to prepare:
MicroSD card of any size that you don't mind formatting
MicroSD to USB adapter
spond_images_spXX.zip file with the image (Downloadable from here SP10 or SP2x/SP3x)
cfdisk utility (sudo apt-get install cfdisk)
mkfs.xfs utility (sudo apt-get install xfsprogs)
1) Open shell
2) Execute "ls /dev | grep sd" to see what storage devices you have.
3) Insert SD card
4) Execute "ls /dev | grep sd" to see what storage devices were added. Lets say it is /dev/sdx and  /dev/sdx1
(if sdx1 was auto-mounted, un-mount it by executing "umount /media/")
5) Execute "sudo cfdisk /dev/sdx"       // use your device here - be careful not to format main drive!!!
    - delete all partitions on sd-card
- Create first partition (boot)
    - Create "new" -> "primary" partition of size 400MB from the "beginning" of the sd-card.
    - Mark it as "bootable"
    - Select type 0b (W95 FAT32)
 - Create second partition (config)
    - Create "new" -> "primary" partition of any size bigger then 1GB
    - Select type 83 (Linux)
 - Select "write" and "quit"
6a) Execute "sudo mkdosfs /dev/sdx1"   // use your device here - be careful not to format your main drive!!!
6b) Execute "sudo mkfs.xfs /dev/sdx2"   // use your device here - be careful not to format your main drive!!!
7) Type "sync", remove and insert the sd-card from the USB slot and open the new partition
Cool Open the spond_images_spXX.zip - it will create spond_images_spXX directory with the needed files. It has two folders - one for SD recovery and one for booting from SD. You probably need the recovery. Each folder has two folders inside - one for each partition.
9) Copy the MLO file from the "1st partition" to the sd-card first partition (msdos) - this must be the first file you copy to the sd-card
10) Copy the rest of the files from directory 1st-partition to the sd-card 1st partition, including sub-directories  (uImage, u-boot.img etc`)
11) Copy the files from directory 2st-partition to the sd-card 2nd partition (can be empty)
12) type `sync` and unmount your micro-sd

If I get some time today (you are EU correct?) I'll get my Macbook Pro out and try it.  Just to save you sometime if it does not work when you get up.
sr. member
Activity: 434
Merit: 250
Quote
You will need a micro-SD of at least 4GB and micro-SD to USB converter (card reader).

Download Win32 Disk Imager (project site http://sourceforge.net/projects/win32diskimager)
Download the recovery disk compressed image file from here for SP-windows-image  (120 MB).
Extract the file from #2, and store it in a location of choice. (e.g. C:\Users\Public\recoverysd.img 2GB image)
Insert an microSD Card - either formatted or blank - to the card reader.
Make sure that the card can be seen as a disk drive. If it's not formatted, and windows pops-up a format request – you can dismiss it.
Using Win32 Disk Imager write the image file (from #3) onto the microSD card disk drive.
When write is complete - download one of the following images:  SP10 or SP2x/SP3x.
Open the spond_images_spXX.zip - it will create spond_images_spXX directory with the needed files. It has two folders - one for SD recovery and one for booting from SD. You probably need the recovery, unless your mmc is bad. Each folder has two folders inside - one for each partition of the SD card.
Copy the files from the first partition to the SD-card. Don't override the MLO file, but override the other files.
It is now can be used as a the miner recovery media.
Skip the section about Linux and go to Miner recovery or Miner boot.

Did you do these step as well (I saw on your post the copying of the folder).  Even though it says SP10 on the Technical post above the part it's the main part needed or the SD card will not become bootable by the unit.

You can also make an image to perm. run from the SD card until a final answer is gotten.

i only have mac's at home, so i'll go through these steps fully tomorrow when i can take the miner to a win machine. (not sure if it should make a difference)
sr. member
Activity: 434
Merit: 250
thanks to everyone for their help. I'll let it run tonight as is and hopefully Zvi can help to restore the GUI when he gets back to work.

your assistance is very much appreciated.

 
sr. member
Activity: 486
Merit: 262
rm -rf stupidity
Quote
You will need a micro-SD of at least 4GB and micro-SD to USB converter (card reader).

Download Win32 Disk Imager (project site http://sourceforge.net/projects/win32diskimager)
Download the recovery disk compressed image file from here for SP-windows-image  (120 MB).
Extract the file from #2, and store it in a location of choice. (e.g. C:\Users\Public\recoverysd.img 2GB image)
Insert an microSD Card - either formatted or blank - to the card reader.
Make sure that the card can be seen as a disk drive. If it's not formatted, and windows pops-up a format request – you can dismiss it.
Using Win32 Disk Imager write the image file (from #3) onto the microSD card disk drive.
When write is complete - download one of the following images:  SP10 or SP2x/SP3x.
Open the spond_images_spXX.zip - it will create spond_images_spXX directory with the needed files. It has two folders - one for SD recovery and one for booting from SD. You probably need the recovery, unless your mmc is bad. Each folder has two folders inside - one for each partition of the SD card.
Copy the files from the first partition to the SD-card. Don't override the MLO file, but override the other files.
It is now can be used as a the miner recovery media.
Skip the section about Linux and go to Miner recovery or Miner boot.

Did you do these step as well (I saw on your post the copying of the folder).  Even though it says SP10 on the Technical post above the part it's the main part needed or the SD card will not become bootable by the unit.

You can also make an image to perm. run from the SD card until a final answer is gotten.
sr. member
Activity: 434
Merit: 250
Is this one of the SP20's at your house?  It looks like it will need the SD recovery.  If the actual mnt path is gone like wh00per stated earlier it seems to have owned that part of the system.  I can't remember the exact fsck command for this version of *nix.  Even then I think it will be a lot more of a pain to do vs running the SD recovery.

i tried SD recovery earlier but the miner wouldn't have it - never got as far as 'christmas lights' it just stuck.

it is mining now.. just totally non-configurable

Code:
[2015-01-03 18:57:49] Accepted 1940284b Diff 2.6K/843 S30 0                     
(5s):1.746T (1m):1.686T (5m):784.2G (15m):312.8G (avg):1.757Th/s 
sr. member
Activity: 486
Merit: 262
rm -rf stupidity
Is this one of the SP20's at your house?  It looks like it will need the SD recovery.  If the actual mnt path is gone like wh00per stated earlier it seems to have owned that part of the system.  I can't remember the exact fsck command for this version of *nix.  Even then I think it will be a lot more of a pain to do vs running the SD recovery.
sr. member
Activity: 434
Merit: 250
Raskul /mnt/mmc-config/etc/lighttpd.conf is the same as /etc/lighttpd.conf

Either way do both of of these to see.

"cat /mnt/mmc-config/etc/lighttpd.conf" 

and

"cat /etc/lighttpd.conf"

Then compare.  From the command it looks like you tried to execute the file but it is just a .conf file.  "cat" will display the contents quickly.

meh pt 2:

Code:
miner-FL1448081687# cat /mnt/mmc-config/etc/lighttpd.conf
cat: can't open '/mnt/mmc-config/etc/lighttpd.conf': No such file or directory
miner-FL1448081687# cat /etc/lighttpd.conf
cat: can't open '/etc/lighttpd.conf': No such file or directory
miner-FL1448081687#

sr. member
Activity: 486
Merit: 262
rm -rf stupidity
Raskul /mnt/mmc-config/etc/lighttpd.conf is the same as /etc/lighttpd.conf

Either way do both of of these to see.

"cat /mnt/mmc-config/etc/lighttpd.conf" 

and

"cat /etc/lighttpd.conf"

Then compare.  From the command it looks like you tried to execute the file but it is just a .conf file.  "cat" will display the contents quickly.
sr. member
Activity: 434
Merit: 250
yeah .. practically you started cgminer "by hand". Reminds me of pushing my car ..  the dowloader is a curl call which retrieves and extracts the update.

now.. the webserver configuration file should be located in /mnt/mmc-config/etc/lighttpd.conf

This is what I have in mine .. is yours looking similar?

Code:
server.document-root = "/var/www/"
server.errorlog = "/tmp/lighttpd.error"

index-file.names = ( "index.php" )

mimetype.assign = (
".html" => "text/html",
".php" => "text/html",
        ".css" => "text/css",
        ".js" => "text/javascript",

)

server.modules += (
"mod_fastcgi",
"mod_auth",
"mod_redirect"
  )

server.pid-file = "/var/run/lighttpd.pid"

fastcgi.server += ( ".php" =>
    ((
        "bin-path" => "/usr/bin/php-cgi",
        "socket" => "/tmp/php.socket",
        "max-procs" => 5,
        "bin-environment" => (
            "PHP_FCGI_CHILDREN" => "0",
            "PHP_FCGI_MAX_REQUESTS" => "10000"
        ),
        "bin-copy-environment" => (
            "PATH", "SHELL", "USER"
        ),
        "broken-scriptfilename" => "enable"
    ))
)

auth.backend = "htpasswd"
auth.backend.htpasswd.userfile  = "/etc/ui.pwd"

auth.require = ( "/" =>
        (
                "method" => "basic",
                "realm" => "Welcome to SP30. First login: admin/admin",
                "require" => "valid-user"
        )
)

$SERVER["socket"] == ":443" {
ssl.engine = "enable"
ssl.pemfile = "/tmp/spondoolies-cert.pem"
}

include "redirect.conf"





meh:

Code:
miner-FL1448081687# /mnt/mmc-config/etc/lighttpd.conf
-sh: /mnt/mmc-config/etc/lighttpd.conf: not found
hero member
Activity: 572
Merit: 500
yeah .. practically you started cgminer "by hand". Reminds me of pushing my car ..  the dowloader is a curl call which retrieves and extracts the update.

now.. the webserver configuration file should be located in /mnt/mmc-config/etc/lighttpd.conf

This is what I have in mine .. is yours looking similar?

Code:
server.document-root = "/var/www/"
server.errorlog = "/tmp/lighttpd.error"

index-file.names = ( "index.php" )

mimetype.assign = (
".html" => "text/html",
".php" => "text/html",
        ".css" => "text/css",
        ".js" => "text/javascript",

)

server.modules += (
"mod_fastcgi",
"mod_auth",
"mod_redirect"
  )

server.pid-file = "/var/run/lighttpd.pid"

fastcgi.server += ( ".php" =>
    ((
        "bin-path" => "/usr/bin/php-cgi",
        "socket" => "/tmp/php.socket",
        "max-procs" => 5,
        "bin-environment" => (
            "PHP_FCGI_CHILDREN" => "0",
            "PHP_FCGI_MAX_REQUESTS" => "10000"
        ),
        "bin-copy-environment" => (
            "PATH", "SHELL", "USER"
        ),
        "broken-scriptfilename" => "enable"
    ))
)

auth.backend = "htpasswd"
auth.backend.htpasswd.userfile  = "/etc/ui.pwd"

auth.require = ( "/" =>
        (
                "method" => "basic",
                "realm" => "Welcome to SP30. First login: admin/admin",
                "require" => "valid-user"
        )
)

$SERVER["socket"] == ":443" {
ssl.engine = "enable"
ssl.pemfile = "/tmp/spondoolies-cert.pem"
}

include "redirect.conf"


sr. member
Activity: 486
Merit: 262
rm -rf stupidity
Now I would wait for Zv to chime in but here is the link that the updater pulls from:

http://firmware.spondoolies-tech.com/release/download?id=SP2x&ver=2.5.64

There is a command in /usr/local/bin "upgrade-software.sh" and "upgrade-software-from-file.sh" which it looks like the "upgrade-software.sh" would pull and update the firmware from a link (Just to see it will recover the GUI.  "./upgrade-software.sh --url=http://firmware.spondoolies-tech.com/release/download?id=SP2x&ver=2.5.64"   Now again this is just a shot in the dark (my boxes are at my shop and can't go over there right now to take one down and play with it).

Just digging around right now remotely sifting through some of the things that usually work on the stripped down version of linux.
sr. member
Activity: 434
Merit: 250


  568 root      3000 S    {miner_starter_s} /bin/sh /usr/local/bin/miner_starter_simple start
  569 root      3000 S    {ifup-requester} /bin/sh /usr/local/bin/ifup-requester
  573 root      3000 S    {mining_watchdog} /bin/sh /usr/local/bin/mining_watchdog start

See if you can still see the bolded file.  It is the services start for the mining process.

yes it has those lines...

and we have life, but no GUI. it's a start

Code:
[2015-01-03 18:04:29] Accepted 04de1a8f Diff 53/32 S30 0                    
 [2015-01-03 18:04:29] Accepted b141c561 Diff 370/32 S30 0                    
 [2015-01-03 18:04:29] Accepted f22a3d42 Diff 271/32 S30 0                    
 [2015-01-03 18:04:29] Accepted 02b2e0be Diff 95/32 S30 0                    
(5s):275.9G (1m):103.8G (5m):24.21G (15m):8.287G (avg):472.1Gh/s    
sr. member
Activity: 434
Merit: 250
Try this from SSH
cd /usr/sbin

./lighttpd -f /etc/lighttpd/lighttpd.conf

See if it kicks up the gui atleast.



Code:
miner-FL1448081687# cd /usr/sbin
miner-FL1448081687# ./lighttpd -f /etc/lighttpd/lighttpd.conf
2015-01-03 17:46:43: (configfile.c.1240) a default document-root has to be set
2015-01-03 17:46:43: (server.c.646) setting default values failed

i ran cgminer and it stated

Code:
miner-FL1448081687# cgminer
 [2015-01-03 17:46:06] Started cgminer 4.8.0                    
Init
FLUSH!
 [2015-01-03 17:46:06] Need to specify at least one pool server.                    
 [2015-01-03 17:46:06] Pool setup failed    

what would the ssh command be to add a pool?

I'm going by my current PS on one of my SP20s. 

/usr/local/bin/cgminer --text-only --config /etc/cgminer.conf

But for sake of testing you can drop --text-only.

ok, i think we are getting somewhere... my pool info is all still in there (somewhere)

Code:
miner-FL1448081687# /usr/local/bin/cgminer --text-only --config /etc/cgminer.con
f
 [2015-01-03 17:54:46] Started cgminer 4.8.0                   
 [2015-01-03 17:54:46] Loaded configuration file /etc/cgminer.conf                   
Init
FLUSH!
 [2015-01-03 17:54:46] Probing for an alive pool                   
 [2015-01-03 17:54:46] Failed to resolve (?wrong URL) stratum.bitcoin.cz:3333                   
 [2015-01-03 17:54:46] Failed to resolve (?wrong URL) mmpool.org:3333                   
 [2015-01-03 17:54:46] Failed to resolve (?wrong URL) stratum.mining.eligius.st:3334                   
 [2015-01-03 17:54:52] Pool 0 difficulty changed to 32                   
 [2015-01-03 17:54:52] Network diff set to 40.6G                   
 [2015-01-03 17:54:52] Pool 2 difficulty changed to 128.0                   
 [2015-01-03 17:54:52] Pool 1 difficulty changed to 1024                   
 [2015-01-03 17:54:57] API bind to port 4028 failed - trying again in 30sec                   
 [2015-01-03 17:55:27] API bind to port 4028 failed - trying again in 30sec                   
 [2015-01-03 17:55:29] Pool 0 difficulty changed to 8                   
 [2015-01-03 17:55:29] Stratum from pool 0 requested work restart                   
FLUSH!
 [2015-01-03 17:55:57] API bind to port 4028 failed - trying again in 30sec                   
(5s):0.000 (1m):0.000 (5m):0.000 (15m):0.000 (avg):0.000h/s     
   
sr. member
Activity: 486
Merit: 262
rm -rf stupidity
Try this from SSH
cd /usr/sbin

./lighttpd -f /etc/lighttpd/lighttpd.conf

See if it kicks up the gui atleast.



Code:
miner-FL1448081687# cd /usr/sbin
miner-FL1448081687# ./lighttpd -f /etc/lighttpd/lighttpd.conf
2015-01-03 17:46:43: (configfile.c.1240) a default document-root has to be set
2015-01-03 17:46:43: (server.c.646) setting default values failed

i ran cgminer and it stated

Code:
miner-FL1448081687# cgminer
 [2015-01-03 17:46:06] Started cgminer 4.8.0                    
Init
FLUSH!
 [2015-01-03 17:46:06] Need to specify at least one pool server.                    
 [2015-01-03 17:46:06] Pool setup failed    

what would the ssh command be to add a pool?

I'm going by my current PS on one of my SP20s. 

/usr/local/bin/cgminer --text-only --config /etc/cgminer.conf

But for sake of testing you can drop --text-only.

  568 root      3000 S    {miner_starter_s} /bin/sh /usr/local/bin/miner_starter_simple start
  569 root      3000 S    {ifup-requester} /bin/sh /usr/local/bin/ifup-requester
  573 root      3000 S    {mining_watchdog} /bin/sh /usr/local/bin/mining_watchdog start

See if you can still see the bolded file.  It is the services start for the mining process.
sr. member
Activity: 486
Merit: 262
rm -rf stupidity
Try this from SSH
cd /usr/sbin

./lighttpd -f /etc/lighttpd/lighttpd.conf

See if it kicks up the gui atleast.



Code:
miner-FL1448081687# cd /usr/sbin
miner-FL1448081687# ./lighttpd -f /etc/lighttpd/lighttpd.conf
2015-01-03 17:46:43: (configfile.c.1240) a default document-root has to be set
2015-01-03 17:46:43: (server.c.646) setting default values failed

i ran cgminer and it stated

Code:
miner-FL1448081687# cgminer
 [2015-01-03 17:46:06] Started cgminer 4.8.0                    
Init
FLUSH!
 [2015-01-03 17:46:06] Need to specify at least one pool server.                    
 [2015-01-03 17:46:06] Pool setup failed    

what would the ssh command be to add a pool?

I'm going by my current PS on one of my SP20s. 

/usr/local/bin/cgminer --text-only --config /etc/cgminer.conf

But for sake of testing you can drop --text-only.
sr. member
Activity: 434
Merit: 250
Try this from SSH
cd /usr/sbin

./lighttpd -f /etc/lighttpd/lighttpd.conf

See if it kicks up the gui atleast.



Code:
miner-FL1448081687# cd /usr/sbin
miner-FL1448081687# ./lighttpd -f /etc/lighttpd/lighttpd.conf
2015-01-03 17:46:43: (configfile.c.1240) a default document-root has to be set
2015-01-03 17:46:43: (server.c.646) setting default values failed

i ran cgminer and it stated

Code:
miner-FL1448081687# cgminer
 [2015-01-03 17:46:06] Started cgminer 4.8.0                    
Init
FLUSH!
 [2015-01-03 17:46:06] Need to specify at least one pool server.                    
 [2015-01-03 17:46:06] Pool setup failed    

what would the ssh command be to add a pool?
Jump to: