12/12/2023 0 Comments Raspberry pi cgminer asic![]() You can also SSH into your Pi at any time and run sudo screen -x cgminer to view your cgminer screen. You can play around with voltage and frequencies by following the table in the official manual, found here, there's no real need to change what I suggested above though. My Antminer U3 is running at around ~59-60Gh/s, hopefully yours should be the same. cgminer -bmsc-options 115200:0.57 -o POOL -u USERNAME -p PASSWORD -bmsc-voltage 0800 -bmsc-freq 1286 Sudo nano /etc/rc.local - remember, Ctrl-X to exit, then type Y and press Enter to save changes.Īdd this just above exit 0, again enter your own pool, username and password: Now, add cgminer to start automatically when the Pi is powered on and create a screen session: ![]() Test cgminer is working correctly by running the following (input your own pool, username and password): Install, configure and also enable bmsc options:Įxport LIBCURL_CFLAGS=’-I/usr/include/curl’ Sudo apt-get install libusb-1.0-0-dev libusb-1.0-0 libcurl4-openssl-dev libncurses5-dev libudev-dev screen libtool automake pkg-config libjansson-dev screen Login via PuTTY with the default username/password, then raspi-config if you would like to change the hostname, default password and so on. ![]() Run a fresh install of Raspbian using NOOBS, after the install type ifconfig and make a note of the IP address, so that you can remotely SSH into your Pi. Let me know if that works for you or if you run into trouble.That link is useless if you're running an Antminer U3, here's how I got mine working using screen and PuTTY. You may now logout and cgminer will keep running in the background and you can attach back to it any time. You can leave that screen by pressing ctrl+a d Which will attach you the cgminer screen. Once connected via ssh again type screen -r miner OK, now it is time to reboot and check if everything is working. Wher username and password are your worker credentials from the pool.Ĭgminer is started via screen, this gives us later the possibility to switch to cgiminer when we connect via ssh. Now we only need to start mining after the user logged in therefore we open /etc/rc.local and add su -l USERNAME -c 'screen -d -m -S miner cgminer -o :3333 -u USERNAME -p PASSWORD' This is just in case it gets disconnected for whatever reason so you don’t have to think about starting it up every time.ġ:2345:respawn:/sbin/getty -noclear 38400 tty1ġ:2345:respawn:/bin/login -f USERNAME tty1 /dev/tty1 2>&1 I will also configure the raspberry to automatically login after startup and start mining. Now add yourself to the plugdev group and you have access to the miner as “normal” user. You can check with lsusb -vįor Some Uart Bridge which most likely is the Erupter. ![]() SUBSYSTEMS="usb", ATTRS="ea60", GROUP="plugdev"īe sure to check if your idProduct is the same as mine. This is also necessary for the automatic startup I will go through later.įire up your editor as root and create an udev rule at /etc/udev/rules.d/les with this content: Now we setup udev so it allows us to access the miners as normal user, so we don’t have to start it as root. Now get yourself a place in a mining pool, you can check this one out don’t forget to add your Bitcoin address in the appropriate field or you will not get any payout. Get cgMiner via git, just so we can update to new versions easily.ĬFLAGS="-O2 -Wall". Sudo apt-get install libusb-1.0-0-dev libusb-1.0-0 libcurl4-openssl-dev libncurses5-dev libudev-dev git autoconf automake libtool screen ![]() You will need the powered USB hub even if you mining with only one Erupter since the Raspberry only outputs 100mA on it’s USB Port and the Erupter needs 500mA.įirst connect to the Raspberry via ssh and install all needed packages. In this post I will go through the process of setting up a Bitcoin miner with the raspberry pi, cgminer and an Block Erupter Asicminer. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |