Cgminer raspberry pi bitcoin minerals


To get started I created a separate directory in my home directory to hold all things bitcoin:. The software unfortunately requires a lengthy build and configuration process that has additional software dependencies. Some of these I found online, and some I found by trial and error. Below is a list of all the ones I needed, running the latest Raspberry Pi firmware, to save you the trouble.

Once again, your mileage may vary. Once all these are successfully downloaded and installed, you can start the cgminer build process. This takes a long time. Do not be worried if it seems to hang. According to online wisdom, this improves the stability of the miner.

I cannot vouch for that one way or another, but just included it here for completeness. You now have an executable capable of running cgminer and controlling your Antminer U1! The command to run the miner is as follows:. The -o parameter is the URL of your mining pool. Finally the --bmsc-freq option is a custom parameter to the Antminer U1 that sets the clock speed.

According to the documentation and online wisdom, 2 Ghps is the most you should run the Antminer U1 without significant external cooling. The clock settings go higher all the way up to 4 GHps according to some reports but require significant external cooling and run the risk of causing faults on the chip or even permenant damage.

I personally run my at which is a solid compromise between performance and stability. If you are intent on overclocking you should investigate getting a heatsink with the proper thermal tape or thermal adhesive! If you are going to push the envelope, you should look at creating a wind tunnel to focus your fan on the chip, or try something more exotic like a mineral oil bath. Sound off in the comments with any cooling rigs you experiment with!

Running the command as describe above will run it interactively in the terminal. Since you are not likely to want to stay logged into your Pi while you mine, I would suggest the following changes to the command:. The nohup causes the program to persist in executing even if the originating user logs out.

I have been mining intermittently for about three weeks at 1. But that is beside the point Do not attach a Raspberry Pi camera to your Raspberry Pi while mining. If possible, I recommend buying a microSD card for your Raspberry Pi and using an adapter such as this one.

Over time the pins on the Pi's card reader become worn down causing it to occasionally crash the OS due to a bad read. This wrecks havoc with your efforts to keep a good mining streak going. The microSD adapter I listed above does not have recessed pins like all SD cards have and therefore hold a good connection for a long time.

Ensure your power cord is firmly attached and not worn out. I had a number of unexplained network crashes due to a loose power cord. While not enough power loss to cause the Pi to shut off, it would periodically kill my network connection, and disrupt my miner. That is it for now! To confirm it worked, I first logged into my Pi and ran this command: Bus Device Running lsusb again, I see the additional entries: To get started I created a separate directory in my home directory to hold all things bitcoin: The command to run the miner is as follows: The Antminer U1 uses a custom version of cgminer with drivers for it preinstalled.

If you are using a different miner, your mileage may vary. To get started I created a separate directory in my home directory to hold all things bitcoin:. The software unfortunately requires a lengthy build and configuration process that has additional software dependencies. Some of these I found online, and some I found by trial and error.

Below is a list of all the ones I needed, running the latest Raspberry Pi firmware, to save you the trouble. Once again, your mileage may vary. Once all these are successfully downloaded and installed, you can start the cgminer build process.

This takes a long time. Do not be worried if it seems to hang. According to online wisdom, this improves the stability of the miner. I cannot vouch for that one way or another, but just included it here for completeness. You now have an executable capable of running cgminer and controlling your Antminer U1! The command to run the miner is as follows:. The -o parameter is the URL of your mining pool. Finally the --bmsc-freq option is a custom parameter to the Antminer U1 that sets the clock speed.

According to the documentation and online wisdom, 2 Ghps is the most you should run the Antminer U1 without significant external cooling. The clock settings go higher all the way up to 4 GHps according to some reports but require significant external cooling and run the risk of causing faults on the chip or even permenant damage. I personally run my at which is a solid compromise between performance and stability.

If you are intent on overclocking you should investigate getting a heatsink with the proper thermal tape or thermal adhesive! If you are going to push the envelope, you should look at creating a wind tunnel to focus your fan on the chip, or try something more exotic like a mineral oil bath.

Sound off in the comments with any cooling rigs you experiment with! Running the command as describe above will run it interactively in the terminal.

Since you are not likely to want to stay logged into your Pi while you mine, I would suggest the following changes to the command:. The nohup causes the program to persist in executing even if the originating user logs out. I have been mining intermittently for about three weeks at 1.

But that is beside the point Do not attach a Raspberry Pi camera to your Raspberry Pi while mining. If possible, I recommend buying a microSD card for your Raspberry Pi and using an adapter such as this one. Over time the pins on the Pi's card reader become worn down causing it to occasionally crash the OS due to a bad read. This wrecks havoc with your efforts to keep a good mining streak going. The microSD adapter I listed above does not have recessed pins like all SD cards have and therefore hold a good connection for a long time.

Ensure your power cord is firmly attached and not worn out. I had a number of unexplained network crashes due to a loose power cord. While not enough power loss to cause the Pi to shut off, it would periodically kill my network connection, and disrupt my miner.

That is it for now! To confirm it worked, I first logged into my Pi and ran this command: Bus Device Running lsusb again, I see the additional entries: