daily pastebin goal
27%
SHARE
TWEET

Untitled

a guest Feb 27th, 2013 1,666 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Installing CGminer on DD-WRT
  2.  
  3. http://ck.kolivas.org/apps/cgminer/
  4. CGMiner documentation located in CGMINER_DOCS directory.
  5.  
  6. Note: Installing CGminer on a router is a non-trivial task!
  7.       This assumes some linux and maybe some embedded systems knowlege.
  8.       Some of the scripts may need tweaking to your specific system.
  9.  
  10.  
  11. YOU WILL NEED:
  12.  
  13. A broadcom based DD-WRT compatable USB capable router such as Asus RT-N16 or Linksys E3000
  14. USB storage >1Gb (Thumb drive / external HDD)
  15.  
  16.  
  17. DD-WRT INSTALLATION:
  18.  
  19. Install DD-WRT according you your routers wiki at:
  20.  
  21. http://www.dd-wrt.com/site/support/router-database
  22. *note: Do not use the build suggested in the database, read the wiki for the most stable version.
  23.        It's very important to fully understand the steps, both the choice of the build, and how it's
  24.        installed can be quite complicated. We don't want to see bricked routers.
  25.  
  26. Install optware according to the wiki:
  27. http://www.dd-wrt.com/wiki/index.php/Optware%2C_the_Right_Way
  28. OTRW2 will also work:
  29. http://www.dd-wrt.com/phpBB2/viewtopic.php?t=156013
  30.  
  31. Also check out the other tutorials which may be useful to you (such as OpenVPN / samba server etc):
  32. http://www.dd-wrt.com/wiki/index.php/Tutorials
  33.  
  34. CGMINER INSTALLATION:
  35.  
  36. Unpack the mipsel CGminer package.
  37. (Suggest you copy the .tar.gz to the router and untar it there)
  38.  
  39. For all:
  40. Copy cgminer scripts to     /opt/etc/init.d              (cgminer.sh, S99cgminer)
  41. Copy cgminer executable to  /opt/bin                     (cgminer)
  42. Copy cgminer.conf to        /opt/etc                     Edit according to your setup. See CGminer documentation.
  43. Copy libusb-1.0 files to    /opt/lib                     Rename the originals (if any)
  44.  
  45. For BFL, Icarus and Mod Miner Quad:
  46. Copy serial script to       /opt/etc/init.d              (S45serialmodules)
  47. Copy ftdi_sio.ko to         /opt/lib/modules/2.6.24.111  Rename existing file
  48.  
  49. Enable the USB serial drivers, type:
  50. > service serialmodules on
  51. > service serialmodules start
  52.  
  53. The devices should now be recognised as a serial device. To check, type:
  54. > ls -l /dev/usb/tts
  55.  
  56. This will list all the USB serial ports detected.
  57.  
  58. For Ztex and Mod Miner Quad:
  59. Create the bitstreams dir and copy bitstream files to    /opt/bin/bitstreams
  60.  
  61. For all:
  62. Log into the router via Telnet/SSH
  63.  
  64. Install the app 'screen', type:
  65. >ipkg-opt install screen
  66.  
  67. Make sure all the scripts and cgminer are executable:
  68. > chmod +x /opt/bin/cgminer
  69. > chmod +x /opt/etc/init.d/cgminer.sh
  70. etc...
  71.  
  72.  
  73. LAUNCHING CGMINER:
  74.  
  75. Now start cgminer, type:
  76. > service cgminer on
  77. > service cgminer start
  78.  
  79. Your devices should now be mining.
  80. To check look at the log file, type:
  81. > ls -l /opt/var/log
  82. to find latest logfile, then view it with:
  83. > tail -f /opt/var/log/YYYYMMDD-HHMMSS.<PID>.log
  84.  
  85. This should show only a few items, such as startup information, long polls, stale shares and errors/warnings.
  86.  
  87. To monitor CGminer, you'll need to use the RPC API and a remote front-end such as Anubis.
  88. https://github.com/pshep/ANUBIS
  89.  
  90. You can also see the current feed by connecting to 'screen', type:
  91. > screen -r
  92.  
  93. This will update every few seconds, scrolling the totals, and each device status/hashrate/temp etc
  94. Note: Do NOT press Ctrl-c or Ctrl-q to exit the screen, this will terminate CGminer.
  95.       To exit screen and leave CGminer running, press 'Ctrl-A' then 'd'
  96.  
  97.  
  98.  
  99.  
  100. *CGminer is compiled with optware's compiler with the following options:
  101.  
  102. --disable-opencl --disable-adl --without-curses --without-libudev --enable-bitforce --enable-icarus --enable-ztex --enable-modminer
  103. CFLAGS="-O2 -march=mips32r2 -mtune=4kc -D_GNU_SOURCE"
  104.  
  105. Optware compiler available at:
  106.  
  107. http://www.nslu2-linux.org/wiki/FAQ/Optware-uClibcBuild
  108. See section: 'And what if the program I need is not available in the existing packages?'    
  109.  
  110.  
  111. Created by p_shep
  112. Donations: 1Fxpijq1NN52LzSzD2WtGbT3ZTWq366ejj
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top