Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Mühlhäuser committed Apr 23, 2017
1 parent 575a700 commit 06539ab
Show file tree
Hide file tree
Showing 17 changed files with 4,598 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
.DS_Store
49 changes: 48 additions & 1 deletion README.md
@@ -1,2 +1,49 @@
# marlintool
A convenience shell script for setting up a standalone Marlin build environment on Raspberry Pi and Linux in general.
This is a convenience shell script for setting up a standalone Marlin build environment on Raspberry Pi and Linux in general.

If you are already running octoprint as a printserver on a Raspberry Pi it is very convenient to also build Marlin on it via ssh. This script sets up the necessary build environment and provides commands for building and uploading from the commandline. It uses the official Arduino toolchain for ARM. Everything is standalone, nothing is installed.

It should also work on Linux in general. If you don’t build on ARM you will need to change the architecture though. Check the parameters at the beginning of the script for that.

The script is setup by default to build the Marlin fork “Skynet3D” for the Anet A8 Prusa clone. If you want to build stock Marlin, change the “marlinRepositoryUrl” parameter respectively. You should also set the parameter “hardwareDefintionDirectory” to an empty string, this prevents the script from trying to copy the board definition that is needed for the A8.

If you are running octopi on you Raspberry you need to disconnect it from your printer before uploading, otherwise the serial port is blocked.


Commandline parameters

-s –setup

Download and configure the toolchain and the necessary libraries for building Marlin.

-m –marlin

Download Marlin sources.

-v –verify

Build without uploading.

-u –upload

Build and upload Marlin. If you are running octopi on you Raspberry you need to disconnect it before uploading otherwise the serial port is blocked.

-b –backupConfig [file]

Backup the Marlin configuration to the given file.

-r –restoreConfig [file]

Put the given configuration into the Marlin directory. Rename to Configuration.h implicitly.”

-c –clean

Cleanup everything. Remove Marlin sources and Arduino toolchain\n\n”

-p –port [port]

Set the serialport for uploading the firmware. Overrides the default set in the script.

-h –help

Show help.
33 changes: 33 additions & 0 deletions hardware/anet/avr/boards.txt
@@ -0,0 +1,33 @@
# See: https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5---3rd-party-Hardware-specification
# See: http://code.google.com/p/arduino/wiki/Platforms

##############################################################

menu.cpu=Processor

########################################
## Anet V1 (sanguino clone) -
########################################
anetv1.name=anetOne

anetv1.upload.tool=arduino:avrdude
anetv1.upload.protocol=arduino
anetv1.upload.maximum_size=131072
anetv1.upload.speed=57600

anetv1.bootloader.low_fuses=0xD6
anetv1.bootloader.high_fuses=0xDA
anetv1.bootloader.extended_fuses=0xFD
anetv1.bootloader.unlock_bits=0x3F
anetv1.bootloader.lock_bits=0x0F

anetv1.build.mcu=atmega1284p
anetv1.build.f_cpu=16000000L
anetv1.build.board=AVR_SANGUINO
anetv1.build.core=arduino:arduino
anetv1.build.variant=sanguino

anetv1.bootloader.file=atmega/ATmegaBOOT_168_atmega1284p.hex
anetv1.bootloader.tool=avrdude


0 comments on commit 06539ab

Please sign in to comment.