2/28/2024 0 Comments Install cgminer on raspberry pi![]() Sudo adduser –system –home /var /local/lib/cgminer cgminer Run cgminer under its own user “cgminer”: Sudo cp /usr/src/cgminer/les /etc/udev/rules.d/ To run cgminer as a regular user you should also install the udev rules: Libusb-1.0-0-dev is already the newest version.Ġ upgraded, 0 newly installed, 0 to remove and 1 not the make failed with: Libusb-1.0-0 is already the newest version. Note, selecting ‘libusb-1.0-0-dev’ for regex ‘libusb-1.0’ Note, selecting ‘libusb-1.0-0’ for regex ‘libusb-1.0’ I retried sudo apt-get install libusbĮ: Unable to locate package sudo apt-get install libusb-1.0 configure failed for had already installed libusb. configure: line 11925: -pthread: command not foundĬonfigure: error: “udev support requested but libudev not installed”Ĭonfigure: error. The stream ends with:Ĭhecking whether gcc and cc understand -c and -o together… yes I fixed the -Wall switch and retried the command. | #define PACKAGE_BUGREPORT “ ”Ĭonfigure:3939: error: in `/home/pi/workarea/cgminer’:Ĭonfigure:3941: error: C compiler cannot create executablesĪny ideas? Be gentle, I am new to all this… ![]() Gcc: error: unrecognized option ‘-qversion’Ĭonfigure:3870: checking whether the C compiler worksĬonfigure:3892: gcc -O2 -WAll -march=native conftest.c >&5Ĭc1: error: bad value (native) for -march switchĬc1: error: unrecognized command line option ‘-WAll’ See `config.log’ for more I look at config.log, I see the following: configure –enable-bflscĬhecking build system type… armv6l-unknown-linux-gnueabihfĬhecking host system type… armv6l-unknown-linux-gnueabihfĬhecking target system type… armv6l-unknown-linux-gnueabihfĬhecking for a BSD-compatible install… /usr/bin/install -cĬhecking whether build environment is sane… yesĬhecking for a thread-safe mkdir -p… /bin/mkdir -pĬhecking whether make supports nested variables… yesĬhecking for style of include used by make… GNUĬhecking whether the C compiler works… noĬonfigure: error: in `/home/pi/workarea/cgminer’:Ĭonfigure: error: C compiler cannot create executables I get the following CFLAGS=”-O2 -WAll -march=native”. Let me know if that works for you or if you run into trouble.This sequence doesn’t compile on my RPi. 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 |