Skip to content

Code Compilation

Bas Laarhoven edited this page Aug 3, 2013 · 3 revisions

2013-08-03 - This page may contain some outdated information. See here for more detailed instructions on how to build on the BeagleBone (White).

Software prerequisites

  • To run the application: A recent Linux kernel (3.2.16 or later) with the 'uio_pruss' module compiled and installed. Also the adc, pwm and gpio interfaces should be present in the /sys filesystem and the kernel should contain the Cape EEPROM parsing code. Otherwise all multiplexer settings must be made manually.
  • Either a native (arm) or cross compilation environment to compile the BeBoPr sources and optionally the Linux kernel.
  • The BeBoPr sources from GitHub (either clone or download a zip).

Configuration

  • Edit 'setenv' to reflect your compilation environment.

Compilation

  • Source 'setenv' (before running 'make').
  • run 'make' with targets 'clean' and 'depend' the first time, and again after merging changes from GitHub.
  • run 'make' with target 'all'.

Installation

  • either run 'make' with target 'install' if your target filesystem is locally mounted.
  • or manually copy 'mendel.elf' and 'stepper.bin' to your target filesystem.

Running

  • On the BeagleBone, run 'modprobe uio_pruss' to install the 'uio_pruss' module in the kernel.
  • Finally run 'mendel.elf' (as root) to start the printer application.
  • On the prompt of the gcode interpreter type your commands and enjoy!