buzzkillb Posted March 7, 2019 Report Share Posted March 7, 2019 Basic setup to building your own custom Raspbian Image from the offician pi-gen repo using you Denarius daemon wallet as the example. I like that someone can build completely from source and compile the entire OS on their own for their precious crypto. https://github.com/buzzkillb/denariianpi-gen Go to https://github.com/RPi-Distro/pi-gen. Read this a few times how it works. I am using Windows 10, so I downloaded VirtualBox and created an Ubuntu 16.04 VM with 2 cpu's, 100GB hard drive, and 3GB of ram. git clone https://github.com/RPi-Distro/pi-gen You want to build the stock image to make sure this works from the get go. nano config Put this one line in for your image name, ex. testimage IMG_NAME='testimage' Once this is done building you can find the image in the work folder with a date and name of image. The image is in /pi-gen/work/date-imagename/export-image For the first run I wanted to build only the lite command line Raspbian with denariusd daemon. This is found in stage2 directory. I made a new directory called 04-denariusd. And put the files required in there. cd ~/pi-gen/stage2 mkdir 04-denariusd cd 04-denariusd nano 00-packages dependencies to compile denariusd and openssl 1.0.1j git unzip libdb++-dev libboost-all-dev libqrencode-dev libminiupnpc-dev libevent-dev autogen automake libtool Next create a file to compile openssl 1.0.1j and denariusd. nano 04-run.sh Â #!/bin/bash -e on_chroot << EOF apt-get install make wget https://www.openssl.org/source/openssl-1.0.1j.tar.gz tar -xzvf openssl-1.0.1j.tar.gz cd openssl-1.0.1j ./config make depend make # make test make install sudo ln -sf /usr/local/ssl/bin/openssl `which openssl` git clone https://github.com/carsenk/denarius cd denarius git checkout v3.4 git pull cd src OPENSSL_INCLUDE_PATH=/usr/local/ssl/include OPENSSL_LIB_PATH=/usr/local/ssl/lib make -f makefile.arm strip denariusd cp denariusd /usr/local/bin/denariusd EOF chmod +x 04-run.sh Now the basic setup is done. Go back to ~/pi-gen, run some commands to skip stages after stage2 and run the build command. # Example for building denariian lite system touch ./stage3/SKIP ./stage4/SKIP ./stage5/SKIP touch ./stage4/SKIP_IMAGES ./stage5/SKIP_IMAGES sudo ./build.sh Grab your image from /pi-gen/work/date-imagename/export-image, etch to microsd card and go tinker away with your raspberry pi. tip: this is a really easy way to cross compile for your raspberry pi. This uses qemu so you get 1 cpu and minimal ram, but outside of compiling everything else is maxing out the VM. 1 Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.