Skip to content
This repository has been archived by the owner on Oct 27, 2018. It is now read-only.

Building From Source

Calin Crisan edited this page Jun 2, 2015 · 2 revisions

If you want to compile the latest GIT version, you need a computer running Linux (any recent distro should work). Follow the steps below to download, compile and prepare the image from the GIT repo. Replace [sbc] with your actual SBC (e.g. raspberrypi).

  1. make sure your system meets the BuildRoot requirements

  2. clone the repository and change the current directory:

     git clone --depth 1 https://github.com/ccrisan/motionpie.git motionpie
     cd motionpie
    
  3. optionally make your changes to the package selection and buildroot configuration:

     ./build.sh [sbc] xconfig
    
  4. build the image for your SBC (at some point you'll be prompted for your password to become root):

     ./build.sh [sbc]
    

    If everything went well, you will find your freshly built image at output/[sbc]/images/motionpie-[sbc].img.

  5. write the image file to your SD card using your preferred method (e.g. with dd, replacing /dev/mmcblk0 with your SD card reader device):

     sudo dd if=output/[sbc]/images/motionpie-[sbc].img of=/dev/mmcblk0 bs=4M