Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Martin Mühlhäuser
committed
Apr 23, 2017
1 parent
575a700
commit 06539ab
Showing
17 changed files
with
4,598 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
||
|
Oops, something went wrong.